/* ────────────────────────────────────────────────
   COLUMN BAY — front page
   Resort brutalism through a red press.
   ──────────────────────────────────────────────── */

:root {
  --cream: #f1e8d3;
  --cream-2: #e6dcc1;
  --bone: #d8cdb0;
  --paper: #ece2c8;
  --ink: #0b0a08;
  --ink-2: #191712;
  --ink-3: #2a2620;
  --red: #d9281a;
  --red-deep: #a8160b;
  --red-ink: #ff3120;
  --verde: #0e2522;
  --verde-2: #143631;
  --vein: #1f8b7a;

  --font-display: "Bowlby One", "Cooper Black", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 3vw, 56px);
  --rule: 1px solid currentColor;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* paper grain — applied to cream sections */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(11,10,8,0.06) 1px, transparent 1px),
    radial-gradient(rgba(11,10,8,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 2;
}

/* scan lines */
.scanlines::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(11,10,8,0.18) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
  opacity: var(--scan, 0.6);
  z-index: 3;
}

/* ─── fold scaffold ─────────────────────────── */
.fold {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.fold-inner {
  position: relative;
  z-index: 4;
  padding: clamp(28px, 4vw, 72px) var(--gutter);
}

/* ─── monospace field-office labels ─────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.tag-lg {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.rule-red {
  height: 2px;
  background: var(--red);
}

/* ─── nav ─────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 22px var(--gutter);
  color: var(--cream);
  mix-blend-mode: difference;
}

.nav .corner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav .corner.right { text-align: right; }

.nav .wordmark-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav .wordmark-tag .cb-mark {
  width: 64px;
  height: auto;
  filter: invert(1) drop-shadow(0 0 0 rgba(0,0,0,0));
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.7,0,.3,1);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-mobile-bm {
  display: none;
  grid-column: 3;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

/* ─── HERO ─────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 720px;
  background: var(--ink);
  color: var(--cream);
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg video,
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* red-duotone */
  filter: grayscale(1) brightness(0.7) contrast(1.15) sepia(1) hue-rotate(-26deg) saturate(6);
}

.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,10,8,0.35) 0%, rgba(11,10,8,0.72) 70%, rgba(11,10,8,0.9) 100%),
    linear-gradient(rgba(217,40,26,0.08), rgba(217,40,26,0.08));
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  color: var(--cream);
}

.hero-wm {
  width: min(78vw, 880px);
  height: auto;
  filter: drop-shadow(5px 5px 0 rgba(217,40,26,0.85));
  margin-top: -90px;
  margin-bottom: -40px;
}

.hero-creds {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  opacity: 0.78;
  padding: 8px 16px;
  border: 1px solid rgba(241,232,211,0.35);
  font-size: 11px;
  letter-spacing: 0.22em;
  order: -1;
}
.hero-creds .dot { font-size: 8px; opacity: 0.9; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 26ch;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--cream);
  opacity: 0.82;
  font-weight: 400;
}

.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .25s, color .25s, border-color .25s;
  position: relative;
}

.btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
.btn.btn-red:hover { background: var(--ink); border-color: var(--red); color: var(--red); }

.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* corner brackets / registration */
.reg {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  opacity: 0.55;
  z-index: 6;
}
.reg.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.reg.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.reg.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.reg.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

/* ticker */
.ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(241,232,211,0.15);
  border-bottom: 1px solid rgba(241,232,211,0.15);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding-left: 0;
  animation: ticker 38s linear infinite;
}

.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track .dot { color: var(--red); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* specimen wordmark plate (hero top-left) */
.specimen {
  position: absolute;
  top: 70px; left: var(--gutter);
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--cream);
  max-width: 360px;
}

.specimen .wm {
  width: 180px;
  height: auto;
  filter: drop-shadow(2px 2px 0 rgba(217,40,26,0.85));
}

.specimen .stamp {
  border: 1px solid var(--cream);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  opacity: 0.85;
}

/* ─── DOCTRINE ─────────────────────────────── */
.doctrine {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  isolation: isolate;
}

.doctrine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/doctrine-marble.png") center / cover no-repeat;
  z-index: 0;
}

.doctrine .marble-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(11,14,16,0.65) 0%, rgba(11,14,16,0.86) 65%, rgba(11,14,16,0.94) 100%),
    linear-gradient(180deg, rgba(11,14,16,0.4), rgba(11,14,16,0.7));
}

.doctrine .fold-inner {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: clamp(24px, 4vw, 80px);
  padding-top: clamp(60px, 8vw, 140px);
  padding-bottom: clamp(60px, 8vw, 140px);
  min-height: 90vh;
  align-items: center;
  position: relative;
  z-index: 4;
}

.doctrine .stack {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--cream);
  opacity: 0.8;
  align-self: stretch;
  justify-self: start;
  border-left: 1px solid rgba(241,232,211,0.18);
  padding-left: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.doctrine .stack.right {
  border-left: none;
  border-right: 1px solid rgba(241,232,211,0.18);
  padding-left: 0; padding-right: 12px;
  justify-self: end;
}

.doctrine .stack span { color: var(--cream); }
.doctrine .stack span::before {
  content: "↳ ";
  color: var(--red);
}

.doctrine-body {
  max-width: 56ch;
  margin: 0 auto;
  text-align: left;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.72;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: ""; flex: 1; height: 2px; background: var(--red); opacity: 0.7;
}

.doctrine h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 78px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--cream);
}

.doctrine h2 .red { color: var(--red); }

.doctrine p {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.88;
  max-width: 58ch;
}

.doctrine .credit {
  margin-top: 36px;
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* red rule lines top and bottom — borders since ::before/::after are used */
.doctrine {
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

/* ─── VISUAL SYSTEM CARDS ──────────────────── */
.system {
  background: #e3e7eb;
  color: var(--ink);
}
.system .eyebrow { color: var(--red); }
.system::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.04));
  z-index: 1;
}

.system .fold-inner {
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(48px, 5vw, 80px);
  position: relative;
  z-index: 4;
}

.system-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.system h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.system-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: 36ch;
  opacity: 0.7;
  text-align: right;
}

/* Reserved placeholder for the specimen archive */
.system-placeholder {
  position: relative;
  min-height: 56vh;
  border: 1px dashed rgba(11,10,8,0.35);
  background:
    repeating-linear-gradient(135deg, rgba(11,10,8,0.025) 0 12px, transparent 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-reg {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--ink);
  opacity: 0.55;
}
.ph-reg.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.ph-reg.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.ph-reg.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.ph-reg.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.ph-stamp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  text-align: center;
  border: 1px solid var(--ink);
  padding: 14px 22px;
  background: rgba(241,232,211,0.6);
}

/* ─── ATMOSPHERE STRIP — horizontal slideshow ─ */
.strip-frame {
  position: relative;
  z-index: 4;
  margin-top: 12px;
  border-top: 1px solid rgba(11,10,8,0.22);
  border-bottom: 1px solid rgba(11,10,8,0.22);
  background:
    repeating-linear-gradient(135deg, rgba(11,10,8,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #d6dbe0 0%, #c9cfd5 100%);
}

.strip-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  padding: 10px var(--gutter);
}
.strip-rule.top { border-bottom: 1px solid rgba(11,10,8,0.2); }
.strip-rule.bottom { border-top: 1px solid rgba(11,10,8,0.2); }

.strip-viewport {
  overflow: hidden;
  padding: 16px 0;
  position: relative;
  /* feathered edges */
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.strip-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 var(--gutter);
  animation: stripScroll 80s linear infinite;
}
.strip-viewport:hover .strip-track { animation-play-state: paused; }

@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.specimen-card {
  flex: 0 0 320px;
  background: linear-gradient(180deg, #eef1f4 0%, #dee3e8 100%);
  border: 1px solid rgba(20,28,38,0.22);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s cubic-bezier(.7,0,.3,1), box-shadow .4s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.specimen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -16px rgba(11,10,8,0.35);
}

.specimen-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #d8dde2;
  overflow: hidden;
  border-bottom: 1px solid rgba(20,28,38,0.18);
}
.specimen-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.specimen-ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(11,10,8,0.04) 0 10px, transparent 10px 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.specimen-ph .ph-reg { width: 16px; height: 16px; }
.specimen-ph .ph-mark {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.4;
}
.specimen-ph .ph-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

.specimen-meta {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specimen-code {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}
.specimen-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  margin-top: 4px;
  color: var(--ink);
}
.specimen-cap {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 4px;
}

/* ─── CONTACT FORM ───────────────────────── */
.contact-form, .form-success {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  text-align: left;
  background: rgba(11,10,8,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(241,232,211,0.18);
  padding: 28px 28px 24px;
  color: var(--cream);
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(241,232,211,0.18);
}
.form-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
}
.form-case {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.contact-form .form-row label { margin-bottom: 0; }

.form-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 1;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  color: var(--cream);
  border: none;
  border-bottom: 1px solid rgba(241,232,211,0.35);
  padding: 8px 0;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color .25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(241,232,211,0.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--red);
}

.contact-form textarea {
  min-height: 96px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.form-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.form-success {
  text-align: center;
  padding: 48px 28px;
  border-color: var(--red);
}
.success-stamp {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--red);
  border: 2px solid var(--red);
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}
.success-case {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  opacity: 0.85;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

/* layout: 6 specimens, RESORT EVIDENCE = largest (3x2) */
.card {
  position: relative;
  background: var(--ink-2);
  color: var(--cream);
  overflow: hidden;
  cursor: crosshair;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(11,10,8,0.15);
  transition: transform .35s cubic-bezier(.7,0,.3,1);
}

.card .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 1.2s cubic-bezier(.7,0,.3,1);
}

.card:hover .img { transform: scale(1.04); }

.card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,10,8,0.85) 0%, rgba(11,10,8,0.0) 60%);
  z-index: 1;
}

.card-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.card-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-top: 6px;
}

.card-cap {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
  margin-top: 8px;
  max-width: 36ch;
  display: none;
}

.card:hover .card-cap { display: block; }

/* the sleeper — largest */
.card.evidence { grid-column: span 3; grid-row: span 2; }
.card.field    { grid-column: span 3; grid-row: span 1; }
.card.red      { grid-column: span 2; grid-row: span 2; }
.card.range    { grid-column: span 1; grid-row: span 2; background: var(--paper); color: var(--ink); }
.card.range::before { background: linear-gradient(to top, rgba(241,232,211,0.95), rgba(241,232,211,0)); }
.card.night    { grid-column: span 2; grid-row: span 1; }
.card.verde    { grid-column: span 2; grid-row: span 1; }

/* range = light-paper card with target */
.card.range .img { mix-blend-mode: multiply; opacity: 0.95; }

/* corner registration on cards */
.card .reg-mini {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  z-index: 3;
  opacity: 0.65;
}

/* ─── THE WORK ─────────────────────────────── */
.work {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(241,232,211,0.1);
}

.work .fold-inner {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
}

.work-head {
  margin-bottom: 50px;
  max-width: 60ch;
}

.work h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.work h2 .red { color: var(--red); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.work-block {
  position: relative;
  padding: 100px 28px 36px;
  border-right: 1px solid rgba(241,232,211,0.12);
  cursor: default;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  overflow: hidden;
  transition: background .35s;
}
.work-block:last-child { border-right: none; }

.work-block .num {
  position: absolute;
  top: 24px; left: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.45;
}

.work-glyph {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--red);
  opacity: 0.85;
}

.work-block h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 0;
  color: var(--cream);
  /* reserve 2 lines so paragraphs align across all cards */
  min-height: calc(2 * 0.95em);
}

.work-block p {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.78;
}

.work-block::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.7,0,.3,1);
}
.work-block:hover { background: rgba(217,40,26,0.04); }
.work-block:hover::after { transform: scaleX(1); }

.work-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(241,232,211,0.12);
  max-width: 64ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--cream);
  opacity: 0.85;
  text-transform: none;
}
.work-foot p { margin: 0; }

/* ─── TWO WAYS IN ─── cold luxury steel/marble ─ */
.ways {
  background: #d8dde2;
  color: #111418;
  background-image:
    /* whitish wash so card shadows still read — heavy knock-back */
    linear-gradient(180deg, rgba(232,236,240,0.94) 0%, rgba(225,230,235,0.9) 55%, rgba(216,222,228,0.88) 100%),
    /* schematic / blueprint texture, barely a whisper */
    url("assets/blueprint.png"),
    /* base steel tone */
    linear-gradient(180deg, #e5e9ee 0%, #c9d0d6 65%, #b8c0c8 100%);
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.ways::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  /* overhead light bloom */
  background: radial-gradient(ellipse 90% 40% at 50% -10%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 60%);
  z-index: 1;
}
.ways .fold-inner {
  padding-top: clamp(70px, 9vw, 150px);
  padding-bottom: clamp(70px, 9vw, 150px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ways-head {
  text-align: center;
  margin-bottom: 70px;
}
.ways-head .tag { color: #4a5460; }
.ways-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 92px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: 20px;
  color: #0d1014;
}
.ways-head p {
  font-family: var(--font-body);
  font-size: 17px;
  max-width: 58ch;
  margin: 0 auto;
  color: #2a323b;
  opacity: 0.85;
}

.ways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.way {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.15) 18%),
    linear-gradient(180deg, #eef1f4 0%, #d6dce2 100%);
  border: 1px solid rgba(20,28,38,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 1px 0 rgba(20,28,38,0.04),
    0 28px 44px -28px rgba(20,28,38,0.4);
  color: #0d1014;
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

.way .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c6772;
  display: flex;
  justify-content: space-between;
  position: relative; z-index: 1;
}

.way h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #0d1014;
  position: relative; z-index: 1;
  min-height: calc(2 * 0.95em);
}

.way p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #2a323b;
  position: relative; z-index: 1;
  min-height: calc(3 * 1.55em);
}

.way .good {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0d1014;
  border-top: 1px solid rgba(20,28,38,0.28);
  padding-top: 18px;
  margin-top: auto;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.way .good strong {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 11.5px;
  display: block;
  margin-bottom: 6px;
}

.way .cta { margin-top: 8px; position: relative; z-index: 1; }
.way .btn { width: fit-content; color: #0d1014; border-color: #0d1014; }
.way .btn:hover { background: #0d1014; color: #e5e9ee; border-color: #0d1014; }

/* ─── METHOD — case file diagram ───────────── */
.method {
  background: #e3e7eb;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.method .fold-inner {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
}

.method-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}

.method h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 68px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.method-head .stamp-block {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.7;
  border: 1px solid var(--ink);
  padding: 14px 16px;
  line-height: 1.6;
  justify-self: end;
}

/* ─── METHOD BANNER — full-bleed image strip ─── */
.target-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 32vw, 460px);
  border: 2px solid var(--ink);
  border-bottom: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--ink);
}

.target-banner .tb-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ─── METHOD STEPS — 4-col grid below banner ── */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  border-top: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 28px;
  align-items: flex-start;
  border-right: 1px solid var(--ink);
  position: relative;
  transition: background .25s;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(217,40,26,0.06); }

.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--red);
  opacity: 0.65;
  line-height: 1;
}

.step h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  margin-bottom: 14px;
}

.step p {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.78;
  max-width: 38ch;
}

.step .check { display: none; }

/* ─── FINAL CTA ────────────────────────────── */
#final-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}
@media (max-width: 1023px) {
  #final-3d-canvas { display: none; }
}

.final {
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.final-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: contrast(1.15) saturate(1.1) brightness(0.85);
}
.final-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,10,8,0.45) 0%, rgba(11,10,8,0.78) 70%, rgba(11,10,8,0.92) 100%),
    linear-gradient(rgba(217,40,26,0.04), rgba(217,40,26,0.04));
}

.final .fold-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(60px, 7vw, 120px);
  position: relative;
  z-index: 5;
}

/* ─── THE PRACTICE SECTION ──────────────────── */
.practice-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  width: 100%;
  border-bottom: 1px solid rgba(241,232,211,0.18);
}

.practice-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 140px) var(--gutter);
}

.practice-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 110px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin-bottom: 32px;
  color: var(--cream);
}

.practice-inner p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  max-width: 640px;
  color: var(--cream);
  opacity: 0.82;
}

/* ─── REACH OUT SECTION ──────────────────────── */
.reach-out-inner {
  align-items: flex-start !important;
  text-align: left !important;
  max-width: 720px;
  width: 100%;
}

.reach-out-inner h2 {
  margin-bottom: 40px;
}

.reach-out-form {
  max-width: 100% !important;
}

.form-optional {
  font-weight: 400;
  opacity: 0.55;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reach-out-confirm {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-top: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(241,232,211,0.25);
}

.final .wm-big {
  width: min(72vw, 920px);
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(6px 6px 0 rgba(217,40,26,0.8));
}

.final h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 110px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 14ch;
}
.final h2 .red { color: var(--red); }

.final p {
  font-size: clamp(16px, 1.2vw, 19px);
  max-width: 58ch;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.55;
}

.final .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(241,232,211,0.18);
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.footer .right { text-align: right; }
.footer .center { text-align: center; }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.footer-social a:hover {
  opacity: 1;
}

/* ─── SCROLL-DRIVEN MOTION ─────────────────── */
@supports (animation-timeline: view()) {
  /* hero wordmark — slow drift downward + fade as user scrolls past */
  .hero-wm {
    animation: heroDrift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
    will-change: transform, opacity;
  }
  @keyframes heroDrift {
    from { transform: translateY(-24px) scale(1); opacity: 1; filter: drop-shadow(5px 5px 0 rgba(217,40,26,0.85)); }
    to   { transform: translateY(80px) scale(0.92); opacity: 0.35; filter: drop-shadow(8px 8px 0 rgba(217,40,26,0.5)); }
  }

  /* hero creds also slight parallax up */
  .hero-creds {
    animation: heroCredsDrift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80vh;
  }
  @keyframes heroCredsDrift {
    from { transform: translateY(0); opacity: 0.78; }
    to   { transform: translateY(-40px); opacity: 0; }
  }

  /* hero copy fades */
  .hero-h1, .hero-sub, .hero-content .ctas {
    animation: heroFade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 60vh;
  }
  @keyframes heroFade {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(30px); opacity: 0; }
  }

  /* subtle reveal on each section's inner content */
  .doctrine .fold-inner,
  .system .fold-inner,
  .strip-frame,
  .work .fold-inner,
  .ways .fold-inner,
  .method .fold-inner,
  .final .fold-inner {
    animation: sectionRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes sectionRise {
    from { transform: translateY(36px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* card / specimen rise — staggered look via per-item animation-range jitter is browser-limited,
     so use a single subtle rise */
  .specimen-card,
  .work-block,
  .way,
  .step {
    animation: cardRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
  @keyframes cardRise {
    from { transform: translateY(24px); opacity: 0.5; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* doctrine marble — subtle parallax background */
  .doctrine::before {
    animation: marbleParallax linear both;
    animation-timeline: view(root);
    animation-range: entry 0% exit 100%;
  }
  @keyframes marbleParallax {
    from { transform: translateY(-6%) scale(1.05); }
    to   { transform: translateY(6%) scale(1.05); }
  }

  /* final marble — same kind of parallax */
  .final-bg img {
    animation: finalParallax linear both;
    animation-timeline: view(root);
    animation-range: entry 0% exit 100%;
  }
  @keyframes finalParallax {
    from { transform: translateY(-4%) scale(1.08); }
    to   { transform: translateY(4%) scale(1.08); }
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track, .strip-track { animation: none !important; }
}
/* ─── TABLET (≤ 980px) ──────────────────────── */
@media (max-width: 980px) {
  .hero-content { gap: 18px; top: 48%; }
  .hero-wm { width: 80vw; filter: drop-shadow(3px 3px 0 rgba(217,40,26,0.85)); }
  .specimen .wm { width: 130px; }
  .doctrine .fold-inner { grid-template-columns: 1fr; gap: 32px; }
  .doctrine .stack { writing-mode: horizontal-tb; transform: none; border: none; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .doctrine .stack.right { border: none; padding: 0; }
  .system-head { grid-template-columns: 1fr; }
  .system-sub { text-align: left; }
  .cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .card.evidence, .card.field, .card.red, .card.range, .card.night, .card.verde {
    grid-column: span 2; grid-row: span 1;
  }
  .card.evidence { grid-row: span 2; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-block { border-right: 1px solid rgba(241,232,211,0.12); border-bottom: 1px solid rgba(241,232,211,0.12); }
  .ways-grid { grid-template-columns: 1fr; }
  .method-head { grid-template-columns: 1fr; }
  .target-banner { height: clamp(220px, 56vw, 360px); }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--ink); }
  .step:nth-child(2n) { border-right: none; }
  .footer { grid-template-columns: 1fr; }
  .footer .right, .footer .center { text-align: left; }
  .nav-links { display: flex; gap: 16px; font-size: 10px; }
  .nav .corner.right { display: none; }
  .nav-mobile-bm { display: none; }
}

/* ─── PHONE (≤ 640px) ───────────────────────── */
@media (max-width: 640px) {
  /* hero */
  .hero { min-height: 100svh; }
  .hero-content { gap: 14px; top: 50%; transform: translateY(-50%); }
  .hero-wm { width: 88vw; margin-top: 0; margin-bottom: -24px; }
  .hero-creds { order: 0; animation: none !important; animation-timeline: auto !important; animation-range: auto !important; opacity: 0.78 !important; }
  .hero-h1 { font-size: clamp(17px, 4.5vw, 22px); }
  .hero-sub { font-size: 14px; padding: 0 8px; }

  /* provenance / specimen strip — touch-scrollable on phone */
  .strip-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .strip-viewport::-webkit-scrollbar { display: none; }
  .strip-track { animation: none; }

  /* doctrine */
  .doctrine .stack span { font-size: clamp(28px, 9vw, 44px); }
  .doctrine-body h2 { font-size: clamp(28px, 7.5vw, 44px); }

  /* work */
  .work-grid { grid-template-columns: 1fr; }
  .work-block {
    padding: 54px 22px 28px;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(241,232,211,0.12);
  }
  .work-block:last-child { border-bottom: none; }
  .work-block h3 { min-height: auto; }

  /* ways */
  .ways .fold-inner {
    padding-top: clamp(48px, 10vw, 80px);
    padding-bottom: clamp(48px, 10vw, 80px);
  }
  .ways-head { margin-bottom: 36px; }
  .way { padding: 28px 24px 28px; min-height: auto; gap: 16px; }
  .way h3 { min-height: auto; }
  .way p { min-height: auto; }
  .way .btn { width: 100%; text-align: center; justify-content: center; }

  /* method */
  .method-steps { grid-template-columns: 1fr; }
  .step { border-bottom: 1px solid var(--ink); }
  .step:last-child { border-bottom: none; }
  .target-banner { height: clamp(160px, 48vw, 240px); }
  .method-head { gap: 24px; margin-bottom: 36px; }
  .method-head .stamp-block { justify-self: start; text-align: left; }

  /* contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .form-success { padding: 20px 18px 18px; }
  .form-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .form-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* final */
  .final .wm-big { width: 90vw; margin-bottom: 28px; }
  .final h2 { font-size: clamp(34px, 10vw, 56px); }
  .final p { font-size: 15px; padding: 0 4px; }
  .final .fold-inner {
    padding-top: clamp(60px, 14vw, 100px);
    padding-bottom: clamp(40px, 8vw, 80px);
  }

  /* footer */
  .footer { gap: 10px; padding: 18px var(--gutter); }
}
