/* ==========================================================================
   MRH Solutions: site styles
   --------------------------------------------------------------------------
    1. Fonts              7. Hero               13. Call to action
    2. Design tokens      8. Proof points       14. Contact & form
    3. Base               9. Services           15. Footer
    4. Layout & type     10. Approach           16. Motion
    5. Buttons & links   11. Selected work      17. Print
    6. Header & menus    12. About
   ========================================================================== */


/* 1. Fonts: self-hosted, SIL Open Font License 1.1 (see assets/fonts) ---- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

/* Lets the CTA spotlight glide toward the pointer */
@property --spot-x { syntax: "<length-percentage>"; inherits: true; initial-value: 85%; }
@property --spot-y { syntax: "<length-percentage>"; inherits: true; initial-value: 0%; }


/* 2. Design tokens -------------------------------------------------------- */
:root {
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Palette: deep spruce, warm ivory, burnished copper */
  --paper: #f4f0e6;        /* page */
  --paper-2: #ece6d9;      /* alternating sections */
  --card: #faf8f2;         /* raised surfaces */
  --ink: #0f2622;          /* headings, primary buttons */
  --ink-2: #1d3a33;
  --text: #34413c;         /* body copy */
  --muted: #56625c;        /* secondary copy */
  --line: #dcd5c6;         /* hairlines */
  --line-2: #c9c0ae;
  --field-line: #8f8a7e;   /* form field underline (3:1 against card) */
  --accent: #9a4f24;       /* copper */
  --accent-tint: #f3e3d3;
  --sage: #3f6456;
  --sage-tint: #e3ebe4;
  --error: #a3341f;

  /* Dark surfaces */
  --dark: #0f2622;
  --dark-2: #15322c;
  --dark-3: #1d3a33;
  --dark-text: #d6ddd7;
  --dark-muted: #9daea6;
  --dark-line: rgb(214 221 215 / 0.14);
  --dark-accent: #e2a877;  /* light copper on dark */
  --on-dark: #f4f0e6;

  /* Fine paper grain, tinted for light and dark surfaces */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-1: 0 1px 2px rgb(15 38 34 / 0.04), 0 4px 14px -6px rgb(15 38 34 / 0.08);
  --shadow-2: 0 2px 4px rgb(15 38 34 / 0.04), 0 22px 44px -22px rgb(15 38 34 / 0.28);
  --shadow-3: 0 4px 10px rgb(15 38 34 / 0.08), 0 44px 90px -34px rgb(15 38 34 / 0.55);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --col-gap: clamp(1rem, 2.2vw, 1.75rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --header-h: 84px;
  --header-h-compact: 68px;
}


/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--paper);
  background-image: var(--noise);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--accent-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }


/* 4. Layout & typography -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }

.section-alt {
  background-color: var(--paper-2);
  background-image: var(--noise);
}

.section-dark {
  isolation: isolate;
  background-color: var(--dark);
  background-image: var(--noise-light);
  color: var(--dark-text);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 100% 0%, rgb(226 168 119 / 0.11), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgb(79 117 102 / 0.2), transparent 70%);
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: inherit;
}
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 330;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 1.2rem + 5vw, 5.75rem);
  line-height: 0.98;
}
h2 {
  font-size: clamp(2.25rem, 1.45rem + 3vw, 4rem);
  line-height: 1.03;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 320;
  color: var(--accent);
}
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

/* Section header: index label in the left columns, heading in the right */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.section-head-main { grid-column: 4 / -1; }
.section-head-tight { margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }
.section-head h2 { max-width: 17ch; }

.section-index {
  grid-column: 1 / span 3;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-index .num {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.section-index .rule {
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.section-lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.section-dark h2 { color: var(--on-dark); }
.section-dark .section-index { color: var(--dark-text); }
.section-dark .section-index .num { color: var(--dark-accent); }
.section-dark .section-lead { color: var(--dark-muted); }
.section-dark :focus-visible { outline-color: var(--dark-accent); }

@media (max-width: 1023px) {
  .section-head { display: block; }
  .section-head .section-index { margin-bottom: 1.75rem; padding-top: 0; }
}


/* 5. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-bloom: var(--accent);
  --icon-bg: var(--accent);
  --icon-fg: var(--on-dark);
  --icon-size: 40px;
  --btn-pad: 0.4375rem;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 54px;
  padding: var(--btn-pad) var(--btn-pad) var(--btn-pad) 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.96875rem/1 var(--font-sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.5s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
/* Hover fill that blooms out of the arrow badge */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: var(--btn-pad);
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background: var(--btn-bloom);
  transform: translateY(-50%) scale(0);
  transition: transform 0.75s var(--ease-out);
}
.btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  overflow: hidden;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.btn-icon svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: transform 0.6s var(--ease-out);
}
.btn-icon svg:last-child { transform: translateX(-180%); }

@media (hover: hover) {
  .btn:hover::before { transform: translateY(-50%) scale(14); }
  .btn:hover .btn-icon { background: var(--on-dark); color: var(--accent); }
  .btn:hover .btn-icon svg:first-child { transform: translateX(180%); }
  .btn:hover .btn-icon svg:last-child { transform: translateX(0); }
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 4px; }
.btn[disabled] { cursor: progress; opacity: 0.75; }

.btn-light {
  --btn-bg: var(--on-dark);
  --btn-fg: var(--ink);
  --btn-bloom: var(--dark-accent);
  --icon-bg: var(--ink);
  --icon-fg: var(--on-dark);
}
@media (hover: hover) {
  .btn-light:hover .btn-icon { background: var(--ink); color: var(--dark-accent); }
}

.btn-sm {
  --icon-size: 34px;
  --btn-pad: 0.3125rem;
  gap: 0.625rem;
  min-height: 44px;
  padding-left: 1.125rem;
  font-size: 0.875rem;
}

/* Underlined text links that sweep out and back in on hover */
.link-sweep,
.link-arrow {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  text-decoration: none;
}
@media (hover: hover) {
  .link-sweep:hover,
  .link-arrow:hover { animation: underline-sweep 0.9s var(--ease-out); }
}
@keyframes underline-sweep {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0 0.375rem;
  border: 0;
  background-color: transparent;
  color: var(--ink);
  font: 600 0.96875rem/1.2 var(--font-sans);
  cursor: pointer;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .link-arrow:hover svg { transform: translateX(4px); }
}


/* 6. Header & menus ------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.site-header.is-scrolled {
  background-color: rgb(244 240 230 / 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(15 38 34 / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.5s var(--ease-out);
}
.is-scrolled .header-inner { height: var(--header-h-compact); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) {
  .brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
}
.brand-word {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-word em {
  font-style: italic;
  font-weight: 380;
  color: var(--muted);
}

.site-nav ul { display: flex; gap: 0.125rem; }
.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .site-nav a:hover { background: rgb(15 38 34 / 0.06); color: var(--ink); }
}
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scale(1); }

.header-cta { margin-left: 0.5rem; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.is-scrolled .scroll-progress { opacity: 1; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--dark-accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Menu toggle (small screens) */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  height: 44px;
  margin-right: -0.25rem;
  padding: 0 0.25rem 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.3s, background-color 0.3s;
}
.menu-toggle-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.menu-toggle-icon span:first-child { transform: translateY(-3px); }
.menu-toggle-icon span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .js .site-nav,
  .js .header-cta { display: none; }
  .js .menu-toggle { display: inline-flex; }

  /* Without JavaScript: show the links as a wrapped row in a static header */
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-block: 1rem; row-gap: 0.5rem; }
  .no-js .site-nav { order: 3; width: 100%; }
  .no-js .site-nav ul { flex-wrap: wrap; }
  .no-js .site-nav a { padding-inline: 0.75rem 0.5rem; }
  .no-js .header-cta { display: none; }
}
.no-js .site-header { position: relative; }

/* Full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--paper);
  background-image: var(--noise);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-out), visibility 0s;
}
.mobile-menu-nav ol { border-top: 1px solid var(--line); }
.mobile-menu-nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.9rem 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open .mobile-menu-nav a { transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.17s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.22s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.27s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.32s; }
.mobile-menu-nav a:active { color: var(--accent); }
.mobile-menu-num {
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0;
  color: var(--accent);
}
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.35s, transform 0.8s var(--ease-out) 0.35s;
}
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
.mobile-menu-email {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

@media (min-width: 1024px) { .mobile-menu { display: none; } }
.no-js .mobile-menu { display: none; }

html.menu-open { overflow: hidden; }
.menu-open .site-header {
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.menu-open .scroll-progress { opacity: 0; }


/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.no-js .hero { padding-top: clamp(2rem, 5vw, 4.5rem); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 100% 0%, rgb(154 79 36 / 0.09), transparent 70%),
    radial-gradient(45% 55% at 0% 85%, rgb(79 117 102 / 0.1), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3.5rem;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; }
.hero-visual { grid-column: 8 / -1; position: relative; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-bottom: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-tags li { display: inline-flex; align-items: center; gap: 1.1rem; }
.hero-tags li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.hero-title { margin-bottom: 2rem; }
.hero-title .line {
  display: block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  /* masks each line for the rise-in animation without clipping italics or descenders */
  clip-path: inset(-0.5em -0.5em 0 -0.5em);
}
.hero-title .line > span { display: inline-block; }

.hero-lead {
  max-width: 35rem;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.hero-principal {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 35rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-principal p { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }
.hero-principal strong { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.hero-principal p span { font-size: 0.875rem; color: var(--muted); }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--dark-3), var(--dark) 70%);
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-2);
}
.avatar-sm {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line-2);
}

/* Illustration panel */
.visual-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background-color: var(--dark);
  background-image: var(--noise-light);
  box-shadow: var(--shadow-3);
}
.visual-panel::before {
  /* blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(214 221 215 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(214 221 215 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 80%);
}
.visual-panel::after {
  /* copper glow */
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(226 168 119 / 0.3), transparent 65%);
}
[data-depth] { transition: translate 0.8s var(--ease-out); }

.cds-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.6);
}
.cds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.cds-hook {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 7px;
  background: var(--sage-tint);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.cds-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.cds-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sage);
  animation: ping 2.4s var(--ease-out) infinite;
}
.cds-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.cds-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 1rem 0;
}
.cds-context .span-2 { grid-column: 1 / -1; }
.cds-context dt { font-size: 0.75rem; color: var(--muted); }
.cds-context dd { margin: 0.125rem 0 0; font-weight: 600; color: var(--ink); }

.cds-alert {
  padding: 1rem 1rem 1rem 1.125rem;
  border: 1px solid #ecd6bf;
  border-radius: 12px;
  background: #f8ece0;
  box-shadow: inset 3px 0 0 var(--accent);
}
.cds-alert-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  color: var(--ink);
}
.cds-indicator {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cds-alert p { margin: 0 0 0.875rem; color: var(--text); }
.cds-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cds-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
.cds-btn-primary { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }

.cds-foot { display: flex; flex-wrap: wrap; gap: 0.375rem; padding-top: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.lifecycle-card {
  position: relative;
  z-index: 1;
  width: min(264px, 74%);
  margin: -1.5rem -0.25rem 0 auto;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgb(214 221 215 / 0.14);
  border-radius: 16px;
  background: rgb(29 58 51 / 0.94);
  color: var(--dark-text);
  font-size: 0.8125rem;
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lifecycle-title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-accent);
}
.lifecycle-steps { display: grid; gap: 0.55rem; }
.lifecycle-steps li { position: relative; display: flex; align-items: center; gap: 0.65rem; }
.lifecycle-steps li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgb(214 221 215 / 0.35);
  border-radius: 50%;
}
.lifecycle-steps li.done::before {
  border-color: var(--dark-accent);
  background: var(--dark-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f2622' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.lifecycle-steps li.current { color: var(--on-dark); font-weight: 600; }
.lifecycle-steps li.current::before {
  border-color: var(--dark-accent);
  background: radial-gradient(circle, var(--dark-accent) 0 3px, transparent 3.5px);
}
.lifecycle-steps li.current::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1.5px solid var(--dark-accent);
  border-radius: 50%;
  animation: ring 2.4s var(--ease-out) infinite;
}

@media (max-width: 1023px) {
  .hero-copy,
  .hero-visual { grid-column: 1 / -1; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 560px) {
  /* separators become consistent bullets once the tags wrap */
  .hero-tags { gap: 0.6rem 1.25rem; letter-spacing: 0.13em; }
  .hero-tags li { gap: 0.6rem; }
  .hero-tags li::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: rotate(45deg);
  }
  .lifecycle-card { display: none; }
  .cds-card { padding: 1rem; }
}


/* 8. Proof points --------------------------------------------------------- */
.proof { padding-bottom: 1rem; }
.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2.5rem;
}
.proof-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.proof-list li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--accent);
}
.proof-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 330;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.proof-label { max-width: 15rem; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 860px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 9. Services ------------------------------------------------------------- */
.service-list { border-top: 1px solid var(--line); }

.service {
  --num-offset: 2.45rem; /* aligns body copy with the title, below the number */
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 1.25rem;
  padding-block: clamp(2rem, 3.6vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.service-heading { grid-column: 1 / span 3; }
.service-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
  transition: color 0.4s;
}
.service-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 360;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: transform 0.6s var(--ease-out);
}
.service-desc {
  grid-column: 4 / span 5;
  margin: 0;
  padding-top: var(--num-offset);
  padding-right: 1rem;
  font-size: 1.0625rem;
  color: var(--text);
}
.service-points {
  grid-column: 9 / -1;
  display: grid;
  gap: 0.6rem;
  padding-top: var(--num-offset);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}
.service-points li { display: flex; gap: 0.75rem; }
.service-points li::before {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 1px;
  margin-top: 0.75em;
  background: var(--accent);
}
@media (hover: hover) {
  .service:hover::after { transform: scaleX(1); }
  .service:hover .service-num { color: var(--accent); }
  .service:hover .service-title { transform: translateX(6px); }
}

.standards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.standards-label {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.standards-list {
  grid-column: 4 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  font-weight: 340;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.standards-list li { display: inline-flex; align-items: center; }
.standards-list li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 1.1rem;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 1023px) {
  .service { --num-offset: 0rem; }
  .service-heading { grid-column: 1 / -1; }
  .service-desc { grid-column: 1 / span 7; }
  .service-points { grid-column: 8 / -1; }
  .standards { display: block; }
  .standards-label { margin-bottom: 1rem; }
  /* once the row would wrap, separators become a tidy bulleted grid */
  .standards-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1rem; }
  .standards-list li::before,
  .standards-list li + li::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    margin: 0 0.75rem 0 0;
    background: var(--accent);
    transform: rotate(45deg);
  }
}
@media (max-width: 680px) {
  .service-desc,
  .service-points { grid-column: 1 / -1; }
  .standards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 10. Approach ------------------------------------------------------------ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--dark-line);
}
.steps::after {
  background: linear-gradient(90deg, var(--dark-accent), rgb(226 168 119 / 0.25));
  transform-origin: 0 50%;
}
.step { position: relative; padding: 2.75rem 1rem 0 0; }
.step::before {
  /* timeline node */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--dark-accent);
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 0 0 5px var(--dark);
  transition: background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--dark-accent);
}
.step h3 {
  margin-bottom: 0.875rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);
  font-weight: 360;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
.step > p { font-size: 0.96875rem; line-height: 1.65; color: var(--dark-muted); }
.step > .step-output {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dark-text);
}
.step-output span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

/* The timeline draws itself and lights each node as it passes */
.can-reveal .steps::after { transform: scaleX(0); transition: transform 2.2s var(--ease-in-out) 0.2s; }
.can-reveal .steps.is-visible::after { transform: scaleX(1); }
.can-reveal .step::before { border-color: rgb(214 221 215 / 0.3); }
.can-reveal .steps.is-visible .step::before { border-color: var(--dark-accent); background-color: var(--dark-accent); }
.can-reveal .steps.is-visible .step:nth-child(1)::before { transition-delay: 0.25s; }
.can-reveal .steps.is-visible .step:nth-child(2)::before { transition-delay: 0.85s; }
.can-reveal .steps.is-visible .step:nth-child(3)::before { transition-delay: 1.4s; }
.can-reveal .steps.is-visible .step:nth-child(4)::before { transition-delay: 1.95s; }

@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; row-gap: 3rem; max-width: 40rem; padding-left: 2.75rem; }
  .steps::before,
  .steps::after { top: 0.4rem; bottom: 0.4rem; left: 7px; right: auto; width: 1px; height: auto; }
  .steps::after { background: linear-gradient(180deg, var(--dark-accent), rgb(226 168 119 / 0.25)); transform-origin: 50% 0; }
  .can-reveal .steps::after { transform: scaleY(0); }
  .can-reveal .steps.is-visible::after { transform: scaleY(1); }
  .step { padding: 0; }
  .step::before { top: 0.35rem; left: -2.75rem; }
}


/* 11. Selected work ------------------------------------------------------- */
.cases { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }

.case {
  --case-pad: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.7s var(--ease-out), border-color 0.7s var(--ease-out);
}
@media (hover: hover) {
  .case:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem 2rem;
  padding: 1.25rem var(--case-pad);
  border-bottom: 1px solid var(--line);
}
.case-meta { display: flex; align-items: baseline; gap: 1rem; margin: 0; }
.case-num {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--accent);
}
.case-sector {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.case-tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
}

.case-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2rem;
  padding: clamp(2rem, 4.5vw, 3.25rem) var(--case-pad);
}
.case-title {
  grid-column: 1 / span 4;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 340;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.case-details {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem var(--col-gap);
  margin: 0;
}
.case-details dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.case-details dt::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}
.case-details dd { margin: 0; font-size: 0.96875rem; line-height: 1.7; color: var(--text); }

.case-outcome {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 0.75rem;
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.125rem) var(--case-pad);
  border-top: 1px solid rgb(63 100 86 / 0.16);
  background: var(--sage-tint);
}
.case-outcome-label {
  grid-column: 1 / span 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.case-outcome-label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}
.case-outcome-text {
  grid-column: 5 / -1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  font-weight: 380;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}

@media (max-width: 1023px) {
  .case-title,
  .case-details,
  .case-outcome-label,
  .case-outcome-text { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .case-details { grid-template-columns: 1fr; }
}


/* 12. About --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3rem;
  align-items: start;
}
.about-copy { grid-column: 4 / span 5; }
.about-intro {
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 360;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.profile-card {
  grid-column: 9 / -1;
  position: sticky;
  top: calc(var(--header-h-compact) + 2rem);
  margin-left: clamp(0rem, 2vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.profile-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.profile-role { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.profile-facts { margin: 0; }
.profile-facts div {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-facts dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.profile-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 1023px) {
  .about-copy { grid-column: 1 / span 7; }
  .profile-card { grid-column: 8 / -1; margin-left: 0; }
}
@media (max-width: 760px) {
  .about-copy,
  .profile-card { grid-column: 1 / -1; }
  .profile-card { position: static; }
}


/* 13. Call to action ------------------------------------------------------ */
.cta-section { padding-bottom: var(--section-y); }

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2.5rem;
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  background-color: var(--dark);
  background-image: var(--noise-light);
  color: var(--dark-text);
  transition: --spot-x 0.6s var(--ease-out), --spot-y 0.6s var(--ease-out);
}
.cta::before {
  /* spotlight that follows the pointer (see main.js) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(640px circle at var(--spot-x) var(--spot-y), rgb(226 168 119 / 0.2), transparent 60%);
}
.cta::after {
  /* hairline grid fading in from the right */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(214 221 215 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(214 221 215 / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 75%);
  mask-image: linear-gradient(to left, #000, transparent 75%);
}
.cta-copy { grid-column: 1 / span 8; }
.cta h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.625rem);
  color: var(--on-dark);
}
.cta-copy > p { max-width: 36rem; margin-top: 1.5rem; font-size: 1.0625rem; color: var(--dark-muted); }
.cta-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-text);
}
.cta-modes li { display: inline-flex; align-items: center; gap: 0.65rem; }
.cta-modes li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--dark-accent);
  transform: rotate(45deg);
}
.cta-actions {
  grid-column: 9 / -1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}
.cta-email {
  padding-bottom: 3px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-accent);
}
.cta :focus-visible { outline-color: var(--dark-accent); }

@media (max-width: 1023px) {
  .cta-copy,
  .cta-actions { grid-column: 1 / -1; }
  .cta-actions { justify-self: start; align-items: flex-start; }
}


/* 14. Contact & form ------------------------------------------------------ */
.contact { padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid > .section-index { grid-column: 1 / span 3; grid-row: 1; }
.contact-head { grid-column: 4 / -1; grid-row: 1; }
.contact-head h2 { max-width: 16ch; }
.contact-aside {
  grid-column: 1 / span 3;
  grid-row: 2;
  position: sticky;
  top: calc(var(--header-h-compact) + 2rem);
  padding-right: 1rem;
}
.form-card { grid-column: 4 / span 8; grid-row: 2; }

.contact-direct {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-direct-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 0.75rem; }
.contact-email {
  padding-bottom: 2px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.copy-btn svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .copy-btn:hover { border-color: var(--ink); color: var(--ink); }
}
.copy-btn.is-copied { border-color: var(--sage); background: var(--sage-tint); color: var(--ink); }

.phi-note {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.phi-note svg { flex: none; width: 18px; height: 18px; margin-top: 0.1em; color: var(--accent); }

.form-card {
  position: relative;
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.contact-form { display: grid; gap: 2rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--col-gap); }

.field { display: grid; align-content: start; gap: 0.35rem; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.control { position: relative; }
.control input,
.control textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.625rem 0 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-sans); /* 16px+ prevents iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s;
}
.control textarea { min-height: 7.25rem; resize: vertical; }
.control textarea.autogrow { resize: none; overflow-y: hidden; }
.control input::placeholder,
.control textarea::placeholder { color: #6b746f; opacity: 1; }
.control input:focus,
.control textarea:focus { outline: none; }
@media (hover: hover) {
  .control:hover input,
  .control:hover textarea { border-bottom-color: var(--ink-2); }
}
.control-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), background-color 0.3s;
}
.control:focus-within .control-line { transform: scaleX(1); }
.control [aria-invalid="true"] ~ .control-line { transform: scaleX(1); background: var(--error); }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
}
.field-error::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: currentColor;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}
.form-privacy { margin: 0; font-size: 0.8125rem; color: var(--muted); }

.form-status { margin: 0; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status[data-state] {
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-2);
}
.form-status[data-state="info"] { border-color: #c9d8cd; background: var(--sage-tint); color: var(--ink); }
.form-status[data-state="error"] { border-color: #e6bfb6; background: #fbeee9; color: var(--error); }
.form-status a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.form-success {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 0.5rem 0;
}
.success-mark { width: 56px; height: 56px; }
.success-mark circle { fill: var(--sage-tint); stroke: var(--sage); stroke-width: 1.5; }
.success-mark path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}
.form-success.is-visible .success-mark path { animation: draw 0.7s var(--ease-out) 0.15s forwards; }
.form-success h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 360;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.form-success h3:focus { outline: none; }
.form-success p { max-width: 32rem; color: var(--text); }

/* Honeypot, hidden from people and assistive tech */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .contact-grid > .section-index,
  .contact-head,
  .contact-aside,
  .form-card { grid-column: 1 / -1; grid-row: auto; }
  .contact-grid { row-gap: 2rem; }
  .contact-grid > .section-index { margin-bottom: -0.25rem; }
  .contact-aside { position: static; padding-right: 0; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}


/* 15. Footer -------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  background-color: var(--dark);
  background-image: var(--noise-light);
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.site-footer a { color: var(--dark-text); text-decoration: none; transition: color 0.3s; }
@media (hover: hover) {
  .site-footer a:hover { color: var(--on-dark); }
}
.site-footer :focus-visible { outline-color: var(--dark-accent); }

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2rem;
  align-items: end;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--dark-line);
}
.footer-statement {
  grid-column: 1 / span 8;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  text-wrap: balance;
}
.footer-statement em { font-style: italic; color: var(--dark-accent); }
.site-footer .footer-email {
  grid-column: 9 / -1;
  justify-self: end;
  padding-bottom: 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  color: var(--on-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand p { max-width: 22rem; margin-top: 1rem; }
.brand-light .brand-word { color: var(--on-dark); }
.brand-light .brand-word em { color: var(--dark-muted); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-nav a { font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
.back-top { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.back-top svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
  .back-top:hover svg { transform: translateY(-3px); }
}

@media (max-width: 1023px) {
  .footer-statement,
  .site-footer .footer-email { grid-column: 1 / -1; }
  .site-footer .footer-email { justify-self: start; }
}


/* 16. Motion -------------------------------------------------------------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tick {
  from { border-color: rgb(214 221 215 / 0.35); background-color: transparent; background-size: 0 0; }
  to { border-color: var(--dark-accent); background-color: var(--dark-accent); background-size: 12px 12px; }
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Hero intro: runs on load when motion is allowed (.motion is set in <head>) */
.motion .hero-title .line > span { animation: rise 1.15s var(--ease-out) both; }
.motion .hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
.motion .hero-title .line:nth-child(2) > span { animation-delay: 0.2s; }
.motion .hero-title .line:nth-child(3) > span { animation-delay: 0.3s; }
.motion .intro { animation: fade-up 1s var(--ease-out) both; }
.motion .intro-1 { animation-delay: 0.05s; }
.motion .intro-2 { animation-delay: 0.5s; }
.motion .intro-3 { animation-delay: 0.62s; }
.motion .intro-4 { animation-delay: 0.78s; }

/* The illustration plays out like a live recommendation */
.motion .visual-panel { animation: fade-up 1.2s var(--ease-out) 0.35s both; }
.motion .cds-context { animation: fade-in 0.8s ease 0.95s both; }
.motion .cds-alert { animation: pop 0.9s var(--ease-out) 1.3s both; }
.motion .cds-foot .chip { animation: fade-up 0.7s var(--ease-out) both; }
.motion .cds-foot .chip:nth-child(1) { animation-delay: 1.65s; }
.motion .cds-foot .chip:nth-child(2) { animation-delay: 1.75s; }
.motion .cds-foot .chip:nth-child(3) { animation-delay: 1.85s; }
.motion .lifecycle-card { animation: fade-up 1s var(--ease-out) 1.55s both; }
.motion .lifecycle-steps li.done::before { animation: tick 0.5s var(--ease-out) backwards; }
.motion .lifecycle-steps li:nth-child(1)::before { animation-delay: 2s; }
.motion .lifecycle-steps li:nth-child(2)::before { animation-delay: 2.25s; }
.motion .lifecycle-steps li:nth-child(3)::before { animation-delay: 2.5s; }
.motion .lifecycle-steps li.current::after { animation-delay: 2.9s; }

/* Scroll reveal (enabled by main.js only when motion is allowed) */
.can-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* 17. Print --------------------------------------------------------------- */
@media print {
  .site-header, .mobile-menu, .hero-visual, .form-card, .cta-actions, .copy-btn { display: none !important; }
  .can-reveal .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .hero { padding-top: 0; }
  .section, .section-dark, .section-alt, .site-footer, .cta { background: #fff !important; color: #000 !important; }
  .section-dark h2, .cta h2, .step h3, .footer-statement { color: #000 !important; }
}
