:root {
  --ink: #0e0d0b;
  --panel: #1b1a17;
  --paper: #f4f0e8;
  --muted: #a7a196;
  --accent: #c64a2c;
  --line: rgba(244, 240, 232, 0.16);
  --gap: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Figtree", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

img, video, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
a:hover { border-bottom-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 10;
  border-bottom: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem var(--gap);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: none;
  color: var(--paper);
  min-height: 44px;
}
.mark svg { color: var(--accent); }
.mark-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: clamp(2.5rem, 8vw, 6rem) var(--gap) clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero-shape {
  order: -1;
  border: 1px solid var(--line);
}
.hero-shape svg {
  width: 100%;
  height: clamp(180px, 44vw, 320px);
}

.kicker {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 24vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.lede {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--paper);
}

.hero-note {
  margin: 1.5rem 0 0;
  max-width: 46ch;
  color: var(--muted);
}

section { padding: 0 var(--gap); }

.feature {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.feature-head, .work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

.feature-frame {
  background: var(--panel);
  border: 1px solid var(--line);
}

.video, .frame-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.frame-video { aspect-ratio: 16 / 9; }

.credit {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.frame {
  background: var(--panel);
  border: 1px solid var(--line);
}

.frame-body { padding: 1.25rem 1.25rem 1.5rem; }

.frame-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.frame-category {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.frame-desc {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.frame-tag {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.slot svg { width: 56px; color: var(--accent); }

.about {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  max-width: 70ch;
}

.about-line {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.3;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gap) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foot-line {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.foot-links a:hover { color: var(--paper); }

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(220px, 34%) 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: end;
  }
  .hero-shape { order: 0; }
  .grid { grid-template-columns: repeat(6, 1fr); }
  .frame { grid-column: span 6; }
  .frame.wide { grid-column: span 6; }
  .frame.half { grid-column: span 3; }
  .frame.third { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .site-foot {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-shape {
    animation: rise 260ms ease-out both;
  }
  .hero-shape { animation-delay: 60ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Portfolio opening: typography leads directly into the film. */
:root { --accent: #ed775c; }
.hero { display: block; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: 0; }
.hero-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 3rem; }
.hero-copy .kicker { grid-column: 1 / -1; margin: 0 0 0.25rem; }
.hero-copy h1 { font-size: clamp(5rem, 16vw, 12rem); }
.hero-copy .lede { max-width: 8ch; margin: 0; font-size: clamp(2rem, 4.5vw, 4rem); }
.hero-note { grid-column: 1 / -1; margin: 0.5rem 0 0; }
.feature { padding-top: 2rem; }
.feature-head { margin-bottom: 1rem; }
.feature-frame { overflow: hidden; }
#featured-video { max-height: 65vh; object-fit: cover; }
.frame { border: none; background: transparent; }
.frame-body { padding: 1rem 0; }
.frame-category { display: none; }
.about { max-width: none; }
.about-line { max-width: 38ch; }
@media (max-width: 520px) {
 .hero-copy { grid-template-columns: 1fr; gap: 1rem; }
 .hero-copy .lede { max-width: none; font-size: 2rem; }
 .hero-copy h1 { font-size: clamp(5rem, 26vw, 8rem); }
 .hero-note { margin: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.filters button { font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 24px; min-height: 44px; padding: 0.5rem 1.2rem; cursor: pointer; }
.filters button:hover { color: var(--paper); border-color: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.project-cover { min-height: 260px; aspect-ratio: 4/3; padding: clamp(1.25rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; list-style: none; color: #f4f0e8; overflow: hidden; }
.project-cover::-webkit-details-marker { display: none; }
.project-cover:hover .cover-action { text-decoration: underline; text-underline-offset: 5px; }
.cover-01 { background: #334640; }
.cover-02 { background: #763525; }
.cover-03 { background: #343b50; }
.cover-04 { background: #563b53; }
.project-number { font-size: 1rem; }
.cover-title { font-size: clamp(2.25rem, 4vw, 4.5rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; max-width: 9ch; }
.cover-action { align-self: flex-end; min-height: 24px; }
.project-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 1.1rem 0; }
.project-caption .credit { margin: 0; }
.project-detail { padding-top: 1rem; }
.frame-tag { display: block; }
.contact { border-top: 1px solid var(--line); padding-top: 3rem; padding-bottom: 4rem; }
.contact h2 { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.05; max-width: 14ch; }
.contact #contact-link { font-size: 1.4rem; }
@media (max-width: 520px) { .nav { gap: 1rem; } .site-head { padding-top: 0.75rem; padding-bottom: 0.75rem; } }
