/* ============================================================
   Delaroque IP — site vitrine
   Palette "Suisse encre". Tokens only — no hard-coded hex in rules.
   ============================================================ */

:root {
  --ink:       #1B3A30;
  --cream:     #F2EFE6;
  --mint:      #9FE1CB;
  --mint-dark: #04342C;

  /* cream alpha variants (filets + secondary text on ink) */
  --cream-60:  rgba(242, 239, 230, 0.6);   /* secondary text  — ~5:1 on ink (AA) */
  --cream-25:  rgba(242, 239, 230, 0.25);  /* strong rules */
  --cream-14:  rgba(242, 239, 230, 0.14);  /* fine rules */

  /* ink alpha variants for light (cream) sections */
  --ink-72:    rgba(27, 58, 48, 0.72);     /* secondary TEXT on cream — ~4.8:1 (AA) */
  --ink-25:    rgba(27, 58, 48, 0.25);     /* strong rules (decorative) */
  --ink-14:    rgba(27, 58, 48, 0.14);     /* fine rules (decorative) */

  /* fluid horizontal gutter, shared across sections */
  --gutter: clamp(20px, 5vw, 48px);

  /* sticky header height — hero offset + anchor scroll-margin */
  --header-h: 56px;
}

/* ============================================================
   Fonts — Inter variable, self-hosted (latin subset, no CDN).
   System UI stack as fallback while the font loads.
   ============================================================ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500; /* variable file; site only uses 400 & 500 */
  font-display: swap;
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
}

/* Newsreader — editorial serif, hero headline only (self-hosted, OFL) */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/newsreader.woff2") format("woff2");
}

/* ============================================================
   Reset (minimal)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* Visible focus for keyboard users */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Shared button
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--mint);
  color: var(--mint-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }

/* secondary / outline button (e.g. LinkedIn on ink) */
.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream-25);
}
.btn--outline:hover { opacity: 1; color: var(--mint); border-color: var(--mint); }

/* ============================================================
   HERO — full viewport, flex column:
   nav (top) · content grid (grows) · credentials (bottom)
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

/* — sticky site header — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  line-height: 1.2;
  padding: 18px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--cream-14);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-header__mark {
  display: block;
  height: 20px;
  width: auto;
}
.site-header nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  font-size: 0.8rem;
}
.site-header nav a { color: var(--cream-60); transition: color 0.15s ease; }
.site-header nav a:hover { color: var(--cream); }
.site-header nav a.is-accent { color: var(--mint); }
.site-header nav a.is-accent:hover { color: var(--mint); opacity: 0.85; }

/* keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: var(--header-h); }

/* — content grid (stretches to fill remaining height) — */
.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}

.hero__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-right: 1px solid var(--cream-14);
}
.hero__main h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero__main p {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  color: var(--cream-60);
  max-width: 46ch;
  margin: 1.25em 0 2em;
}
.hero__main .btn { align-self: flex-start; }

/* — services preview column (cells split the column evenly) — */
.hero__services {
  display: block;
  margin: 1.6em 0 2em;
  border-top: 1px solid var(--cream-14);
}
.hero__service {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--cream-14);
}
.hero__service:last-child { border-bottom: none; }
.hero__service-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* hero right column: condensed "how it works" teaser */
.hero__how {
  align-self: center;
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}
.hero__how .section-kicker { margin-top: 0; margin-bottom: 1.6em; }
.hero__steps { list-style: none; display: grid; gap: 1.5em; }
.hero__steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; }
.hero__steps .n { font-size: 1.2rem; font-weight: 500; color: var(--mint); line-height: 1; }
.hero__steps h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.35em; }
.hero__steps p { font-size: 0.9rem; color: var(--cream-60); max-width: 34ch; }

/* — credentials strip (pinned at bottom) — */
.hero__credentials {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--cream-25);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--cream-60); /* bumped from proto for AA at small size */
}

/* ============================================================
   SERVICES — cream section, inverted palette
   ============================================================ */
.services {
  background: var(--cream);
  color: var(--ink);
}

/* shared section header (kicker / heading / lead) */
.section-head {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--ink-14);
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 0.9em;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  color: var(--ink-72);
  margin-top: 0.7em;
  max-width: 46ch;
}

/* numbered service rows */
.service-list {
  list-style: none;
}
.service {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border-bottom: 1px solid var(--ink-14);
}
.service:last-child { border-bottom: none; }

.service__head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(28px, 4vw, 48px) var(--gutter);
}
.service__icon {
  flex: none;
  width: clamp(24px, 2.6vw, 32px);
  height: clamp(24px, 2.6vw, 32px);
  background-color: var(--mint-dark);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.service__icon--casework  { -webkit-mask-image: url("assets/Primary.svg");         mask-image: url("assets/Primary.svg"); }
.service__icon--portfolio { -webkit-mask-image: url("assets/folder-bookmark.svg"); mask-image: url("assets/folder-bookmark.svg"); }
.service__icon--process   { -webkit-mask-image: url("assets/route.svg");           mask-image: url("assets/route.svg"); }
.service__title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.service__body {
  padding: clamp(28px, 4vw, 48px) var(--gutter);
  border-left: 1px solid var(--ink-14);
}
.service__desc {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  max-width: 52ch;
}
.service__points {
  list-style: none;
  margin-top: 1.4em;
  display: grid;
  gap: 0.85em;
  max-width: 56ch;
}
.service__points li {
  position: relative;
  padding-left: 1.6em;
  font-size: 0.9375rem;
  color: var(--ink-72);
}
.service__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 0.95em;
  height: 0.95em;
  background-color: var(--mint-dark);
  -webkit-mask: url("assets/sparkle.svg") center / contain no-repeat;
  mask: url("assets/sparkle.svg") center / contain no-repeat;
}

/* ============================================================
   ABOUT — ink section. Portrait (B&W, pending) + bio / social proof
   ============================================================ */
.about {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--cream-25);
}
.section-kicker--mint { color: var(--mint); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

/* portrait column */
.about__portrait {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-right: 1px solid var(--cream-14);
}
.about__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--cream-25);
}

/* content column */
.about__content {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.about__content h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about__role {
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  color: var(--mint);
  margin-top: 0.5em;
}
.about__intro {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  color: var(--cream-60);
  max-width: 52ch;
  margin-top: 1.6em;
}

/* social proof — labelled rows */
.about__cred {
  margin-top: 2em;
  border-top: 1px solid var(--cream-14);
}
.about__cred-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 16px;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--cream-14);
}
.about__cred-row dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-60);
}
.about__cred-row dd {
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
}

/* portfolios */
.about__portfolios { margin-top: 2.2em; }
.about__subhead {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-60);
  margin-bottom: 1em;
}
.about__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.about__tags li {
  font-size: 0.875rem;
  padding: 6px 14px;
  border: 1px solid var(--cream-25);
  border-radius: 4px;
}

/* ============================================================
   CONTACT — ink section, distinct centered treatment
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--cream-25);
}
.contact__inner {
  padding: clamp(64px, 12vw, 140px) var(--gutter);
  text-align: center;
}
.contact h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.2em;
}
.contact__lead {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  color: var(--cream-60);
  max-width: 44ch;
  margin: 1em auto 0;
}
.contact__email {
  display: inline-block;
  margin-top: 1.6em;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  font-weight: 500;
  color: var(--mint);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--cream-25);
  padding-bottom: 4px;
  transition: border-color 0.15s ease;
  word-break: break-word;
}
.contact__email:hover { border-color: var(--mint); }
.contact__secondary {
  margin-top: 2.2em;
}

/* ============================================================
   FOOTER — ink, legal notice
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream-60);
  border-top: 1px solid var(--cream-25);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  font-size: 0.8rem;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer__copy { white-space: nowrap; }

/* ============================================================
   Responsive — single breakpoint, mobile stacks
   ============================================================ */
@media (max-width: 768px) {
  .hero { min-height: calc(100svh - var(--header-h)); }

  .hero__body {
    grid-template-columns: 1fr;
  }
  .hero__main {
    justify-content: flex-start;
    padding-top: clamp(36px, 12vw, 56px);
    padding-bottom: clamp(32px, 8vw, 48px);
    border-right: none;
    border-bottom: 1px solid var(--cream-14);
  }
  .hero__main h1 { max-width: 100%; }

  /* hero services list + how-it-works teaser stack naturally on mobile */

  .hero__credentials {
    flex-direction: column;
    gap: 4px;
  }

  /* services stack: head over body, drop the vertical filet */
  .service {
    grid-template-columns: 1fr;
  }
  .service__head {
    padding-bottom: 0;
  }
  .service__body {
    border-left: none;
    padding-top: clamp(16px, 4vw, 24px);
  }


  /* about stacks: portrait over content, drop vertical filet */
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__portrait {
    border-right: none;
    padding-bottom: 0;
    max-width: 320px;
  }
  .about__cred-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
