:root {
  --ink: #070707;
  --paper: #f3f1ea;
  --white: #ffffff;
  --blue: #2448ff;
  --muted: #9b9b9b;
  --line: rgba(255, 255, 255, 0.16);
  --page: min(1440px, calc(100vw - 72px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: var(--blue); color: var(--white); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--page);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 29px; letter-spacing: -2px; }
.brand-dot { color: var(--blue); }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
nav a { opacity: .74; transition: opacity .2s ease; }
nav a:hover { opacity: 1; }
.nav-cta { border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 10px 17px; }

.hero {
  position: relative;
  min-height: 820px;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-visual {
  position: absolute;
  inset: 0;
  background-image: url("https://i.vimeocdn.com/video/2207040239-6631ca55fd1a438ec8bf5b63be9f7f4ad06d687a263ad30e0ecbe773f16bed05-d?f=webp&region=us");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 14s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.2) 100%), linear-gradient(0deg, rgba(0,0,0,.76) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding-bottom: clamp(72px, 10vh, 120px);
}
.eyebrow { margin: 0 0 25px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.blue { color: var(--blue); }
h1, h2 { font-family: "Manrope", sans-serif; margin: 0; letter-spacing: -.05em; font-weight: 500; }
.hero h1 { max-width: 1080px; font-size: clamp(54px, 6.6vw, 98px); line-height: .97; }
.hero-line { max-width: 560px; margin: 25px 0 0; font-size: clamp(20px, 2vw, 30px); line-height: 1.25; color: rgba(255,255,255,.72); }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 42px; }
.primary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  padding: 15px 23px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}
.primary-button:hover { transform: translateY(-2px); background: #3758ff; }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.text-link { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.45); }
.hero-index { position: absolute; z-index: 2; right: 36px; bottom: 35px; margin: 0; font-size: 12px; letter-spacing: .15em; }

.culture-strip { overflow: hidden; background: var(--blue); color: var(--white); padding: 16px 0; }
.culture-track { width: max-content; display: flex; align-items: center; gap: 22px; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; animation: cultureFlow 24s linear infinite; }
.culture-track i { font-style: normal; opacity: .65; }

.portfolio-section { width: var(--page); margin: 0 auto; padding: 150px 0 180px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10vw; align-items: end; }
.section-heading h2, .manifesto h2 { font-size: clamp(44px, 5.2vw, 78px); line-height: .98; }
.section-intro { margin: 0 0 5px; color: #aaa; font-size: 17px; line-height: 1.65; max-width: 470px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 70px 0 32px; }
.filter-button {
  appearance: none;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  background: transparent;
  padding: 10px 16px;
  color: #a6a6a6;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-button span { margin-left: 8px; opacity: .6; }
.filter-button:hover { border-color: #5b5b5b; color: white; }
.filter-button.is-active { background: var(--white); border-color: var(--white); color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 54px 22px; }
.project-card { grid-column: span 6; cursor: pointer; }
.project-card:nth-child(5n + 1) { grid-column: span 8; }
.project-card:nth-child(5n + 2) { grid-column: span 4; }
.project-card[hidden] { display: none; }
.project-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #171717; }
.project-card:nth-child(5n + 2) .project-cover { aspect-ratio: 4 / 5; }
.project-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.38), transparent 58%); opacity: .5; transition: opacity .3s ease; }
.project-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -45%) scale(.86); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); color: #000; display: grid; place-items: center; opacity: 0; transition: opacity .25s ease, transform .3s ease; }
.project-play::before { content: ""; margin-left: 4px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.project-card:hover .project-image { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project-meta { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-top: 18px; }
.project-meta h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.project-category { margin: 7px 0 0; color: #858585; font-size: 13px; }
.project-number { color: #5f5f5f; font-size: 12px; letter-spacing: .1em; }

.manifesto { background: var(--blue); min-height: 740px; padding: 100px max(36px, calc((100vw - min(1440px, calc(100vw - 72px))) / 2)); display: grid; grid-template-columns: .35fr 1.15fr .5fr; gap: 6vw; align-items: center; }
.manifesto-number { align-self: start; font-size: 12px; letter-spacing: .18em; }
.manifesto-copy p:last-child { max-width: 680px; font-size: 21px; line-height: 1.55; margin: 36px 0 0; color: rgba(255,255,255,.78); }
.manifesto-signature { align-self: end; font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.5; }

.contact { min-height: 760px; width: var(--page); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; position: relative; }
.contact h2 { font-size: clamp(54px, 7.4vw, 110px); line-height: .94; }
.contact-link { align-self: flex-start; margin-top: 46px; font-size: 18px; border-bottom: 1px solid #606060; padding-bottom: 7px; }
.contact-link span { color: var(--blue); margin-left: 10px; }
.contact-note { position: absolute; right: 0; bottom: 70px; color: #777; font-size: 12px; }
footer { width: var(--page); margin: 0 auto; padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #777; font-size: 12px; }
.footer-brand { color: white; font-size: 23px; }
footer p { margin: 0; text-align: center; }
footer p:last-child { text-align: right; }

.video-dialog { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; margin: 0; padding: 0; background: rgba(5,5,5,.98); color: white; }
.video-dialog::backdrop { background: rgba(0,0,0,.86); }
.dialog-shell { min-height: 100%; width: min(1200px, calc(100vw - 72px)); margin: 0 auto; padding: 92px 0 52px; position: relative; }
.dialog-close { position: absolute; right: 0; top: 30px; border: 0; background: transparent; color: #bdbdbd; cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.dialog-close span { margin-left: 8px; font-size: 20px; vertical-align: -2px; }
.video-frame { aspect-ratio: 16 / 9; background: #111; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.dialog-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 34px; }
.dialog-meta h2 { font-size: clamp(31px, 4vw, 58px); line-height: 1; }
.dialog-meta > p { margin: 35px 0 0; color: #aaa; line-height: 1.6; max-width: 520px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes heroDrift { from { transform: scale(1.1); } to { transform: scale(1.04); } }
@keyframes cultureFlow { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 38px); }
  .site-header { padding-top: 20px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-bottom: 80px; }
  .hero h1 { font-size: clamp(44px, 11.5vw, 64px); }
  .hero-line { font-size: 20px; max-width: 90%; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 23px; }
  .hero-index { display: none; }
  .portfolio-section { padding: 100px 0 120px; }
  .section-heading { grid-template-columns: 1fr; gap: 34px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-top: 50px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { white-space: nowrap; }
  .project-grid { display: block; }
  .project-card { margin-bottom: 50px; }
  .project-card:nth-child(5n + 2) .project-cover { aspect-ratio: 16 / 10; }
  .project-play { opacity: 1; width: 52px; height: 52px; }
  .manifesto { min-height: auto; padding-top: 86px; padding-bottom: 86px; grid-template-columns: 1fr; gap: 70px; }
  .manifesto-number { display: none; }
  .manifesto-signature { justify-self: end; text-align: right; }
  .contact { min-height: 680px; }
  .contact-note { position: static; margin-top: 80px; }
  footer { grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
  .dialog-shell { width: calc(100vw - 28px); padding-top: 74px; }
  .dialog-meta { grid-template-columns: 1fr; gap: 8px; }
  .dialog-meta > p { margin-top: 8px; }
}

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