/* ============================================================
   Alexander Ryashin - Portfolio
   Design system per DESIGN.md. Museum publication, not web app.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Albert+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root{
  --ink:#ffffff;
  --sub:#A5A5A5;
  --paper:#000000;
  --rule:#A5A5A5;
  --accent:#A5A5A5;
  --gray:#A5A5A5;

  --display:'Fraunces', Georgia, serif;
  --body:'Albert Sans', system-ui, sans-serif;
  --mono:'Albert Sans', system-ui, sans-serif;

  --maxw:1280px;
  --pad:24px;          /* mobile */
  --nav-h:67px;
  --edge:48px;
  --edge-top:24px;

  /* ----- Apple-style glass ----- */
  --glass-blur:saturate(180%) blur(18px);
  --glass-light:rgba(0,0,0,.66);     /* on light bg */
  --glass-light-bd:#A5A5A5;
  --glass-light-sh:0 8px 30px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.06) inset;
  --glass-dark:rgba(0,0,0,.26);          /* on imagery */
  --glass-dark-bd:rgba(255,255,255,.30);
  --glass-dark-sh:0 10px 36px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.35) inset;
}
@media (min-width:768px){ :root{ --pad:48px; --nav-h:77px; } }
@media (min-width:1100px){ :root{ --pad:80px; --edge:68px; --edge-top:32px; } }

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
@media (min-width:768px){ body{ font-size:17px; } }

img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }

/* ---------- Layout primitives ---------- */
.container{ max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.section{ padding-top:var(--edge); padding-bottom:var(--edge); }
body > section:first-of-type:not(.hero){ padding-top:var(--edge-top); }
body > section:last-of-type{ padding-bottom:var(--edge); }
.rule{ border:0; border-top:1px solid var(--rule); margin:0; }
body > .rule{ width:calc(min(100%, var(--maxw)) - 2 * var(--pad)); margin-left:auto; margin-right:auto; }

/* ---------- Type ---------- */
.display{ font-family:var(--display); font-weight:300; }
h1,h2,h3{ font-family:var(--display); font-weight:300; margin:0; color:var(--ink); }
h1,.h1{ font-size:clamp(32px,6vw,56px); line-height:1.06; letter-spacing:-0.5px; }
h2,.h2{ font-size:clamp(24px,3.4vw,38px); line-height:1.2; }
h3,.h3{ font-size:clamp(18px,2vw,24px); line-height:1.3; }
.caps{ text-transform:uppercase; letter-spacing:0.12em; }
.eyebrow{ font-family:var(--mono); font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--sub); }
.meta{ font-family:var(--mono); font-size:13px; line-height:1.5; color:var(--sub); letter-spacing:0.01em; }
@media (min-width:768px){ .meta{ font-size:14px; } }
.caption{ font-size:13px; line-height:1.4; color:var(--sub); }
@media (min-width:768px){ .caption{ font-size:14px; } }
.lead{ font-family:var(--display); font-size:clamp(20px,2.6vw,27px); line-height:1.4; color:var(--ink); font-weight:300; }
.body-measure{ max-width:62ch; }
p{ margin:0 0 1.1em; text-wrap:pretty; }
em,i{ font-style:italic; }
strong{ font-weight:600; }

/* ---------- Text link (no buttons) ---------- */
.tlink{
  white-space:nowrap;
  font-family:var(--body); font-size:inherit; color:var(--ink);
  display:inline-flex; align-items:center; gap:8px;
  padding-bottom:2px; border-bottom:1px solid var(--ink);
  transition:color .25s ease, border-color .25s ease, gap .25s ease;
}
.tlink .arw{ transition:transform .25s ease; }
.tlink:hover{ color:var(--accent); border-color:var(--accent); gap:12px; }
.tlink:hover .arw{ transform:translateX(2px); }
.tlink--quiet{ border-bottom-color:var(--rule); color:var(--sub); }
.tlink--quiet:hover{ color:var(--accent); border-color:var(--accent); }

/* outline "button" = bordered text, never filled */
.btn-outline{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--body); font-size:14px; letter-spacing:.02em;
  color:var(--ink); border:1px solid var(--ink);
  padding:13px 22px; background:transparent;
  transition:color .25s ease, border-color .25s ease, background .25s ease;
  cursor:pointer;
}
.btn-outline:hover{ color:var(--accent); border-color:var(--accent); }

/* ---------- Exhibition / award badge ---------- */
.badge{
  display:inline-flex; align-items:baseline; gap:8px;
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.08em;
  text-transform:uppercase; color:#8A7862;
  border:1px solid #8A7862; border-radius:2px;
  padding:6px 11px; background:transparent;
}
.badge .dot{ color:#8A7862; }

/* ============================================================
   NAVIGATION - minimal bar + fullscreen overlay menu
   ============================================================ */
.nav{
  position:sticky; top:0; z-index:100;
  height:var(--nav-h);
  background:var(--glass-light);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset, 0 6px 24px rgba(0,0,0,.35);
  transition:background .5s ease, box-shadow .5s ease, border-color .5s ease, -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease;
}
.nav.menu-open,.nav.is-clear{ background:transparent; border-color:transparent; box-shadow:none;
  -webkit-backdrop-filter:saturate(100%) blur(0px); backdrop-filter:saturate(100%) blur(0px); }
.nav__in{ max-width:var(--maxw); margin:0 auto; height:100%;
  padding-left:var(--pad); padding-right:var(--pad);
  display:flex; align-items:center; justify-content:space-between; }
.brand{ display:inline-flex; align-items:center; line-height:0; }
.brand__logo{ display:block; width:auto; height:30px; filter:invert(1); }
@media (min-width:768px){ .brand__logo{ height:34px; } }

/* desktop inline nav row (hidden on mobile, where the overlay is used) */
.nav__row{ display:none; }
@media (min-width:768px){
  .nav__row{ display:flex; align-items:center; gap:34px; }
  .menu-btn{ display:none !important; }
}
.nav__row-link{ position:relative; font-family:var(--mono); font-size:12px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink); padding:6px 0; }
.nav__row-link::after{ content:""; position:absolute; left:0; right:100%; bottom:0;
  height:1px; background:var(--accent); transition:right .3s cubic-bezier(.76,0,.24,1); }
.nav__row-link:hover{ color:var(--accent); }
.nav__row-link:hover::after{ right:0; }
.nav__row-link[aria-current]{ color:var(--accent); }
.nav__row-link[aria-current]::after{ right:0; }

/* menu button */
.menu-btn{ display:inline-flex; align-items:center; gap:14px;
  background:none; border:0; cursor:pointer; padding:10px 0; }
.mb-txt{ display:block; overflow:hidden; height:15px;
  font-family:var(--mono); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink); }
.mb-roll{ display:block; transition:transform .45s cubic-bezier(.76,0,.24,1); }
.mb-roll span{ display:block; height:15px; line-height:15px; }
.menu-btn[aria-expanded="true"] .mb-roll{ transform:translateY(-15px); }
.mb-ico{ position:relative; width:26px; height:12px; display:block; }
.mb-ico span{ position:absolute; left:0; width:100%; height:1.5px; background:var(--ink);
  transition:transform .45s cubic-bezier(.76,0,.24,1), top .45s cubic-bezier(.76,0,.24,1), background .25s ease; }
.mb-ico span:nth-child(1){ top:1px; }
.mb-ico span:nth-child(2){ top:9px; }
.menu-btn[aria-expanded="true"] .mb-ico span:nth-child(1){ top:5px; transform:rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-ico span:nth-child(2){ top:5px; transform:rotate(-45deg); }
.menu-btn:hover .mb-ico span{ background:var(--accent); }
.menu-btn:hover .mb-txt{ color:var(--accent); }

/* fullscreen overlay */
.menu-ov{ position:fixed; inset:0; z-index:90; visibility:hidden; transition:visibility 0s .8s; }
.menu-ov.open{ visibility:visible; transition-delay:0s; }
.menu-ov__bg{ position:absolute; inset:0;
  background:var(--glass-light);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  clip-path:inset(0 0 100% 0);
  transition:clip-path .7s cubic-bezier(.76,0,.24,1); }
.menu-ov.open .menu-ov__bg{ clip-path:inset(0 0 0% 0); }
.menu-ov__in{ position:relative; height:100%; max-width:var(--maxw); margin:0 auto;
  padding:calc(var(--nav-h) + 5vh) var(--pad) 30px;
  display:flex; flex-direction:column; justify-content:space-between; gap:24px; }
.menu-ov__links{ display:flex; flex-direction:column; gap:clamp(2px,1.2vh,12px); align-items:flex-start; }
.ml-clip{ overflow:hidden; display:block; }
.mlink{ display:inline-flex; align-items:baseline; gap:20px;
  transform:translateY(118%); transition:transform .45s cubic-bezier(.76,0,.24,1); will-change:transform; }
.menu-ov.open .mlink{ transform:translateY(0%);
  transition:transform .85s cubic-bezier(.22,1,.36,1); transition-delay:calc(.16s + var(--i)*.07s); }
.ml-no{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; color:var(--accent); }
.ml-mask{ display:block; overflow:hidden; }
.ml-roll{ display:block; position:relative; transition:transform .5s cubic-bezier(.76,0,.24,1); }
.ml-face{ font-family:var(--display); font-weight:300;
  font-size:clamp(42px,8.5vw,104px); line-height:1.06; letter-spacing:-0.01em;
  color:var(--ink); white-space:nowrap; display:block; }
.ml-face--it{ font-style:italic; color:var(--accent); position:absolute; top:100%; left:0; }
.mlink:hover .ml-roll, .mlink:focus-visible .ml-roll{ transform:translateY(-100%); }
.mlink[aria-current] .ml-face{ color:var(--accent); }
.menu-ov__foot{ display:flex; flex-wrap:wrap; gap:10px 40px; justify-content:space-between; align-items:baseline;
  border-top:1px solid var(--rule); padding-top:22px;
  opacity:0; transform:translateY(14px); transition:opacity .3s ease, transform .3s ease; }
.menu-ov.open .menu-ov__foot{ opacity:1; transform:none;
  transition:opacity .7s ease .5s, transform .7s ease .5s; }
.menu-ov__foot .mf{ font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--sub); }
.menu-ov__foot a.mf:hover{ color:var(--accent); }

/* ============================================================
   PAGE TRANSITIONS - through black (see site.js)
   ============================================================ */
html{ background:#000; }
/* page transitions go through black: a veil (html.pt-in body::after, inline in <head>)
   fades in before leaving and out on arrival */
.img-fade{ opacity:0; transition:opacity .6s ease; }
.img-fade.is-in{ opacity:1; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ background:var(--gray); color:#000; }
.foot a{ color:#000; }
.foot__in{ max-width:var(--maxw); margin:0 auto; padding:26px var(--pad);
  display:grid; grid-template-columns:1fr; gap:26px; }
@media (min-width:768px){ .foot__in{ grid-template-columns:1.4fr 1fr 1fr; gap:40px; } .foot__col:nth-child(2){ text-align:center; } .foot__col:nth-child(3){ text-align:right; } }
.foot__col h4{ font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase;
  color:#fff; margin:0 0 16px; font-weight:400; }
.foot__name{ font-family:var(--display); font-size:26px; line-height:1.15; margin-bottom:0; color:#fff; }
.foot__col ul{ list-style:none; margin:0; padding:0; }
.foot__col li{ margin-bottom:10px; font-size:14px; color:#000; }
.foot__col li:last-child{ margin-bottom:0; }
.foot__col li a{ color:#000; transition:color .2s ease; }
.foot__col li a:hover{ color:#fff; }
.foot__bar .container{ background:linear-gradient(#000,#000) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.foot__bar .container{ display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between;
  padding-top:26px; padding-bottom:26px; }
.foot__legal{ font-size:12px; line-height:1.6; color:#000; max-width:60ch; margin:0; }
.foot__legal + .foot__legal{ white-space:nowrap; }

/* ============================================================
   HOME - hero
   ============================================================ */
.hero{ position:relative; margin-top:calc(-1 * var(--nav-h)); }
.hero__stage{ position:relative; height:78vh; min-height:460px; max-height:880px; overflow:hidden; background:#000; }
.hero__img{ position:absolute; inset:0; }
.hero__img picture{ display:contents; }
.hero__img img{ width:100%; height:100%; object-fit:cover; object-position:50% 15%; }

.hero__scrim{ position:absolute; left:0; right:0; top:0; height:calc(var(--nav-h) * 2.2); pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0)); }
.hero__card{ position:absolute; left:0; right:0; top:50%; transform:translateY(-50%);
  max-width:var(--maxw); margin:0 auto; padding:var(--pad);
  color:#fff; }
.hero__card-in{ position:relative; width:fit-content; }
.hero__card-in::before{ content:''; position:absolute; inset:-244px -248px;
  background:radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 70%);
  filter:blur(24px); z-index:-1; pointer-events:none; }


.hero__card .eyebrow{ color:#fff; font-size:14px; }
.hero__name{ font-family:var(--display); font-weight:400; color:#fff;
  font-size:clamp(46px,8.64vw,84px); line-height:1.08; letter-spacing:normal; margin:14px 0 0; }
.hero__rule{ width:72px; border:0; border-top:1.5px solid #fff; margin:28px 0 0; }
.hero__role{ font-style:italic; font-family:var(--display); font-size:clamp(32px,4.5vw,43px); color:#fff; margin-top:10px; display:block; }
.hero__line{ margin-top:14px; font-size:15px; color:#fff; }
.hero__link{ margin-top:18px; }
.hero__link a{ color:#fff; border-bottom-color:#fff; }
.hero__link a:hover{ color:#fff; border-bottom-color:#fff; }

/* scroll hint */
.hero__hint{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); isolation:isolate;
  display:flex; flex-direction:column; align-items:center; gap:10px; z-index:3;
  color:#fff; pointer-events:none; }
.hero__hint-label{ font-family:var(--mono); font-size:11px; letter-spacing:.28em; text-transform:uppercase;
  text-shadow:0 1px 12px rgba(0,0,0,.4); position:relative; }
.hero__hint-label::before{ content:''; position:absolute; inset:-40px -60px;
  background:radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.56) 0%, rgba(0,0,0,.24) 50%, rgba(0,0,0,0) 72%);
  filter:blur(20px); z-index:-1; pointer-events:none; }
.hero__hint-line{ width:1px; height:42px; background:linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0)); }
@media (prefers-reduced-motion:no-preference){
  .hero__hint-line{ animation:hintPulse 2.2s ease-in-out infinite; transform-origin:top; }
}
@keyframes hintPulse{ 0%,100%{ transform:scaleY(.4); opacity:.5; } 50%{ transform:scaleY(1); opacity:1; } }

/* statement excerpt block */
.excerpt{ }
.excerpt blockquote{ margin:0; }
.excerpt .q{ font-family:var(--display); font-size:clamp(22px,3vw,32px); line-height:1.42; color:var(--ink); max-width:24ch; }
@media (min-width:768px){ .excerpt .q{ max-width:30ch; } }

/* ============================================================
   WORK CARD / GRIDS
   ============================================================ */
.work-card{ display:block; }
.work-card .frame{ overflow:hidden; background:#000; }
.work-card img{ width:100%; height:auto; transition:transform .5s ease, box-shadow .35s ease; }
.work-card .frame{ transition:transform .35s ease, box-shadow .35s ease; will-change:transform; }
.work-card:hover .frame{ transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.5); }
.work-card .wc-title{ font-family:var(--display); font-size:21px; line-height:1.2; margin-top:16px; }
.work-card .wc-meta{ font-family:var(--mono); font-size:12.5px; color:var(--sub); margin-top:5px; letter-spacing:.01em; }
.work-card.placeholder .frame{ display:flex; align-items:center; justify-content:center; aspect-ratio:4/3;
  border:1px solid var(--rule); background:#000; }
.work-card.placeholder .ph-label{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#A5A5A5; text-align:center; padding:0 12px; }

/* flagship two-column feature */
.flagship{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; }
@media (min-width:820px){ .flagship{ grid-template-columns:1.15fr 1fr; gap:56px; } }
.flagship__img .frame{ overflow:hidden; background:#000; }
.flagship__img img{ width:100%; display:block; }

/* feature grid (four seasons 2x2 + dance) */
.grid-2{ display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width:640px){ .grid-2{ grid-template-columns:1fr 1fr; } }

/* horizontal scroll carousel */
.carousel{ display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 20px) / 1.5);
  gap:20px; overflow-x:auto; scroll-snap-type:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
  padding-bottom:6px;
  scrollbar-width:thin; scrollbar-color:var(--gray) transparent;
  cursor:grab; touch-action:pan-x pan-y; }
.carousel > *{ scroll-snap-align:start; }
.carousel > *:last-child{ scroll-snap-align:end; }
.carousel.is-dragging{ cursor:grabbing; scroll-snap-type:none;
  scroll-behavior:auto; user-select:none; }
.carousel.is-dragging *{ pointer-events:none; }
@media (min-width:640px){ .carousel{ grid-auto-columns:calc((100% - 40px) / 2.5); } }
@media (min-width:1100px){ .carousel{ grid-auto-columns:calc((100% - 80px) / 4.5); } }
@media (hover:hover) and (pointer:fine){ .carousel{ scroll-snap-type:none; } }
/* hide the native scrollbar - replaced by .car-scroll */
.carousel{ scrollbar-width:none; }
.carousel::-webkit-scrollbar{ height:0; width:0; display:none; }

/* custom slim gray scrollbar */
.car-scroll{ position:relative; height:1px; margin-top:28px;
  background:var(--rule); }
.car-scroll.is-hidden{ display:none; }
.car-thumb{ position:absolute; top:-1.5px; height:4px; left:0; width:40px;
  background:#A5A5A5; will-change:transform; touch-action:none;
  cursor:grab; transition:background .2s ease; }
.car-thumb::before{ content:""; position:absolute; left:0; right:0; top:-10px; bottom:-10px; }
.car-thumb:hover,
.car-thumb.is-grabbing{ background:#A5A5A5; }
.car-thumb.is-grabbing{ cursor:grabbing; }

/* ============================================================
   "View all work" - large editorial link (home + about)
   ============================================================ */
.cta-big{ margin-top:56px; border-top:1px solid var(--rule); padding-top:40px; }
.cta-big__link{
  font-family:var(--display); font-size:clamp(30px,5vw,52px); line-height:1.1;
  color:var(--ink); display:inline-flex; align-items:baseline; gap:18px;
  transition:color .25s ease, gap .25s ease;
}
.cta-big__link .arw{ font-size:.6em; transition:transform .25s ease; }
.cta-big__link:hover{ color:var(--accent); gap:26px; }
.cta-big__link:hover .arw{ transform:translateX(4px); }

.group-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px 24px; margin-bottom:36px; }
.group-head > :first-child{ flex:1 1 300px; min-width:0; }
.group-head h2{ text-wrap:nowrap; }

/* ============================================================
   WORK DETAIL PAGE
   ============================================================ */
.work-wrap{ max-width:900px; margin:0 auto; }
.work-fig{ background:#000; }
.work-fig img{ width:100%; }
.work-ph{ aspect-ratio:4/3; border:1px solid var(--rule); display:flex; align-items:center; justify-content:center;
  background:#000; }
.work-ph span{ font-family:var(--mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#A5A5A5; }
.work-head{ margin-top:40px; }
.work-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px; }
.avail{ font-family:var(--mono); font-size:12.5px; color:#738070; letter-spacing:.02em; }
.avail .av-dot{ color:#738070; }
.avail.is-na, .avail.is-na .av-dot{ color:#8C7272; }
.related{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
@media (min-width:768px){ .related{ gap:24px; } }
.related .rl-title{ font-family:var(--display); font-size:16px; margin-top:10px; }
@media (min-width:768px){ .related .rl-title{ font-size:18px; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{ display:grid; grid-template-columns:1fr; gap:48px; }
@media (min-width:900px){ .about-grid{ grid-template-columns:1.55fr 1fr; gap:72px; } }
.statement p{ margin-bottom:1.2em; }
@media (min-width:900px){ .statement p{ text-align:justify; hyphens:auto; } }
@media (min-width:900px){ .about-grid--top > aside{ margin-top:-174px; } }
.portrait{ width:100%; }
.portrait .pf{ width:100%; aspect-ratio:1/1; overflow:hidden; background:#000; }
.portrait .pf img{ width:100%; height:100%; object-fit:cover; display:block; }
.portrait .pf span{ font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:#A5A5A5; text-align:center; }
.exh-list{ list-style:none; margin:0; padding:0; }
.exh-list li{ padding:18px 0; border-top:1px solid var(--rule); }
.exh-list li:last-child{ border-bottom:1px solid var(--rule); }
.exh-year{ font-family:var(--mono); font-size:12px; color:var(--accent); letter-spacing:.06em; }
.exh-body{ margin-top:5px; font-size:14.5px; line-height:1.5; }
.exh-body .ex-where{ color:var(--ink); }
.exh-body .ex-what{ color:var(--sub); font-size:13.5px; }
.dl-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }

/* spec table (practice & background) */
.spec{ width:100%; border-collapse:collapse; }
.spec tr{ border-top:1px solid var(--rule); }
.spec tr:last-child{ border-bottom:1px solid var(--rule); }
.spec th{ text-align:left; vertical-align:top; padding:16px 24px 16px 0; width:34%;
  font-family:var(--mono); font-weight:400; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); }
.spec td{ padding:16px 0; font-size:15px; color:var(--ink); vertical-align:top; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:48px; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1fr 1.2fr; gap:72px; } }
.field{ margin-bottom:26px; }
.field label{ display:block; font-family:var(--mono); font-size:11.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--sub); margin-bottom:9px; }
.field label .req{ color:var(--accent); }
.field input, .field select, .field textarea{
  width:100%; font-family:var(--body); font-size:16px; color:var(--ink);
  background:transparent; border:0; border-bottom:1px solid var(--rule);
  padding:10px 0; border-radius:0; transition:border-color .2s ease; }
.field textarea{ resize:vertical; min-height:120px; line-height:1.6; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:0; border-bottom-color:var(--accent); }
.field select{ -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239d9d9d' stroke-width='1.3'/></svg>");
  background-repeat:no-repeat; background-position:right 2px center; }
.contact-meta dt{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--sub); margin-top:22px; }
.contact-meta dd{ margin:5px 0 0; font-size:16px; }
.form-note{ font-size:13px; color:var(--sub); margin-top:6px; }
.form-ok{ display:none; font-family:var(--display); font-size:20px; color:var(--ink); padding:18px 0; }
.form-ok.show{ display:block; }
.btn-outline .lbl{ white-space:nowrap; }
.robot{ display:flex; align-items:center; gap:14px; padding:15px 16px; cursor:pointer;
  outline:1px solid var(--rule); outline-offset:-1px; transition:outline-color .3s ease; -webkit-user-select:none; user-select:none; }
.robot.is-err{ outline-color:#fff; }
.robot__box{ position:relative; flex:none; width:22px; height:22px; padding:0; display:flex; align-items:center; justify-content:center;
  color:#000; background:transparent; border:1px solid var(--sub); cursor:pointer; transition:background .35s ease, border-color .35s ease; }
.robot__box:focus-visible{ outline:1px solid #fff; outline-offset:3px; }
.robot__box::after{ content:""; position:absolute; inset:3px; border:1.5px solid #fff; border-right-color:transparent; border-radius:50%;
  opacity:0; transition:opacity .2s ease; }
.robot.is-checking .robot__box::after{ opacity:1; animation:robotSpin .8s linear infinite; }
.robot__tick path{ stroke-dasharray:24; stroke-dashoffset:24; }
.robot.is-ok .robot__box{ background:#fff; border-color:#fff; }
.robot.is-ok .robot__tick path{ stroke-dashoffset:0; transition:stroke-dashoffset .45s cubic-bezier(.22,1,.36,1) .12s; }
.robot__lbl{ font-size:15px; color:var(--ink); }
.robot__brand{ margin-left:auto; display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--sub); }
@keyframes robotSpin{ to{ transform:rotate(360deg); } }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-err{ color:#fff; margin-top:14px; }

/* page intro header used across inner pages */
.page-head{ max-width:740px; }
.page-head .eyebrow{ margin-bottom:18px; display:block; }

/* utilities */
.mt-8{ margin-top:8px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;}
.mt-32{ margin-top:32px;} .mt-48{ margin-top:48px;} .mt-64{ margin-top:64px;}
.mb-24{ margin-bottom:24px;} .mb-32{ margin-bottom:32px;} .mb-48{ margin-bottom:48px;}
.center{ text-align:center; }
.subtle{ color:var(--sub); }

/* ============================================================
   INTERACTIVE BACKGROUND + SCROLL FX (fx.js)
   ============================================================ */
#bgfx{ position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
#lightfx{ position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }   /* under the content: blending over animated parts left dark patches */
body{ background:transparent; }
html{ background:var(--paper); }
.fx-rv{ will-change:transform, opacity; }
@media (prefers-reduced-motion:no-preference){
  /* parallax hero: one screen tall, the painting drifts slower than the page */
  .hero__stage{ height:100vh; height:100svh; min-height:0; max-height:none; }
  .hero__img{ transform-origin:50% 15%; will-change:transform;
    transform:perspective(1600px) scale(1.12); }
  .hero__card,.hero__hint{ will-change:transform, opacity; }
}

@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
  .menu-ov .mlink, .menu-ov__foot{ transform:none; opacity:1; }
  .menu-ov__bg{ clip-path:none; }
  .menu-ov{ display:none; }
  .menu-ov.open{ display:block; visibility:visible; }
}

/* ============================================================
   Fullscreen media gallery (gallery.js)
   ============================================================ */
/* zoomable artwork affordance on the work page */
.work-fig.is-zoomable{ position:relative; cursor:zoom-in; }
.work-fig.is-zoomable img{ transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.work-fig.is-zoomable:hover img{ transform:scale(1.015); }
.work-fig__hint{
  position:absolute; right:16px; bottom:16px; z-index:2;
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#fff; padding:9px 14px;
  background:rgba(0,0,0,.42); backdrop-filter:saturate(160%) blur(8px); -webkit-backdrop-filter:saturate(160%) blur(8px);
  border:1px solid #A5A5A5;
  opacity:0; transform:translateY(6px); transition:opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.work-fig.is-zoomable:hover .work-fig__hint{ opacity:1; transform:translateY(0); }

/* smoothness: no layout shift when scrolling is locked (menu, gallery), no tap flash on touch,
   page veil faded by a compositor transition (site.js sets --pt-in / --pt-t) */
html{ scrollbar-gutter:stable; }
html.arl-on{ background:#fff; }
a, button{ -webkit-tap-highlight-color:transparent; }
html.pt-in body::after{ transition:opacity var(--pt-t,0s) cubic-bezier(.65,0,.35,1); }

html.gal-open{ overflow:hidden; }
.gal{ position:fixed; inset:0; z-index:10000;
  background:rgba(0,0,0,.95); backdrop-filter:saturate(120%) blur(4px); -webkit-backdrop-filter:saturate(120%) blur(4px);
  opacity:0; visibility:hidden; transition:opacity .5s ease, visibility 0s linear .5s; }
.gal[aria-hidden="false"]{ opacity:1; visibility:visible; transition:opacity .5s ease, visibility 0s; }
.gal__close, .gal__nav{ outline:none; }

.gal__stage{ position:absolute; inset:0; overflow:hidden; touch-action:pan-y; cursor:grab;
  transform:scale(.97); transition:transform .8s cubic-bezier(.22,1,.36,1); }
.gal[aria-hidden="false"] .gal__stage{ transform:none; }
.gal__stage.is-drag{ cursor:grabbing; }
.gal__track{ display:flex; height:100%; will-change:transform; }
.gal__slide{ flex:0 0 100%; height:100%; display:flex; align-items:center; justify-content:center;
  opacity:.2; transform:scale(.92); transition:opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.gal__slide.is-cur{ opacity:1; transform:none; }
.is-drag .gal__slide{ transition:none; }
.gal__frame{ width:min(92vw,1500px); height:84vh; display:flex; align-items:center; justify-content:center; }
.gal__media{ max-width:100%; max-height:100%; object-fit:contain; box-shadow:0 30px 90px rgba(0,0,0,.55);
  opacity:0; transition:opacity .6s ease; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; }
.gal__media.is-in{ opacity:1; }
video.gal__media{ background:#000; }

.gal__counter{ position:absolute; top:26px; left:50%; transform:translateX(-50%); z-index:3; pointer-events:none;
  font-family:var(--mono); font-size:13px; letter-spacing:.22em; color:#fff; }

/* close: no ring; the cross dips on press and turns half a circle on click */
.gal__close{ position:absolute; top:18px; right:20px; z-index:3;
  width:46px; height:46px; padding:0; display:flex; align-items:center; justify-content:center;
  color:#fff; background:transparent; border:0; cursor:pointer; transition:color .3s ease; }
.gal__close svg{ transition:transform .2s ease; }
.gal__close:hover, .gal__close:focus-visible{ color:var(--gray); }
.gal__close:active svg{ transform:scale(.8); }
.gal__close.is-press svg{ animation:galClose .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes galClose{ 0%{ transform:rotate(0deg) scale(.8); } 45%{ transform:rotate(110deg) scale(.6); } 100%{ transform:rotate(180deg) scale(1); } }

.gal__nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:56px; height:56px; padding:0; display:flex; align-items:center; justify-content:center;
  color:#fff; background:transparent; border:0; cursor:pointer; transition:color .3s ease; }
.gal__nav svg{ transition:transform .35s cubic-bezier(.22,1,.36,1); }
.gal__nav:hover, .gal__nav:focus-visible{ color:var(--gray); }
.gal__prev:hover svg{ transform:translateX(-3px); }
.gal__next:hover svg{ transform:translateX(3px); }
.gal__prev:active svg{ transform:translateX(-6px) scale(.9); }
.gal__next:active svg{ transform:translateX(6px) scale(.9); }
.gal__prev{ left:max(10px,2vw); }
.gal__next{ right:max(10px,2vw); }

.gal__thumbs{ position:absolute; left:50%; bottom:20px; transform:translateX(-50%); z-index:3;
  display:flex; gap:10px; max-width:92vw; padding:6px;
  overflow-x:auto; scrollbar-width:none; }
.gal__thumbs::-webkit-scrollbar{ display:none; }
.gal__thumb{
  position:relative; flex:0 0 auto; width:62px; height:46px; padding:0; cursor:pointer;
  background-size:cover; background-position:center; background-color:#000;
  border:0; outline:1px solid #A5A5A5; outline-offset:-1px;
  opacity:.55; transition:opacity .35s ease, outline-color .35s ease; }
.gal__thumb:hover{ opacity:.85; }
.gal__thumb[aria-current="true"]{ opacity:1; outline:2px solid var(--gray); }
.gal__play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; background:rgba(0,0,0,.32); }

@media (max-width:640px){
  .gal__frame{ width:96vw; height:74vh; }
  .gal__nav{ width:44px; height:44px; }
  .gal__thumb{ width:52px; height:40px; }
}
