/* ==========================================================================
   HOOKLINE LTD — styles.css
   Editorial / print-inspired. Warm paper, ink, one signal accent.
   Fonts: Instrument Serif (display) · Schibsted Grotesk (text) · JetBrains Mono (labels)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Colour */
  --paper:        #F2EDE4;
  --paper-2:      #E9E2D5;
  --paper-3:      #DED5C4;
  --ink:          #16130F;
  --ink-2:        #3F3830;
  --ink-3:        #6B6157;
  --accent:       #D8391A;
  --accent-2:     #F0602E;
  --line:         rgba(22, 19, 15, 0.16);
  --line-soft:    rgba(22, 19, 15, 0.08);
  --line-invert:  rgba(242, 237, 228, 0.18);

  /* Type */
  --display: "Instrument Serif", "Times New Roman", serif;
  --text:    "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --t-xs:  clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --t-sm:  clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --t-md:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --t-lg:  clamp(1.20rem, 1.10rem + 0.50vw, 1.55rem);
  --t-xl:  clamp(2.00rem, 1.55rem + 2.10vw, 3.40rem);
  --t-2xl: clamp(2.80rem, 1.90rem + 4.20vw, 6.20rem);
  --t-3xl: clamp(3.60rem, 1.80rem + 8.00vw, 11.00rem);

  /* Space */
  --gut:  clamp(1.25rem, 0.85rem + 2vw, 3.5rem);
  --sec:  clamp(4.5rem, 3rem + 7vw, 10rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-md);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

a { color: inherit; text-decoration: none; }

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

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

/* Paper grain — sits above everything, ignores pointer events */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

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

.wrap--narrow { max-width: 900px; }

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

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Section heading block */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
}

@media (min-width: 900px) {
  .head {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
  }
}

.head__title {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.head__title em { font-style: italic; color: var(--accent); }

.head__lede {
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
  margin-top: 1.25rem;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   4. TYPE UTILITIES
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.kicker--plain::before { display: none; }

.num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

/* Placeholder tokens the owner replaces later */
.ph {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(216, 57, 26, 0.07);
  border: 1px dashed rgba(216, 57, 26, 0.45);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

.invert .ph {
  color: var(--accent-2);
  background: rgba(240, 96, 46, 0.12);
  border-color: rgba(240, 96, 46, 0.5);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}

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

.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover { --btn-fg: var(--paper); }

.btn--invert { --btn-fg: var(--ink); --btn-bg: var(--paper); }
.btn--invert:hover { --btn-fg: var(--paper); }

.btn--lg { padding: 1.15rem 2rem; font-size: var(--t-md); }

/* Text link with underline sweep */
.tlink {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.4s var(--ease);
}

.tlink:hover::after { transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 200;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  padding-block: 1.4rem;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-stuck {
  padding-block: 0.85rem;
  background: rgba(242, 237, 228, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__mark { color: var(--accent); flex: none; }
.brand__mark path { transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { animation: swing 0.7s var(--ease); }

@keyframes swing {
  0%, 100% { transform: rotate(0deg); }
  35%      { transform: rotate(-13deg); }
  70%      { transform: rotate(7deg); }
}

.brand__sup {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  align-self: flex-start;
  margin-top: 0.15rem;
}

.nav { display: none; }

@media (min-width: 940px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
  }
}

.nav__link {
  font-size: var(--t-sm);
  color: var(--ink-2);
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { display: none; }
@media (min-width: 940px) { .header__cta { display: inline-flex; } }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--line);
  z-index: 210;
}

@media (min-width: 940px) { .burger { display: none; } }

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s linear;
}

.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--ink);
  color: var(--paper);
  padding: 7rem var(--gut) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}

.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }

.drawer__nav { display: flex; flex-direction: column; gap: 0.4rem; }

.drawer__link {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s linear;
}

.menu-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--accent-2); }

.drawer__foot {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.35s;
}

.menu-open .drawer__foot { opacity: 1; }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(8rem, 6rem + 9vw, 13rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

@media (min-width: 1040px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: end;
  }
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-top: 2rem;
  max-width: 15ch;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
  padding-inline: 0.06em;
}

/* Hand-drawn hook underline beneath the emphasised word */
.hero__swoop {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.45em;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}

.hero__swoop path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.4s var(--ease) 1.05s forwards;
}

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

.hero__sub {
  font-size: var(--t-lg);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 44ch;
  margin-top: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.hero__aside {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1040px) {
  .hero__aside { margin-bottom: 0.75rem; }
}

.hero__aside p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 34ch;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease-io) infinite;
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Staggered load-in for the hero */
.load > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) forwards;
}

.load > *:nth-child(1) { animation-delay: 0.10s; }
.load > *:nth-child(2) { animation-delay: 0.22s; }
.load > *:nth-child(3) { animation-delay: 0.34s; }
.load > *:nth-child(4) { animation-delay: 0.46s; }
.load > *:nth-child(5) { animation-delay: 0.58s; }

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

/* --------------------------------------------------------------------------
   8. MARQUEE
   -------------------------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: 2.5rem;
  background: var(--paper-2);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: none;
  animation: slide 42s linear infinite;
}

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

@keyframes slide { to { transform: translateX(-100%); } }

.marquee__item {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee__item::after {
  content: "✳";
  color: var(--accent);
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   9. STUDIO / MANIFESTO
   -------------------------------------------------------------------------- */

.studio__body {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

@media (min-width: 1000px) {
  .studio__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.prose p + p { margin-top: 1.4rem; }

.prose p {
  font-size: var(--t-lg);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}

.prose strong { color: var(--ink); font-weight: 500; }

.principles { list-style: none; border-top: 1px solid var(--line); }

.principles li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-md);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease);
}

.principles li:hover { padding-left: 0.5rem; }

/* -------------------------------------------------------------------------
   10. SERVICES — inverting editorial index
   ------------------------------------------------------------------------- */

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

.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem) clamp(0.5rem, 0.2rem + 1vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.45s var(--ease);
}

@media (min-width: 900px) {
  .svc__row {
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.svc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.svc__row:hover { color: var(--paper); }
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover .svc__title { transform: translateX(6px); }
.svc__row:hover .svc__desc { color: rgba(242, 237, 228, 0.72); }
.svc__row:hover .num { color: var(--accent-2); }

.svc__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition: transform 0.5s var(--ease);
}

.svc__desc {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 48ch;
  transition: color 0.45s var(--ease);
}

.svc__tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.55;
}

/* -------------------------------------------------------------------------
   11. QUOTE BAND (inverted)
   ------------------------------------------------------------------------- */

.invert {
  background: var(--ink);
  color: var(--paper);
}

.invert .rule { background: var(--line-invert); }
.invert .kicker { color: rgba(242, 237, 228, 0.6); }
.invert .head__lede,
.invert .prose p { color: rgba(242, 237, 228, 0.7); }

.quote {
  position: relative;
  overflow: hidden;
}

.quote__mark {
  position: absolute;
  top: -3rem;
  right: -1rem;
  font-family: var(--display);
  font-size: clamp(16rem, 40vw, 34rem);
  line-height: 1;
  color: rgba(242, 237, 228, 0.045);
  pointer-events: none;
  user-select: none;
}

.quote__text {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
  position: relative;
}

.quote__text em { font-style: italic; color: var(--accent-2); }

.quote__attr {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 228, 0.55);
}

/* -------------------------------------------------------------------------
   12. PROCESS
   ------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--paper);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  min-height: clamp(14rem, 12rem + 6vw, 19rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background-color 0.45s var(--ease);
}

.step:hover { background: var(--paper-2); }

.step__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem);
  line-height: 1;
  color: var(--paper-3);
  transition: color 0.45s var(--ease);
}

.step:hover .step__num { color: var(--accent); }

.step__title {
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: auto;
}

.step__body { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.6; }

/* -------------------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------------------- */

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

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

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  padding-block: clamp(1.15rem, 0.9rem + 0.8vw, 1.7rem);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}

.faq__q:hover { color: var(--accent); }

.faq__sign {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
  margin-top: 0.35rem;
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.faq__sign::after { transform: rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: rotate(0deg); }
.faq__item.is-open .faq__q { color: var(--accent); }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height 0.5s var(--ease);
}

.faq__a p {
  padding-bottom: 1.8rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: var(--t-md);
}

/* -------------------------------------------------------------------------
   14. CONTACT
   ------------------------------------------------------------------------- */

.contact__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

.contact__meta { display: flex; flex-direction: column; gap: 2rem; }

.meta-block { border-top: 1px solid var(--line-invert); padding-top: 1rem; }

.meta-block__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 228, 0.5);
  margin-bottom: 0.6rem;
}

.meta-block__value {
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.form { display: grid; gap: 1.5rem; }

.field { position: relative; }

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(242, 237, 228, 0.5);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-invert);
  padding: 0.7rem 0;
  color: var(--paper);
  font-size: var(--t-md);
  letter-spacing: -0.01em;
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink); color: var(--paper); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 237, 228, 0.3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-2);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--accent-2); }

.field__err {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 0.45rem;
  opacity: 0;
  transition: opacity 0.3s linear;
}

.field.has-error .field__err { opacity: 1; }

.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form__note {
  font-size: var(--t-xs);
  color: rgba(242, 237, 228, 0.45);
  max-width: 32ch;
  line-height: 1.5;
}

.form__status {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */

.footer { padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; }

.footer__word {
  font-family: var(--display);
  font-size: clamp(3.5rem, 1rem + 13vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  display: block;
}

.footer__cols {
  display: grid;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .footer__cols { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}

.footer__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__list a { font-size: var(--t-sm); color: var(--ink-2); }
.footer__list a:hover { color: var(--accent); }

.footer__legal {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__legal p {
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 70ch;
}

.footer__legal a { color: var(--ink-2); }
.footer__legal a:hover { color: var(--accent); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}

.to-top:hover { color: var(--accent); }
.to-top svg { transition: transform 0.4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   16. LEGAL PAGES
   ------------------------------------------------------------------------- */

.legal-hero {
  padding-top: clamp(8rem, 6rem + 8vw, 12rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.legal-hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-top: 1.5rem;
}

.legal-hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.legal-grid { display: grid; gap: 3rem; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; align-items: start; }
}

.toc { display: none; }

@media (min-width: 1000px) {
  .toc {
    display: block;
    position: sticky;
    top: 7.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

.toc__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.5rem; }

.toc a {
  counter-increment: toc;
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding-top: 0.15rem;
  opacity: 0.6;
  flex: none;
}

.toc a:hover, .toc a.is-active { color: var(--accent); }

.legal-body { max-width: 68ch; }

.legal-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-body > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.legal-body h3 {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-body p, .legal-body li {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-body p + p { margin-top: 1rem; }

.legal-body ul, .legal-body ol { margin: 1rem 0 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }

.legal-body li::marker { color: var(--accent); }

.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-body dl { margin: 1rem 0; display: grid; gap: 0.9rem; }

@media (min-width: 700px) {
  .legal-body dl { grid-template-columns: 13rem minmax(0, 1fr); gap: 0.9rem 2rem; }
}

.legal-body dt {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-top: 0.35rem;
}

.legal-body dd { color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }

/* -------------------------------------------------------------------------
   17. SCROLL REVEALS
   ------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 0.9s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}

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

/* -------------------------------------------------------------------------
   18. ACCESSIBILITY
   ------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.25rem;
  font-size: var(--t-sm);
}

.skip:focus { left: 1rem; top: 1rem; }

.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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .load > * { opacity: 1; transform: none; }
  .hero__swoop path { stroke-dashoffset: 0; }
}
