@font-face { font-family: "Shippori Mincho B1"; font-weight: 500; font-display: swap; src: url(assets/fonts/shippori-mincho-b1-500.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 700; font-display: swap; src: url(assets/fonts/shippori-mincho-b1-700.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(assets/fonts/zen-kaku-gothic-new-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap; src: url(assets/fonts/zen-kaku-gothic-new-500.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url(assets/fonts/zen-kaku-gothic-new-700.woff2) format("woff2"); }
@font-face { font-family: "Koke Mark"; font-weight: 700; font-display: block; src: url(assets/fonts/shippori-mincho-b1-700-koke.woff2) format("woff2"); }

:root {
  --forest: #0e1510;
  --forest-2: #152018;
  --ink: #ece7da;
  --ink-dim: rgba(236, 231, 218, 0.68);
  --ink-faint: rgba(236, 231, 218, 0.42);
  --rule: rgba(236, 231, 218, 0.14);
  --berry: #e8753a;
  --berry-deep: #cf5f27;
  --on-berry: #1c0e06;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 14px;
  --sheet-r: 28px;
  --section: clamp(96px, 13vw, 176px);
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: #2c3a2e var(--forest); }
body {
  background: var(--forest);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
::selection { background: var(--berry); color: var(--on-berry); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; border-radius: 4px; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 24px; line-height: 1.3; letter-spacing: 0; }
p { text-wrap: pretty; }

/* ---------- actions ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--berry); color: var(--on-berry);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::after {
  content: ""; width: 14px; height: 14px; background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M1 7h11M8 3l4 4-4 4" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) { .btn:hover { background: #f0834a; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.65); }
.btn:hover::after { transform: translateX(3px); } }
.btn:active { background: var(--berry-deep); transform: none; }
.link {
  font-weight: 500; font-size: 16px;
  text-decoration: underline; text-decoration-color: var(--berry);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: text-underline-offset 0.3s var(--ease);
}
.link:hover { text-underline-offset: 3px; }

/* ---------- fixed layers ---------- */
#poster, #gl, #spores, #overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#poster {
  background: url(assets/hero-master.jpg) center / cover no-repeat;
  filter: blur(8px) brightness(0.8); transform: scale(1.06); z-index: 0;
}
#gl { z-index: 5; opacity: 0; transition: opacity 1.2s ease; }
#gl.ready { opacity: 1; }
#spores { z-index: 6; }
#overlay { z-index: 7; overflow: visible; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(22px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 22px max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(6, 11, 7, 0.5), transparent); transition: opacity 0.4s var(--ease);
}
.nav.solid::before, .nav.open::before { opacity: 0; }
.nav.solid, .nav.open { background: var(--forest); border-color: var(--rule); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font: 700 22px/1 var(--display); letter-spacing: -0.005em; }
.logo-mark { font-family: "Koke Mark", var(--display); font-size: 0.9em; color: var(--ink-dim); }
.logo .amp { color: var(--berry); transition: color 0.4s; }
.nav.on-gold:not(.solid) .amp { color: var(--ink); }
.nav:not(.solid) .logo, .nav:not(.solid) nav a, .nav:not(.solid) .menu-btn { text-shadow: 0 1px 12px rgba(6, 11, 7, 0.55); }
.nav nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); font-size: 15px; font-weight: 500; }
.nav nav a:not(.nav-cta) { opacity: 0.85; transition: opacity 0.3s; }
.nav nav a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { border: 1px solid rgba(232, 117, 58, 0.75); border-radius: 999px; padding: 8px 16px; transition: background 0.3s, color 0.3s; }
.nav-cta:hover { background: var(--berry); color: var(--on-berry); }
.menu-btn { display: none; font: 500 15px var(--body); color: var(--ink); background: none; border: 0; padding: 8px 4px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 8; height: 100vh; height: 100svh; min-height: 600px;
  pointer-events: none;
}
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(64px, 11vh, 120px); max-width: 760px; pointer-events: auto; }
h1 { font-size: clamp(46px, 6.4vw, 94px); line-height: 1.1; letter-spacing: -0.015em; }
.reveal-lines > span { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reveal-lines > span > span { display: block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.loaded .reveal-lines > span > span { transform: none; }
.reveal-lines > span:nth-child(2) > span { transition-delay: 0.08s; }
.reveal-lines > span:nth-child(3) > span { transition-delay: 0.16s; }
.hero-offer { font-size: clamp(18px, 1.5vw, 21px); max-width: 30ch; margin-top: 26px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-offer, .hero-actions { opacity: 0; transform: translateY(10px); transition: opacity 1s 0.5s var(--ease), transform 1s 0.5s var(--ease); }
.loaded .hero-offer, .loaded .hero-actions { opacity: 1; transform: none; }
.hero-note {
  position: absolute; right: var(--gutter); bottom: clamp(64px, 11vh, 120px);
  font-size: 14px; line-height: 1.5; color: var(--ink); text-align: right;
  text-shadow: 0 1px 2px rgba(6, 11, 7, 0.55), 0 0 18px rgba(6, 11, 7, 0.75);
}

/* ---------- sheet ---------- */
.sheet {
  position: relative; z-index: 2;
  background: var(--forest);
  border-radius: var(--sheet-r);
  padding: var(--section) var(--gutter);
  display: grid; gap: var(--section);
}
.sheet > section { max-width: 1360px; width: 100%; margin: 0 auto; }

/* lead: the redesign offer */
.lead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(72px, 9vw, 120px); align-items: end; }
.lead-copy { grid-column: 1 / span 6; padding-bottom: 8px; }
.lead-copy p { color: var(--ink-dim); max-width: 46ch; margin: 28px 0 32px; font-size: 19px; }
.lead-window { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
.includes-intro { grid-column: 1 / span 3; align-self: start; color: var(--ink-dim); font-size: 16px; padding-top: 30px; border-top: 1px solid var(--berry); }
.includes { grid-column: 5 / -1; align-self: start; }
.includes > div { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: 32px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule); }
.includes > div:last-child { border-bottom: 1px solid var(--rule); }
.includes dt { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.2; }
.includes dd { color: var(--ink-dim); font-size: 17px; max-width: 42ch; }

/* depth windows (drawn by WebGL; the background is the loading / no-GL fallback) */
.depth-window { border-radius: var(--radius); background: var(--forest-2) var(--img) center / cover no-repeat; }
/* once WebGL paints the window, keep only a flat ground under it so no fallback image fringes the antialiased corners */
.gl-ready .depth-window { background: var(--forest); }

/* capabilities */
.caps-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.caps-head h2 { grid-column: 1 / span 6; }
.caps-head p { grid-column: 8 / span 5; color: var(--ink-dim); max-width: 40ch; }
.cap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.cap:last-child { border-bottom: 1px solid var(--rule); }
.cap-window { grid-column: 1 / span 4; aspect-ratio: 16 / 10; }
.cap-text { grid-column: 6 / span 6; transition: transform 0.6s var(--ease); }
.cap-text h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.01em; }
.cap-text p { color: var(--ink-dim); margin-top: 12px; max-width: 44ch; }
.cap:hover .cap-text { transform: translateX(8px); }

/* approach */
.approach { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.approach-title { grid-column: 1 / span 5; grid-row: 1; }
.approach-steps { grid-column: 1 / span 5; grid-row: 2; }
.steps { margin-top: clamp(40px, 6vw, 72px); }
.step {
  min-height: 46vh; padding-top: 28px; border-top: 1px solid var(--rule);
  opacity: 0.4; transition: opacity 0.6s var(--ease);
}
.step:last-child { min-height: 30vh; }
.step.on { opacity: 1; }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--ink-faint); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums; transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.step.on .step-n { background: var(--berry); border-color: var(--berry); color: var(--on-berry); }
.step h3 { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.01em; }
.step p { color: var(--ink-dim); margin-top: 10px; max-width: 40ch; }
.approach-map { grid-column: 7 / -1; grid-row: 1 / span 2; position: relative; }
.map-window { position: sticky; top: 104px; height: calc(100vh - 152px); max-height: 820px; }

/* selected gardens */
.gardens .caps-head { margin-bottom: clamp(48px, 6vw, 80px); }
.project { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--rule); }
.project:last-child { border-bottom: 1px solid var(--rule); }
.project-window { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 3 / 2; }
.project-text { grid-column: 9 / span 4; grid-row: 1; }
.project.flip .project-window { grid-column: 6 / span 7; }
.project.flip .project-text { grid-column: 1 / span 4; }
.project h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; }
.project .meta { color: var(--ink-dim); font-size: 15px; margin-top: 8px; }
.project p:not(.meta) { color: var(--ink-dim); margin-top: 20px; max-width: 40ch; }
.tag { display: inline-block; margin-top: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; }

/* disclosure: this studio is fictional */
.concept-pill {
  position: fixed; left: max(var(--gutter), env(safe-area-inset-left)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 9;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: rgba(14, 21, 16, 0.82); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px;
  transition: opacity 0.4s var(--ease), border-color 0.3s;
}
.concept-pill::after {
  content: ""; width: 10px; height: 10px; background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M2 8l6-6M3.5 2H8v4.5" fill="none" stroke="black" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}
.concept-pill:hover { border-color: var(--berry); }
.concept-pill.hide { opacity: 0; pointer-events: none; }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 8; height: 100vh; height: 100svh; min-height: 560px; pointer-events: none; }
.contact-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-40%); max-width: 900px; pointer-events: auto; }
.contact h2 { font-size: clamp(44px, 6.4vw, 94px); line-height: 1.1; letter-spacing: -0.015em; }
.contact-copy p { font-size: clamp(18px, 1.5vw, 21px); margin: 24px 0 32px; max-width: 34ch; }
.foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom)); align-items: baseline;
  display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(236, 231, 218, 0.82);
  text-shadow: 0 1px 10px rgba(6, 11, 7, 0.7); pointer-events: auto;
}

/* ---------- overlay (svg, drawn by main.js) ---------- */
.hs { cursor: pointer; transition: opacity 0.5s; }
.hs .hit { fill: transparent; }
.hs-stem { fill: var(--ink); }
.hs-shoot { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.hs-leaf { fill: var(--ink); }
.hs-link { fill: none; stroke: rgba(236, 231, 218, 0.3); stroke-width: 1; stroke-dasharray: 3 7; }
.hs-ring { fill: rgba(10, 18, 10, 0.2); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.hs-dot { fill: var(--ink); }
.hs-label { fill: var(--ink); font: 500 15px var(--body); paint-order: stroke; stroke: rgba(6, 11, 7, 0.35); stroke-width: 3px; }
#overlay.hovering .hs:not(.on) { opacity: 0.4; }
.hs.on .hs-ring { fill: var(--berry); stroke: var(--berry); }
.path-main { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.path-ghost { fill: none; stroke: rgba(236, 231, 218, 0.35); stroke-width: 1; stroke-dasharray: 2 6; }
.pm-ring { fill: rgba(10, 18, 10, 0.5); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.pm-n { fill: var(--ink); font: 700 11px var(--body); text-anchor: middle; dominant-baseline: central; transition: fill 0.4s; }
.pm.on .pm-ring { fill: var(--berry); stroke: var(--berry); }
.pm.on .pm-n { fill: var(--on-berry); }

/* ---------- fallbacks ---------- */
.no-gl #gl, .no-gl #spores, .no-gl #overlay { display: none; }
.no-gl #poster { filter: none; transform: none; }
.no-gl .contact { background: radial-gradient(ellipse 70% 62% at 16% 56%, rgba(20, 11, 4, 0.55), transparent 72%), url(assets/contact-golden.jpg) center / cover; }
.no-gl .hero { background: radial-gradient(ellipse 62% 58% at 8% 88%, rgba(6, 11, 7, 0.62), transparent 72%); }

@media (max-width: 900px) {
  .menu-btn { display: block; margin-left: auto; margin-right: 16px; }
  .nav nav { gap: 0; }
  .nav nav a:not(.nav-cta) {
    display: none; position: absolute; left: 0; right: 0; background: var(--forest);
    padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); font-size: 20px; opacity: 1;
  }
  .nav.open nav a:not(.nav-cta) { display: block; }
  .nav.open nav a:nth-child(1) { top: 100%; }
  .nav.open nav a:nth-child(2) { top: calc(100% + 62px); }
  .nav.open nav a:nth-child(3) { top: calc(100% + 124px); }
  .hero-note { display: none; }
  .lead-copy, .lead-window, .caps-head h2, .caps-head p { grid-column: 1 / -1; }
  .lead-window { aspect-ratio: 1 / 1.1; }
  .includes-intro, .includes { grid-column: 1 / -1; }
  .includes-intro { margin-bottom: -48px; }
  .sheet { --section: 88px; }
  .caps-head p { margin-top: 20px; }
  .cap-window { grid-column: 1 / -1; }
  .cap-text { grid-column: 1 / -1; margin-top: 20px; }
  .cap:hover .cap-text { transform: none; }
  .approach-title, .approach-steps, .approach-map { grid-column: 1 / -1; grid-row: auto; }
  .approach-map { order: 1; position: sticky; top: 64px; z-index: 1; height: 40vh; margin: 32px 0 8px; }
  .approach-steps { order: 2; }
  .steps { margin-top: 24px; }
  .map-window { position: static; height: 100%; }
  .step { min-height: 52vh; }
  .project-window, .project.flip .project-window, .project-text, .project.flip .project-text { grid-column: 1 / -1; grid-row: auto; }
  .project-text { margin-top: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .includes > div { grid-template-columns: 1fr; row-gap: 8px; }
  .hero-actions { gap: 20px; }
  .hero-copy { bottom: 88px; }
  .concept-pill { bottom: 16px; font-size: 12px; padding: 6px 12px; }
  .logo { font-size: 19px; }
  .logo-mark { display: none; }
  .menu-btn { margin-right: 10px; }
  .nav-cta { padding: 7px 13px; font-size: 14px; }
  .foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-lines > span > span, .hero-offer, .hero-actions { transition: none !important; }
}

@media (pointer: coarse) {
  .menu-btn, .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-btn { padding-inline: 10px; }
  .concept-pill { min-height: 44px; }
  .link { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .logo { padding-block: 13px; margin-block: -13px; }
  .nav nav a:not(.nav-cta) { min-height: 56px; }
}
