/* Contact: the closing pixel field, full screen, then the ways to reach us. Builds on ../../c/css/a.css tokens. */
section { scroll-margin-top: var(--hd); }

/* SIGNATURE */
.ct-hero { position: relative; isolation: isolate; background: radial-gradient(120% 90% at 70% 40%, var(--ink-1), var(--ink-0) 70%); }
.ct-stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.ct-still, .ct-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ct-field canvas { display: block; width: 100%; height: 100%; }
.field-on .ct-still { visibility: hidden; }
.ct-inner { position: relative; width: 100%; padding-top: calc(var(--hd) + 56px); padding-bottom: clamp(36px, 7vh, 80px); }
.ct-copy { max-width: 640px; }
.ct-h1 { font: 700 var(--t-2xl)/1 var(--f-display); letter-spacing: -0.025em; text-wrap: balance; }
.ct-intro { color: var(--fg-2); max-width: 46ch; margin-top: 20px; font-size: var(--t-s); }
.ct-giant { display: block; width: max-content; max-width: 100%; margin-top: clamp(32px, 7vh, 80px); font: 900 clamp(3.6rem, 15.2vw, 16.5rem)/.84 var(--f-display); letter-spacing: -0.045em; margin-left: -0.04em; text-decoration: none; color: var(--fg); background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 8px no-repeat; padding-bottom: 18px; transition: background-size .9s var(--ease); }
.ct-giant span { display: block; }
.ct-giant span:last-child { color: var(--accent); }
.ct-giant:hover, .ct-giant:focus-visible { background-size: 100% 8px; }
.ct-giant:focus-visible { outline-offset: 8px; }
.ct-note { margin-top: 18px; font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

/* TOPICS + COMPOSER */
.ct-topics { padding-block: clamp(96px, 14vh, 160px); border-top: 1px solid var(--rule-soft); }
.ct-topics-grid { display: grid; gap: 48px 72px; align-items: start; }
@media (min-width: 1000px) { .ct-topics-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 5vh, 48px); }
.ct-chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid var(--rule); background: var(--ink-0); text-decoration: none; font: 600 1rem/1 var(--f-body); color: var(--fg); transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.ct-chips a::before { content: ""; width: 7px; height: 7px; background: var(--rule); transition: background-color .2s steps(2, end); }
.ct-chips a:hover, .ct-chips a.on { border-color: var(--fg); }
.ct-chips a.on::before { background: var(--accent); }
.ct-chips a:active { background: var(--fg); color: var(--ink-0); }
.ct-composer { margin: 0; padding: 28px; background: var(--ink-1); border: 1px solid var(--rule-soft); position: sticky; top: calc(var(--hd) + 24px); }
.ct-composer-l { font: 400 var(--t-xs)/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ct-bubble { position: relative; margin-top: 20px; padding: 18px 20px; min-height: 7.2em; background: var(--fg); color: var(--ink-0); font: 500 var(--t-m)/1.4 var(--f-body); }
.ct-bubble::after { content: ""; position: absolute; right: -1px; bottom: -12px; border-left: 14px solid transparent; border-top: 12px solid var(--fg); }
.ct-caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.18em; margin-left: 2px; background: var(--accent); animation: ct-blink 1s steps(2, start) infinite; }
@keyframes ct-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ct-caret { animation: none; } }
.ct-composer-n { margin-top: 26px; color: var(--fg-3); font-size: var(--t-xs); line-height: 1.5; }

/* OTHER WAYS */
.ct-other { padding-bottom: clamp(80px, 12vh, 140px); background: var(--ink-1); }
.ct-other-grid { display: grid; margin-top: clamp(32px, 6vh, 56px); border-top: 1px solid var(--rule-soft); }
@media (min-width: 900px) { .ct-other-grid { grid-template-columns: 1fr 1fr; } .ct-other-grid .ct-line + .ct-line { border-left: 1px solid var(--rule-soft); padding-left: 40px; } }
.ct-line { display: grid; gap: 12px; padding: 28px 0 30px; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.ct-line-k { display: flex; align-items: center; gap: 10px; font: 400 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.ct-line-k::before { content: ""; width: 7px; height: 7px; background: var(--fg-3); }
.ct-line-v { font: 700 clamp(1.6rem, 3.2vw, 2.9rem)/1.05 var(--f-display); letter-spacing: -0.025em; color: var(--fg); overflow-wrap: anywhere; transition: color .3s var(--ease); }
.ct-line:hover .ct-line-v { color: var(--accent); }
.ct-cities { display: grid; gap: 0; margin-top: clamp(40px, 7vh, 72px); }
@media (min-width: 900px) { .ct-cities { grid-template-columns: 1fr 1fr; } .ct-city + .ct-city { border-left: 1px solid var(--rule-soft); padding-left: 40px; } }
.ct-city { padding-block: 8px 28px; }
.ct-city h3 { font: 900 clamp(3.2rem, 8vw, 8rem)/.9 var(--f-display); letter-spacing: -0.04em; margin-top: 18px; }
.ct-city + .ct-city h3 { color: var(--fg-2); }
.ct-coord { font: 500 var(--t-s)/1.4 var(--f-body); font-variant-numeric: tabular-nums; margin-top: 14px; }
.ct-clock { font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }
.ct-clock time { color: var(--fg); font-variant-numeric: tabular-nums; margin-left: 6px; }

@media (max-width: 767px) {
  .ct-giant { font-size: 15vw; }
  .ct-chips a { min-height: 48px; padding: 0 16px; font-size: .9375rem; }
  .ct-composer { position: static; padding: 20px; }
}

/* Hero banner (plates2): the page's own idea object sits right of the headline; the signature still draws on top */
.ct-stage { isolation: isolate; }
.hb-plate { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink-0) 0%, oklch(0.135 0.006 358 / .8) 30%, oklch(0.135 0.006 358 / .1) 60%, oklch(0.135 0.006 358 / 0) 100%),
              linear-gradient(0deg, var(--ink-0) 0%, oklch(0.135 0.006 358 / 0) 34%),
              var(--hb) var(--hb-x, 70%) center / cover no-repeat; }
@media (max-width: 767px) {
  .hb-plate { bottom: auto; height: var(--hb-h, 60svh);
    background: linear-gradient(0deg, var(--ink-0) 0%, oklch(0.135 0.006 358 / .5) 30%, oklch(0.135 0.006 358 / 0) 60%),
                var(--hb-s) var(--hb-sx, 70%) var(--hb-sy, center) / var(--hb-sz, cover) no-repeat; }
}

/* ---------- White space (Ramy, 16 Oct 2026): the paper rhythm ----------
   .paper (../../c/css/plates.css) flips the role tokens to the brand kit's Mist/white ground with near-black ink.
   The rules below keep anything drawn for the dark world readable when it sits on paper. */
.paper .btn { color: oklch(0.99 0 0); }
.paper .pk { color: var(--accent-deep); }
.paper .link { color: var(--fg); }
/* ---------- Chapters (wave 3): rail + assembling plates. Same block in every page of this set. ---------- */
.chx { display: none; }
@media (min-width: 1024px) {
  .chx { display: block; position: fixed; right: 18px; top: 50%; z-index: 40; transform: translateY(-50%); }
  .chx ol { display: grid; gap: 4px; }
  .chx a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 26px; padding: 0 6px; text-decoration: none; }
  .chx i { flex: none; width: 7px; height: 7px; background: oklch(0.965 0.005 358 / .38); transition: background-color .4s var(--ease), transform .5s var(--ease); }
  .chx span { position: absolute; right: 26px; white-space: nowrap; padding: 6px 8px; font: 400 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
    color: var(--fg); background: var(--ink-0); opacity: 0; transform: translateX(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none; }
  .chx a.on i { background: var(--accent); transform: scale(1.43); }
  .chx:hover span, .chx a:focus-visible span { opacity: 1; transform: none; }
  .chx a:hover i { background: var(--fg); }
  .chx a.on:hover i { background: var(--accent); }
  .chx.is-ink i { background: oklch(0.17 0.006 358 / .34); }
  .chx.is-ink a:hover i { background: oklch(0.17 0.006 358); }
  .chx.is-ink a.on i { background: var(--accent); }
  .chx.is-ink span { color: oklch(0.17 0.006 358); background: oklch(0.975 0.003 358); }
}

/* a chapter plate: the photograph as a CSS background; on desktop WebGL takes over and assembles it from square cells */
.chp { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--src) var(--px, 50%) var(--py, 50%) / cover no-repeat; }
.chp.is-gl { background-image: none; }
.chp-gl, .chp-gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 767px) {
  .chp { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; background-image: var(--src-s, var(--src)); background-position: var(--sx, var(--px, 50%)) var(--sy, var(--py, 50%)); }
}

/* ---------- Contact chapters (wave 3) ---------- */
/* What Happens Next: the door plate, copy in the dark wall on the left, the steps build down one line */
.ct-next { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; background: var(--ink-0); }
.ct-next-in { position: relative; width: 100%; padding-block: clamp(110px, 16vh, 180px); }
.ct-next-in > * { max-width: min(36vw, 520px); }
.ct-steps { position: relative; margin-top: clamp(28px, 5vh, 48px); padding-left: 30px; }
.ct-steps::before, .ct-steps::after { content: ""; position: absolute; left: 4px; top: 30px; bottom: 30px; width: 1px; background: var(--rule); }
.ct-steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.ct-steps li { position: relative; padding: 18px 0; font: 500 var(--t-l)/1.22 var(--f-display); letter-spacing: -0.015em; }
.ct-steps li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--fg-2); transition: background-color .3s steps(2, end), transform .5s var(--ease); }
.ct-steps li.lit::before { background: var(--accent); transform: scale(1.33); }
.ct-small { color: var(--fg-2); font-size: var(--t-xs); margin: 22px 0 32px; max-width: 46ch; }

/* Other Ways: the key rail still opens the chapter, the heading sits in its empty wall */
.ct-keys { position: relative; isolation: isolate; min-height: clamp(460px, 72vh, 760px); display: flex; align-items: center; overflow: hidden; }
.ct-keys-img { position: absolute; inset: 0; z-index: -1; background: var(--src) 72% center / cover no-repeat; }
.ct-keys-in { width: 100%; }
.ct-keys-in .h2 { max-width: 6ch; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -0.035em; }
.ct-other .ct-other-grid { margin-top: clamp(40px, 7vh, 72px); }
.ct-pix { display: block; width: var(--pw, 320px); height: var(--ph, 80px); margin-top: 22px; }
.ct-city h3 { transition: color .4s var(--ease); }

/* Questions: dark, the answers open in place */
.ct-faq { padding-block: clamp(96px, 14vh, 160px); background: var(--ink-0); border-top: 1px solid var(--rule-soft); }
.ct-faq-grid { display: grid; gap: 36px 64px; }
@media (min-width: 900px) { .ct-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ct-qa details { border-top: 1px solid var(--rule-soft); }
.ct-qa details:last-child { border-bottom: 1px solid var(--rule-soft); }
.ct-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding-block: 18px; font: 600 var(--t-m)/1.3 var(--f-display); }
.ct-qa summary::-webkit-details-marker { display: none; }
.ct-qa summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--fg), var(--fg)) center / 100% 2px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 2px 100% no-repeat; transition: transform .5s var(--ease); }
.ct-qa details[open] summary::after { transform: rotate(45deg); }
.ct-qa details p { color: var(--fg-2); max-width: 60ch; padding-bottom: 26px; }
.motion .ct-qa details[open] p { animation: ct-open .7s var(--ease) both; }
@keyframes ct-open { from { opacity: .001; transform: translateY(-8px); } }

/* Next Step */
.ct-end { padding-block: clamp(88px, 13vh, 150px); }
.ct-end-grid { display: grid; gap: 48px 64px; align-items: end; }
@media (min-width: 900px) { .ct-end-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ct-end-btn { margin-top: 32px; }
.ct-onward { display: grid; gap: 14px; padding: 26px 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; }
.ct-onward-v { display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 700 var(--t-l)/1.1 var(--f-display); letter-spacing: -0.015em; color: var(--fg); }
.ct-onward-v::after { content: ""; flex: none; width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.ct-onward:hover .ct-onward-v::after { transform: translateX(6px) rotate(45deg); }

@media (max-width: 767px) {
  .ct-next { display: block; min-height: 0; }
  .ct-next-in { padding-block: 40px 88px; }
  .ct-next-in > * { max-width: none; }
  .ct-steps li { font-size: 1.375rem; }
  .ct-keys { display: block; min-height: 0; }
  .ct-keys-img { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 11; background-image: var(--src-s); background-position: 74% center; }
  .ct-keys-in { padding-top: 40px; }
  .ct-qa summary { font-size: 1.125rem; }
}

/* ---------- Polish pass (24 Oct 2026): additive fixes, nothing approved changed ---------- */
.ct-small { font-size: .9375rem; line-height: 1.55; }
.ct-intro { line-height: 1.55; }
.ct-chips a:focus-visible { outline-offset: 3px; border-color: var(--fg); }
.ct-line:focus-visible .ct-line-v, .ct-onward:focus-visible .ct-onward-v { color: var(--accent); }
@media (max-width: 767px) {
  /* footer links: a full 44px tap target */
  .ft-grid a { display: inline-flex; align-items: center; min-height: 44px; }
}
