/* ==========================================================
   framesbymatt — design tokens
   ========================================================== */
:root {
  --ink: #0A0A0B;        /* Darkroom */
  --graphite: #161618;   /* Graphite */
  --line: #2A2A2E;       /* Hairline */
  --ash: #8B8B90;        /* Ash */
  --bone: #EEECE7;       /* Bone */
  --rec: #FF3B1F;        /* REC Red */

  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--ink); color: var(--bone); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--rec); color: var(--ink); }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 20% { transform: translate(-6%, 4%) } 40% { transform: translate(4%, -7%) }
  60% { transform: translate(-3%, 8%) } 80% { transform: translate(7%, 2%) } 100% { transform: translate(0, 0) }
}

/* ---------- type ---------- */
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; line-height: 1.6; }
.mono-dim { color: var(--ash); }
.mono b { font-weight: 500; color: var(--bone); }
.display { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; }
.h-xl { font-size: clamp(72px, 17vw, 320px); }
.h-lg { font-size: clamp(56px, 11vw, 200px); }
.h-md { font-size: clamp(40px, 6.4vw, 104px); }
.statement { font-family: var(--f-display); font-weight: 300; text-transform: uppercase; font-size: clamp(36px, 6.4vw, 112px); line-height: .98; letter-spacing: -.01em; }
.statement em { font-style: normal; color: var(--rec); }
.statement b { font-weight: 900; font-style: italic; }
.lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: #cfcdc8; max-width: 52ch; }
.lede b { color: var(--bone); font-weight: 600; }
.dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--rec); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); display: inline-block; margin-right: 8px; animation: blink 1.2s steps(2) infinite; vertical-align: middle; flex: none; }
@keyframes blink { 50% { opacity: .15 } }

/* split text: nothing gets clipped — lines carry room for descenders */
.split-line { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; }
.loader__mark { width: 96px; }
.loader__mark svg { width: 100%; height: auto; }
.loader__tc { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 13px; }
.loader__pct { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 10px); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(64px, 10vw, 160px); line-height: .8; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--rec); transform-origin: left; transform: scaleX(0); }

/* page curtain */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--rec); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter) 28px;
  background: linear-gradient(180deg, rgba(10,10,11,.75), rgba(10,10,11,0));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo svg:first-child { width: 30px; height: 30px; flex: none; }
.nav__word { height: 14px; width: auto; display: block; }
.nav__links { display: flex; gap: 6px; }
.nav__item { position: relative; }
.nav__item > a { position: relative; display: block; padding: 10px 11px; }
.nav__item > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__item:hover > a::after, .nav__item > a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.drop { position: absolute; left: 0; top: 100%; min-width: 280px; padding: 8px; background: rgba(14,14,16,.92); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease); display: grid; }
.nav__item:hover .drop, .nav__item:focus-within .drop { opacity: 1; transform: none; pointer-events: auto; }
.drop a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 5px; text-transform: none; letter-spacing: 0; transition: background .25s; }
.drop a:hover { background: rgba(238,236,231,.07); }
.drop a b { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 18px; line-height: 1; letter-spacing: 0; }
.drop a .mono-dim { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nav__status { justify-self: end; display: flex; align-items: center; }
.nav__menu { display: none; justify-self: end; }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__status { display: none; }
  .nav__menu { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); padding: 100px var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu nav { overflow: auto; }
.mobile-menu__group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.display { display: block; font-size: 13vw; line-height: 1; }
.mobile-menu__group .mono { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.mobile-menu__group .mono a { color: var(--ash); }
.mobile-menu .mono { text-transform: none; }

/* ---------- frame chrome ---------- */
.frame-ui { position: absolute; inset: var(--gutter); pointer-events: none; z-index: 3; }
.frame-ui .c { position: absolute; width: 18px; height: 18px; border-color: rgba(238,236,231,.7); border-style: solid; border-width: 0; }
.frame-ui .tl { left: 0; top: 52px; border-left-width: 1px; border-top-width: 1px; }
.frame-ui .tr { right: 0; top: 52px; border-right-width: 1px; border-top-width: 1px; }
.frame-ui .bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.frame-ui .br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.on { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.05) 35%, rgba(10,10,11,.2) 60%, rgba(10,10,11,.92) 100%); }
.hero__meta { position: absolute; z-index: 4; top: 86px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 24px; }
.hero__meta div { display: grid; gap: 2px; }
.hero__meta div:last-child { text-align: right; }
.hero__title { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 44px); }
.hero__word { font-size: clamp(60px, 16.2vw, 340px); line-height: .9; letter-spacing: -.01em; }
.hero__word .split-line { display: flex; justify-content: space-between; }
.hero__line { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(238,236,231,.25); }
.hero__tc { position: absolute; z-index: 4; right: var(--gutter); bottom: var(--gutter); display: flex; align-items: center; gap: 6px; }
.hero__sound { margin-right: 18px; padding: 8px 12px; border: 1px solid rgba(238,236,231,.35); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.hero__sound:hover, .hero__sound[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
@media (max-width: 760px) { .hero__meta div:last-child { display: none; } .hero__word { font-size: 15.4vw; } .hero__title { bottom: calc(var(--gutter) + 54px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 14vw, 200px) var(--gutter); }
.section--tight { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: clamp(32px, 5vw, 64px); }

/* statement with inline media pills */
.pill { display: inline-block; vertical-align: middle; height: .78em; width: 1.9em; border-radius: 999px; overflow: hidden; margin: 0 .08em; position: relative; top: -.06em; }
.pill img, .pill video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- index ---------- */
.index { list-style: none; border-top: 1px solid var(--line); }
.index__row { position: relative; border-bottom: 1px solid var(--line); }
.index__row a { display: grid; grid-template-columns: 70px 1fr 1fr 200px 40px; align-items: center; gap: 20px; padding: clamp(18px, 2.2vw, 30px) 0; position: relative; z-index: 1; transition: color .4s var(--ease), padding .6s var(--ease); }
.index__row::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.index__row:hover::before { transform: scaleY(1); transform-origin: top; }
.index__row:hover a { color: var(--ink); padding-left: 14px; padding-right: 14px; }
.index__row:hover .mono-dim, .index__row:hover .mono b { color: #55555a; }
.index__title { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 76px); line-height: .95; letter-spacing: -.01em; }
.index__arrow { justify-self: end; transition: transform .5s var(--ease); }
.index__row:hover .index__arrow { transform: rotate(-45deg); }
@media (max-width: 760px) { .index__row a { grid-template-columns: 34px 1fr 24px; } .index__row .hide-sm { display: none; } }

/* ---------- films grid ---------- */
.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 28px); }
.film-card { position: relative; display: block; }
.film-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--graphite); }
.film-card__media img, .film-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s ease; }
.film-card.vertical .film-card__media img, .film-card.vertical .film-card__media video { object-fit: contain; }
.film-card__media video { opacity: 0; }
.film-card:hover .film-card__media video { opacity: 1; }
.film-card:hover .film-card__media img, .film-card:hover .film-card__media video { transform: scale(1.03); }
.film-card__info { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; align-items: baseline; }
.play-chip { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; background: rgba(10,10,11,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 999px; }
@media (max-width: 760px) { .film-grid { grid-template-columns: 1fr; } .film-card__media video { opacity: 1; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 90px); align-items: end; }
.about__img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.about__img img { width: 100%; height: 115%; object-fit: cover; }
.about .statement { font-size: clamp(28px, 4vw, 70px); }
.about__meta { display: grid; grid-template-columns: 120px 1fr; gap: 10px 20px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.about__meta dd { display: flex; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__img { max-width: 420px; } }

/* ---------- contact / footer ---------- */
.cta__mail { display: block; font-size: clamp(34px, 9.2vw, 170px); margin-top: 20px; width: fit-content; max-width: 100%; text-transform: none; transition: color .3s; }
.cta__mail:hover { color: var(--rec); }
.cta__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.btn { display: inline-flex; align-items: center; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn:hover .rec-dot { background: var(--ink); animation: none; }
.footer { padding: clamp(40px, 6vw, 90px) var(--gutter) var(--gutter); }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer__grid a:hover { color: var(--rec); }
.footer__grid div { display: grid; gap: 6px; align-content: start; text-transform: none; }
.footer__word { padding-top: 14px; }
.footer__word svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- project pages ---------- */
.p-hero { position: relative; padding: 150px var(--gutter) 0; }
.p-hero__top { display: flex; justify-content: space-between; margin-bottom: 26px; }
.p-hero__title { font-size: clamp(64px, 14vw, 280px); }
.p-hero__info { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2.2fr; gap: 20px; margin-top: clamp(36px, 5vw, 70px); padding-top: 20px; border-top: 1px solid var(--line); }
.p-hero__info div { display: grid; gap: 4px; align-content: start; }
.p-hero__info .lede { font-size: clamp(16px, 1.25vw, 19px); }
@media (max-width: 900px) { .p-hero__info { grid-template-columns: 1fr 1fr; } .p-hero__info .desc { grid-column: 1 / -1; } }
.p-cover { margin: clamp(40px, 6vw, 80px) var(--gutter) 0; height: 72svh; overflow: hidden; border-radius: 4px; position: relative; }
.p-cover img, .p-cover video { width: 100%; height: 112%; object-fit: cover; }

.gallery { columns: 4; column-gap: clamp(10px, 1.2vw, 18px); padding: clamp(10px, 1.2vw, 18px) var(--gutter); }
.g-item { position: relative; break-inside: avoid; margin: 0 0 clamp(10px, 1.2vw, 18px); overflow: hidden; border-radius: 3px; background: var(--graphite); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease), filter .4s; }
.g-item:hover img { transform: scale(1.02); filter: brightness(1.06); }
.g-item .num { position: absolute; left: 10px; bottom: 10px; z-index: 2; opacity: 0; transition: opacity .3s; }
.g-item:hover .num { opacity: 1; }
@media (max-width: 1200px) { .gallery { columns: 3; } }
@media (max-width: 760px) { .gallery { columns: 2; } }

.clips-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); }
.clip { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 3px; background: var(--graphite); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .label { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.clip .sound { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(10,10,11,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 11px; }
@media (max-width: 760px) { .clips-row { grid-template-columns: 1fr; } .clip { aspect-ratio: 4/5; } }

.wall { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.wall .clip { aspect-ratio: 16/9; }
.wall .clip:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 21/9; }
@media (max-width: 760px) { .wall { grid-template-columns: 1fr; } .wall .clip, .wall .clip:nth-child(3n+1) { aspect-ratio: 16/9; } }

.film-list { display: grid; gap: clamp(80px, 10vw, 160px); }
.film-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.film-row:nth-child(even) { grid-template-columns: 2.4fr 1fr; }
.film-row:nth-child(even) .film-row__info { order: 2; }
.film-row__media { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; cursor: pointer; background: var(--graphite); }
.film-row.vertical .film-row__media { aspect-ratio: 4/5; max-width: 560px; }
.film-row__media img, .film-row__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-row__info { display: grid; gap: 16px; justify-items: start; }
.film-row__info .display { font-size: clamp(40px, 4.8vw, 88px); line-height: .92; }
.big-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--rec); color: var(--ink); display: grid; place-items: center; transform: scale(.85); transition: transform .5s var(--ease); }
.film-row__media:hover .big-play { transform: scale(1); }
@media (max-width: 860px) { .film-row, .film-row:nth-child(even) { grid-template-columns: 1fr; } .film-row:nth-child(even) .film-row__info { order: 0; } }

.next { display: block; padding: clamp(80px, 12vw, 180px) var(--gutter); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.next .display { font-size: clamp(60px, 13vw, 240px); transition: transform .8s var(--ease); }
.next:hover .display { transform: translateX(2vw); }
.next .display em { font-style: normal; transition: color .4s; }
.next:hover .display em { color: var(--rec); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,10,11,.96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100svh - 140px); object-fit: contain; }
.lightbox video { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100svh - 140px); background: #000; }
.lightbox__bar { position: absolute; left: var(--gutter); right: var(--gutter); top: 18px; display: flex; justify-content: space-between; align-items: center; }
.lightbox__nav { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; }
.lightbox button.mono { padding: 8px 0; }


/* ---------- reveal defaults ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); }
.js-off [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .grain, .rec-dot { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   BRAND GUIDELINES
   ========================================================== */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.brand-grid--3 { grid-template-columns: repeat(3, 1fr); }
.brand-tile { position: relative; border-radius: 4px; padding: 22px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.brand-tile svg.mark { width: clamp(110px, 14vw, 200px); height: auto; align-self: center; margin: auto; }
.brand-tile.is-primary { outline: 1px solid var(--rec); outline-offset: -1px; }
.tile-dark { background: var(--graphite); }
.tile-ink { background: var(--ink); border: 1px solid var(--line); }
.tile-bone { background: var(--bone); color: var(--ink); }
.tile-rec { background: var(--rec); color: var(--ink); }
.construct svg { width: 100%; height: auto; }
.lockup { display: flex; align-items: center; gap: .3em; font-family: var(--f-display); font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; }
.wm svg { width: 100%; height: auto; display: block; }
.lockup svg { height: 1.05em; width: auto; flex: none; }
.swatches { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: clamp(8px, 1vw, 14px); }
.swatch { border-radius: 4px; padding: 18px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; }
.swatch h4 { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; }
.swatch dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; }
.swatch dt { opacity: .6; }
@media (max-width: 860px) { .swatches { grid-template-columns: 1fr 1fr; } .swatch:first-child { grid-column: 1 / -1; } .brand-grid, .brand-grid--3 { grid-template-columns: 1fr; } }
.ratio-bar { display: flex; height: 64px; border-radius: 4px; overflow: hidden; margin-top: 14px; }
.ratio-bar div { display: flex; align-items: end; padding: 8px; font-family: var(--f-mono); font-size: 10px; }
.type-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); align-items: baseline; }
.type-row .spec { display: grid; gap: 4px; }
@media (max-width: 760px) { .type-row { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.rule { border-radius: 4px; overflow: hidden; }
.rule__vis { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.rule__vis svg { width: 46%; }
.rule__cap { padding: 12px 2px; display: flex; gap: 8px; align-items: start; }
.rule__cap b { font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.rule .x { color: var(--rec); }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr 1fr; } }
.apps { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.app { border-radius: 4px; overflow: hidden; position: relative; background: var(--graphite); }
.app img { width: 100%; height: 100%; object-fit: cover; }
.overlay-ui { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 60%, rgba(0,0,0,.7)); }
.card-biz { aspect-ratio: 1.75; border-radius: 6px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) { .apps > * { grid-column: span 12 !important; } }
.toc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 16px; }
.toc a:hover { color: var(--rec); }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr 1fr; } }

/* ---------- 3D scene ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.fl { position: absolute; width: 0; height: 0; pointer-events: none; }
.intro .statement { max-width: 68%; }
@media (max-width: 760px) { .intro .statement { max-width: 100%; } .intro { padding-bottom: 46vw; } }

/* ---------- brands ---------- */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.brand { position: relative; height: clamp(120px, 12.5vw, 190px); background: var(--bone); color: var(--ink); border-radius: 4px; display: grid; place-items: center; padding: 18px; text-align: center; transition: background .4s; outline: none; min-width: 0; }
.brand--ink { background: var(--graphite); color: var(--bone); }
.brand img { width: 68%; height: 58%; object-fit: contain; filter: grayscale(1); transition: filter .4s, transform .6s var(--ease); }
.brand:hover img, .brand:focus img, .brand.open img { filter: none; transform: scale(1.04); }
.brand__drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 4px; padding: 12px 14px; background: rgba(14,14,16,.96); color: var(--bone); border: 1px solid var(--line); border-radius: 6px; text-align: left; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.brand:hover .brand__drop, .brand:focus .brand__drop, .brand.open .brand__drop { opacity: 1; transform: none; }
.brand__drop b { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1; }
.brand__drop span { font-size: 13px; line-height: 1.4; color: #cfcdc8; }
.brand__drop em { font-style: normal; color: var(--ash); margin-top: 4px; }
.brands > .brand:hover, .brands > .brand.open { z-index: 21; }
@media (max-width: 860px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand { height: 34vw; } }

/* ---------- about page ---------- */
.p-cover--portrait { height: 110svh; }
.p-cover--portrait img { height: 125%; }

/* ---------- client themes ---------- */
.theme-tgt { --rec: #1FEFA8; }
.theme-tgt .p-hero { background: radial-gradient(60% 50% at 85% 20%, rgba(105,59,230,.35), transparent 70%); }
.theme-tgt .client-logo { position: absolute; right: var(--gutter); top: 120px; width: clamp(90px, 14vw, 220px); filter: drop-shadow(0 0 30px rgba(105,59,230,.5)); z-index: 2; }
.theme-tgt .p-hero__title { max-width: 78%; }
.theme-tgt .rec-dot, .theme-tgt .dot, .theme-tgt .curtain, .theme-tgt .big-play { background: #1FEFA8; }
.theme-tgt .index__row:hover::before { background: #1FEFA8; }
.theme-tgt .next:hover .display em { color: #1FEFA8; }

/* ---------- texture: halftone ---------- */
.halftone { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at center, rgba(238,236,231,.22) 0 .9px, transparent 1.3px);
  background-size: 5px 5px; }
.section, .p-hero { isolation: isolate; }
.section > *:not(.halftone), .p-hero > *:not(.halftone) { position: relative; z-index: 1; }
.halftone--right { -webkit-mask-image: radial-gradient(60% 90% at 92% 50%, #000 0%, rgba(0,0,0,.5) 40%, transparent 72%); mask-image: radial-gradient(60% 90% at 92% 50%, #000 0%, rgba(0,0,0,.5) 40%, transparent 72%); }
.halftone--left { -webkit-mask-image: radial-gradient(55% 80% at 4% 30%, #000 0%, rgba(0,0,0,.45) 40%, transparent 72%); mask-image: radial-gradient(55% 80% at 4% 30%, #000 0%, rgba(0,0,0,.45) 40%, transparent 72%); }
.halftone--tr { -webkit-mask-image: radial-gradient(50% 70% at 100% 0%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%); mask-image: radial-gradient(50% 70% at 100% 0%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%); }
.halftone--hero { z-index: 2; background-size: 7px 7px; background-image: radial-gradient(circle at center, rgba(10,10,11,.9) 0 1.1px, transparent 1.6px); -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 45%, #000 100%); mix-blend-mode: multiply; }
.hero > *:not(.halftone):not(.hero__media) { z-index: 4; }
.theme-tgt .halftone { background-image: radial-gradient(circle at center, rgba(31,239,168,.28) 0 .9px, transparent 1.3px); }

/* ---------- explorations ---------- */
.x-list { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.x-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(16px, 2vw, 32px); align-items: center; padding: clamp(16px, 2vw, 28px) 0; border-top: 1px solid var(--line); }
.x-meta { display: grid; gap: 8px; align-content: start; }
.x-meta h3 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1; }
.x-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.x-tile { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; }
.x-tile svg { width: 58%; height: auto; }
.x-dark { background: var(--ink); border: 1px solid var(--line); color: var(--bone); }
.x-bone { background: var(--bone); color: var(--ink); }
.x-red { background: var(--rec); color: var(--ink); }
.x-red .dot { fill: var(--ink); }
.x-tile svg path, .x-tile svg circle:not(.dot) { fill: currentColor; }
.x-tile svg path[fill="none"] { fill: none; }
.x-tile svg .dot { fill: var(--rec); }
.x-red svg .dot { fill: var(--ink); }
.x-small { grid-auto-flow: row; gap: 10px; align-content: center; }
.x-small > div { display: grid; place-items: center; }
.x-small > div:nth-child(1) svg { width: 48px; } .x-small > div:nth-child(2) svg { width: 28px; } .x-small > div:nth-child(3) svg { width: 16px; }
.x-words { display: grid; gap: 0; }
.x-word { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; padding: clamp(18px, 2.4vw, 36px) 0; border-top: 1px solid var(--line); }
.x-word .x-meta { gap: 4px; }
.x-sample { font-size: clamp(40px, 7vw, 120px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.x-sample .dot { width: .12em; height: .12em; margin-left: .06em; vertical-align: baseline; }
.x-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.x-pair { display: flex; align-items: center; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; min-height: 110px; font-size: clamp(18px, 1.5vw, 26px); flex-wrap: wrap; }
.x-pair__mark { width: 40px; flex: none; }
.x-pair__mark svg { width: 100%; height: auto; }
.x-pair__mark svg path, .x-pair__mark svg circle:not(.dot) { fill: currentColor; } .x-pair__mark svg path[fill="none"] { fill: none; } .x-pair__mark svg .dot { fill: var(--rec); }
.x-pair .mono-dim { width: 100%; }
@media (max-width: 860px) { .x-row, .x-word { grid-template-columns: 1fr; } .x-pairs { grid-template-columns: 1fr; } .x-sample { font-size: 11vw; } }
