/* Boscon Space — v3: photography-led, monochrome, neutral grotesk */

:root {
  --bg: #0a0a0b;
  --fg: #f3f3f1;
  --fg-dim: rgba(243, 243, 241, 0.6);
  --fg-mute: rgba(243, 243, 241, 0.36);
  --rule: rgba(243, 243, 241, 0.14);
  --gutter: clamp(20px, 5vw, 72px);
  --head: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
::selection { background: #fff; color: #000; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease);
  mix-blend-mode: difference;
}
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { height: 46px; width: auto; display: block; }
.brand__wm { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; font-weight: 500; color: #fff; position: relative; padding-bottom: 3px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 0; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; top: 18px;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 10px; }
.menu__links a {
  font-family: var(--head); font-weight: 500; font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.03em; line-height: 1.05;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.2s + var(--i, 0) * 0.05s);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { position: absolute; left: var(--gutter); bottom: 32px; font-size: 14px; color: var(--fg-dim); }

/* ---------- Hero ---------- */

.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); }
.hero__frame { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.1); will-change: transform; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0.25) 45%, rgba(10,10,11,0.1) 100%);
}
.hero__text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 16vh, 160px);
  max-width: 1200px;
}
.hero__title {
  font-size: clamp(44px, 8.6vw, 128px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 28px;
}
.hero__lede { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--fg); }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim);
  border-top: 1px solid rgba(243,243,241,0.22); padding-top: 18px;
}
.hero__foot span:nth-child(2) { display: none; }
@media (min-width: 700px) { .hero__foot span:nth-child(2) { display: inline; } }

.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span { display: block; transform: translateY(110%); }
.is-ready .line > span { transition: transform 1.1s var(--ease); }
.line.is-in > span { transform: translateY(0); }

/* ---------- Thesis ---------- */

.thesis { padding: clamp(120px, 22vh, 260px) var(--gutter); }
.thesis__text {
  font-family: var(--head); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 68px);
  letter-spacing: -0.03em; line-height: 1.08;
  max-width: 1200px;
}
.thesis__text .w { opacity: 0.18; transition: none; }

/* ---------- Section header ---------- */

.sec { padding: 0 var(--gutter); margin-bottom: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; border-top: 1px solid var(--rule); padding-top: 28px; }
.sec__title { font-size: clamp(30px, 3.8vw, 54px); max-width: 16ch; }
.sec--tight { border-top-color: rgba(243,243,241,0.22); }

/* ---------- Story ---------- */

.story { padding: clamp(80px, 12vh, 140px) 0 0; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
.story__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.story__img.is-active { opacity: 1; transform: scale(1); }
.story__count { position: absolute; left: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: 0.06em; color: var(--fg); }
.story__steps { padding: 0 var(--gutter) 0 clamp(28px, 5vw, 80px); }
.story__step {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0; max-width: 480px;
  opacity: 0.3; transition: opacity 0.8s var(--ease);
}
.story__step.is-active { opacity: 1; }
.story__step .label { margin-bottom: 22px; }
.story__step h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 20px; }
.story__step p { color: var(--fg-dim); font-size: 16px; line-height: 1.6; }

/* ---------- Platform ---------- */

.platform { padding: clamp(100px, 16vh, 180px) 0; }
.platform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--gutter); align-items: start; }
.ledger { display: flex; flex-direction: column; }
.ledger__row { padding: clamp(28px, 4vh, 44px) 0; border-top: 1px solid var(--rule); }
.ledger__row:last-child { border-bottom: 1px solid var(--rule); }
.ledger__row .label { margin-bottom: 16px; }
.ledger__row h3 { font-size: clamp(32px, 3.6vw, 50px); margin-bottom: 14px; transition: color 0.5s; }
.ledger__row:not(.is-active) h3 { color: var(--fg-mute); }
.ledger__row p { color: var(--fg-dim); max-width: 440px; font-size: 16px; line-height: 1.6; }
.ledger__mimg { display: none; }
.ledger__media { position: sticky; top: 80px; }
.ledger__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 120px); overflow: hidden; background: #000; }
.ledger__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.ledger__frame img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Missions ---------- */

.missions { padding: clamp(100px, 16vh, 180px) 0; }
.missions__grid {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule); border-left: 0; border-right: 0;
}
.missions__grid li {
  position: relative; overflow: hidden; background: var(--bg);
  padding: 28px 24px 36px; min-height: 300px; display: flex; flex-direction: column;
}
.missions__grid li img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.8s var(--ease), transform 1.6s var(--ease);
}
.missions__grid li:hover img { opacity: 0.45; transform: scale(1); }
.missions__grid li > * { position: relative; }
.missions__grid li .label { margin-bottom: auto; }
.missions__grid h3 { font-size: clamp(24px, 2.3vw, 32px); margin: 48px 0 12px; }
.missions__grid p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; max-width: 320px; min-height: 4.8em; }

/* ---------- Progress ---------- */

.progress { position: relative; overflow: hidden; }
.progress__media { position: absolute; inset: -12% 0; }
.progress__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.progress::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.82) 50%, rgba(10,10,11,0.3) 100%),
              linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,11,0) 18%, rgba(10,10,11,0) 82%, var(--bg) 100%);
}
.progress__inner { position: relative; z-index: 2; padding: clamp(100px, 16vh, 180px) 0; }
.timeline { list-style: none; margin: 0; padding: 0 var(--gutter); max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--gutter) + 4px); top: 0; bottom: 0; width: 1px; background: var(--rule); }
.timeline__line { position: absolute; left: calc(var(--gutter) + 4px); top: 0; width: 1px; height: 100%; background: var(--fg); transform: scaleY(0); transform-origin: top; }
.timeline__item { position: relative; padding: 0 0 clamp(40px, 7vh, 72px) 44px; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--fg-mute);
}
.timeline__item.is-now::before { background: var(--fg); border-color: var(--fg); }
.timeline__item .label { margin-bottom: 10px; }
.timeline__item.is-now .label { color: var(--fg); }
.timeline__item h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 12px; }
.timeline__item p { color: var(--fg-dim); font-size: 16px; line-height: 1.6; max-width: 500px; }

/* ---------- Contact ---------- */

.contact { position: relative; min-height: 90svh; display: flex; align-items: flex-end; overflow: hidden; }
.contact__media { position: absolute; inset: -12% 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; will-change: transform; }
.contact__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.4) 50%, var(--bg) 100%);
}
.contact__inner { position: relative; padding: 180px var(--gutter) 90px; width: 100%; }
.contact__inner .label { margin-bottom: 22px; }
.contact__title { font-size: clamp(56px, 11vw, 160px); letter-spacing: -0.04em; margin-bottom: 36px; }
.contact__mail {
  display: inline-block;
  font-family: var(--head); font-weight: 500;
  font-size: clamp(20px, 3vw, 40px); letter-spacing: -0.02em;
  border-bottom: 1px solid var(--fg); padding-bottom: 6px;
  transition: opacity 0.4s; word-break: break-all;
}
.contact__mail:hover { opacity: 0.6; }

/* ---------- Footer ---------- */

.foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--fg-dim);
}
.foot a:hover { color: var(--fg); }

/* ---------- Reveal ---------- */

.rv { opacity: 0; transform: translateY(20px); }
.is-ready .rv { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav { padding: 18px var(--gutter); }
  .brand__mark { height: 40px; }
  .brand__wm { height: 30px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .sec { grid-template-columns: 1fr; gap: 14px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { height: 56svh; }
  .story__steps { padding: 0 var(--gutter); background: var(--bg); position: relative; }
  .story__step { min-height: 0; padding: 44px 0; opacity: 1; max-width: none; border-top: 1px solid var(--rule); }
  .platform__grid { grid-template-columns: 1fr; }
  .ledger__media { display: none; }
  .ledger__mimg { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 24px; }
  .ledger__row:not(.is-active) h3 { color: var(--fg); }
  .missions__grid { grid-template-columns: 1fr 1fr; }
  .missions__grid li { min-height: 220px; padding: 20px 18px 26px; }
  .missions__grid h3 { margin-top: 32px; }
  .missions__grid li img { opacity: 0.22; transform: none; }
  .contact__media img { object-position: 50% 78%; }
  .contact { min-height: 80svh; }
}
@media (max-width: 560px) {
  .missions__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 13.5vw; }
  .hero__text { bottom: 110px; }
  .hero__foot span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .line > span { transform: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .thesis__text .w { opacity: 1 !important; }
  .hero__img { transform: none !important; }
}
