/* ==========================================================================
   vogdanis.com — 2026
   Dark gallery, porcelain ink, one ember accent. Archivo (variable width),
   Instrument Serif for voice, JetBrains Mono for machine readouts.
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-2: #121210;
  --bg-3: #1a1a17;
  --ink: #ece7de;
  --ink-2: #c4beb3;
  --muted: #8a857c;
  --line: rgba(236, 231, 222, .12);
  --line-2: rgba(236, 231, 222, .24);
  --ember: #ff5a1f;
  --ember-2: #ff8a5c;

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --gap: clamp(16px, 2.2vw, 32px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img.is-alpha { object-fit: contain !important; }
img { height: auto; background: var(--ph, var(--bg-2)); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ember-2); }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 3px; }

.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.dim { color: var(--muted); }
.visually-hidden, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { width: 100%; max-width: 1800px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
.h1, .h2, h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -.025em; line-height: 1.02; }
.h1 { font-size: clamp(2.6rem, 6.5vw, 6.5rem); font-stretch: 112%; }
.h2 { font-size: clamp(2rem, 4.2vw, 4rem); font-stretch: 108%; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); font-weight: 400; letter-spacing: -.01em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.45; color: var(--ink); font-weight: 300; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 68ch; }
.prose p.lede { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); }

.kicker { display: inline-flex; align-items: center; gap: .9em; margin: 0; color: var(--ink-2); }
.kicker__idx { color: var(--ember); min-width: 2.2em; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.4em; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { border-color: var(--ink); color: var(--ink); background: rgba(236,231,222,.06); }
.btn--solid, .prose a.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover, .prose a.btn--solid:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,11,10,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand:hover { color: var(--ink); }
.nav__mark { color: var(--ink); transition: transform .6s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(-12deg); color: var(--ember); }
.nav__name { font-size: .95rem; font-weight: 500; letter-spacing: -.005em; font-stretch: 110%; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; }
.nav__links a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { right: 0; }
.nav__cta { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px !important; }
.nav__cta::after { display: none; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--pad) 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: clamp(2rem, 9vw, 3rem); font-weight: 300; font-stretch: 110%; letter-spacing: -.02em; }
.menu a .mono { color: var(--ember); width: 3.5em; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 168px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.section__note { color: var(--muted); margin: 0; }
.section__note a { color: var(--ink-2); text-decoration: none; }
.section__note a:hover { color: var(--ember-2); }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   HERO — generative toolpath
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: var(--nav-h); overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: crosshair; }
.hero::after { /* soft vignette so copy stays readable over the form */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 10% 100%, rgba(11,11,10,.85) 0%, rgba(11,11,10,0) 55%);
}
.hero__top { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; color: var(--muted); }
.hero__top .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(255,90,31,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.hero__copy { align-self: end; padding-bottom: clamp(40px, 9vh, 110px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__title { font-size: clamp(2.9rem, 7.2vw, 8.6rem); font-weight: 250; font-stretch: 115%; letter-spacing: -.045em; line-height: .94; margin: 18px 0 28px; max-width: 12ch; }
.hero__title em { font-size: 1.08em; letter-spacing: -.02em; color: var(--ink); }
.hero__lede { max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.2rem); margin: 0; }
.hero__lede a { color: var(--ink); }
.hero__readout {
  position: absolute; right: var(--pad); top: calc(var(--nav-h) + 64px);
  width: 250px; display: grid; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--line); background: rgba(11,11,10,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink-2); font-size: .68rem;
}
.hero__row { display: flex; justify-content: space-between; }
.hero__row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__gcode { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--ember-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; }
.hero__new { margin-top: 8px; background: none; border: 0; padding: 0; text-align: left; color: var(--muted); cursor: pointer; font: inherit; text-transform: uppercase; letter-spacing: .04em; }
.hero__new:hover { color: var(--ember-2); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.hero__scroll span { width: 1px; height: 36px; background: linear-gradient(var(--line-2), transparent); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ember); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) {
  .hero__readout { position: static; width: auto; margin: 0 var(--pad) 72px; }
  .hero__copy { padding-bottom: 28px; }
  .hide-s { display: none; }
  .hero::after { background: linear-gradient(to top, rgba(11,11,10,.92) 25%, rgba(11,11,10,0) 75%); }
}

/* ==========================================================================
   STUDIO (home)
   ========================================================================== */
.studio__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.studio__media { margin: 0; }
.studio__media a { display: block; aspect-ratio: 1; overflow: hidden; background: #000; }
.studio__video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.studio__media:hover .studio__video { transform: scale(1.035); }
.studio__media figcaption { margin-top: 10px; }
.studio__copy .h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); font-stretch: 118%; letter-spacing: -.04em; margin-bottom: 28px; }
.studio__copy p { color: var(--ink-2); max-width: 52ch; }
.studio__copy .lede { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.facts li span { color: var(--ember); width: 2em; }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } }

.collections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); }
.coll { text-decoration: none; display: block; }
.coll:hover { color: var(--ink); }
.coll__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.coll__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: grayscale(.25) brightness(.92); }
.coll:hover .coll__img img { transform: scale(1.05); filter: none; }
.coll__meta { display: flex; justify-content: space-between; color: var(--muted); padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.coll:hover .coll__meta { color: var(--ember-2); }
.coll__name { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 300; font-stretch: 112%; margin: 14px 0 6px; letter-spacing: -.02em; }
.coll__line { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 1100px) {
  .collections { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .coll { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
}

/* ==========================================================================
   SELECTED WORK
   ========================================================================== */
.works { display: grid; gap: clamp(72px, 10vw, 160px); }
.w__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; text-decoration: none; }
.w__link:hover { color: var(--ink); }
.w__media { grid-column: 1 / span 8; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.w__media img, .w__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.w__link:hover .w__media img, .w__link:hover .w__media video { transform: scale(1.03); }
.w__info { grid-column: 9 / span 4; padding-bottom: 6px; }
.w--b .w__media { grid-column: 5 / span 8; grid-row: 1; }
.w--b .w__info { grid-column: 1 / span 4; grid-row: 1; }
.w--c .w__media { grid-column: 2 / span 7; aspect-ratio: 4 / 3; }
.w--c .w__info { grid-column: 9 / span 4; }
.w.w--port .w__media { grid-column: 2 / span 5; aspect-ratio: 4 / 5; }
.w.w--port .w__info { grid-column: 8 / span 5; }
.w.w--port.w--b .w__media { grid-column: 7 / span 5; }
.w.w--port.w--b .w__info { grid-column: 1 / span 5; }
.w[hidden] { display: none; }
.filters sup { font-size: .8em; opacity: .6; margin-left: 2px; }
.w__idx { color: var(--ember); display: block; margin-bottom: 18px; }
.w__title { font-size: clamp(2.3rem, 4.8vw, 4.8rem); font-weight: 250; font-stretch: 116%; letter-spacing: -.04em; line-height: .95; }
.w__meta { color: var(--muted); margin: 16px 0 14px; }
.w__sum { color: var(--ink-2); margin: 0 0 22px; max-width: 40ch; }
.w__more { display: inline-flex; gap: .6em; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.w__link:hover .w__more { color: var(--ember-2); border-color: var(--ember); }
@media (max-width: 900px) {
  .w__link { grid-template-columns: 1fr; }
  .w__media, .w--b .w__media, .w--c .w__media, .w.w--port .w__media, .w.w--port.w--b .w__media { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; }
  .w.w--port .w__media { aspect-ratio: 4 / 5; }
  .w__info, .w--b .w__info, .w--c .w__info, .w.w--port .w__info, .w.w--port.w--b .w__info { grid-column: 1; grid-row: auto; }
  .w__idx { margin-bottom: 10px; }
}

/* ==========================================================================
   ARCHIVE
   ========================================================================== */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--muted); font: inherit; text-transform: inherit; letter-spacing: inherit; }
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.arch { list-style: none; margin: 0; padding-block: 0; }
.arch__row[hidden] { display: none; }
.arch__row a {
  display: grid; grid-template-columns: 5.5em 48px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr) 24px; gap: 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: padding .45s var(--ease), color .3s;
}
.arch__row a:hover { color: var(--ink); padding-left: 14px; }
.arch__row a::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ember); transition: width .6s var(--ease); }
.arch__row a:hover::before { width: 100%; }
.arch__idx { color: var(--muted); }
.arch__row a:hover .arch__idx { color: var(--ember); }
.arch__glyph { width: 48px; height: 48px; }
.arch__glyph img { width: 100%; height: 100%; object-fit: contain; background: transparent; opacity: .55; transition: opacity .3s; }
.arch__row a:hover .arch__glyph img { opacity: 1; }
.arch__title { font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 300; font-stretch: 112%; letter-spacing: -.02em; }
.arch__sum { color: var(--muted); font-size: .95rem; }
.arch__tag { color: var(--muted); text-align: right; }
.arch__arrow { text-align: right; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.arch__row a:hover .arch__arrow { transform: translateX(4px); color: var(--ember); }
@media (max-width: 900px) {
  .arch__row a { grid-template-columns: 4.6em 1fr 20px; gap: 12px; }
  .arch__glyph, .arch__sum, .arch__tag { display: none; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 280px; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.9); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: auto; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
@media (hover: none), (max-width: 900px) { .peek { display: none; } }

/* ==========================================================================
   PRESS
   ========================================================================== */
.press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press__item a {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1.2fr) 24px; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s;
}
.press__item a:hover { color: var(--ink); background: linear-gradient(90deg, rgba(255,90,31,.06), transparent 60%); }
.press__date { color: var(--muted); }
.press__outlet { font-size: clamp(1.25rem, 1.8vw, 1.7rem); font-weight: 400; font-stretch: 112%; letter-spacing: -.015em; }
.press__title { display: flex; flex-direction: column; gap: 2px; }
.press__t { font-family: var(--f-serif); font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.25; }
.press__en { color: var(--muted); font-size: .85rem; }
.press__tags { color: var(--muted); }
.press__arrow { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.press__item a:hover .press__arrow { color: var(--ember); transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .press__item a { grid-template-columns: 1fr 20px; gap: 6px 12px; }
  .press__date { grid-column: 1; }
  .press__outlet, .press__title, .press__tags { grid-column: 1; }
  .press__arrow { grid-column: 2; grid-row: 1; }
}

/* ==========================================================================
   ABOUT TEASER / ABOUT
   ========================================================================== */
.at { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.at__img { margin: 0; }
.at__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.at__img figcaption { margin-top: 10px; }
.at__copy .h2 { margin-bottom: 24px; }
.at__copy p { color: var(--ink-2); max-width: 54ch; margin: 0 0 28px; }
@media (max-width: 900px) { .at { grid-template-columns: 1fr; } }

.page-about main, .page-project main, .nf { padding-top: var(--nav-h); }
.ab-hero { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; padding-top: clamp(48px, 8vw, 120px); }
.ab-hero .h1 { margin-top: 28px; font-weight: 250; }
.ab-hero__img { margin: 0; }
.ab-hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ab-bio { padding-top: clamp(56px, 7vw, 110px); }
.ab-bio .lede { font-family: var(--f-serif); font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.18; max-width: 28ch; margin-bottom: 1.2em; }
@media (min-width: 1000px) { .ab-bio { padding-left: calc(var(--pad) + 33%); } }
@media (max-width: 900px) { .ab-hero { grid-template-columns: 1fr; } }

.cv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.cv__h { color: var(--ember); margin: 0 0 16px; font-weight: 400; }
.cv ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv__y { color: var(--muted); padding-top: 3px; }
.cv__t { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.35; }
.cv__p { color: var(--muted); font-size: .88rem; margin-top: 3px; }
.tools { margin-top: clamp(48px, 6vw, 90px); }
.tools__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); padding-top: 18px; }
.chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 1000px) { .cv { grid-template-columns: 1fr; } .tools__grid { grid-template-columns: 1fr 1fr; } }
.ab-studio__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); align-items: end; }
.ab-studio__grid figure { margin: 0; }
.ab-studio__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ab-studio__grid figure:first-child img { aspect-ratio: 3 / 2; }
.ab-studio__grid figcaption { margin-top: 10px; }
@media (max-width: 800px) { .ab-studio__grid { grid-template-columns: 1fr 1fr; } .ab-studio__grid figure:first-child { grid-column: 1 / -1; } }

.statement__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.statement__quote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.12; color: var(--ink); position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 900px) { .statement__grid { grid-template-columns: 1fr; } .statement__quote { position: static; } }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.p-head { padding-top: clamp(40px, 7vw, 100px); padding-bottom: clamp(28px, 3vw, 48px); }
.crumbs { color: var(--muted); display: flex; gap: .8em; margin: 0 0 22px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs .idx { color: var(--ember); }
.p-title { font-size: clamp(3.2rem, 11vw, 11rem); font-weight: 250; font-stretch: 118%; letter-spacing: -.05em; line-height: .9; }
.p-sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--ink-2); margin: 18px 0 0; }
.p-hero { margin: 0 auto; }
.p-hero__frame { overflow: hidden; background: var(--bg-2); max-height: 86svh; aspect-ratio: 16 / 9; }
.p-hero__media { width: 100%; height: 100%; object-fit: cover; }
.project--port .p-hero__frame { aspect-ratio: auto; max-height: none; display: flex; justify-content: center; background: transparent; }
.project--port .p-hero__media { height: auto; max-height: 86svh; object-fit: contain; width: auto; }
.p-note { margin: 10px 0 0; color: var(--muted); display: flex; gap: .6em; align-items: center; }
.p-note::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ember); border-radius: 50%; flex: none; }
.p-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 96px); padding-top: clamp(56px, 7vw, 110px); }
.p-meta { margin: 0; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); border-top: 1px solid var(--line); }
.p-meta div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.p-meta dt { color: var(--muted); }
.p-meta dd { margin: 0; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .78rem; line-height: 1.5; }
.p-meta a { color: var(--ink); }
.p-text { font-size: clamp(1.05rem, 1.2vw, 1.2rem); }
.p-text p:first-of-type { color: var(--ink); font-size: 1.15em; line-height: 1.5; }
.p-lede { color: var(--ink) !important; }
.p-quote { margin: 0 0 2em; padding: 0; }
.p-quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 3.2rem) !important; line-height: 1.1 !important; color: var(--ink) !important; max-width: 22ch !important; margin-bottom: .4em !important; }
.p-quote cite { color: var(--muted); font-style: normal; }
@media (max-width: 900px) { .p-body { grid-template-columns: 1fr; } .p-meta { position: static; } }

.p-film { padding-top: clamp(72px, 9vw, 140px); }
.p-film .kicker { margin-bottom: 18px; }
.p-film__item { margin: 0; }
.p-film__item figcaption { margin-top: 10px; color: var(--muted); }
.p-film__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
@media (max-width: 700px) { .p-film__more { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__btn { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: grayscale(.4); transition: opacity .5s, transform 1.4s var(--ease); }
.yt__btn:hover img { opacity: .85; transform: scale(1.02); }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; padding: 14px 22px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11,11,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); }
.yt__tri { width: 0; height: 0; border-left: 10px solid var(--ember); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.yt__btn:hover .yt__play { border-color: var(--ink); }

.p-extra { margin: clamp(56px, 7vw, 110px) auto 0; }
.p-extra__media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.p-extra figcaption { margin-top: 10px; color: var(--muted); }

.p-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); padding-top: clamp(72px, 9vw, 140px); }
.g { margin: 0; }
.g--land { grid-column: span 2; }
.g__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g__btn img { width: 100%; height: auto; transition: opacity .4s; }
.g__btn:hover img { opacity: .9; }
.g figcaption { margin-top: 10px; color: var(--muted); }
@media (min-width: 1100px) { .p-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g--land { grid-column: span 2; } .g--land:nth-of-type(4n+1) { grid-column: span 3; } }
@media (max-width: 640px) { .p-gallery { grid-template-columns: 1fr; } .g--land { grid-column: auto; } }

.p-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(96px, 12vw, 180px); border-top: 1px solid var(--line); }
.p-next__item { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; text-decoration: none; }
.p-next__item--r { text-align: right; align-items: flex-end; }
.p-next__title { font-size: clamp(1.8rem, 4.5vw, 4.2rem); font-weight: 250; font-stretch: 116%; letter-spacing: -.04em; line-height: 1; transition: color .3s; }
.p-next__item:hover .p-next__title { color: var(--ember-2); }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(11,11,10,.96); color: var(--ink); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 2 * var(--pad) - 120px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; background: transparent; }
.lightbox__cap { position: absolute; left: var(--pad); bottom: 24px; margin: 0; color: var(--muted); }
.lightbox__close { position: absolute; top: 20px; right: var(--pad); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,11,10,.5); cursor: pointer; font-size: 1.1rem; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--ember); color: var(--ember-2); }
.lightbox__prev { left: var(--pad); } .lightbox__next { right: var(--pad); }
@media (max-width: 700px) { .lightbox img { max-width: 100vw; } .lightbox__nav { top: auto; bottom: 16px; transform: none; } .lightbox__cap { bottom: 84px; } }

/* ==========================================================================
   BINARYCERAMICS PAGE
   ========================================================================== */
.bc-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.bc-hero__media { position: absolute; inset: 0; z-index: -1; background: #000; }
.bc-hero__video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.bc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,11,10,.95) 0%, rgba(11,11,10,.2) 55%, rgba(11,11,10,.55) 100%); }
.bc-hero__copy { padding-bottom: clamp(48px, 10vh, 120px); }
.bc-hero__title { font-size: clamp(3.2rem, 12vw, 13rem); font-weight: 250; font-stretch: 122%; letter-spacing: -.055em; line-height: .86; margin: 22px 0 18px; }
.bc-hero__lede { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.8rem); margin: 0; color: var(--ink); }
.bc-hero__note { position: absolute; right: var(--pad); bottom: 22px; margin: 0; }
@media (max-width: 700px) { .bc-hero__note { display: none; } }
.bc-intro .lede { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 300; line-height: 1.3; max-width: 34ch; margin-bottom: 1.4em; }
@media (min-width: 1000px) { .bc-intro { padding-left: calc(var(--pad) + 25%); } }
.steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step { border-top: 1px solid var(--line); padding-top: 0; }
.step__img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; background: #000; }
.step__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
.step:hover .step__img img { filter: none; transform: scale(1.03); }
.step__n { color: var(--ember); margin: 0 0 6px; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 300; font-stretch: 112%; margin-bottom: 10px; }
.step p:last-child { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.machines { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.m { margin: 0; }
.m img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.m figcaption { margin-top: 10px; color: var(--muted); }
.m--a { grid-column: 1 / span 5; } .m--a img { aspect-ratio: 1; }
.m--b { grid-column: 6 / span 4; } .m--b img { aspect-ratio: 1; }
.m--c { grid-column: 10 / span 3; } .m--c img { aspect-ratio: 3 / 4; }
.m--d { grid-column: 3 / span 4; } .m--d img { aspect-ratio: 3 / 4; }
.m--e { grid-column: 8 / span 4; } .m--e img { aspect-ratio: 3 / 4; }
@media (max-width: 800px) { .machines { grid-template-columns: 1fr 1fr; } .m { grid-column: auto !important; } .m--a { grid-column: 1 / -1 !important; } }

.bcc { display: grid; gap: clamp(64px, 9vw, 140px); }
.bcc__item { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 96px); align-items: center; }
.bcc__item--r { grid-template-columns: 5fr 6fr; }
.bcc__item--r .bcc__img { order: 2; }
.bcc__img { display: block; aspect-ratio: 1; overflow: hidden; background: #000; }
.bcc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bcc__img:hover img { transform: scale(1.04); }
.bcc__copy .h2 { margin: 10px 0 18px; }
.bcc__copy p { color: var(--ink-2); max-width: 46ch; }
.bcc__copy .lede { color: var(--ink); }
@media (max-width: 900px) { .bcc__item { grid-template-columns: 1fr; } .bcc__item--r .bcc__img { order: 0; } }

.commission__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 96px); border-top: 1px solid var(--line); padding-top: 40px; }
.commission .h2 { margin-top: 24px; }
.case { border: 1px solid var(--line); padding: 24px; margin: 28px 0 32px; background: var(--bg-2); }
.case h3 { margin: 8px 0 10px; }
.case p:last-child { margin: 0; }
@media (max-width: 900px) { .commission__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { position: relative; margin-top: clamp(120px, 14vw, 220px); border-top: 1px solid var(--line); overflow: hidden; }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--pad) 0; }
.foot__title { font-size: clamp(2.4rem, 6vw, 6rem); font-weight: 250; font-stretch: 114%; letter-spacing: -.045em; line-height: .98; margin: 22px 0 36px; max-width: 16ch; }
.foot__mail { margin: 0 0 clamp(56px, 7vw, 96px); }
.foot__mail a { font-size: clamp(1.3rem, 3vw, 2.6rem); font-weight: 300; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: border-color .3s, color .3s; }
.foot__mail a:hover { border-color: var(--ember); }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot__grid > div { display: flex; flex-direction: column; gap: 6px; }
.foot__grid a { text-decoration: none; color: var(--ink-2); }
.foot__grid a:hover { color: var(--ember-2); }
.foot__label { color: var(--muted); margin: 0 0 6px; }
.foot__end { align-items: flex-end; text-align: right; }
.foot__word { font-size: clamp(3rem, 15.5vw, 17rem); font-weight: 200; font-stretch: 125%; letter-spacing: -.06em; line-height: .78; color: transparent; -webkit-text-stroke: 1px rgba(236,231,222,.14); text-align: center; margin-bottom: -.12em; user-select: none; white-space: nowrap; }
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__end { align-items: flex-start; text-align: left; } }

/* 404 */
.nf { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.nf .h1 { font-weight: 250; }

/* ==========================================================================
   CURSOR LABEL (pointer devices only)
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor span { display: block; transform: translate(-50%, -50%) scale(.6); transition: transform .35s var(--ease); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.cursor.is-on { opacity: 1; }
.cursor.is-on span { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor { display: none; } }
