/* The Arch Consulting — stylesheet. No external resources. */

/* Native cross-document view transitions (progressive enhancement; Chromium today,
   ignored elsewhere). Keeps the brand mark and spine continuous across navigations
   instead of a default cross-fade ghosting two copies. */
@view-transition {
  navigation: auto;
}

.brand-mark {
  view-transition-name: brand-mark;
}

.page-spine {
  view-transition-name: page-spine;
}

main {
  view-transition-name: page-main;
}

::view-transition-old(page-main) {
  animation: vt-out 0.45s cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(page-main) {
  animation: vt-in 0.75s cubic-bezier(0.2, 0.7, 0, 1) 0.1s both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-24px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* ---------- intro curtain (homepage, first arrival only; set by main.js) ---------- */

.intro {
  display: none;
}

html.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0e0f17;
  color: #f6f4ef;
  animation: intro-lift 1s cubic-bezier(0.76, 0, 0.24, 1) 1.35s forwards;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.intro-mark {
  width: clamp(64px, 9vw, 110px);
  height: auto;
  clip-path: inset(100% 0 0 0);
  animation: intro-rise 1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

.intro-word {
  display: block;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.intro-word > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0, 1) 0.55s forwards;
}

@keyframes intro-rise {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes intro-lift {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

html.has-intro .hero-title .line > span {
  animation-delay: 1.75s;
}

html.has-intro .hero-title .line:nth-child(2) > span {
  animation-delay: 1.84s;
}

html.has-intro .hero-title .line:nth-child(3) > span {
  animation-delay: 1.93s;
}

html.has-intro .hero-bottom {
  animation-delay: 2.15s;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --bg-2: #ece9e1;
  --ink: #0e0f17;
  --muted: #5a5b63;
  --line: rgba(14, 15, 23, 0.14);
  --accent: #b23a12;
  --accent-dark: #e2683c;
  --on-dark: #f6f4ef;
  --muted-dark: #a3a4ac;
  --line-dark: rgba(246, 244, 239, 0.14);

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip:focus {
  transform: none;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
}

.brand-word span {
  font-weight: 400;
  color: var(--muted);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.nav-links a,
.footer-links a,
.contact-follow a,
.to-top {
  position: relative;
  text-decoration: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a::after,
.footer-links a::after,
.contact-follow a::after,
.to-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav-links a:hover::after,
.footer-links a:hover::after,
.contact-follow a:hover::after,
.to-top:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lang a:hover {
  color: var(--ink);
}

.lang a[aria-current] {
  background: var(--ink);
  color: var(--on-dark);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.menu-lines {
  position: relative;
  width: 22px;
  height: 8px;
}

.menu-lines::before,
.menu-lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.menu-lines::before {
  top: 0;
}

.menu-lines::after {
  top: 6.5px;
}

.menu-btn[aria-expanded='true'] .menu-lines::before {
  top: 3.25px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded='true'] .menu-lines::after {
  top: 3.25px;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .js .menu-btn {
    display: inline-flex;
  }

  .js .nav-panel {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-io), opacity 0.4s, visibility 0s 0.7s;
  }

  .js .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.7s var(--ease-io), opacity 0.2s, visibility 0s;
  }

  .js .nav-links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .js .nav-links a {
    font-size: clamp(2.5rem, 12vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  .js .nav-links a::after {
    display: none;
  }

  .js .lang ul {
    font-size: 1rem;
  }

  .js .lang a {
    min-width: 3rem;
    min-height: 3rem;
  }

  html:not(.js) .nav-panel {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0.75rem;
  }
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.6rem 1.05rem 1.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.ico-arrow,
.ico-ext {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.6s var(--ease);
}

.ico-ext {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
}

.btn:hover .ico-arrow,
.contact-mail:hover .ico-arrow {
  transform: rotate(45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.hero-loc {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  align-self: center;
  font-size: clamp(2.9rem, 10.4vw, 10.25rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-title:lang(fr) {
  font-size: clamp(2.3rem, 8.2vw, 8.4rem);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.18em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.25s var(--ease) forwards;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.09s;
  color: var(--muted);
  font-weight: 300;
}

.hero-title .line:nth-child(3) > span {
  animation-delay: 0.18s;
}

.hero-title .line:nth-child(3) {
  padding-left: clamp(0rem, 12vw, 14rem);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
  opacity: 0;
  animation: fade-up 1.1s var(--ease) 0.5s forwards;
}

.hero-lead {
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.hero-note {
  max-width: 30ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The spine: the arch mark, drawn once on load, then living behind the whole
   scroll — the page's one deliberate, continuous piece of motion. Fixed to the
   viewport so it reads as a constant presence rather than a per-section decoration;
   sections with an opaque background (contact, footer, marquee) simply occlude it. */
.page-spine {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  will-change: transform, opacity;
}

.arches {
  width: min(78vw, 1100px);
  flex: none;
  margin-right: -14vw;
  margin-bottom: -4vw;
  overflow: visible;
}

.arches path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-opacity: 0.1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease-io) forwards;
}

.arches path:nth-child(4),
.arches path:nth-child(8) {
  stroke-opacity: 0.17;
}

.arches path:nth-child(12) {
  stroke: var(--accent);
  stroke-opacity: 0.55;
  stroke-width: 1.5;
}

@media (max-width: 860px) {
  .arches {
    width: 118vw;
    margin-right: -30vw;
  }
}

.arches path {
  animation-delay: calc(var(--d, 0s) + var(--intro-offset, 0s));
}

html.has-intro {
  --intro-offset: 1.5s;
}

.arches path:nth-child(1) { --d: 0.15s; }
.arches path:nth-child(2) { --d: 0.22s; }
.arches path:nth-child(3) { --d: 0.29s; }
.arches path:nth-child(4) { --d: 0.36s; }
.arches path:nth-child(5) { --d: 0.43s; }
.arches path:nth-child(6) { --d: 0.5s; }
.arches path:nth-child(7) { --d: 0.57s; }
.arches path:nth-child(8) { --d: 0.64s; }
.arches path:nth-child(9) { --d: 0.71s; }
.arches path:nth-child(10) { --d: 0.78s; }
.arches path:nth-child(11) { --d: 0.85s; }
.arches path:nth-child(12) { --d: 0.92s; }

@keyframes rise {
  to {
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 860px) {
  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(2.9rem, 13.4vw, 6rem);
  }

  .hero-title:lang(fr) {
    font-size: clamp(2.3rem, 9.8vw, 5rem);
  }

  .hero-lead {
    position: relative;
  }

  .hero-title .line:nth-child(3) {
    padding-left: 0;
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.25rem, 2.6vw, 2.25rem);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(1.9rem, 5vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.m-sep {
  display: inline-flex;
  color: var(--accent);
}

.m-mark {
  width: 0.62em;
  height: auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding-block: clamp(5.5rem, 13vw, 12rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.5rem 3rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-head .label {
  align-self: start;
  padding-top: 0.9em;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  grid-column: 2;
}

.section-intro {
  grid-column: 2;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-title,
  .section-intro {
    grid-column: 1;
  }

  .section-head .label {
    padding-top: 0;
  }
}

/* ---------- services ---------- */

.service-list {
  border-bottom: 1px solid var(--line);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.25rem 2rem;
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--bg-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}

.service:hover::before {
  transform: none;
  transform-origin: top;
}

.service-icon {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--ink);
  transition: color 0.5s var(--ease), transform 0.7s var(--ease);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service:hover .service-icon {
  color: var(--accent);
  transform: translateY(-4px);
}

.service-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  transition: transform 0.7s var(--ease);
}

.service:hover .service-title {
  transform: translateX(0.5rem);
}

.service-body p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}

@media (max-width: 960px) {
  .service {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .service-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .service-body {
    grid-column: 2;
  }
}

/* ---------- statement (scrubbed by scroll) ---------- */

.statement-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.5rem 3rem;
}

.statement .label {
  align-self: start;
  padding-top: 0.9em;
}

.statement-text {
  font-size: clamp(1.9rem, 4.4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 22ch;
}

.js .sw {
  opacity: 0.16;
  transition: opacity 0.25s linear;
}

.js .sw.is-lit {
  opacity: 1;
}

@media (max-width: 860px) {
  .statement-inner {
    grid-template-columns: 1fr;
  }

  .statement .label {
    padding-top: 0;
  }
}

/* ---------- method ---------- */

.how {
  border-top: 1px solid var(--line);
}

.how-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.how-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.how .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.how .section-head .label {
  padding-top: 0;
}

.how .section-title {
  grid-column: 1;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.phases-wrap {
  position: relative;
  padding-left: clamp(2.5rem, 5vw, 4.5rem);
}

.rail {
  position: absolute;
  top: 0.4rem;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: var(--line);
}

.rail-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
}

.js .rail-fill {
  --fill: 0;
}

.phase {
  position: relative;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.phase:last-child {
  padding-bottom: 0;
}

.phase-node {
  position: absolute;
  top: 0.35rem;
  left: calc(clamp(2.5rem, 5vw, 4.5rem) * -1);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease);
}

.phase.is-on .phase-node,
html:not(.js) .phase-node {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

.phase-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.phase-text {
  max-width: 44ch;
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}

.model {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.model-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-text {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

.model-text p + p {
  margin-top: 0.6em;
  color: var(--muted);
}

@media (max-width: 960px) {
  .how-inner {
    grid-template-columns: 1fr;
  }

  .how-aside {
    position: static;
  }
}

/* ---------- deliverables and asks ---------- */

.deliv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}

.ask-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
}

.deliv,
.ask {
  position: relative;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
}

.deliv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.75rem 2rem;
}

.deliv-title,
.ask-title {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.deliv p,
.ask p {
  color: var(--muted);
}

.ask p {
  margin-top: 0.9rem;
  max-width: 32ch;
}

.asks {
  background: var(--bg-2);
}

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

@media (max-width: 760px) {
  .deliv-list,
  .ask-list {
    grid-template-columns: 1fr;
  }

  .deliv {
    grid-template-columns: 1fr;
  }
}

/* ---------- contact ---------- */

.contact {
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  isolation: isolate;
}

.contact .dot {
  background: var(--accent-dark);
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent-dark);
}

.contact-title {
  max-width: 14ch;
  margin-top: 2rem;
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.contact-text {
  max-width: 40ch;
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted-dark);
}

.contact-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  max-width: 100%;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: 0.12em;
  font-size: clamp(1.75rem, 6.4vw, 6.25rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.4s var(--ease);
}

.contact-mail::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line-dark);
}

.contact-mail::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 2px;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease);
}

.contact-mail:hover::before,
.contact-mail:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-mail .at {
  color: var(--accent-dark);
}

.contact-mail .ico-arrow {
  width: 0.7em;
  height: 0.7em;
  stroke-width: 1.2;
}

.contact-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.contact-follow-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.contact-follow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.contact-follow a {
  font-size: 1.125rem;
}

.contact-art {
  position: absolute;
  right: -6vw;
  bottom: -4vw;
  z-index: -1;
  width: min(54vw, 760px);
  color: var(--on-dark);
  opacity: 0.045;
  pointer-events: none;
}

.contact-art svg {
  width: 100%;
  height: auto;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--line-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.footer-brand {
  display: inline-flex;
  align-self: start;
}

.footer-mark {
  width: 56px;
  height: auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.9375rem;
}

.site-footer .lang ul {
  color: var(--muted-dark);
}

.site-footer .lang a:hover {
  color: var(--on-dark);
}

.site-footer .lang a[aria-current] {
  background: var(--on-dark);
  color: var(--ink);
}

.clock {
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
}

.footer-word {
  margin-block: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 3vw, 2.5rem);
  font-size: min(10.4vw, 9.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  white-space: nowrap;
  color: var(--on-dark);
}

.footer-legal {
  max-width: 120ch;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-dark);
}

.footer-legal a {
  color: var(--on-dark);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- legal pages ---------- */

.doc {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.doc-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
}

.doc-head {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.doc-title {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  hyphens: auto;
}

.doc-updated {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc-body {
  max-width: 70ch;
}

.doc-body h2 {
  margin-top: 3rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.doc-body p + p {
  margin-top: 0.9rem;
}

.doc-body p {
  color: #2f3039;
}

.doc-intro {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.facts {
  border-top: 1px solid var(--ink);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.9375rem;
  color: var(--muted);
}

.facts dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}


@media (max-width: 860px) {
  .doc-inner {
    grid-template-columns: 1fr;
  }

  .doc-head {
    position: static;
  }

  .facts div {
    grid-template-columns: 1fr;
  }
}

/* ---------- reveal on scroll (only when JS runs) ---------- */

/* Supporting copy: a short, quiet fade. The bold motion is kept for headings,
   rules and the spine, so it does not repeat on every block. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Headings rise word by word out of their own masks. The observed heading is
   never clipped itself (a clipped target never reports as intersecting). */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.w > span {
  display: inline-block;
}

.js .section-title[data-reveal],
.js .contact-title[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.js [data-reveal] .w > span {
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}

.js [data-reveal].is-in .w > span {
  transform: none;
}

.js [data-reveal] .w:nth-child(2) > span { transition-delay: 0.05s; }
.js [data-reveal] .w:nth-child(3) > span { transition-delay: 0.1s; }
.js [data-reveal] .w:nth-child(4) > span { transition-delay: 0.15s; }
.js [data-reveal] .w:nth-child(5) > span { transition-delay: 0.2s; }
.js [data-reveal] .w:nth-child(6) > span { transition-delay: 0.25s; }
.js [data-reveal] .w:nth-child(7) > span { transition-delay: 0.3s; }
.js [data-reveal] .w:nth-child(n + 8) > span { transition-delay: 0.35s; }

/* Rows: their top rule is traced left to right, then the content settles in. */
.js .rule-row[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .rule-row[data-reveal]::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-io);
}

.js .rule-row[data-reveal].is-in::after {
  transform: scaleX(1);
}

.js .rule-row[data-reveal] > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
}

.js .rule-row[data-reveal].is-in > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.js .rule-row[data-reveal].is-in > :nth-child(2) { transition-delay: 0.38s; }
.js .rule-row[data-reveal].is-in > :nth-child(3) { transition-delay: 0.46s; }

.js .deliv-list .rule-row:nth-child(even)::after,
.js .ask-list .rule-row:nth-child(2)::after { transition-delay: 0.08s; }
.js .ask-list .rule-row:nth-child(3)::after { transition-delay: 0.16s; }
.js .ask-list .rule-row:nth-child(4)::after { transition-delay: 0.24s; }

.js .phase[data-reveal]:nth-child(2) { transition-delay: 0.05s; }

/* Footer signature: letters rise one after another. */
.js .footer-word[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.footer-word .ch {
  display: inline-block;
}

.js .footer-word[data-reveal] .ch {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.035s);
}

.js .footer-word[data-reveal].is-in .ch {
  transform: none;
  opacity: 1;
}

.footer-word {
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: calc(clamp(1.5rem, 3vw, 2.5rem) - 0.2em);
}

/* ---------- reduced motion ---------- */

/* Reduced motion removes movement, not feedback: nothing slides, rises, drifts
   or loops, but content still fades in and the statement still lights up. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal],
  .js [data-reveal] .w > span,
  .js .rule-row[data-reveal] > *,
  .js .footer-word[data-reveal] .ch,
  .js .rule-row[data-reveal]::after,
  .page-spine,
  .btn,
  .contact-mail {
    transform: none !important;
  }

  .js [data-reveal] .w > span,
  .js .footer-word[data-reveal] .ch {
    opacity: 0;
    transition: opacity 0.9s ease;
  }

  .js [data-reveal].is-in .w > span,
  .js .footer-word[data-reveal].is-in .ch {
    opacity: 1;
  }

  .marquee-track {
    animation: none;
  }

  .intro {
    display: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- print ---------- */

@media print {
  .site-header,
  .marquee,
  .page-spine,
  .contact-art,
  .footer-word {
    display: none;
  }

  .contact,
  .site-footer {
    background: none;
    color: #000;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
