:root {
  --bg: #202020;
  --bg-deep: #1a1a1a;
  --ink: #f1f4ea;
  --muted: #aaa9a3;
  --line: rgba(241, 244, 234, 0.2);
  --lime: #b6f53b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 400; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }

.loading { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #0e0f13; color: var(--ink); letter-spacing: .14em; font-size: .72rem; transition: opacity .6s ease, visibility .6s ease; }
.loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { display: flex; align-items: center; gap: 8px; animation: loading-pulse 1.1s ease-in-out infinite; }
.loading-dots { width: 25px; height: 5px; background: radial-gradient(circle, var(--lime) 1.8px, transparent 2px) 0 50% / 8px 8px repeat-x; animation: dots-slide 1s linear infinite; }
@keyframes loading-pulse { 50% { opacity: .42; } }
@keyframes dots-slide { to { background-position-x: 8px; } }
main { overflow: clip; }
.scene-shell { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); transition: background .7s ease; }
.scene-shell.is-works { background: #0d0e12; }
.scene-shell canvas { width: 100%; height: 100%; display: block; pointer-events: auto; touch-action: pan-y; cursor: grab; }
.scene-shell.is-dragging canvas { cursor: grabbing; }
.scene-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32,32,32,.02), rgba(32,32,32,0) 48%, rgba(32,32,32,.05)), linear-gradient(0deg, rgba(0,0,0,.05), transparent 35%, rgba(0,0,0,.02)); transition: background .7s ease; }
.scene-shell.is-works .scene-vignette { background: rgba(5,7,10,.68); }
.hero, .timeline-section, .works-section, .footer { position: relative; z-index: 1; pointer-events: none; }
.hero a, .hero button, .work-card a, .work-card button { pointer-events: auto; }
.hero { min-height: 100svh; padding: 28px 4.2vw 30px; display: flex; flex-direction: column; }
.rule-row { display: flex; justify-content: space-between; align-items: center; letter-spacing: .24em; text-transform: uppercase; font-size: .65rem; color: var(--muted); }
.hero-top { min-height: 50px; border-bottom: 1px solid var(--line); }
.hero-layout { flex: 1; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(450px, 1.35fr); align-items: center; width: 100%; margin: 0; }
.hero-copy { position: relative; z-index: 2; max-width: 660px; padding-left: 0; transform: translateY(2.5vh); }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(5.2rem, 9.45vw, 9.5rem); font-weight: 400; line-height: .82; letter-spacing: -.035em; }
.intro { max-width: 360px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; }
.contact-row { display: flex; gap: 12px; margin: 32px 0 38px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(241, 244, 234, .45); border-radius: 50%; background: transparent; transition: .25s ease; }
.icon-button:hover, .icon-button:focus-visible { color: var(--bg); background: var(--ink); transform: translateY(-3px); outline: none; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: .75rem; letter-spacing: .15em; }
.mouse { width: 15px; height: 25px; border: 1px solid var(--ink); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 50% { opacity: .2; transform: translate(-50%, 5px); } }
.hero-bottom { min-height: 50px; border-top: 1px solid var(--line); }
.vertical-word { writing-mode: vertical-rl; letter-spacing: .4em; }

.timeline-section { padding: 0 0 0 0; margin-top: -28vh; border-top: 0; }
.timeline-section > .section-label { position: absolute; top: 30vh; left: 8vw; }
.section-label { color: var(--muted); letter-spacing: .23em; text-transform: uppercase; font-size: .72rem; }
.timeline-list { width: min(420px, 86cqw); margin: 0 max(20px, 4.2vw) 0 auto; }
.timeline-card { display: grid; grid-template-columns: 38px 1fr; align-items: center; min-height: 100svh; padding: 10vh 0; border-left: 1px solid var(--line); position: relative; }
.timeline-card::before, .timeline-card::after { content: ""; position: absolute; left: -7px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--bg); background: #d8b07c; }
.timeline-card::before { top: 23vh; }
.timeline-card::after { bottom: 23vh; }
.timeline-index { color: var(--lime); font-size: .8rem; letter-spacing: .16em; }
.timeline-content { max-width: 530px; padding-left: 0; }
.timeline-content { transform: translateY(10vh); }
.timeline-kicker { margin-bottom: 20px; color: var(--muted); letter-spacing: .12em; }
.timeline-content h2 { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 3.6vw, 4rem); font-weight: 400; line-height: .92; }
.node-logo { width: clamp(38px, 4vw, 54px); height: clamp(38px, 4vw, 54px); flex: 0 0 auto; object-fit: cover; border-radius: 10px; background: var(--ink); box-shadow: 0 4px 18px rgba(0,0,0,.28); }
.work-copy h2 { margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 5.7rem); font-weight: 400; line-height: .9; }
.timeline-content p:not(.timeline-kicker) { max-width: 620px; margin-bottom: 8px; color: #c5c6be; line-height: 1.7; font-size: 1.03rem; }
.timeline-meta { display: inline-block; margin-top: 26px; color: var(--ink); font-size: .78rem; letter-spacing: .12em; }
.works-section { min-height: 178svh; padding: 12vh 8vw 20vh; border-top: 1px solid var(--line); background: transparent; }
.works-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.works-count { color: var(--lime); letter-spacing: .15em; font-size: .78rem; }
.work-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; padding: 75px 0; }
.work-tag { margin-bottom: 25px; color: var(--lime); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
.work-copy h2 { font-size: clamp(2.8rem, 5vw, 5.7rem); }
.work-description { color: var(--muted); line-height: 1.7; font-size: .9rem; }
.work-visual { height: 470px; display: grid; place-items: center; }
.web3-card { width: min(320px, 90%); aspect-ratio: 1.32; padding: 38px 28px; display: flex; flex-direction: column; justify-content: center; color: #111; background: #f7f7f1; border-radius: 10px; box-shadow: 0 20px 55px rgba(0,0,0,.25); }
.web3-card span { margin-bottom: 10px; font-size: .95rem; }
.web3-card strong { font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.05em; }
.footer { margin: 0 8vw; padding: 30px 0 42px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; padding: 11px 16px; color: var(--bg); background: var(--ink); border-radius: 2px; font-size: .8rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .hero { padding: 18px 20px 22px; min-height: 100svh; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
  .hero-copy { margin-top: 20vh; transform: none; }
  h1 { font-size: clamp(4.5rem, 19vw, 7.5rem); }
  .intro { font-size: .95rem; }
  .contact-row { margin: 23px 0 25px; }
  .hero-bottom { min-height: 40px; }
  .timeline-section { margin-top: -8vh; }
  .timeline-section > .section-label { top: 13vh; left: 20px; }
  .timeline-list { width: min(86cqw, 420px); margin: 0 20px 0 auto; }
  .timeline-card { grid-template-columns: 24px 1fr; min-height: 100svh; padding: 40px 0; }
  .timeline-content h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .work-copy h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .timeline-content p:not(.timeline-kicker) { font-size: .95rem; }
  .works-section { min-height: 160svh; padding: 100px 20px; }
  .work-card { grid-template-columns: 1fr; gap: 42px; padding: 48px 0; }
  .work-visual { height: 360px; }
  .footer { margin: 0 20px; flex-wrap: wrap; gap: 14px 20px; font-size: .58rem; }
}

@media (min-width: 821px) and (max-width: 1400px) {
  .timeline-list { width: min(360px, 86cqw); }
}
