:root {
  --bg: #fff;
  --fg: #000;
  --muted: rgba(0,0,0,.55);
  --line: rgba(0,0,0,.14);
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }

.menu-button {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  z-index: 100;
  width: 44px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 2px;
  background: var(--fg);
  margin: 6px 0;
  transform-origin: center;
  transition: transform .22s ease, opacity .22s ease;
}
body.menu-open .menu-button span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-button span:nth-child(2) { opacity: 0; }
body.menu-open .menu-button span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
body.menu-open .menu { pointer-events: auto; opacity: 1; }
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.86);
}
.menu-panel {
  position: absolute;
  top: 72px;
  left: 22px;
  width: min(420px, calc(100vw - 44px));
  border: 1px solid var(--fg);
  background: var(--bg);
  padding: 18px;
  display: grid;
  gap: 8px;
}
.menu-panel a {
  font-size: clamp(34px, 8vw, 72px);
  line-height: .9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  position: relative;
  background: var(--bg);
}
.hero-mark {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  font-size: clamp(40px, 8vw, 130px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: .85;
}

.page-section {
  min-height: 100svh;
  padding: var(--pad);
  border-top: 1px solid var(--line);
}
.grid-section,
.project-section,
.manifesto-section {
  display: grid;
  grid-template-columns: minmax(110px, 18vw) 1fr;
  gap: clamp(24px, 6vw, 110px);
  align-items: start;
}
.section-label {
  position: sticky;
  top: 24px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-body { max-width: 980px; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-size: clamp(42px, 7vw, 112px);
  line-height: .9;
  letter-spacing: -0.075em;
  font-weight: 700;
  max-width: 980px;
}
h3 {
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.04em;
}
p { max-width: 760px; margin-top: 1.1em; }
.intro { color: var(--muted); }
.small-note { font-size: 14px; color: var(--muted); }
code { font-family: "Courier New", Courier, monospace; font-size: .88em; }

.video-shell {
  margin-top: 34px;
  width: min(100%, 1200px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--fg);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.site-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  background: #fff;
}
.video-placeholder p {
  margin: 0;
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.06em;
  max-width: none;
}
.video-placeholder span {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: var(--muted);
}
.video-shell.is-missing .site-video { display: none; }
.video-shell.is-missing .video-placeholder { display: flex; }

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--fg);
  background: var(--fg);
}
.project-list article {
  background: var(--bg);
  padding: 22px;
  min-height: 220px;
}
.project-list p { font-size: 16px; color: var(--muted); }

.manifesto-text {
  font-size: clamp(34px, 5.5vw, 92px);
  line-height: .93;
  letter-spacing: -0.07em;
  font-weight: 700;
  max-width: 1100px;
}
.manifesto-text p {
  max-width: none;
  margin: 0 0 .28em;
}
.manifesto-text p:nth-child(even) { padding-left: clamp(0px, 8vw, 130px); }

.contact-section { min-height: 80svh; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-section,
  .project-section,
  .manifesto-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-label { position: relative; top: auto; padding-top: 42px; }
  .page-section { padding: 22px; }
  h1, h2 { font-size: clamp(42px, 13vw, 72px); }
  .project-list { grid-template-columns: 1fr; }
  .video-shell { aspect-ratio: 9 / 16; }
  .site-video { object-fit: cover; }
  .manifesto-text { font-size: clamp(36px, 12vw, 64px); }
  .manifesto-text p:nth-child(even) { padding-left: 0; }
  .menu-panel { top: 68px; }
  .menu-panel a { font-size: clamp(46px, 17vw, 86px); }
}
