/* ============ reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--bronze); color: var(--obsidian); }
:focus-visible { outline: 1px solid var(--bronze-hi); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ type ============ */
.display, .h-xl, .h-l, .h-m { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.015em; line-height: 0.92; }
.display { font-size: var(--t-mega); letter-spacing: -0.03em; line-height: 0.86; }
.h-xl { font-size: var(--t-xl); }
.h-l { font-size: var(--t-l); line-height: 0.98; }
.h-m { font-size: var(--t-m); line-height: 1.08; }
em, .it { font-style: italic; font-weight: 300; }
.accent { color: var(--bronze-hi); }
.is-paper .accent { color: var(--bronze-lo); }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.42rem); line-height: 1.55; font-weight: 300; color: var(--fg-2); max-width: 40ch; }
.body-copy { color: var(--fg-2); max-width: 58ch; }
.mono, .eyebrow, .tag {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.5;
}
.eyebrow { color: var(--fg-2); display: inline-flex; gap: 0.9em; align-items: center; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.no-rule::before { display: none; }
.num { font-variant-numeric: tabular-nums; }

/* ============ layout ============ */
.wrap { padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 14vw, 220px); }
.section--tight { padding-block: clamp(64px, 8vw, 128px); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack > * + * { margin-top: var(--s, 1.25rem); }

/* ============ demo ribbon ============ */
.demo-ribbon {
  position: fixed; z-index: 90; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(20, 17, 15, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--fg-2); white-space: nowrap; max-width: calc(100vw - 32px);
}
.demo-ribbon b { color: var(--bronze-hi); font-weight: 400; }
.demo-ribbon a { text-decoration: underline; text-underline-offset: 3px; }
.demo-ribbon button { color: var(--fg-3); font-size: 14px; line-height: 1; padding-left: 4px; }
@media (max-width: 640px) { .demo-ribbon .long { display: none; } }

/* ============ header ============ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter); color: var(--lime);
  transition: transform 0.7s var(--ease), background 0.5s, color 0.4s;
  mix-blend-mode: normal;
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-solid { background: linear-gradient(rgba(20, 17, 15, 0.86), rgba(20, 17, 15, 0)); }
.hdr__logo { display: flex; align-items: center; gap: 12px; }
.wordmark { font-family: var(--f-display); font-weight: 400; font-size: 21px; letter-spacing: 0.42em; padding-left: 0.42em; line-height: 1; }
.wordmark small { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.5em; margin-top: 5px; color: var(--fg-2); text-align: center; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.hdr__nav a { position: relative; padding-block: 6px; color: rgba(244, 241, 236, 0.78); transition: color 0.3s; }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--lime); }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze-hi); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__right { display: flex; align-items: center; gap: 14px; }
.burger { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.burger i { display: block; width: 16px; height: 1px; background: currentColor; box-shadow: 0 5px 0 currentColor; transform: translateY(-2.5px); transition: transform 0.5s var(--ease), box-shadow 0.3s; }
.menu-open .burger i { transform: rotate(45deg); box-shadow: 0 0 0 transparent; }
.menu-open .burger i::after { content: ''; display: block; width: 16px; height: 1px; background: currentColor; transform: rotate(-90deg); }
@media (max-width: 1020px) { .hdr__nav, .hdr__right .btn { display: none; } }

/* ============ menu overlay ============ */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--lime);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; padding: calc(var(--header-h) + 4vh) var(--gutter) 6vh;
  gap: 4vw;
}
.menu__list a { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1.04; }
.menu__list a span.mono { color: var(--fg-3); min-width: 2.6em; }
.menu__list a:hover em { color: var(--bronze-hi); }
.menu__list li { overflow: hidden; }
.menu__aside { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; color: var(--fg-2); }
.menu__aside a:hover { color: var(--lime); }
.menu__projects a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .menu { grid-template-columns: 1fr; overflow-y: auto; } .menu__aside { justify-content: flex-start; } }

/* ============ buttons ============ */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 24px; border-radius: 99px;
  border: 1px solid var(--line-2); overflow: hidden; isolation: isolate;
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.5s var(--ease), border-color 0.5s;
  white-space: nowrap;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bronze); transform: translateY(101%); border-radius: inherit; transition: transform 0.6s var(--ease); }
.btn:hover { color: var(--obsidian); border-color: var(--bronze); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--lime); color: var(--obsidian); border-color: var(--lime); }
.btn--solid::before { background: var(--bronze-hi); }
.is-paper .btn--solid { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.is-paper .btn--solid:hover { color: var(--ink); }
.btn--bronze { background: var(--bronze); color: var(--obsidian); border-color: var(--bronze); }
.btn--bronze::before { background: var(--lime); }
.btn--sm { --h: 38px; padding: 0 16px; }
.btn .arr { display: inline-block; transition: transform 0.6s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 0.6s var(--ease); }
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg-2); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--selling { color: var(--bronze-hi); border-color: rgba(212, 179, 124, 0.45); }
.tag--concept { color: var(--champagne); }
.tag--completed { color: var(--fg-2); }
.validate-flag { display: inline-flex; gap: 6px; align-items: center; color: var(--bronze-hi); cursor: help; }
.validate-flag::before { content: '◇'; }

/* ============ loader ============ */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--obsidian); display: grid; place-items: center; color: var(--lime); }
.loader__inner { width: min(560px, 82vw); }
.loader__word { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 6.2vw, 3.6rem); letter-spacing: 0.28em; text-align: center; overflow: hidden; line-height: 1.1; padding-left: 0.28em; white-space: nowrap; }
.loader__word span { display: inline-block; }
.loader__bar { height: 1px; background: var(--line); margin-top: 28px; position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--bronze-hi); transform-origin: left; transform: scaleX(0); }
.loader__meta { display: flex; justify-content: space-between; margin-top: 12px; color: var(--fg-3); }

/* ============ page transition ============ */
.curtain { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); }
.curtain i { background: var(--night); transform: scaleY(0); transform-origin: bottom; border-right: 1px solid rgba(180, 146, 90, 0.12); }
.curtain__label { position: fixed; inset: 0; z-index: 81; pointer-events: none; display: grid; place-items: center; opacity: 0; }
.curtain__label b { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(2.6rem, 7vw, 6rem); color: var(--lime); }
.curtain__label small { display: block; text-align: center; color: var(--bronze-hi); margin-top: 8px; }

/* ============ cursor ============ */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); mix-blend-mode: difference; transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s; }
.cursor__label { position: fixed; left: 0; top: 0; z-index: 96; pointer-events: none; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--obsidian); scale: 0; transition: scale 0.5s var(--ease); text-align: center; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--lime); }
.cursor__label.is-on { scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor__label { display: none; } }

/* ============ reveal primitives ============ */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: block; will-change: transform; }
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }
.img-reveal { overflow: hidden; position: relative; }
.img-reveal img, .img-reveal video { width: 100%; height: 100%; object-fit: cover; }

/* ============ footer ============ */
.ftr { position: relative; background: var(--night); padding: clamp(80px, 10vw, 160px) var(--gutter) 90px; overflow: hidden; }
.ftr__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 48px; }
.ftr__cols h4 { color: var(--fg-3); margin-bottom: 16px; }
.ftr__cols li { margin-bottom: 8px; color: var(--fg-2); }
.ftr__cols a:hover { color: var(--lime); }
.ftr__giant { font-family: var(--f-display); font-weight: 300; font-size: 17.5vw; letter-spacing: 0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(180, 146, 90, 0.32); margin-top: 72px; white-space: nowrap; user-select: none; text-align: center; }
.ftr__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; color: var(--fg-3); }
@media (max-width: 800px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
