/* ==========================================================================
   Authscent v2 — Architectural Print Monograph & Kinetic Ribbon System
   Zero SaaS card boxes · Zero blue glows · Warm carbon & ivory restraint
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both vt-out;
}

::view-transition-new(root) {
  animation: 0.44s cubic-bezier(0.16, 1, 0.3, 1) both vt-in;
}

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

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

:root {
  /* Warm matte carbon, stone-ivory, brushed silver & 10% crisp electric-blue accent */
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-hover: #17171a;
  --ivory: #f5f3ee;
  --ivory-soft: #e6e3dc;
  --silver-bright: #e7edf6;
  --silver: #cdd5e2;
  --silver-dim: #9aa2b0;
  --stone: #bfbbb3;
  --stone-dim: #9a968e;
  --stone-muted: #76736c;
  --accent-blue: #00e0ff;
  --accent-blue-deep: #00b8d9;

  /* Crisp architectural hairlines */
  --rule: rgba(245, 243, 238, 0.17);
  --rule-strong: rgba(245, 243, 238, 0.34);

  /* Typography */
  --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Apple squircle radii (strictly for interactive controls) */
  --sq-btn: 13px;
  --sq-sm: 10px;
  --sq-md: 16px;

  /* Layout */
  --container: 1260px;
  --gutter: clamp(1.25rem, 4.2vw, 3.5rem);
  --nav-height: 72px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.25, 0.36, 1);
}

::selection {
  background: rgba(0, 224, 255, 0.26);
  color: #ffffff;
}

html {
  background-color: var(--bg);
  color: var(--ivory);
  font-size: 16px;
  scrollbar-color: #2e2d2a var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2e2d2a;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--ivory);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--accent-blue);
}

/* Sculpted diagonal silk-ribbon stipple canvas behind the entire document */
.silk-ribbon-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Tactile fine dark-paper grain overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--silver) 0%, var(--ivory) 65%, var(--accent-blue) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  opacity: 0.92;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.opening-left,
.opening-proof,
.ledger-row,
.ledger-drawer,
.manifesto-sticky,
.inner-hero,
.editorial-case,
.process-cell,
.faq-grid,
.contact-grid,
.prose-stack {
  text-shadow: 0 2px 16px rgba(10, 10, 11, 0.88), 0 1px 3px rgba(10, 10, 11, 0.96);
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.24em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--ivory);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
}

.skip-link:focus {
  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;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* DeepBook-inspired architectural registration crosshairs (+) */
.reg-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--stone-dim);
}

.reg-plus {
  user-select: none;
  color: var(--accent-blue);
  font-weight: 500;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  color: var(--ivory);
}

h1 {
  font-size: clamp(2.8rem, 5.9vw, 5.15rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.034em;
}

h3 {
  font-size: clamp(1.22rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

p {
  margin: 0;
  max-width: 62ch;
}

/* ==========================================================================
   Extreme-Restraint 3-Anchor Header (Preymaker + Comp 2)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.028em;
  color: var(--ivory);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-expo);
}

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

.nav-location {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone-dim);
  letter-spacing: 0.02em;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ivory);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent-blue);
}

.nav-cta,
.mobile-top-cta {
  padding: 0.54rem 1.18rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ivory);
  background: rgba(0, 224, 255, 0.09);
  border: 1.5px solid var(--accent-blue);
  border-radius: var(--sq-btn);
  corner-shape: squircle;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}

.nav-cta:hover,
.mobile-top-cta:hover {
  background: var(--accent-blue);
  color: var(--bg);
}

.nav-cta:active,
.mobile-top-cta:active {
  transform: scale(0.97);
}

.mobile-top-cta {
  display: none;
  justify-self: end;
}

.ios-tabbar {
  display: none;
}

/* ==========================================================================
   Apple Squircle Interactive Buttons (Reserved Strictly for Actions)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.48rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--sq-btn);
  corner-shape: squircle;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-spring), color 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.26s var(--ease-expo);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: rgba(0, 224, 255, 0.1);
  border-color: var(--accent-blue);
  border-width: 1.5px;
  color: var(--ivory);
}

.btn-primary svg {
  color: var(--accent-blue);
  transition: transform 0.26s var(--ease-expo), color 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-blue);
  color: var(--bg);
}

.btn-primary:hover svg {
  color: var(--bg);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-line {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ivory);
}

.btn-line:hover {
  background: rgba(242, 239, 233, 0.08);
  border-color: var(--ivory);
}

.btn-line:active {
  transform: scale(0.97);
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ivory-soft);
  border-bottom: 1.5px solid rgba(0, 224, 255, 0.52);
  padding-bottom: 0.22rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease-spring);
}

.text-cta:hover {
  color: var(--ivory);
  border-color: var(--accent-blue);
}

.text-cta:active {
  transform: scale(0.97);
}

/* ==========================================================================
   VIEWPORT 1 — Monumental Monograph Opening + Unboxed Client Proof Up Top
   ========================================================================== */
.monograph-opening {
  min-height: calc(100vh - 12px);
  padding-top: calc(var(--nav-height) + clamp(3rem, 7vh, 5.2rem));
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 7vh, 5.5rem);
}

.opening-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.92fr);
  gap: clamp(2.25rem, 6vw, 5.5rem);
  align-items: end;
}

.opening-left {
  will-change: transform, opacity;
}

.opening-left h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  line-height: 1.03;
}

.opening-sub {
  margin-top: 1.65rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--stone);
  max-width: 44ch;
}

.opening-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* Unboxed Client Quote Stage (Zero Card Borders — Directly on Textured Canvas!) */
.opening-proof {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.25rem;
  will-change: transform, opacity;
}

.proof-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.35vw, 2.02rem);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.024em;
  color: var(--ivory);
  transition: opacity 0.24s ease, transform 0.34s var(--ease-expo);
}

.proof-quote.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.proof-attribution {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  font-size: 0.92rem;
  color: var(--stone);
}

.proof-draft-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone-dim);
}

.proof-draft-note[hidden] {
  display: none;
}

.proof-switcher {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.35rem;
}

.proof-tab {
  position: relative;
  padding: 0.32rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--stone-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  transition: color 0.2s ease;
}

.proof-tab-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.proof-tab:hover {
  color: var(--ivory-soft);
}

.proof-tab[aria-pressed="true"] {
  color: var(--ivory);
}

.proof-tab[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent-blue);
}

.proof-tab:active {
  transform: scale(0.97);
}

/* ==========================================================================
   EDGE-TO-EDGE HAIRLINE PROJECT LEDGER (Preymaker + Comp 2 — ZERO Cards)
   ========================================================================== */
.ledger-wrap {
  width: 100%;
}

.ledger-list {
  border-top: 1px solid var(--rule);
}

.ledger-entry {
  border-bottom: 1px solid var(--rule);
}

.ledger-row {
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  padding: clamp(1.25rem, 2.2vw, 1.65rem) 0.5rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.05fr) minmax(0, 1.2fr) 36px;
  gap: 0.75rem 1.5rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: padding-inline 0.35s var(--ease-expo);
}

.ledger-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(242, 239, 233, 0.05);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.38s var(--ease-expo);
  z-index: 0;
}

.ledger-row:hover::before,
.ledger-row[aria-expanded="true"]::before {
  clip-path: inset(0 0 0 0);
}

.ledger-row:hover {
  padding-inline: 1rem;
}

.ledger-row > * {
  position: relative;
  z-index: 1;
}

.ledger-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--stone-dim);
  transition: color 0.2s ease;
}

.ledger-row:hover .ledger-num,
.ledger-row[aria-expanded="true"] .ledger-num {
  color: var(--accent-blue);
}

.ledger-name {
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1.6vw, 1.38rem);
  font-weight: 500;
  color: var(--ivory);
}

.ledger-industry {
  font-size: 0.96rem;
  color: var(--stone);
}

.ledger-deliverable {
  font-size: 0.96rem;
  color: var(--ivory-soft);
}

.ledger-arrow {
  justify-self: end;
  width: 18px;
  height: 18px;
  color: var(--stone);
  transition: transform 0.3s var(--ease-expo), color 0.2s ease;
}

.ledger-row:hover .ledger-arrow {
  transform: translateX(4px);
  color: var(--accent-blue);
}

.ledger-row[aria-expanded="true"] .ledger-arrow {
  transform: rotate(90deg);
  color: var(--accent-blue);
}

/* Inline Architectural Blueprint Drawer (opens seamlessly inside the ledger) */
.ledger-drawer {
  padding: 0 0.5rem 2rem calc(64px + 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  background: rgba(10, 10, 11, 0.72);
  border-top: 1px dashed rgba(242, 239, 233, 0.08);
  padding-top: 1.4rem;
}

.ledger-drawer[hidden] {
  display: none;
}

.ledger-drawer p {
  color: var(--stone);
  font-size: 0.96rem;
}

.ledger-trace {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ivory-soft);
  border-left: 1.5px solid var(--accent-blue);
  padding-left: 1.15rem;
}

.ledger-trace-line {
  display: block;
}

.ledger-trace-muted {
  color: var(--stone-dim);
}

/* ==========================================================================
   PINNED SCROLL-SCRUBBED MANIFESTO BEAT (Two26 + Preymaker Choreography)
   Words illuminate smoothly 1:1 with scroll progress — like liquid light
   ========================================================================== */
.manifesto-stage {
  position: relative;
  height: 155vh;
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.9vw, 4.35rem);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.036em;
  max-width: 24ch;
  margin-top: 2.2rem;
}

.scrub-word {
  color: var(--stone-muted);
  transition: color 0.14s linear;
}

.scrub-word.is-lit {
  color: var(--ivory);
}

.manifesto-foot {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.manifesto-col-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.45rem;
}

.manifesto-col-val {
  font-size: 0.96rem;
  color: var(--ivory-soft);
}

/* ==========================================================================
   FULL-BLEED NEXT PAGE CURTAIN (Preymaker Signature Close)
   ========================================================================== */
.curtain-section {
  border-top: 1px solid var(--rule);
}

.curtain-link {
  position: relative;
  display: block;
  padding-block: clamp(3.6rem, 7vw, 6.2rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.curtain-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s var(--ease-expo);
  z-index: 0;
}

.curtain-link:hover::before {
  clip-path: inset(0 0 0 0);
}

.curtain-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.curtain-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.7rem;
  display: block;
}

.curtain-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ivory);
}

.curtain-arrow {
  width: clamp(36px, 5vw, 62px);
  height: clamp(36px, 5vw, 62px);
  color: var(--ivory);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-expo);
}

.curtain-link:hover .curtain-meta {
  color: var(--accent-blue);
}

.curtain-link:hover .curtain-arrow {
  transform: translateX(14px);
  color: var(--accent-blue);
}

/* ==========================================================================
   INNER PAGES — Unboxed Architectural Editorial Grammar
   ========================================================================== */
.inner-hero {
  padding-top: calc(var(--nav-height) + clamp(3.5rem, 8vh, 5.5rem));
  padding-bottom: clamp(2.8rem, 5vw, 4.2rem);
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.85fr);
  gap: 2rem 4rem;
  align-items: end;
}

.inner-lead {
  color: var(--stone);
  font-size: 1.04rem;
}

.filter-strip {
  margin-top: 2.2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--stone);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.filter-btn:hover {
  color: var(--ivory);
  border-color: var(--rule-strong);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.filter-btn:active,
.copy-btn:active {
  transform: scale(0.97);
}

/* Unboxed Case Studies (Work page) */
.editorial-cases {
  border-top: 1px solid var(--rule);
}

.editorial-case {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  padding-block: clamp(3rem, 6vw, 4.8rem);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

.editorial-case[hidden] {
  display: none;
}

.case-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  padding-top: 0.45rem;
}

.case-discipline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 0.75rem;
  display: block;
}

.case-copy {
  margin-top: 1rem;
  color: var(--stone);
}

.case-copy + .case-copy {
  margin-top: 0.85rem;
}

.case-spec-col {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--ivory-soft);
}

.spec-plus {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.artifact-trace {
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--ivory-soft);
}

.artifact-trace-head {
  color: var(--stone-dim);
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
}

/* Services & FAQ Unboxed Hairline Layout */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(10, 10, 11, 0.72);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.process-cell {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.1rem, 2.2vw, 1.8rem);
  border-right: 1px solid var(--rule);
}

.process-cell:last-child {
  border-right: 0;
}

.process-cell-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: block;
}

.process-cell p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--stone);
}

.faq-wrap {
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

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

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-trigger {
  width: 100%;
  min-height: 58px;
  padding: 1.3rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--ivory);
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-expo), color 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-panel[hidden] {
  display: none;
}

.faq-answer {
  padding-bottom: 1.45rem;
  color: var(--stone);
  font-size: 0.97rem;
}

/* Contact Unboxed Split Architecture */
.contact-spread {
  padding-top: calc(var(--nav-height) + clamp(3rem, 7vh, 5rem));
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-ledger {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.contact-ledger-row {
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-ledger-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone-dim);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-ledger-val {
  font-size: 0.98rem;
  color: var(--ivory);
}

.contact-ledger-val a {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}

.copy-btn {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: var(--ivory);
  color: var(--bg);
}

.form-shell {
  border-top: 1px solid var(--rule-strong);
  padding-top: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-legend {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--stone);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
  border: 1px solid var(--rule);
  background: rgba(17, 17, 19, 0.82);
  color: var(--ivory);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--stone-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f87171;
}

.field-error {
  font-size: 0.82rem;
  color: #fca5a5;
  min-height: 1.1em;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.service-chip-label {
  position: relative;
  cursor: pointer;
}

.service-chip-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-chip-label span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--stone);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.service-chip-label input:checked + span {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--sq-sm);
  corner-shape: squircle;
  font-size: 0.94rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  color: var(--ivory);
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: #fecaca;
}

/* Prose pages (Support & Privacy) */
.prose-body {
  padding-block: clamp(2.8rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.prose-stack {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.prose-block h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 0.7rem;
}

.prose-block p,
.prose-block li {
  color: var(--stone);
}

.prose-block ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prose-block a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}

/* ==========================================================================
   ARCHITECTURAL FOOTER WITH GIANT EDGE-CROPPED WORDMARK (DeepBook Signature)
   ========================================================================== */
.site-footer {
  background: var(--bg);
  padding-top: 2.2rem;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.88rem;
  color: var(--stone);
  padding-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.45rem;
}

.footer-links a:hover {
  color: var(--ivory);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 15.6vw, 13.8rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: rgba(242, 239, 233, 0.065);
  user-select: none;
  text-align: center;
  transform: translateY(14%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-stage { height: auto; }
  .manifesto-sticky { position: relative; height: auto; min-height: 0; }
  .scrub-word { color: var(--ivory); }
}

/* ==========================================================================
   RESPONSIVE & NATIVE iOS FLOATING BOTTOM DOCK
   ========================================================================== */
@media (max-width: 980px) {
  .nav-location { display: none; }
  .nav-shell { grid-template-columns: auto 1fr; }

  .opening-spread,
  .inner-hero-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 0.35rem 1rem;
  }

  .ledger-industry,
  .ledger-deliverable {
    grid-column: 2;
    font-size: 0.88rem;
  }

  .ledger-drawer {
    padding-left: 0.5rem;
    grid-template-columns: 1fr;
  }

  .editorial-case {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-spec-col {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 1.5rem;
  }

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

  .process-cell:nth-child(2) {
    border-right: 0;
  }

  .process-cell:nth-child(1),
  .process-cell:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }

  .manifesto-foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .nav-links { display: none; }
  .mobile-top-cta { display: inline-flex; align-items: center; }

  .ios-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 110;
    padding: 6px;
    border-radius: 22px;
    corner-shape: squircle;
    background: rgba(16, 16, 18, 0.88);
    border: 1px solid rgba(242, 239, 233, 0.14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.85);
  }

  .ios-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 16px;
    corner-shape: squircle;
    color: var(--stone);
    font-size: 0.71rem;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s var(--ease-spring);
  }

  .ios-tab svg { width: 20px; height: 20px; }
  .ios-tab:active { transform: scale(0.92); }
  .ios-tab[aria-current="page"] {
    background: rgba(242, 239, 233, 0.12);
    color: var(--ivory);
  }

  .ios-tab[aria-current="page"] svg {
    color: var(--accent-blue);
  }

  .monograph-opening {
    min-height: auto;
  }

  .process-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-cell {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .process-cell:last-child {
    border-bottom: 0;
  }

  .opening-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .opening-actions .btn {
    width: 100%;
  }

  .text-cta {
    align-self: flex-start;
  }
}
