@import url("./tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Yuji+Boku&family=Yuji+Mai&family=Shippori+Mincho:wght@400;500;600&display=swap");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

:root {
  /* Tone defaults — overridden by data-tone */
  --scene-bg-1: #0a0d0b;
  --scene-bg-2: #14181a;
  --scene-bg-3: #1c2326;
  --scene-fog: #c9d4d0;
  --scene-ink: #0a0c0b;
  --scene-mountain-1: #2a3537;
  --scene-mountain-2: #1c2528;
  --scene-mountain-3: #11171a;
  --scene-water-hi: #2a3438;
  --scene-water-lo: #0e1416;
  --scene-text: #e8e3d6;
  --scene-text-soft: #a8a194;
  --scene-accent: #b89760;
  --scene-rule: rgba(232, 227, 214, 0.18);
}

/* Photo — cinematic torii reference image */
[data-tone="photo"] {
  --scene-bg-1: #cfd0c8;
  --scene-bg-2: #dcdcd2;
  --scene-bg-3: #ebe9dd;
  --scene-fog: #f4f1e5;
  --scene-mountain-1: #9a9a8b;
  --scene-mountain-2: #7d7c6e;
  --scene-mountain-3: #555447;
  --scene-water-hi: #c8c8be;
  --scene-water-lo: #9c9a8d;
  --scene-text: #1f1d18;
  --scene-text-soft: #4a453d;
  --scene-accent: #8c3a1f;
  --scene-rule: rgba(26, 24, 21, 0.22);
}

/* Dawn (default) — pre-dawn cool with subtle warm horizon */
[data-tone="dawn"] {
  --scene-bg-1: #0c1012;
  --scene-bg-2: #1a2024;
  --scene-bg-3: #2a3236;
  --scene-fog: #d8ddd6;
  --scene-mountain-1: #2c3839;
  --scene-mountain-2: #1d2629;
  --scene-mountain-3: #121819;
  --scene-water-hi: #2e3a3d;
  --scene-water-lo: #0e1416;
  --scene-text: #ece6d8;
  --scene-text-soft: #b0a99c;
  --scene-accent: #c0a06a;
}

/* Forest — deep green tones, post-rain */
[data-tone="forest"] {
  --scene-bg-1: #0a0f0c;
  --scene-bg-2: #161e1a;
  --scene-bg-3: #1f2925;
  --scene-fog: #c8d2cb;
  --scene-mountain-1: #233029;
  --scene-mountain-2: #16201b;
  --scene-mountain-3: #0c1310;
  --scene-water-hi: #233129;
  --scene-water-lo: #0a110e;
  --scene-text: #e8e3d4;
  --scene-text-soft: #a8a294;
  --scene-accent: #b29260;
}

/* Ivory — daylight, warm paper */
[data-tone="ivory"] {
  --scene-bg-1: #ece5d4;
  --scene-bg-2: #e0d8c5;
  --scene-bg-3: #d4ccb8;
  --scene-fog: #f0eadd;
  --scene-mountain-1: #8e8674;
  --scene-mountain-2: #645e51;
  --scene-mountain-3: #3a3630;
  --scene-water-hi: #b8b09c;
  --scene-water-lo: #8a8472;
  --scene-text: #1a1815;
  --scene-text-soft: #4a453d;
  --scene-accent: #8c3a1f;
  --scene-rule: rgba(26, 24, 21, 0.18);
}

/* Charcoal — deep black night */
[data-tone="charcoal"] {
  --scene-bg-1: #050606;
  --scene-bg-2: #0c0f10;
  --scene-bg-3: #161c1e;
  --scene-fog: #b8c1bd;
  --scene-mountain-1: #1c2426;
  --scene-mountain-2: #10161a;
  --scene-mountain-3: #06090b;
  --scene-water-hi: #1a2225;
  --scene-water-lo: #06090a;
  --scene-text: #e0dac8;
  --scene-text-soft: #948c7e;
  --scene-accent: #9a7d4e;
}

body {
  font-family: var(--font-sans);
  color: var(--scene-text);
  background: var(--scene-bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

#root {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Hero section — contains the photo scene + overlay */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--scene-bg-1);
  transition: background 1.2s var(--ease-quiet);
}

/* ====== Scene container ====== */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% 35%, var(--scene-bg-3) 0%, var(--scene-bg-2) 35%, var(--scene-bg-1) 80%);
  transition: background 1.2s var(--ease-quiet);
}
/* Photo background — cinematic reference */
.scene__photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/torii-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 1s var(--ease-quiet);
  /* Slow parallax breathing */
  animation: photo-breathe 32s ease-in-out infinite alternate;
}
@keyframes photo-breathe {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-0.6%, -0.4%, 0); }
}

/* Canvas-rendered photo (draws image pixels onto a canvas so the iframe
   capture sees actual pixel data, not a URL reference). */
.scene__photo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  transform-origin: center center;
  animation: photo-breathe 32s ease-in-out infinite alternate;
}

/* Hide SVG layers when in photo mode — the photo carries everything */
[data-tone="photo"] .scene__mountains-far,
[data-tone="photo"] .scene__mountains-mid,
[data-tone="photo"] .scene__mountains-near,
[data-tone="photo"] .scene__layer.scene__torii,
[data-tone="photo"] .scene__reflection,
[data-tone="photo"] .scene__water,
[data-tone="photo"] .scene__foliage,
[data-tone="photo"] .scene__layer .torii-svg,
[data-tone="photo"] .scene__torii-only { display: none !important; }
/* Hide the photo when in synthetic SVG modes */
.scene__photo { display: block; }
html:not([data-tone="photo"]) .scene__photo { display: none; }

.scene__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene__layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Distant mountains — far parallax */
.scene__mountains-far {
  opacity: 0.55;
  animation: drift-far 60s ease-in-out infinite alternate;
}
.scene__mountains-mid {
  opacity: 0.78;
  animation: drift-mid 80s ease-in-out infinite alternate;
}
.scene__mountains-near {
  opacity: 1;
}

@keyframes drift-far {
  0%   { transform: translate3d(-1.2%, 0, 0); }
  100% { transform: translate3d(1.2%, 0, 0); }
}
@keyframes drift-mid {
  0%   { transform: translate3d(0.6%, 0, 0); }
  100% { transform: translate3d(-0.6%, 0, 0); }
}

/* Fog bands — slow horizontal drift, multiple layers */
.fog {
  position: absolute;
  width: 220%;
  left: -60%;
  pointer-events: none;
  mix-blend-mode: screen;
}
[data-tone="ivory"] .fog { mix-blend-mode: multiply; opacity: 0.55 !important; }

.fog--low {
  bottom: 18%;
  height: 38%;
  background: radial-gradient(ellipse 50% 100% at 30% 50%, color-mix(in srgb, var(--scene-fog) 38%, transparent) 0%, transparent 70%),
              radial-gradient(ellipse 60% 100% at 70% 60%, color-mix(in srgb, var(--scene-fog) 32%, transparent) 0%, transparent 70%);
  filter: blur(28px);
  animation: fog-drift-1 48s linear infinite;
  opacity: 0.85;
}
.fog--mid {
  bottom: 32%;
  height: 28%;
  background: radial-gradient(ellipse 40% 100% at 50% 50%, color-mix(in srgb, var(--scene-fog) 28%, transparent) 0%, transparent 75%),
              radial-gradient(ellipse 30% 100% at 15% 60%, color-mix(in srgb, var(--scene-fog) 22%, transparent) 0%, transparent 70%),
              radial-gradient(ellipse 35% 100% at 85% 40%, color-mix(in srgb, var(--scene-fog) 22%, transparent) 0%, transparent 70%);
  filter: blur(22px);
  animation: fog-drift-2 72s linear infinite reverse;
  opacity: 0.7;
}
.fog--high {
  top: 18%;
  height: 32%;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, color-mix(in srgb, var(--scene-fog) 18%, transparent) 0%, transparent 75%);
  filter: blur(36px);
  animation: fog-drift-3 96s linear infinite;
  opacity: 0.6;
}

@keyframes fog-drift-1 {
  from { transform: translateX(-12%); }
  to   { transform: translateX(8%); }
}
@keyframes fog-drift-2 {
  from { transform: translateX(8%); }
  to   { transform: translateX(-12%); }
}
@keyframes fog-drift-3 {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

/* Foliage — top-corner pine branch silhouette */
.scene__foliage {
  position: absolute;
  top: -2%;
  right: -2%;
  width: 38%;
  max-width: 620px;
  opacity: 0.78;
  pointer-events: none;
  transform-origin: 100% 0%;
  animation: sway 14s ease-in-out infinite alternate;
}
.scene__foliage--left {
  top: auto;
  bottom: 22%;
  right: auto;
  left: -4%;
  width: 28%;
  max-width: 440px;
  opacity: 0.65;
  transform-origin: 0% 100%;
  animation: sway-left 18s ease-in-out infinite alternate;
}
@keyframes sway {
  0%   { transform: rotate(-0.6deg) translateY(0); }
  100% { transform: rotate(0.6deg) translateY(-4px); }
}
@keyframes sway-left {
  0%   { transform: rotate(0.4deg) translateY(0); }
  100% { transform: rotate(-0.4deg) translateY(3px); }
}

/* Water reflection container — flipped torii ghost */
.scene__reflection {
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  height: 32%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.32;
}
.scene__reflection-inner {
  position: absolute;
  inset: 0;
  transform: scaleY(-1);
  transform-origin: top center;
  filter: blur(1px);
}
.scene__reflection-inner svg { width: 100%; height: 100%; }
.scene__reflection::after {
  /* horizontal ripple bands */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 6px,
    var(--scene-water-lo) 7px,
    var(--scene-water-lo) 8px
  );
  opacity: 0.55;
  animation: ripple 9s linear infinite;
  mix-blend-mode: multiply;
}
@keyframes ripple {
  0%   { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

/* Water surface gradient — sits over reflection */
.scene__water {
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  bottom: 0;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--scene-water-hi) 30%, transparent) 0%,
      color-mix(in srgb, var(--scene-water-hi) 50%, transparent) 8%,
      color-mix(in srgb, var(--scene-water-lo) 70%, transparent) 40%,
      var(--scene-water-lo) 100%);
  pointer-events: none;
}

/* Vignette + paper grain */
.scene__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, color-mix(in srgb, var(--scene-bg-1) 70%, transparent) 100%);
  pointer-events: none;
}
[data-tone="photo"] .scene__vignette {
  /* Soften the top + bottom edges of the photo for text legibility */
  background:
    linear-gradient(to bottom, rgba(244, 241, 229, 0.35) 0%, transparent 18%, transparent 70%, rgba(244, 241, 229, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 75% 60%, rgba(244, 241, 229, 0.18) 0%, transparent 70%);
}

/* ====== Content overlay ====== */
.overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px 56px 32px;
}

/* Top bar — minimal */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.topbar__mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__enso {
  width: 26px; height: 26px;
  background-image: url("../assets/enso-light.png");
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0.95);
}
[data-tone="ivory"] .topbar__enso,
[data-tone="photo"] .topbar__enso {
  background-image: url("../assets/enso.png");
  filter: none;
}
.topbar__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--scene-text);
  letter-spacing: 0.02em;
}
.topbar__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
  white-space: nowrap;
}

/* Center stage — main wordmark */
.stage {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  position: relative;
  padding-bottom: 12vh;
}

/* When photo bg is active, anchor the wordmark to the right half
   so it doesn't fight the torii on the left of the image. */
[data-tone="photo"] .stage {
  align-items: end;
  padding-bottom: 14vh;
}
/* In photo mode, lift the vertical calligraphy into the upper-right
   so it shares no horizontal band with the wordmark below it. */
[data-tone="photo"] .calligraphy-wrap {
  top: 38%;
  right: 6vw;
}
[data-tone="photo"] .calligraphy {
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.12;
}
[data-tone="photo"] .calligraphy__seal {
  width: 18px;
  height: 18px;
}
/* Romaji label is redundant with the bottom-center caption — hide it
   in photo mode so the wrap stays narrow and never touches the wordmark. */
[data-tone="photo"] .calligraphy__romaji {
  display: none;
}
[data-tone="photo"] .stage[data-cal="side"] .stage__main,
[data-tone="photo"] .stage__main {
  align-items: flex-end;
  text-align: right;
  padding-right: 14vw;
  padding-left: 0;
  margin-right: 0;
  gap: 18px;
  /* Reserve space below the vertical calligraphy column so the wordmark
     never crashes into it on mid-width viewports. */
  margin-top: clamp(160px, 28vh, 320px);
}
[data-tone="photo"] .stage__wordmark {
  font-size: clamp(28px, 4.2vw, 64px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  max-width: calc(100vw - 18vw);
}
[data-tone="photo"] .stage__rule {
  align-self: flex-end;
  width: 48px;
}
[data-tone="photo"] .stage__subtitle {
  text-align: right;
}

.stage__main {
  text-align: center;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.stage__enso-large {
  display: none;
}

.stage__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 7.6vw, 124px);
  letter-spacing: 0.36em;
  line-height: 1;
  color: var(--scene-text);
  text-indent: 0.36em; /* compensate trailing tracking */
  white-space: nowrap;
}

.stage__rule {
  width: 64px;
  height: 1px;
  background: var(--scene-rule);
}

.stage__subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
  text-indent: 0.5em;
}

/* Vertical Japanese calligraphy */
.calligraphy-wrap {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.calligraphy {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Yuji Boku", "Shippori Mincho", serif;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.16;
  color: var(--scene-text);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 28px rgba(0,0,0,0.55);
  /* Sized to its content — chars stack top-to-bottom in one column */
  height: auto;
  width: auto;
}
.calligraphy--alt {
  font-family: "Yuji Mai", "Shippori Mincho", serif;
  font-weight: 500;
}
.calligraphy--mincho {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  letter-spacing: 0.10em;
}
[data-tone="ivory"] .calligraphy { text-shadow: none; }

.calligraphy__seal {
  width: 26px;
  height: 26px;
  background: var(--scene-accent);
  opacity: 0.85;
}

.calligraphy__romaji {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
  text-indent: 0.42em;
}

/* Bottom row — caption + meta */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.bottom__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
  max-width: 280px;
  line-height: 1.8;
}
.bottom__caption .accent {
  color: var(--scene-accent);
}
.bottom__center {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
}
.bottom__right {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
}
.bottom__right .endorsement {
  display: block;
  margin-top: 4px;
  color: var(--scene-text-soft);
  opacity: 0.7;
  letter-spacing: 0.22em;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: none;
  font-style: italic;
}

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

/* When stage has both wordmark and side calligraphy, push wordmark left a bit */
.stage[data-cal="side"] .stage__main {
  align-items: center;
  margin-right: 12vw;
}

/* Mobile */
@media (max-width: 800px) {
  .overlay { padding: 18px 22px 22px; }
  .topbar__name { font-size: 14px; }
  .stage__wordmark { font-size: 44px; letter-spacing: 0.24em; text-indent: 0.24em; }
  .stage__enso-large { width: 56px; height: 56px; }
  .stage[data-cal="side"] .stage__main { margin-right: 0; }
  .calligraphy-wrap { right: 16px; transform: translateY(-50%) scale(0.7); transform-origin: 100% 50%; }
  .scene__foliage { width: 60%; }
  .scene__foliage--left { width: 48%; }
  .bottom { font-size: 8px; }
  .bottom__caption { max-width: 50%; }
  .bottom__center { display: none; }
}

/* When calligraphy is centered with wordmark instead of side-anchored */
.stage[data-cal="center"] .calligraphy-wrap { display: none; }
.stage[data-cal="hidden"] .calligraphy-wrap { display: none; }

/* ===== Tweaks panel position override — bottom-right is good */
[data-cc-id="tweaks-root"] { z-index: 100; }

/* ============================================================================
   Page below the hero — paper canvas
   ============================================================================ */

.lp-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.lp-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}

.lp-section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

/* Pillars heading is longer copy — scale type down and widen the measure
   so it fits the 2fr column without crowding. */
.lp-pillars__head .lp-section__title {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  max-width: 30ch;
}

/* Container — matches existing system */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ─── Topbar nav (anchored to hero) ─────────────────────────────────────── */
.topbar__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.topbar__nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--scene-text-soft);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color var(--dur-base) var(--ease-quiet), border-color var(--dur-base) var(--ease-quiet);
}
.topbar__nav a:hover {
  color: var(--scene-text);
  border-bottom-color: var(--scene-text);
}

/* ─── Reveal-on-scroll ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1100ms var(--ease-quiet),
    transform 1100ms var(--ease-quiet);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal[data-revealed="1"] {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── Scroll cue (bottom of hero) ───────────────────────────────────────── */
.scroll-cue {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--scene-text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, currentColor);
  animation: scroll-cue-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.45; transform: scaleY(1); }
  50%      { opacity: 1;    transform: scaleY(1.25); }
}
.scroll-cue:hover { color: var(--scene-text); }

/* Bottom row of hero — left caption / center calligraphy gloss / right scroll cue */
.bottom { color: var(--scene-text-soft); }
.bottom__right { /* legacy slot kept for safety; not rendered now */ }

/* ============================================================================
   Sections (on paper) — generous breathing, hairline dividers
   ============================================================================ */

.lp-intro,
.lp-pillars,
.lp-letter,
.lp-group,
.lp-contact {
  background: var(--paper);
  color: var(--ink-2);
  position: relative;
  scroll-margin-top: 32px;
}
.lp-intro    { padding: 144px 0 120px; }
.lp-pillars  { padding: 128px 0; border-top: 1px solid var(--rule); }
.lp-letter   { padding: 144px 0 144px; background: var(--paper-2); border-top: 1px solid var(--rule); }
.lp-group    { padding: 128px 0; border-top: 1px solid var(--rule); background: var(--paper); }
.lp-contact  { padding: 144px 0 128px; border-top: 1px solid var(--rule); }

/* ─── Intro ─────────────────────────────────────────────────────────────── */
.lp-intro__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.lp-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}
.lp-intro__stamp { letter-spacing: 0.16em; }
.lp-intro__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.lp-intro__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
/* Intro — push lede below title cleanly */
.lp-intro__lede {
  margin-top: 40px;
  display: block;
}
.lp-intro__lede p {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 36ch;
  margin: 0;
}

/* ─── Pillars ───────────────────────────────────────────────────────────── */
.lp-pillars__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.lp-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.lp-pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.lp-pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.lp-pillar__name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.lp-pillar__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 38ch;
  text-wrap: pretty;
}

/* ─── Letter excerpt ────────────────────────────────────────────────────── */
.lp-letter__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
  letter-spacing: 0.14em;
}
.lp-letter__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 48px;
}
.lp-letter__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lp-letter__body p {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.lp-letter__body p.lp-letter__lede {
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--ink);
  line-height: 1.5;
}
.lp-letter__signature {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-letter__signature small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  font-style: normal;
  text-transform: uppercase;
}

/* ─── Inside the group ──────────────────────────────────────────────────── */
.lp-group__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}
.lp-group__list {
  display: flex;
  flex-direction: column;
}
.lp-group__row {
  display: grid;
  grid-template-columns: 64px 1.2fr 200px 2fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.lp-group__row:last-child {
  border-bottom: 1px solid var(--rule);
}
.lp-group__mark {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.lp-group__mark svg {
  width: 40px;
  height: 40px;
}
.lp-group__name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lp-group__about {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  padding-top: 8px;
  max-width: 44ch;
}
.lp-group__sector {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 14px;
  text-wrap: balance;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-group__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  opacity: 0.7;
}
.lp-group__note {
  margin-top: 56px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-4);
  max-width: 56ch;
}

/* ─── Contact ───────────────────────────────────────────────────────────── */
.lp-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}
.lp-contact__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 20px 0 28px;
  max-width: 14ch;
}
.lp-contact__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 38ch;
  margin: 0;
}
.lp-contact__direct {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.lp-contact__email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: border-color var(--dur-base) var(--ease-quiet);
  text-decoration: none;
}
.lp-contact__email:hover { border-bottom-color: var(--ink); }

/* Form */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lp-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-form__row label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.lp-form__row input,
.lp-form__row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-quiet);
}
.lp-form__row input:focus,
.lp-form__row textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.lp-form__row input::placeholder,
.lp-form__row textarea::placeholder { color: var(--ink-4); }
.lp-form__row textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.lp-form__actions { margin-top: 12px; }

.btn-cta {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-quiet), transform var(--dur-base) var(--ease-quiet);
}
.btn-cta:hover { background: var(--ink-deep); }
.btn-cta:active { opacity: 0.85; }
.btn-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.lp-contact__sent {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-contact__sent small {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ─── Page footer ───────────────────────────────────────────────────────── */
.lp-pagefoot {
  background: var(--ink-deep);
  color: var(--paper-on-ink);
  padding: 48px 0 40px;
}
.lp-pagefoot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.lp-pagefoot__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--paper-on-ink);
  white-space: nowrap;
}
.lp-pagefoot__enso {
  width: 22px;
  height: 22px;
  background-image: url("../assets/enso-light.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.92;
}
.lp-pagefoot__meta,
.lp-pagefoot__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(237, 233, 223, 0.65);
}
.lp-pagefoot__meta { display: flex; gap: 8px; align-items: center; }

/* ============================================================================
   Mobile (≤ 800)
   ============================================================================ */
@media (max-width: 800px) {
  .container, .container-narrow { padding: 0 22px; }

  .topbar__nav { gap: 18px; }
  .topbar__nav a { font-size: 11px; letter-spacing: 0.14em; }

  .lp-intro, .lp-pillars, .lp-letter, .lp-group, .lp-contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .lp-intro__grid,
  .lp-pillars__head,
  .lp-group__head { grid-template-columns: 1fr; gap: 32px; }

  .lp-pillars__head { margin-bottom: 48px; }
  .lp-pillars__grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-pillar__name { font-size: 30px; }

  .lp-letter__title { margin-bottom: 32px; }
  .lp-letter__signature { margin-top: 32px; }

  .lp-group__row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "mark name"
      ".    sector"
      ".    about";
    gap: 16px;
    padding: 28px 0;
  }
  .lp-group__mark   { grid-area: mark; }
  .lp-group__name   { grid-area: name; font-size: 28px; }
  .lp-group__sector { grid-area: sector; padding-top: 6px; }
  .lp-group__about  { grid-area: about; padding-top: 6px; }

  .lp-contact__grid { grid-template-columns: 1fr; gap: 64px; }
  .lp-contact__title { margin-top: 16px; }
  .lp-contact__direct { margin-top: 36px; }

  .lp-pagefoot__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lp-pagefoot { padding: 36px 0 32px; }

  /* Hide hero scroll cue + center caption on mobile */
  .scroll-cue { display: none; }
  .topbar__nav { display: none; }
}
