/* ============================================================
   MOMENTUS — v8 · ABOUT + CONTACT PAGES
   Shared editorial layout. Loaded after style.css + project.css;
   reuses the tokens, chrome (nav capsule / menu / footer / cursor),
   .em signature, .sec-index, and the layered-mark header grammar.
   Sileent-anchored: calm, monumental, generous negative space.
   ============================================================ */

.page-doc { background: var(--c-bg); color: var(--c-fg); }

/* ------------------------------------------------------------
   PAGE HERO — eyebrow + monumental serif statement + lead.
   ------------------------------------------------------------ */
.page-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
}
.page-eyebrow { display: block; color: var(--c-accent); margin-bottom: clamp(28px, 4vw, 48px); }
.page-title {
  font-family: var(--type-em);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--c-fg);
  max-width: 18ch;
}
.page-title .em { font-size: 1em; color: var(--ink); }
.page-lead {
  margin-top: clamp(28px, 3.4vw, 48px);
  font-family: var(--type-display);
  font-size: clamp(19px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 46ch;
  color: var(--c-fg);
  opacity: 0.86;
}

/* ------------------------------------------------------------
   STATEMENT BAND — the locked manifesto on the nav-black field
   (echoes the home About register). Light type, big serif.
   ------------------------------------------------------------ */
.statement {
  background: #100f0d;
  color: var(--paper);
  --c-accent: var(--blast);
  --c-mute: rgba(248, 246, 241, 0.5);
  padding: clamp(90px, 15vw, 200px) var(--gutter);
}
.statement-inner { max-width: 1100px; margin: 0 auto; }
.statement .sec-index { display: block; color: rgba(248, 246, 241, 0.5); margin-bottom: clamp(32px, 5vw, 60px); }
.statement-body {
  font-family: var(--type-display);
  font-size: clamp(26px, 3.1vw, 50px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.statement-body .em { color: var(--paper); font-size: 1.08em; }

/* ------------------------------------------------------------
   SECTION — generic light content block with the shared header
   ------------------------------------------------------------ */
.page-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) var(--gutter);
}
.page-section + .page-section { padding-top: 0; }
.page-section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 900px; }
.page-section-head .sec-index { display: block; color: var(--c-accent); margin-bottom: clamp(20px, 2.4vw, 30px); }
.page-section-title {
  font-family: var(--type-em);
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--c-fg);
}
.page-section-title .em { font-size: 1em; color: var(--ink); }
.page-section-lead {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-family: var(--type-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 52ch;
  color: var(--c-fg);
  opacity: 0.82;
}

/* PROSE — body paragraphs */
.page-prose {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 22px);
  max-width: 60ch;
}
.page-prose p {
  font-family: var(--type-body);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-fg);
  opacity: 0.84;
}
.page-prose .em { opacity: 1; }

/* ENGINE PARTS — a restrained editorial index (not a dashboard) */
.parts {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--c-line);
}
.part {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 56px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
}
.part-name {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-family: var(--type-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-fg);
}
.part-no { font-family: var(--type-mono); font-size: 13px; color: var(--c-accent); }
.part-desc {
  font-family: var(--type-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--c-fg);
  opacity: 0.74;
}

/* VALUES / STANCE — short conviction lines */
.stance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}
.stance-item { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.stance-item h3 {
  font-family: var(--type-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-fg);
}
.stance-item p { font-family: var(--type-body); font-size: var(--fs-body); line-height: 1.55; color: var(--c-fg); opacity: 0.74; }

/* THE STANDARD — a single monumental pull-line */
.standard {
  --c-accent: var(--blast);
  background: var(--paper);
  padding: clamp(80px, 12vw, 170px) var(--gutter);
  border-top: 1px solid var(--c-line);
}
.standard-inner { max-width: 1100px; margin: 0 auto; }
.standard .sec-index { display: block; color: var(--c-accent); margin-bottom: clamp(28px, 4vw, 48px); }
.standard-line {
  font-family: var(--type-em);
  font-style: normal;
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.standard-line .em { color: var(--blast); font-style: italic; }

/* NUMBERS — proof figures (reused look from project metrics) */
.numbers {
  background: #100f0d;
  color: var(--paper);
  --c-line: rgba(248, 246, 241, 0.14);
  --c-mute: rgba(248, 246, 241, 0.55);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
}
.numbers-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px);
}
.number { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.number-fig {
  font-family: var(--type-display);
  font-size: clamp(40px, 5.5vw, 86px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.number-fig .em { color: var(--blast); font-size: 0.7em; }
.number-label { color: var(--c-mute); }

/* ------------------------------------------------------------
   PAGE CTA — closing action band
   ------------------------------------------------------------ */
.page-cta {
  background: var(--blast);
  --c-accent: var(--ink);
  color: var(--ink);
  padding: clamp(96px, 14vw, 190px) var(--gutter);
  text-align: center;
}
.page-cta-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3.4vw, 44px); }
.page-cta-title {
  font-family: var(--type-em);
  font-style: normal;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-cta-title .em { font-style: italic; }

/* primary button (shared) — ink slab; the colour-wipe hover lives in style.css */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 34px;
  border-radius: 999px;
  font-family: var(--type-display);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.01em;
  transition: transform var(--t-hover) var(--ease-hover);
}
.btn:hover { transform: translateY(-2px); }
/* on the red-blast page-CTA an ink pill turning red would vanish — cream fill instead */
.page-cta .btn { --btn-fill: var(--paper); --btn-arr-color: var(--ink); }

/* ------------------------------------------------------------
   CONTACT FORM — editorial fill-in. Two columns: form + aside.
   ------------------------------------------------------------ */
.contact-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.form { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 38px); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label {
  font-family: var(--type-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.field-input,
.field-textarea,
.field-select {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--c-line);
  font-family: var(--type-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--c-fg);
  padding: 8px 2px;
  outline: none;
  transition: border-color var(--t-hover) var(--ease-hover);
  width: 100%;
}
.field-textarea { resize: vertical; min-height: 3.2em; line-height: 1.4; }
.field-input::placeholder,
.field-textarea::placeholder { color: rgba(20, 18, 14, 0.32); }
.field-input:focus,
.field-textarea:focus,
.field-select:focus { border-color: var(--blast); }
.field-select { cursor: pointer; }

.form-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(8px, 1vw, 16px); }
.form-note { font-family: var(--type-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-mute); }

/* contact aside — direct email + what happens next */
.contact-aside { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.contact-block { display: flex; flex-direction: column; gap: 14px; }
.contact-block-label { font-family: var(--type-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mute); }
.contact-mail {
  font-family: var(--type-em);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 38px);
  color: var(--c-fg);
  position: relative;
  align-self: flex-start;
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -0.08em; height: 1.5px;
  background: var(--blast);
  transition: right var(--t-hover) var(--ease-hover);
}
.contact-mail:hover::after { right: 0; }

.steps { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); list-style: none; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; }
.step-no { font-family: var(--type-mono); font-size: 13px; color: var(--c-accent); }
.step-text { font-family: var(--type-body); font-size: var(--fs-body); line-height: 1.5; color: var(--c-fg); opacity: 0.84; }
.step-text strong { font-weight: 600; opacity: 1; }

/* ------------------------------------------------------------
   FEATURED WORKS — a sticky-caption cinematic gallery.
   Anchored to apracticeforeverydaylife.com/case-studies (full-bleed image cadence)
   + sticky project meta: each project holds three viewport-tall frames that scroll
   past one by one while the project's caption (name bottom-left + tags + view-project)
   stays fixed via CSS sticky. At the boundary the caption rises out and the next
   rises in (the About-statement line grammar, toggled by ScrollTrigger). Pure-CSS
   sticky does the pinning, so it works on every device with no JS.
   ------------------------------------------------------------ */

/* INTRO — minimal centred bar (~33vh). No eyebrow; small title, smaller lead. */
.works-intro {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 24px);
  padding: clamp(72px, 12vw, 150px) var(--gutter) clamp(40px, 5.5vw, 78px);
}
.works-intro-title {
  display: inline-block;          /* shrink to text so the layer-head ghost anchors behind it */
  font-family: var(--type-em);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--c-fg);
}
.works-intro-title .em { font-style: italic; color: var(--ink); }
.works-intro-lead {
  font-family: var(--type-display);
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--c-mute);
  max-width: 48ch;
}

/* GALLERY */
.works { position: relative; background: var(--ink); }

/* one project — three full-bleed frames (300vh) under a sticky caption layer */
.wgroup { position: relative; }

/* sticky caption — first child, pinned to the viewport top for the project's full
   scroll; content sits bottom-left. The negative margin pulls the frames up to
   overlap so the caption layer adds no height. Only the link itself is clickable. */
.wcap {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 3;
  display: block;
  pointer-events: none;
  text-decoration: none;
}
.wcap::after {                          /* legibility scrim, bottom-weighted */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54%;
  background: linear-gradient(to top, rgba(15, 14, 12, 0.80) 0%, rgba(15, 14, 12, 0.30) 46%, transparent 100%);
  pointer-events: none;
}
.wcap-inner {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(2rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.7vw, 12px);
  max-width: 46rem;               /* wide enough to hold the longest project name on one line (≥901px; mobile rule overrides) */
  pointer-events: auto;
}
.wcap-line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.wcap-line-in { display: block; }
.wcap-meta { color: rgba(248, 246, 241, 0.66); font-size: 12px; letter-spacing: 0.06em; }
.wcap-name { line-height: 1.0; white-space: nowrap; }   /* project name stays one line, never wraps */
.wcap .wr-1, .wcap .wr-2 { color: var(--paper); }
.wcap-tags { color: rgba(248, 246, 241, 0.7); font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.04em; }
.wcap-go {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: clamp(4px, 0.5vw, 8px);
  font-family: var(--type-display); font-weight: 500;
  font-size: clamp(14px, 1vw, 16px);
  color: var(--paper); opacity: 0.92;
  transition: gap var(--t-hover) var(--ease-hover);
}
.wcap:hover .wcap-go { gap: 0.95em; }

/* frame — one full-bleed image (or placeholder), viewport-tall */
.wshot { height: 100vh; overflow: hidden; background: var(--ink); }
.wshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wshot--ph {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: #1a1814;
  background-image: repeating-linear-gradient(45deg, rgba(248, 246, 241, 0.03) 0 2px, transparent 2px 9px);
}
.wshot--ph .ph-label { color: var(--paper); opacity: 0.8; font-size: 12px; }
.wshot--ph .ph-note  { color: rgba(248, 246, 241, 0.45); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* caption rise — masked lines (the About-statement grammar), toggled per group by
   ScrollTrigger. The hidden state lives only under html.js so non-JS / fail-open /
   reduced-motion keep the captions visible (no trapped content). */
html.js .wcap-line-in { translate: 0 110%; transition: translate 1000ms var(--ease-entrance); }
html.js .wcap.is-in .wcap-line-in { translate: 0 0; }
html.js .wcap.is-in .wcap-line:nth-child(2) .wcap-line-in { transition-delay: 70ms; }
html.js .wcap.is-in .wcap-line:nth-child(3) .wcap-line-in { transition-delay: 140ms; }
html.js .wcap.is-in .wcap-line:nth-child(4) .wcap-line-in { transition-delay: 210ms; }
html.reveals-failopen .wcap-line-in { translate: 0 0 !important; }
@media (prefers-reduced-motion: reduce) {
  html.js .wcap-line-in { translate: 0 0; transition: none; }
}

/* CTA — closing red band (the page-cta register) */
.works-cta {
  background: var(--blast);
  --c-accent: var(--ink);
  color: var(--ink);
  padding: clamp(110px, 16vw, 220px) var(--gutter);
  text-align: center;
}
.works-cta-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 3.2vw, 42px); }
.works-cta-eyebrow { color: rgba(20, 18, 14, 0.6); font-size: 13px; letter-spacing: 0.04em; }
.works-cta-title {
  font-family: var(--type-em);
  font-style: normal;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.works-cta-title .em { font-style: italic; }
.works-cta .btn { --btn-fill: var(--paper); --btn-arr-color: var(--ink); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  /* featured works: same sticky-caption mechanic; svh keeps frames stable under the
     mobile URL bar, caption lifted clear of the bottom nav capsule */
  .works-intro-title { font-size: clamp(32px, 9.5vw, 56px); }
  .works-intro-lead { font-size: clamp(12px, 3.4vw, 15px); }
  .wcap { height: 100svh; margin-bottom: -100svh; }
  .wshot { height: 100svh; }
  .wcap-inner { left: clamp(1.2rem, 6vw, 2rem); bottom: clamp(5.5rem, 13vh, 8rem); max-width: 86vw; }
  .wcap .wr-1 { font-size: clamp(34px, 11vw, 60px); }
  .wcap .wr-2 { font-size: clamp(34px, 11vw, 60px); }
  .works-cta-title { font-size: clamp(34px, 10vw, 60px); }
  .page-title { max-width: none; font-size: clamp(38px, 11vw, 72px); }
  .part { grid-template-columns: 1fr; gap: 8px; }
  .stance { grid-template-columns: 1fr; gap: clamp(24px, 7vw, 36px); }
  .numbers-inner { grid-template-columns: 1fr; gap: clamp(28px, 8vw, 40px); }
  .standard-line { font-size: clamp(28px, 8vw, 46px); }
  .statement-body { font-size: clamp(22px, 6vw, 34px); line-height: 1.32; }
  .contact-grid { grid-template-columns: 1fr; gap: clamp(48px, 12vw, 72px); }
  .page-cta-title { font-size: clamp(38px, 11vw, 64px); }
}
