:root {
  --bg: #121417;
  --fg: #FFFFFF;
  --accent: #2BD9FF;
  --accent-ink: #062A33;
  --light: #F2F3F5;
  --card: #FFFFFF;
  --ink: #16181C;
  --muted: #5B6270;
  --muted-dark: #A6AAB3;
  --rule: #D6D9DE;
  --grid: rgba(22, 24, 28, 0.06);

  --display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --measure: 36em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.25; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* header: logo + two-line menu button, over the hero */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .25s, padding .25s;
}
.top.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 14px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.mark { width: 36px; height: 36px; }
.wordmark { font-family: var(--display); font-size: 26px; letter-spacing: 0.04em; line-height: 1; }
.menu-btn {
  width: 56px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px 0;
  display: grid; gap: 9px; align-content: center;
}
.menu-btn span { display: block; height: 4px; background: var(--accent); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 15;
  background: var(--bg);
  display: grid; align-content: center; gap: 40px;
  padding: 100px var(--gutter) 60px;
}
.menu[hidden] { display: none; }
.menu ol { display: grid; gap: 6px; }
.menu a { display: block; text-decoration: none; font-family: var(--display); font-size: clamp(30px, 6vw, 60px); line-height: 1.2; }
.menu a small { display: block; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.menu a:hover { color: var(--accent); }
.menu-foot { font-family: var(--mono); font-weight: 500; letter-spacing: 0.15em; color: var(--muted-dark); font-size: 13px; }
body.menu-open { overflow: hidden; }

/* tags: black chips (light sections) / outlined boxes (dark sections) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  padding: 6px 12px; background: var(--ink); color: var(--fg); line-height: 1.3;
}
.tags-outline li { background: transparent; border: 2px solid var(--fg); font-size: clamp(14px, 1.6vw, 20px); padding: 8px 16px; }

/* hero: montage of the studio's own footage under a halftone screen */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: end;
  padding: 160px var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
  background: url("assets/hero-bg.jpg") center / cover no-repeat var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 1.6px 1.6px, rgba(0,0,0,0.75) 1.6px, transparent 0) 0 0 / 5px 5px,
    linear-gradient(180deg, rgba(18,20,23,0.55), rgba(18,20,23,0.85));
}
.hero-inner { max-width: 60em; }
.hero-title { font-size: clamp(44px, 9.4vw, 136px); line-height: 1.08; margin-top: 28px; }
.hero-title .line { display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--fg); }
@supports not (-webkit-text-stroke: 1px #fff) { .hero-title .outline { color: var(--fg); } }
.hero-caption { margin-top: 36px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.2em; font-size: clamp(13px, 1.6vw, 18px); }

.diamond {
  position: absolute; right: clamp(16px, 6vw, 96px); bottom: clamp(24px, 6vh, 64px);
  width: clamp(150px, 20vw, 220px); aspect-ratio: 1;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--fg); color: var(--ink); text-decoration: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.diamond .mark { width: 34px; height: 34px; margin: 0 auto 4px; }
.diamond strong, .diamond span { line-height: 1.2; }
.diamond strong { font-family: var(--mono); font-weight: 700; letter-spacing: 0.15em; font-size: clamp(16px, 2vw, 22px); }
.diamond span { font-size: 13px; font-weight: 700; }
.diamond:hover { background: var(--accent); }
.diamond::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 0 46%, 46% 0, 54% 0, 100% 46%, 100% 54%, 54% 100%, 46% 100%, 0 54%, 0 50%);
}

.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 2; background: var(--accent); transform: translateX(-3px); }
.playhead::before { content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%) rotate(45deg); background: var(--accent); }
.hero.play .hero-title .line { clip-path: inset(0 100% 0 0); }
.hero.play .playhead { animation: sweep 1.6s cubic-bezier(.65,0,.2,1) 0.2s forwards; }
.hero.play .hero-title .line:nth-child(1) { animation: reveal 0.55s ease-out 0.35s forwards; }
.hero.play .hero-title .line:nth-child(2) { animation: reveal 0.55s ease-out 0.75s forwards; }
.hero.play .hero-title .line:nth-child(3) { animation: reveal 0.55s ease-out 1.15s forwards; }
@keyframes sweep { to { transform: translateX(100vw); } }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero.play .hero-title .line { clip-path: none; animation: none; }
  .hero.play .playhead { animation: none; transform: translateX(-3px); }
  .menu-btn span { transition: none; }
  html { scroll-behavior: auto; }
}

/* light sections: grey ground, faint grid, giant outlined title behind */
.section { position: relative; padding: clamp(80px, 11vw, 160px) var(--gutter); overflow: hidden; }
.light { background: var(--light); color: var(--ink); }
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.ghost {
  position: absolute; left: calc(var(--gutter) - 0.04em); top: 0.05em;
  font-family: var(--mono); font-weight: 700; font-size: clamp(88px, 17vw, 260px); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 2px var(--accent); opacity: 0.55; pointer-events: none; user-select: none; white-space: nowrap;
}
.ghost-dark { -webkit-text-stroke-color: var(--accent); opacity: 0.35; }
.section-head { position: relative; max-width: var(--measure); margin-bottom: clamp(36px, 5vw, 64px); padding-top: clamp(40px, 7vw, 110px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section-head p { margin-top: 18px; color: var(--muted); }

.cards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); padding: 30px 28px 34px; border: 1px solid var(--rule); }
.card h3 { font-size: 21px; margin: 18px 0 14px; }
.card p { color: var(--muted); font-size: 16px; }
.list { margin-top: 18px; font-weight: 500; font-size: 15px; }
.list li { padding: 6px 0 6px 18px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--accent); }

.videos { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.videos a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--rule); padding-bottom: 20px; }
.videos img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.videos .tags { padding: 16px 18px 0; }
.videos span { display: block; margin: 12px 18px 0; font-weight: 700; line-height: 1.5; font-size: 15px; }
.videos small { display: block; margin: 4px 18px 0; font-size: 13px; color: var(--muted); }
.videos a:hover { border-color: var(--ink); }

.marquee { position: relative; display: flex; gap: 12px; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--gutter); z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--light), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--light), transparent); }
.logos { display: flex; gap: 12px; flex: none; animation: ticker 40s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
.logos li { flex: none; width: 200px; background: var(--card); border: 1px solid var(--rule); aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 16px; }
.logos img { max-height: 44px; width: auto; max-width: 100%; }
@keyframes ticker { to { transform: translateX(calc(-100% - 12px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { display: block; margin: 0; padding: 0; }
  .marquee::before, .marquee::after { display: none; }
  .logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); animation: none; }
  .logos[aria-hidden="true"] { display: none; }
  .logos li { width: auto; }
}

.facts { position: relative; margin: 0; max-width: 46em; background: var(--card); border: 1px solid var(--rule); padding: 8px 28px; }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.pending { color: var(--muted); }

/* contact: back to the dark halftone ground */
.contact {
  background: url("assets/hero-bg.jpg") center / cover no-repeat var(--bg);
  isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 1.6px 1.6px, rgba(0,0,0,0.75) 1.6px, transparent 0) 0 0 / 5px 5px,
    linear-gradient(180deg, rgba(18,20,23,0.88), rgba(18,20,23,0.94));
}
.contact-inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact .section-head p { color: var(--muted-dark); }
.contact .section-head h2 { margin-top: 20px; }
.form-alt { font-size: 14px; }
.form-alt a { color: var(--accent); }
.form { display: grid; gap: 16px; padding-top: clamp(40px, 7vw, 110px); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; font-family: var(--mono); letter-spacing: 0.08em; }
.form input, .form textarea {
  font: inherit; font-family: var(--body); font-weight: 400; padding: 12px 14px; border: 1px solid #3A3F47; border-radius: 0;
  background: rgba(255,255,255,0.06); color: var(--fg);
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; }
.gotcha { position: absolute; left: -9999px; }
.btn {
  justify-self: start; display: inline-block; padding: 14px 32px;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.12em; font-size: 15px; line-height: 1.3;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn:hover { background: var(--fg); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid #2A2E34; font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; color: var(--muted-dark); }
.foot .mark { width: 28px; height: 28px; }
.foot .wordmark { font-size: 20px; }

@media (max-width: 720px) {
  .hero { padding: 120px var(--gutter) 200px; align-content: center; }
  .diamond { right: 50%; transform: translateX(50%); bottom: 24px; width: 170px; }
  .diamond .mark { width: 26px; height: 26px; }
  .diamond strong { font-size: 15px; }
  .diamond span { font-size: 12px; }
  .hero-caption { letter-spacing: 0.12em; font-size: 12px; white-space: nowrap; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .ghost { font-size: 22vw; }
}
