/* Rêves Innovate Solutions — site styles.
   Palette and devices derive from the company letterhead: paper ground, ink
   text, the logo's red as the single signal colour, and the letterhead's
   orange→purple gradient reserved for one device — the three rounded bars. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/BricolageGrotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/IBMPlexSans-var.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf9f8;
  --paper-tint: #f3f0ed;
  --ink: #1b1c1e;
  --ink-soft: #4a4b4e;
  --red: #ca1f25;
  --red-deep: #a51920;
  --rose: #a45765;
  --line: #e2ddd7;
  --grad-a: #e28c50;
  --grad-b: #9f4786;
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --gutter: clamp(20px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: var(--wrap-narrow);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
}
h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red);
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -200vw;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus {
  left: 0;
}

/* The letterhead's three rounded gradient bars — the one place the gradient
   is allowed. Everything else stays paper, ink and red. */
.bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 72px;
  margin-bottom: 22px;
}
.bars i {
  display: block;
  height: 7px;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.bars i:nth-child(2) {
  width: 82%;
}
.bars i:nth-child(3) {
  width: 60%;
}
.bars--draw i {
  transform-origin: left;
  animation: bar-draw 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.bars--draw i:nth-child(2) {
  animation-delay: 0.12s;
}
.bars--draw i:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes bar-draw {
  from {
    transform: scaleX(0);
  }
}

/* ------------------------------------------------------------------ header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: block;
  width: 30px;
  height: auto;
}
.brand__word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__word b {
  font-weight: 700;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav__list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav__list a:hover {
  color: var(--red);
}
.nav__list a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav__toggle {
  display: none;
}

/* -------------------------------------------------------------------- hero */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero__lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 36em;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--line {
  color: var(--ink);
  background: transparent;
}
.btn--line:hover {
  border-color: var(--red);
  color: var(--red);
}
button.btn {
  font-family: var(--body);
  cursor: pointer;
}

/* The company-record card: styled like a registry extract, because the site's
   whole argument is verifiability. */
.record {
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 26px 26px 20px;
  position: relative;
}
.record::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  right: -1.5px;
  height: 6px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.record__title {
  font-size: 0.95rem;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 4px 0 16px;
}
.record__rows {
  margin: 0;
}
.record__rows > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.record__rows dt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 2px;
}
.record__rows dd {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 500;
}
.record__verify {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- bands */
.band {
  padding: clamp(44px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}
.band--tint {
  background: var(--paper-tint);
}
.band__h {
  margin-bottom: 1.1em;
}
.band__more {
  margin-top: 2em;
  font-size: 1.05rem;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.duo__item h3 {
  margin-bottom: 0.45em;
}
.duo__item h3 a {
  text-decoration: none;
}
.duo__item h3 a:hover {
  color: var(--red);
}

.creed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}
.creed h3 {
  margin-bottom: 0.4em;
}
.creed h3::before {
  content: '';
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--red);
  margin-bottom: 12px;
}
.creed p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.closer {
  max-width: 620px;
}
.closer p {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------- page head */
.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(8px, 2vw, 16px);
}
.page-head__lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 42em;
}
.crumb {
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.crumb a {
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- work/cases */
.case {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.case:first-child {
  border-top: 0;
  padding-top: 0;
}
.case__head h2 {
  margin-bottom: 0.2em;
}
.case__head h2 a {
  text-decoration: none;
}
.case__head h2 a:hover {
  color: var(--red);
}
.case__kicker {
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 1.2em;
}
.case p {
  max-width: 46em;
}
.more {
  font-weight: 600;
}

.facts {
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  background: #fff;
}
.facts > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
}
.facts > div:first-child {
  border-top: 0;
}
.facts dt {
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding-top: 2px;
}
.facts dd {
  margin: 0;
  font-weight: 500;
  font-size: 0.97rem;
}
.facts--page {
  margin-bottom: 2.2em;
}

.plainlist {
  padding-left: 1.1em;
  margin: 0 0 1.4em;
}
.plainlist li {
  margin-bottom: 0.55em;
}
.plainlist li::marker {
  color: var(--red);
}

.aside-note {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 16px;
  color: var(--ink-soft);
  margin-top: 2em;
}

.wrap--narrow h2 {
  margin-top: 1.8em;
}
.wrap--narrow h2:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------------- notes */
.note p {
  max-width: 46em;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.5em;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 58px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
}
.steps > li::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child::after {
  display: none;
}
.steps h3 {
  margin-bottom: 0.3em;
}
.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
}
.steps--slim > li {
  padding-bottom: 20px;
}

/* ---------------------------------------------------------------- services */
.svc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 3.5vw, 52px) clamp(26px, 4vw, 64px);
}
.svc h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}
.svc h2::before {
  content: '';
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--red);
  margin-bottom: 12px;
}
.svc p {
  margin: 0;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- careers */
.roles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.roles li {
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.roles h3 {
  margin-bottom: 0.3em;
}

.founder {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 22px;
}
.founder p {
  margin: 0;
}

/* ----------------------------------------------------------------- contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
}
.form {
  display: block;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 18px 0 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.form textarea {
  resize: vertical;
}
.form button {
  margin-top: 22px;
}
.form__privacy {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.form__hp {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact__aside h2 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}
.contact__aside h2:first-child {
  margin-top: 0;
}
.contact__aside p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice {
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 18px 22px;
  margin-bottom: 26px;
}
.notice h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
}
.notice p {
  margin: 0;
  color: var(--ink-soft);
}
.notice--ok {
  border-color: var(--ink);
  border-left: 6px solid var(--red);
}
.notice--err {
  border-color: var(--red);
}
.notice--err h2 {
  color: var(--red);
}

/* ------------------------------------------------------------------ footer */
.foot {
  border-top: 1.5px solid var(--ink);
  margin-top: clamp(40px, 7vw, 80px);
  background: var(--paper);
}
.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 48px;
}
.foot__id .bars {
  margin-bottom: 14px;
}
.foot__legal {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.foot__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  align-content: start;
  justify-content: flex-end;
}
.foot__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.foot__links a:hover {
  color: var(--red);
}
.foot__note {
  grid-column: 1 / -1;
  font-size: 0.83rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 10px 0 0;
}
.foot__copy {
  grid-column: 1 / -1;
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ------------------------------------------------------------- small sizes */
@media (max-width: 860px) {
  .hero__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .duo {
    grid-template-columns: 1fr;
  }
  .creed {
    grid-template-columns: 1fr;
  }
  .foot__inner {
    grid-template-columns: 1fr;
  }
  .foot__links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 7px 14px;
    cursor: pointer;
    color: var(--ink);
  }
  .nav__list {
    display: none;
    position: absolute;
    right: var(--gutter);
    top: 60px;
    background: #fff;
    border: 1.5px solid var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    min-width: 190px;
    box-shadow: 0 10px 26px rgba(27, 28, 30, 0.12);
  }
  .nav__list.is-open {
    display: flex;
  }
  .nav__list a {
    display: block;
    padding: 10px 18px;
  }
  .nav__list a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--red);
  }
}
