:root {
  color-scheme: dark light;
  --dark-bg: #080b0a;
  --dark-surface: #101512;
  --dark-elevated: #161d19;
  --dark-text: #f4f7f3;
  --dark-muted: #a1ada6;
  --dark-line: #2a332e;
  --light-bg: #f2f1ec;
  --light-surface: #faf9f5;
  --light-elevated: #fff;
  --light-text: #111411;
  --light-muted: #5d655f;
  --light-line: #d4d7d1;
  --accent: #3edb98;
  --accent-hover: #6eebb6;
  --accent-ink: #087a55;
  --warning: #f4c95d;
  --error: #ff6f7e;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark-bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--dark-bg); color: var(--dark-text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: #06110c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(100% - (var(--pad) * 2), var(--shell)); margin-inline: auto; }
.dark { background: var(--dark-bg); color: var(--dark-text); }
.light { background: var(--light-bg); color: var(--light-text); }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 16px; transform: translateY(-150%); border-radius: 8px; background: var(--accent); color: #06110c; font-weight: 800; text-decoration: none; transition: transform 160ms var(--ease); }
.skip-link:focus { transform: translateY(0); }
.progress { position: fixed; z-index: 150; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; }
.progress i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.site-header { position: absolute; z-index: 100; top: 0; left: 0; right: 0; color: var(--dark-text); }
.nav { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(244,247,243,.15); }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 13px; font-weight: 900; letter-spacing: -.025em; }
.brand small { margin-top: 5px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .33em; }
.brand-glyph { position: relative; width: 36px; height: 36px; display: block; border: 1px solid #3a453f; background: #101512; }
.brand-glyph::before, .brand-glyph::after, .brand-glyph i { content: ""; position: absolute; background: var(--dark-text); }
.brand-glyph::before { left: 9px; top: 7px; width: 2px; height: 22px; }
.brand-glyph::after { right: 9px; top: 7px; width: 2px; height: 22px; }
.brand-glyph i { left: 9px; right: 9px; top: 17px; height: 2px; }
.brand-glyph b::before, .brand-glyph b::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--accent); }
.brand-glyph b::before { left: 7px; top: 5px; }.brand-glyph b::after { right: 7px; bottom: 5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 12px; color: var(--dark-muted); border-radius: 8px; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.nav-links a:hover { color: var(--dark-text); background: rgba(255,255,255,.055); }
.nav-studio { justify-self: end; display: inline-flex; align-items: center; gap: 9px; color: var(--dark-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.nav-studio i, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(62,219,152,.1); }

.hero { position: relative; min-height: max(760px, 100svh); overflow: hidden; padding: 130px 0 38px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 72%) var(--my, 22%), rgba(62,219,152,.075), transparent 26%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(244,247,243,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(244,247,243,.055) 1px, transparent 1px); background-size: clamp(52px, 6vw, 88px) clamp(52px, 6vw, 88px); mask-image: linear-gradient(to bottom, black 0, rgba(0,0,0,.8) 65%, transparent 100%); transform: translate3d(calc((var(--px, 0) - .5) * 8px), calc((var(--py, 0) - .5) * 8px), 0); }
.hero-inner { position: relative; min-height: calc(max(760px, 100svh) - 168px); display: flex; flex-direction: column; }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--dark-muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 1180px; margin: clamp(70px, 10vh, 118px) 0 52px; font-size: clamp(64px, 9.5vw, 146px); line-height: .87; letter-spacing: -.075em; font-weight: 900; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 em, .philosophy h2 em { color: var(--accent); font-style: normal; }
.hero-bottom { margin-top: auto; display: grid; grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.3fr); gap: clamp(50px, 8vw, 130px); align-items: end; }
.hero-copy { max-width: 470px; margin: 0; color: #c0c9c3; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; letter-spacing: -.015em; }
.system-map { position: relative; height: 128px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.map-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, #48534d 8%, #48534d 92%, transparent); }
.map-node { position: relative; height: 72px; display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 1fr 1fr; align-items: center; padding: 10px; border-left: 1px solid var(--dark-line); background: rgba(8,11,10,.8); }
.map-node:last-child { border-right: 1px solid var(--dark-line); }
.map-node i { grid-row: 1 / 3; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.map-node b { color: #7d8982; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.map-node strong { align-self: start; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.scroll-cue { margin-top: 40px; align-self: flex-start; display: inline-flex; align-items: center; gap: 15px; color: var(--dark-muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 38px; height: 38px; position: relative; border: 1px solid var(--dark-line); border-radius: 50%; }
.scroll-cue i::before { content: ""; position: absolute; left: 50%; top: 10px; width: 1px; height: 11px; background: var(--accent); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 50% { transform: translateY(7px); opacity: .45; } }

.work { padding: clamp(100px, 13vw, 180px) 0 clamp(90px, 12vw, 160px); }
.section-intro { display: grid; grid-template-columns: .48fr 1.35fr .72fr; gap: clamp(25px, 5vw, 78px); align-items: start; margin-bottom: clamp(70px, 9vw, 124px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.dark .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.section-intro h2, .about h2 { margin: -10px 0 0; font-size: clamp(42px, 6vw, 82px); line-height: .97; letter-spacing: -.062em; font-weight: 850; }
.section-intro p { max-width: 290px; margin: 0; color: var(--light-muted); font-size: 13px; line-height: 1.7; }
.work-list { border-top: 1px solid #aeb4ad; }
.work-item { min-height: 180px; display: grid; grid-template-columns: .45fr 1fr 1.2fr .35fr; gap: clamp(22px, 4vw, 60px); align-items: center; border-bottom: 1px solid #aeb4ad; transition: background 280ms var(--ease), padding 280ms var(--ease); }
.work-item > span { color: var(--accent-ink); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.work-item h3 { margin: 0; font-size: clamp(30px, 4vw, 55px); letter-spacing: -.055em; font-weight: 850; }
.work-item p { max-width: 470px; margin: 0; color: var(--light-muted); font-size: 15px; line-height: 1.65; }
.work-item > i { justify-self: end; color: #8a918b; font-size: 8px; font-weight: 800; font-style: normal; letter-spacing: .1em; }
.work-item:hover { padding-inline: 18px; background: rgba(255,255,255,.48); }

.now { padding-bottom: clamp(100px, 13vw, 180px); }
.now-card { min-height: 260px; display: grid; grid-template-columns: .55fr 1.45fr .35fr; gap: 50px; align-items: start; padding-block: 45px; border-top: 3px solid var(--light-text); border-bottom: 1px solid #aeb4ad; }
.now-label { display: grid; grid-template-columns: 16px 1fr; align-items: center; text-transform: uppercase; }
.now-label > span:not(.status-dot) { font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.now-label small { grid-column: 2; margin-top: 8px; color: var(--light-muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.status-dot { width: 7px; height: 7px; background: var(--accent-ink); box-shadow: 0 0 0 5px rgba(8,122,85,.1); }
.now-card > p { max-width: 750px; margin: -9px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.07; letter-spacing: -.045em; font-weight: 750; }
.now-code { justify-self: end; color: var(--light-muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }

.philosophy { position: relative; overflow: hidden; padding: clamp(120px, 15vw, 220px) 0; }
.philosophy::before { content: "HS / 01"; position: absolute; right: -2vw; top: 3vw; color: rgba(244,247,243,.025); font-size: min(32vw, 450px); line-height: 1; font-weight: 900; letter-spacing: -.09em; white-space: nowrap; }
.philosophy-inner { position: relative; }
.philosophy h2 { max-width: 1130px; margin: clamp(56px, 8vw, 105px) 0 0; font-size: clamp(51px, 8.5vw, 126px); line-height: .91; letter-spacing: -.072em; font-weight: 900; }
.philosophy-rule { margin-top: clamp(65px, 9vw, 120px); display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: 18px; }
.philosophy-rule span { height: 1px; background: var(--dark-line); }.philosophy-rule i { width: 10px; height: 10px; border: 2px solid var(--accent); transform: rotate(45deg); }

.about { padding: clamp(110px, 14vw, 190px) 0; }
.about-grid { display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(35px, 7vw, 110px); }
.about-copy { padding-left: clamp(0px, 4vw, 65px); border-left: 1px solid #afb4ae; }
.about-copy p { max-width: 720px; margin: 52px 0 0; color: var(--light-muted); font-size: clamp(18px, 2.2vw, 27px); line-height: 1.55; letter-spacing: -.025em; }

.site-footer { padding: clamp(80px, 11vw, 140px) 0 30px; }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; padding-bottom: clamp(80px, 11vw, 140px); }
.footer-wordmark { position: relative; width: max-content; font-size: clamp(55px, 10vw, 145px); line-height: .75; letter-spacing: -.082em; font-weight: 900; text-decoration: none; }
.footer-wordmark span { position: absolute; top: -12px; right: -22px; color: var(--accent); font-size: 12px; letter-spacing: 0; }
.footer-meta { justify-self: end; display: grid; gap: 18px; color: var(--dark-muted); font-size: 10px; line-height: 1.5; }
.footer-meta a { width: max-content; color: var(--dark-text); text-underline-offset: 5px; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; padding-top: 24px; border-top: 1px solid var(--dark-line); color: #7f8a83; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom span:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.work-item:nth-child(2), .hero-bottom .reveal:nth-child(2) { transition-delay: 70ms; }
.work-item:nth-child(3) { transition-delay: 140ms; }.work-item:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }.nav-links { display: none; }.nav-studio { font-size: 0; }.nav-studio i { font-size: initial; }
  .hero { min-height: 900px; }.hero-inner { min-height: 730px; }
  .hero h1 { margin-top: 80px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 45px; }
  .system-map { max-width: 700px; }
  .section-intro { grid-template-columns: .4fr 1.6fr; }.section-intro p { grid-column: 2; }
  .work-item { grid-template-columns: .25fr .8fr 1.2fr; }.work-item > i { display: none; }
  .now-card { grid-template-columns: .4fr 1.6fr; }.now-code { display: none; }
  .footer-main { grid-template-columns: 1fr; }.footer-meta { justify-self: start; }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }
  .nav { min-height: 72px; }.brand-glyph { width: 32px; height: 32px; }.brand strong { font-size: 11px; }.brand small { font-size: 7px; }
  .hero { min-height: 820px; padding-top: 100px; }.hero-inner { min-height: 680px; }
  .hero-meta span:last-child { display: none; }
  .hero h1 { margin: 72px 0 42px; font-size: clamp(54px, 16.5vw, 76px); line-height: .9; letter-spacing: -.074em; }
  .hero h1 span { display: inline; }.hero h1 span::after { content: " "; }
  .hero-copy { max-width: 340px; font-size: 16px; }
  .system-map { height: auto; grid-template-columns: 1fr 1fr; border: 1px solid var(--dark-line); }.map-line { display: none; }
  .map-node { height: 59px; border: 0; border-bottom: 1px solid var(--dark-line); }.map-node:nth-child(even) { border-right: 1px solid var(--dark-line); }.map-node:nth-last-child(-n+2) { border-bottom: 0; }
  .scroll-cue { margin-top: 28px; }
  .section-intro { display: block; margin-bottom: 66px; }.section-intro h2 { margin-top: 34px; font-size: 45px; }.section-intro p { margin-top: 25px; }
  .work-item { min-height: 0; grid-template-columns: 42px 1fr; gap: 10px 16px; padding: 30px 0; }.work-item h3 { font-size: 34px; }.work-item p { grid-column: 2; font-size: 14px; }.work-item:hover { padding-inline: 8px; }
  .now-card { min-height: 0; display: block; padding: 28px 0 38px; }.now-card > p { margin-top: 50px; font-size: 33px; }.now-label { width: max-content; }
  .philosophy h2 { font-size: 52px; }.philosophy h2 br:first-child { display: none; }
  .about-grid { display: block; }.about-copy { margin-top: 50px; padding: 0; border: 0; }.about h2 { font-size: 44px; }.about-copy p { margin-top: 35px; font-size: 20px; }
  .footer-wordmark { font-size: 17vw; }.footer-meta span { max-width: 260px; }
  .footer-wordmark span { right: 0; }
  .footer-bottom { grid-template-columns: 1fr auto; line-height: 1.6; }.footer-bottom span:last-child { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-grid { transform: none; }
}
