/* ==========================================================================
   JY Designs | Jonathan Young portfolio
   Palette: #000000 / #333333 / #ffffff. One font: Satoshi. No border radius.
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Static Black cut: clean outlines for stroked display text (the variable font has overlapping contours). */
@font-face {
  font-family: "Satoshi Black";
  src: url("../fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --gray: #333333;
  --white: #ffffff;

  --bg: var(--black);
  --fg: var(--white);
  --alt: color-mix(in srgb, var(--gray) 55%, var(--black));
  --muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --faint: color-mix(in srgb, var(--fg) 38%, transparent);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--fg) 34%, transparent);

  --pad-x: clamp(20px, 6.5vw, 128px);
  --max: 1320px;
  --slant: clamp(36px, 6vw, 96px);
  --sec-pad: clamp(60px, 7vw, 112px);
  --header-h: 92px;

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='%23fff' fill-opacity='0.04'%3E%3Cg transform='translate%2827 33%29 scale%28.065%29'%3E%3Cpath d='M0 0H247L140 107H36L66 75H0Z'/%3E%3Cpath d='M276 0H397V75H308L178 205H0V127H147Z'/%3E%3C/g%3E%3Cg transform='translate%28107 113%29 scale%28.065%29'%3E%3Cpath d='M0 0H247L140 107H36L66 75H0Z'/%3E%3Cpath d='M276 0H397V75H308L178 205H0V127H147Z'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: var(--white);
  --fg: var(--black);
  --alt: color-mix(in srgb, var(--gray) 11%, var(--white));
  --muted: color-mix(in srgb, var(--fg) 70%, transparent);
  --faint: color-mix(in srgb, var(--fg) 45%, transparent);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='%23000' fill-opacity='0.05'%3E%3Cg transform='translate%2827 33%29 scale%28.065%29'%3E%3Cpath d='M0 0H247L140 107H36L66 75H0Z'/%3E%3Cpath d='M276 0H397V75H308L178 205H0V127H147Z'/%3E%3C/g%3E%3Cg transform='translate%28107 113%29 scale%28.065%29'%3E%3Cpath d='M0 0H247L140 107H36L66 75H0Z'/%3E%3Cpath d='M276 0H397V75H308L178 205H0V127H147Z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
ul, ol { list-style: none; }
kbd { font-family: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; background: var(--fg); color: var(--bg); font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--pad-x) * 2); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- Type ---------- */
.h2 { font-size: clamp(38px, 4.4vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 48ch; font-weight: 400; }
.lede:empty { display: none; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-head { display: grid; gap: 18px; }

/* ---------- Sections + slanted edges ---------- */
.section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: var(--sec-pad);
}
.slant {
  margin-top: calc(var(--slant) * -1);
  padding-top: calc(var(--slant) + var(--sec-pad));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
main > section { background: var(--bg); }
main > section:nth-child(even) { background-color: var(--alt); }
main > section:nth-child(even), .touch { background-image: var(--pattern); background-size: 160px 160px; background-position: center top; }
.site-footer { background: var(--bg); }
main:has(> section:last-child:nth-child(odd)) + .site-footer { background: var(--alt); }

/* ---------- Reveal on scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.15s var(--ease-out) var(--d, 0s);
}
html.js [data-reveal="up"] { transform: translate3d(0, 56px, 0); }
html.js [data-reveal="left"] { transform: translate3d(-70px, 0, 0); }
html.js [data-reveal="right"] { transform: translate3d(70px, 0, 0); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

html.js [data-split] { overflow: hidden; }
html.js [data-split] > span { display: inline-block; transform: translate3d(0, 108%, 0) rotate(3deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease-out) var(--d, 0s); }
html.js [data-split].is-in > span { transform: none; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px 5px;
  font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap;
}
.pill--solid { background: #fff; color: #000; border-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --b-fg: var(--fg);
  --b-bg: transparent;
  --b-hover-fg: var(--bg);
  --b-hover-bg: var(--fg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 17px 24px 17px 28px;
  border: 1px solid var(--b-fg);
  background: var(--b-bg); color: var(--b-fg);
  font-size: 16px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2;
  cursor: pointer;
  transition: color .55s var(--ease), border-color .55s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--b-hover-bg);
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%);
  transition: clip-path .7s var(--ease);
}
.btn__label { position: relative; display: block; overflow: hidden; }
.btn__label > span, .btn__label::after { display: block; transition: transform .65s var(--ease); }
.btn__label::after { content: attr(data-label); position: absolute; left: 0; top: 100%; }
.btn__arrow { position: relative; width: 20px; height: 20px; overflow: hidden; flex: none; }
.btn__arrow svg { position: absolute; inset: 0; width: 20px; height: 20px; transition: transform .65s var(--ease); }
.btn__arrow svg + svg { transform: translateX(-130%); }
.btn:hover, .btn:focus-visible { color: var(--b-hover-fg); }
.btn:hover::before, .btn:focus-visible::before { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }
.btn:hover .btn__label > span, .btn:hover .btn__label::after,
.btn:focus-visible .btn__label > span, .btn:focus-visible .btn__label::after { transform: translateY(-100%); }
.btn:hover .btn__arrow svg, .btn:focus-visible .btn__arrow svg { transform: translateX(130%); }
.btn:hover .btn__arrow svg + svg, .btn:focus-visible .btn__arrow svg + svg { transform: none; }
.btn:active { transform: scale(.98); }
.btn--solid { --b-bg: var(--fg); --b-fg: var(--bg); --b-hover-bg: var(--bg); --b-hover-fg: var(--fg); border-color: var(--fg); }
.btn--xl { padding: 24px 30px 24px 36px; font-size: clamp(18px, 1.5vw, 22px); gap: 22px; }
.btn--xl .btn__arrow, .btn--xl .btn__arrow svg { width: 24px; height: 24px; }

.link-btn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.link-btn:hover { text-decoration-thickness: 2px; }

.tool-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color .3s, background-color .3s, color .3s;
}
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 60;
  padding: 18px var(--pad-x);
  transition: transform .6s var(--ease), padding .4s var(--ease);
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: 10px 0;
  position: relative;
}
.site-header__bar::before {
  content: ""; position: absolute; inset: 0 -18px; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  opacity: 0; transform: scaleY(.6); transform-origin: top;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled { padding-top: 12px; }
.site-header.is-scrolled .site-header__bar::before { opacity: 1; transform: none; }
.site-header.is-hidden { transform: translateY(-130%); }

.logo { display: inline-block; color: var(--fg); flex: none; }
.logo__mark { width: clamp(70px, 6.4vw, 94px); height: auto; fill: currentColor; overflow: visible; }
.logo__a, .logo__b { transition: transform .6s var(--ease); }
.logo:hover .logo__a { transform: translate(-10px, -4px); }
.logo:hover .logo__b { transform: translate(10px, 4px); }
html.js .site-header .logo__a { animation: logo-a 1.1s var(--ease-out) both .1s; }
html.js .site-header .logo__b { animation: logo-b 1.1s var(--ease-out) both .2s; }
@keyframes logo-a { from { transform: translate(-60px, 0); opacity: 0; } }
@keyframes logo-b { from { transform: translate(60px, 0); opacity: 0; } }

.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; font-weight: 700; font-size: 16px; padding: 8px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { display: grid; place-items: center; width: 26px; height: 32px; margin-left: 2px; color: var(--fg); }
.nav__chev svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.nav__item.is-open .nav__chev svg { transform: rotate(180deg); }
html.js .nav__item { animation: rise .9s var(--ease-out) both; }
html.js .nav__item:nth-child(1) { animation-delay: .25s; }
html.js .nav__item:nth-child(2) { animation-delay: .32s; }
html.js .nav__item:nth-child(3) { animation-delay: .39s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.menu {
  position: absolute; top: calc(100% + 22px); left: -28px;
  width: min(740px, 88vw);
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px;
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav__item.is-open .menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition-delay: 0s; }
.menu__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.menu__list li {
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.nav__item.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 120ms); }
.menu__list a {
  display: block;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease);
}
.menu__name { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.menu__list a:hover, .menu__list a:focus-visible { padding-left: 10px; }
.menu__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: 14px; }
.menu__all svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.menu__all:hover svg { transform: translateX(5px); }
.menu__preview { position: relative; overflow: hidden; background: var(--alt); }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__preview img.is-entering { animation: wipe-up .7s var(--ease) both; }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); transform: scale(1.12); } }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
html.js .header-tools { animation: rise .9s var(--ease-out) both .45s; }
.tool-btn--search { width: auto; padding: 0 12px; gap: 10px; display: inline-flex; align-items: center; }
.tool-btn--search kbd {
  font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 6px; border: 1px solid var(--line);
  color: var(--muted); transition: inherit;
}
.tool-btn--search:hover kbd { border-color: var(--bg); color: var(--bg); }

.theme-toggle { overflow: hidden; }
.theme-toggle__icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .7s var(--ease), opacity .5s; }
.theme-toggle__icon--moon { transform: translateY(110%) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-toggle__icon--sun { transform: translateY(-110%) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-toggle__icon--moon { transform: none; opacity: 1; }

.menu-toggle { display: none; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: 120px var(--pad-x) 40px;
  overflow-y: auto;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .8s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(1) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { transition-delay: .36s; }
.mm-row { display: flex; align-items: center; justify-content: space-between; }
.mm-row > a { display: block; padding: 14px 0; font-size: clamp(36px, 10vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.mm-toggle { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); }
.mm-toggle svg { transition: transform .5s var(--ease); }
.mm-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-sub { overflow: hidden; }
.mm-sub li a { display: block; padding: 8px 0; font-size: 20px; font-weight: 600; color: var(--muted); }
.mm-sub li:last-child a { padding-bottom: 22px; }
.mm-sub li a:hover { color: var(--fg); }
.mm-sub { display: block; max-height: 0; transition: max-height .6s var(--ease); }
.mm-group.is-open .mm-sub { max-height: 600px; }
.mobile-menu__social { display: flex; gap: 10px; margin-top: 36px; }
.mobile-menu__social a { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 38vw, 620px);
  gap: clamp(28px, 4vw, 72px);
  min-height: max(100svh, 720px);
  padding-left: var(--pad-x);
  background: var(--bg);
  overflow: hidden;
}
.hero__main {
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 22px);
  padding-bottom: calc(var(--slant) * .5 + 26px);
  min-width: 0;
}
.hero__intro { display: grid; gap: 16px; justify-items: start; }
.hero__name { font-size: clamp(15px, 1.15vw, 17px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; display: flex; flex-direction: column; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__line--sub { color: var(--faint); }
html.js .hero__line > span { animation: line-up 1.1s var(--ease-out) both .35s; }
html.js .hero__line--sub > span { animation-delay: .45s; }
.hero__text { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; font-weight: 400; color: var(--muted); max-width: 44ch; }
html.js .hero__text { animation: rise 1.1s var(--ease-out) both .55s; }
@keyframes line-up { from { transform: translateY(110%); } }

.hero__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  display: grid; place-items: center;
  container-type: size;
  margin-block: 28px 24px;
  perspective: 1400px;
}
.feat {
  --rot: 2.5deg;
  grid-area: 1 / 1;
  position: relative;
  transform: rotate(var(--rot));
  transition: transform 1.2s var(--ease-out);
}
.feat__frame { position: relative; transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .8s var(--ease-out); }
.feat__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.feat img {
  width: auto; height: auto;
  max-width: min(calc(100cqw - 48px), 820px);
  max-height: calc(100cqh - 40px);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), 0 18px 30px -18px rgba(0, 0, 0, .6);
}
.feat__pills { position: absolute; left: 14px; top: -14px; z-index: 2; }
.feat__pills .pill { animation: pill-in .7s var(--ease-out) both; }
.feat__pills .pill:nth-child(2) { animation-delay: .08s; }
@keyframes pill-in { from { opacity: 0; transform: translateY(10px); } }
html.js .feat--intro { animation: feat-first 1.4s var(--ease-out) both .3s; }
@keyframes feat-first { from { clip-path: inset(100% -60px -60px -60px); transform: rotate(calc(var(--rot) + 6deg)) translateY(60px) scale(.94); } to { clip-path: inset(-60px -60px -60px -60px); } }
.feat.is-entering { animation: feat-in 1.05s var(--ease-out) both; z-index: 2; }
.feat.is-leaving { animation: feat-out .7s var(--ease) both; z-index: 1; pointer-events: none; }
@keyframes feat-in {
  from { clip-path: inset(100% -60px -60px -60px); transform: rotate(calc(var(--rot) - 5deg)) translateY(46px) scale(1.04); }
  to { clip-path: inset(-60px -60px -60px -60px); }
}
@keyframes feat-out { to { opacity: 0; transform: rotate(calc(var(--rot) + 4deg)) translateY(-30px) scale(.92); filter: blur(6px); } }

.hero__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
html.js .hero__meta { animation: rise 1s var(--ease-out) both .8s; }
.hero__now { display: grid; min-width: 0; }
.hero__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero__title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.hero__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__title.is-swap { animation: title-swap .6s var(--ease-out); }
@keyframes title-swap { from { opacity: 0; transform: translateY(12px); } }
.hero__pager { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__num--total { color: var(--faint); }
.hero__progress { display: block; width: clamp(64px, 7vw, 120px); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.hero__progress.is-paused span { opacity: .35; }
.hero__step { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-strong); color: var(--fg); transition: background-color .3s, color .3s, border-color .3s; }
.hero__step svg { width: 18px; height: 18px; }
.hero__step:hover, .hero__step:active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.hero__rail {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
}
html.js .hero__rail { animation: rail-in 1.6s var(--ease-out) both .2s; }
@keyframes rail-in { from { transform: translateY(18%); opacity: 0; } }
.rail__cols { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rail__col { position: relative; overflow: visible; }
.rail__track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.rail__item {
  position: relative; display: block; width: 100%;
  overflow: hidden; background: var(--alt);
  transition: opacity .5s var(--ease-soft), filter .5s var(--ease-soft);
}
.rail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.rail__item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--fg); transition: box-shadow .4s var(--ease); pointer-events: none; }
.rail__item.is-active::after { box-shadow: inset 0 0 0 3px var(--fg); }
.rail__item .pills { position: absolute; left: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out); }
.rail__item:hover .pills, .rail__item:focus-visible .pills, .rail__item.is-active .pills { opacity: 1; transform: none; }
.rail__item:hover img { transform: scale(1.06); }
.hero__rail.is-hovering .rail__item:not(:hover) { opacity: .35; filter: grayscale(.7); }
.rail__item:focus-visible { outline-offset: -3px; }

.motion-btn {
  position: absolute; right: 16px; bottom: calc(var(--slant) + 26px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 12px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 700;
  transition: background-color .3s, color .3s, border-color .3s;
}
.motion-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.motion-btn__icon svg { width: 16px; height: 16px; }
.motion-btn__icon--play { display: none; }
.motion-btn[aria-pressed="true"] .motion-btn__icon--pause { display: none; }
.motion-btn[aria-pressed="true"] .motion-btn__icon--play { display: block; }

/* Horizontal rail (tablet + phone) */
.hero.is-horizontal .hero__rail { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
.hero.is-horizontal .rail__cols { display: block; }
.hero.is-horizontal .rail__col { height: 100%; }
.hero.is-horizontal .rail__track { flex-direction: row; height: 100%; width: max-content; }
.hero.is-horizontal .rail__item { height: 100%; width: auto; }
.hero.is-horizontal .rail__item img { height: 100%; width: auto; }

/* ---------- Creations ---------- */
.creations, .explore, .tiles, .gallery, .contact, .legal { padding-bottom: calc(var(--sec-pad) + var(--slant)); }
.creations .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--pad-x), calc((100% - var(--max)) / 2));
  padding-bottom: 6px;
  cursor: grab;
  outline-offset: -3px;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-animating, .carousel__viewport.is-dragging { scroll-snap-type: none; }
.carousel__viewport.is-dragging { cursor: grabbing; user-select: none; }
.carousel__track {
  display: flex; gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  padding-inline: max(var(--pad-x), calc((100% - var(--max)) / 2));
  transform: skewX(var(--skew, 0deg));
  transition: transform .5s var(--ease-out);
}
.ccard { flex: 0 0 clamp(240px, 23vw, 340px); scroll-snap-align: start; }

.ccard__link, .ctile a {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0b0b0b;
  isolation: isolate;
}
.ccard__link img, .ctile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .4; filter: grayscale(.55) contrast(1.05);
  transform: scale(1.14);
  transition: opacity .8s var(--ease-soft), transform 1.4s var(--ease-out), filter .8s var(--ease-soft);
  -webkit-user-drag: none; user-select: none;
}
.ccard__link::before, .ctile a::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 55%);
}
.ccard__link::after, .ctile a::after {
  content: ""; position: absolute; inset: -20% -60%; z-index: 2;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  transform: translateX(-70%); pointer-events: none;
}
.ccard__link:hover img, .ccard__link:focus-visible img, .ctile a:hover img, .ctile a:focus-visible img { opacity: 1; filter: none; transform: scale(1); }
.ccard__link:hover::after, .ctile a:hover::after { transform: translateX(70%); transition: transform 1.1s var(--ease); }
.ccard__body { position: absolute; left: 18px; right: 70px; bottom: 18px; z-index: 3; color: #fff; display: grid; gap: 2px; }
.ccard__label, .ctile__label { font-size: clamp(20px, 1.7vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.ccard__count, .ctile__count { font-size: 13px; color: rgba(255, 255, 255, .7); transition: color .4s; }
.carousel--mobile { display: none; }
@media (max-width: 767px) {
  .tiles .container:has(.ctiles) { display: none; }
  .carousel--mobile { display: block; }
}
.ctile__label { position: absolute; left: 18px; bottom: 40px; z-index: 3; }
.ctile__count { position: absolute; left: 18px; bottom: 18px; z-index: 3; }
.ccard__go, .ctile__go {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; color: #000;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s var(--ease);
}
.ccard__go svg, .ctile__go svg { width: 20px; height: 20px; transform: translateX(-12px); opacity: 0; transition: transform .6s var(--ease) .1s, opacity .4s .1s; }
.ccard__link:hover .ccard__go, .ccard__link:focus-visible .ccard__go, .ctile a:hover .ctile__go, .ctile a:focus-visible .ctile__go { clip-path: inset(0 0 0 0); }
.ccard__link:hover .ccard__go svg, .ccard__link:focus-visible .ccard__go svg, .ctile a:hover .ctile__go svg, .ctile a:focus-visible .ctile__go svg { transform: none; opacity: 1; }
.ccard__link:hover .ccard__count { color: #fff; }

.carousel__arrow {
  position: absolute; z-index: 5;
  top: calc(50% - 36px - 36px);
  width: 72px; height: 72px;
  display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease), opacity .45s var(--ease), visibility 0s, background-color .3s, color .3s;
}
.carousel__arrow svg { width: 26px; height: 26px; transition: transform .5s var(--ease); }
.carousel__arrow--next { right: clamp(12px, 2.5vw, 40px); }
.carousel__arrow--prev { left: clamp(12px, 2.5vw, 40px); }
.carousel__arrow--next:hover svg { transform: translateX(5px); }
.carousel__arrow--prev:hover svg { transform: translateX(-5px); }
.carousel__arrow:hover { transform: scale(1.06); }
.carousel__arrow.is-off { opacity: 0; visibility: hidden; transform: scale(.7); transition: transform .5s var(--ease), opacity .4s var(--ease), visibility 0s .5s; }
html.js .carousel__arrow--next:not(.is-off) { animation: nudge 2.6s var(--ease) 2s infinite; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 8px 0; } 90% { translate: -2px 0; } }

.carousel__ui { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.carousel__bar { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.carousel__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.carousel__thumb {
  position: absolute; top: 50%; left: 0; height: 6px; margin-top: -3px;
  width: 20%;
  background: var(--fg);
  transition: height .3s var(--ease), margin .3s var(--ease);
}
.carousel__bar:hover .carousel__thumb, .carousel__bar.is-dragging .carousel__thumb { height: 10px; margin-top: -5px; }
.carousel__count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--faint); min-width: 64px; text-align: right; }
.carousel__count span { color: var(--fg); }

/* ---------- Explore ---------- */
.explore .section-head { margin-bottom: 38px; }
.picker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(30px, 4vw, 48px); font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.picker__wrap { position: relative; }
.picker__btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 4px 0 6px;
  color: var(--fg);
  font-size: clamp(26px, 2.8vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  border-bottom: 2px solid var(--fg);
}
.picker__current { position: relative; display: block; overflow: hidden; }
.picker__current > span { display: block; }
.picker__current > span.is-out { position: absolute; left: 0; top: 0; animation: slide-out-up .55s var(--ease) both; }
.picker__current > span.is-in { animation: slide-in-up .7s var(--ease-out) both; }
@keyframes slide-out-up { to { transform: translateY(-105%); } }
@keyframes slide-in-up { from { transform: translateY(105%); } }
.picker__chev { display: grid; place-items: center; width: 40px; height: 40px; background: var(--fg); color: var(--bg); transition: transform .55s var(--ease); }
.picker__chev svg { width: 22px; height: 22px; }
.picker__btn:hover .picker__chev { transform: translateY(3px); }
.picker__btn[aria-expanded="true"] .picker__chev { transform: rotate(180deg); }

.picker__list {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0;
  min-width: 300px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
  outline: none;
}
.picker.is-open .picker__list { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition-delay: 0s; }
.picker__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 12px 14px;
  font-size: 19px; font-weight: 700; color: var(--fg);
  cursor: pointer;
  opacity: 0; transform: translateX(-14px);
  transition: opacity .35s, transform .5s var(--ease-out), background-color .25s, color .25s, padding .4s var(--ease);
}
.picker.is-open .picker__list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 30ms + 80ms), calc(var(--i) * 30ms + 80ms), 0s, 0s, 0s; }
.picker__count { font-size: 13px; color: var(--faint); font-weight: 600; }
.picker__list li:hover, .picker__list li.is-active { background: var(--fg); color: var(--bg); padding-left: 20px; }
.picker__list li:hover .picker__count, .picker__list li.is-active .picker__count { color: var(--bg); opacity: .65; }
.picker__list li[aria-selected="true"] .picker__name::before { content: ""; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 10px; vertical-align: middle; transform: rotate(45deg); }

.egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3.2vw, 56px) clamp(14px, 3.6vw, 64px); }
.etile { position: relative; }
.etile__btn, .etile--more a { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; background: var(--alt); }
.etile__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.etile__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2) 45%, transparent 65%); opacity: .85; transition: opacity .5s; }
.etile__btn:hover img, .etile__btn:focus-visible img { transform: scale(1.07); }
.etile__btn:hover::after, .etile__btn:focus-visible::after { opacity: 1; }
.etile__pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.etile__title {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; font-weight: 800; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -.01em; line-height: 1.2;
  transform: translateY(10px); opacity: .9;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.etile__open { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: #000; clip-path: inset(0 0 0 100%); transition: clip-path .5s var(--ease); }
.etile__open svg { width: 18px; height: 18px; }
.etile__btn:hover .etile__title, .etile__btn:focus-visible .etile__title { transform: none; opacity: 1; }
.etile__btn:hover .etile__open, .etile__btn:focus-visible .etile__open { clip-path: inset(0 0 0 0); }
.etile--more a { display: grid; place-content: center; gap: 10px; padding: 20px; text-align: center; border: 1px solid var(--line-strong); background: transparent; transition: background-color .4s, color .4s; }
.etile--more strong { font-size: clamp(17px, 1.4vw, 20px); font-weight: 800; }
.etile--more span { font-size: 14px; color: var(--muted); }
.etile--more a:hover { background: var(--fg); color: var(--bg); }
.etile--more a:hover span { color: inherit; }

.egrid.is-leaving .etile { animation: tile-out .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.egrid.is-entering .etile { animation: tile-in .95s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes tile-out { to { clip-path: inset(0 0 100% 0); transform: translateY(-24px); opacity: .2; } }
@keyframes tile-in { from { clip-path: inset(100% 0 0 0); transform: translateY(40px); } to { clip-path: inset(0 0 0 0); } }
.explore__foot { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: flex-start; }

/* ---------- Get in touch ---------- */
.touch { overflow-x: clip; padding-bottom: calc(var(--slant) + var(--sec-pad) * .6); }

.touch__inner { position: relative; z-index: 2; }
.touch__title { display: flex; flex-direction: column; font-size: clamp(52px, 10.5vw, 176px); font-weight: 900; line-height: .9; letter-spacing: -.05em; }
.touch__line { display: block; padding-bottom: .07em; }
.touch__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 64px; margin-top: clamp(36px, 4.5vw, 64px); }
.touch__copy { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.touch__social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 100px); padding-top: 30px; border-top: 1px solid var(--line); }
.touch__social p { font-size: 17px; color: var(--muted); max-width: 40ch; }

.social-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.social-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 15px;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.social-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .55s var(--ease); }
.social-tile::after {
  content: ""; width: 12px; height: 12px; background: currentColor; margin-left: 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.social-tile svg { width: 18px; height: 18px; }
.social-tile:hover { color: var(--bg); border-color: var(--fg); }
.social-tile:hover::before { transform: none; }
.social-tile:hover::after { transform: translate(2px, -2px); }


/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; padding-bottom: 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.footer__brand p { margin: 22px 0 24px; color: var(--muted); max-width: 34ch; }
.logo--footer .logo__mark { width: clamp(90px, 9vw, 130px); }
.footer__socials { display: flex; gap: 8px; }
.footer__icon {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  transition: color .4s var(--ease), border-color .4s;
}
.footer__icon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease); }
.footer__icon:hover { color: var(--bg); border-color: var(--fg); }
.footer__icon:hover::before { clip-path: inset(0); }
.footer__icon svg { transition: transform .5s var(--ease); }
.footer__icon:hover svg { transform: scale(1.1) rotate(-6deg); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__h { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer__h a:hover { color: var(--fg); }
.footer__cols ul li + li { margin-top: 6px; }
.footer__cols ul a, .footer__cols .link-btn {
  font-size: 16px; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  padding-bottom: 1px;
}
.footer__cols ul a:hover, .footer__cols .link-btn:hover { background-size: 100% 1px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer__legal li + li::before { content: "|"; margin: 0 12px; color: var(--faint); }
.footer__legal a { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.footer__legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer__actions { display: flex; gap: 28px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.to-top svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 100; }
.search::before {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .75s var(--ease);
}
.search.is-open::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.search__panel {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 56px) var(--pad-x) 60px;
  max-width: calc(var(--max) + var(--pad-x) * 2); margin: 0 auto;
}
.search__panel > * { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .8s var(--ease-out); }
.search.is-open .search__panel > * { opacity: 1; transform: none; }
.search.is-open .search__panel > :nth-child(1) { transition-delay: .2s; }
.search.is-open .search__panel > :nth-child(2) { transition-delay: .28s; }
.search.is-open .search__panel > :nth-child(3) { transition-delay: .34s; }
.search.is-open .search__panel > :nth-child(4) { transition-delay: .38s; }
.search__top { display: flex; align-items: center; gap: 18px; border-bottom: 2px solid var(--fg); }
.search__field { flex: 1; display: flex; align-items: center; gap: 16px; }
.search__field > svg { width: clamp(28px, 3.4vw, 48px); height: auto; flex: none; }
.search__field input {
  width: 100%; min-width: 0; background: none; border: 0; outline: none;
  padding: 14px 0 16px;
  font-size: clamp(32px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: var(--fg);
}
.search__field input::placeholder { color: var(--faint); }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__filters { display: grid; gap: 14px; margin-top: 26px; }
.search__group { display: flex; align-items: baseline; gap: 16px; }
.search__label { flex: none; width: 54px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px 7px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--fg);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:active { transform: scale(.96); }
.search__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; }
.search__status { font-weight: 700; }
.search__hint { font-size: 13px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.search__hint kbd { border: 1px solid var(--line); padding: 2px 6px; font-size: 12px; color: var(--muted); }
.search__hint kbd:nth-of-type(2) { margin-right: 4px; }
.search__hint kbd:nth-of-type(3), .search__hint kbd:nth-of-type(4) { margin-left: 10px; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 38vw), 1fr)); gap: 18px; }
.sresult { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i) * 28ms); }
.sresult button { display: block; width: 100%; text-align: left; }
.sresult__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--alt); }
.sresult__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.sresult button:hover img, .sresult.is-active img { transform: scale(1.08); }
.sresult.is-active .sresult__media { outline: 3px solid var(--fg); outline-offset: 3px; }
.sresult__title { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.sresult__meta { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.sresult mark { background: var(--fg); color: var(--bg); padding: 0 2px; }
.search__empty { padding: 40px 0; font-size: 20px; color: var(--muted); }
.search__empty p:first-child { font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--fg); letter-spacing: -.02em; margin-bottom: 6px; }
html.is-locked { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: clamp(14px, 2.5vw, 30px);
  border: 0;
  background: rgba(0, 0, 0, .95);
  color: #fff;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
}
.lightbox[open] { display: grid; animation: lb-in .5s var(--ease-out) both; }
.lightbox.is-closing { animation: lb-out .35s var(--ease) both; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lightbox .tool-btn { color: #fff; border-color: rgba(255, 255, 255, .25); }
.lightbox .tool-btn:hover { background: #fff; color: #000; border-color: #fff; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; }
.lightbox__count { font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .55); }
.lightbox__count span:first-child { color: #fff; }
.lightbox__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 0; touch-action: pan-y; }
.lightbox__figure { position: relative; height: 100%; min-height: 0; overflow: hidden; }
.lightbox__figure img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.lightbox__figure img.from-right { animation: lb-from-right .7s var(--ease-out) both; }
.lightbox__figure img.from-left { animation: lb-from-left .7s var(--ease-out) both; }
.lightbox__figure img.to-left { animation: lb-to-left .5s var(--ease) both; }
.lightbox__figure img.to-right { animation: lb-to-right .5s var(--ease) both; }
.lightbox__figure img.zoom-in { animation: lb-zoom .8s var(--ease-out) both; }
@keyframes lb-from-right { from { transform: translateX(14%) scale(.96); opacity: 0; clip-path: inset(0 0 0 30%); } }
@keyframes lb-from-left { from { transform: translateX(-14%) scale(.96); opacity: 0; clip-path: inset(0 30% 0 0); } }
@keyframes lb-to-left { to { transform: translateX(-10%) scale(.94); opacity: 0; } }
@keyframes lb-to-right { to { transform: translateX(10%) scale(.94); opacity: 0; } }
@keyframes lb-zoom { from { transform: scale(.9); opacity: 0; clip-path: inset(10% 10% 10% 10%); } }
.lightbox__figure.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 2px; margin-left: -30px; background: rgba(255, 255, 255, .3); animation: load 1s linear infinite; }
@keyframes load { from { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }
.lb-arrow { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.lb-arrow:hover { background: #fff; color: #000; }
.lb-arrow--prev:hover svg { transform: translateX(-3px); }
.lb-arrow--next:hover svg { transform: translateX(3px); }
.lb-arrow svg { transition: transform .4s var(--ease); }
.lightbox__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; }
.lightbox__caption { max-width: 60ch; }
.lightbox__caption .pills { margin-bottom: 10px; }
.lightbox__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.lightbox__desc { color: rgba(255, 255, 255, .7); margin-top: 4px; }
.lightbox__caption.is-swap > * { animation: rise .6s var(--ease-out) both; }
.lightbox__caption.is-swap > :nth-child(2) { animation-delay: .05s; }
.lightbox__caption.is-swap > :nth-child(3) { animation-delay: .1s; }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: min(56vw, 640px); padding: 4px; }
.lightbox__thumbs button { position: relative; display: block; width: 62px; height: 62px; flex: none; opacity: .4; transition: opacity .3s, transform .4s var(--ease); }
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; transform: translateY(-3px); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(70px, 9vw, 130px)) 0 calc(var(--slant) + clamp(70px, 8vw, 120px)); }
.page-hero__word {
  position: absolute; right: -2vw; bottom: calc(var(--slant) - 2vw); z-index: -1;
  font-family: "Satoshi Black", "Satoshi", sans-serif;
  font-size: clamp(110px, 22vw, 380px); font-weight: 900; letter-spacing: -.06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap; pointer-events: none; user-select: none;
  transform: translate3d(var(--px, 0), 0, 0);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.page-hero__title { font-size: clamp(56px, 10vw, 168px); font-weight: 900; letter-spacing: -.055em; line-height: .9; padding-bottom: .06em; }
.page-hero__lede { margin-top: 26px; max-width: 52ch; }
.page-hero__count { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: clamp(12px, 1.6vw, 22px); }

.gallery__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: clamp(30px, 4vw, 48px); }
.gallery__status { font-weight: 700; color: var(--muted); }
.masonry { columns: 3 300px; column-gap: clamp(14px, 2vw, 28px); }
.g-item { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 28px); }
.g-item.is-hidden { display: none; }
.g-item__btn { position: relative; display: block; width: 100%; }
.g-item__media { position: relative; display: block; overflow: hidden; }
.g-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.g-item__btn:hover img, .g-item__btn:focus-visible img { transform: scale(1.05); }
.g-item__pills { position: absolute; top: 12px; left: 12px; }
.g-item__pills .pill + .pill { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease-out); }
.g-item__btn:hover .pill + .pill, .g-item__btn:focus-visible .pill + .pill { opacity: 1; transform: none; }
.g-item__title { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 16px; }
.g-item__title::after {
  content: ""; width: 14px; height: 14px; flex: none; margin-top: 4px; background: currentColor; opacity: 0; transform: translate(-6px, 6px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10L10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .4s, transform .5s var(--ease);
}
.g-item__btn:hover .g-item__title::after { opacity: 1; transform: none; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; }
.field { grid-column: 1 / -1; display: grid; gap: 8px; border: 0; min-width: 0; }
.field--half { grid-column: span 1; }
.field label, .field legend { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 12px; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0 14px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  font-size: 20px; font-weight: 500; color: var(--fg);
  outline: none;
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); box-shadow: 0 2px 0 0 var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background: linear-gradient(45deg, transparent 50%, var(--fg) 50%) calc(100% - 13px) 50% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--fg) 50%) calc(100% - 7px) 50% / 6px 6px no-repeat; }
.field select option { background: var(--bg); color: var(--fg); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--fg); box-shadow: 0 2px 0 0 var(--fg); }
.field__error { font-size: 14px; font-weight: 600; min-height: 0; }
.field__error:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 900; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 11px 15px 10px; border: 1px solid var(--line-strong); font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.choice span:hover { border-color: var(--fg); }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; grid-column: 1 / -1; }
.form__status { grid-column: 1 / -1; font-weight: 700; font-size: 18px; }
.form.is-sent .field, .form.is-sent .btn { opacity: .35; pointer-events: none; }
.contact__aside { display: grid; gap: 22px; position: sticky; top: 120px; }
.social-tiles--stack { display: grid; grid-template-columns: 1fr 1fr; }

/* Legal */
.prose { max-width: 72ch; font-size: 18px; color: var(--muted); }
.prose h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; color: var(--fg); letter-spacing: -.02em; line-height: 1.2; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; margin: 14px 0; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--fg); transform: rotate(45deg); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.legal__date { margin-top: 40px; font-size: 14px; color: var(--faint); }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-30px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(40px); } }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .hero__intro { gap: 12px; }
  .hero__name { flex-direction: row; flex-wrap: wrap; column-gap: .7em; }
  .tool-btn--search kbd { display: none; }
  .tool-btn--search { width: 46px; padding: 0; justify-content: center; }
}

@media (max-width: 1023px) {
  :root { --header-h: 76px; }
  .site-header { right: 0; padding: 12px var(--pad-x); }
  .site-header__bar::before { inset: 0 -12px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }

  .hero { grid-template-columns: 1fr; padding-left: 0; min-height: 0; gap: 0; }
  .hero__main { padding: calc(var(--header-h) + 34px) var(--pad-x) 0; }
  .hero__stage { flex: none; height: min(50svh, 520px); min-height: 300px; touch-action: pan-y; }
  .hero__rail { height: 190px; min-height: 0; margin: 32px 0 0; }
  .hero.is-horizontal .rail__cols { touch-action: pan-y; }
  .hero.is-horizontal .rail__item .pills { display: none; }
  .hero__step { display: inline-grid; }
  .hero__pager { gap: 12px; padding-bottom: 0; }
  .hero__meta { align-items: center; }
  .motion-btn { position: static; margin: 32px auto calc(var(--slant) + 40px); justify-self: center; }
  .hero__rail { margin-bottom: 0; }

  .footer__top { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
}

@media (max-width: 860px) {
  .egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .touch__grid { grid-template-columns: 1fr; }
  .lightbox__bottom { grid-template-columns: 1fr; }
  .lightbox__thumbs { max-width: 100%; }
  .lightbox__stage { grid-template-columns: minmax(0, 1fr); }
  .lb-arrow { position: absolute; z-index: 2; bottom: 8px; width: 48px; height: 48px; background: rgba(0, 0, 0, .55); }
  .lb-arrow--prev { left: 8px; }
  .lb-arrow--next { right: 8px; }
  .search__hint { display: none; }
  /* Search: only the pill rows scroll sideways, never the overlay */
  .search__panel { overflow-x: hidden; }
  .search__filters { grid-template-columns: minmax(0, 1fr); }
  .search__group { flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
  .search__filters .chips {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--pad-x) * -1); padding: 2px var(--pad-x);
    scroll-padding-inline: var(--pad-x);
  }
  .search__filters .chips::-webkit-scrollbar { display: none; }
  .search__filters .chip { flex: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero__stage { height: clamp(220px, 34svh, 380px); min-height: 0; margin-block: 20px 16px; }
  .hero__text { font-size: 16px; }
  .hero__rail { height: 140px; }
  .hero__meta { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__pager { justify-content: space-between; }
  .hero__progress { flex: 1; width: auto; }
  .hero__title { font-size: 18px; max-width: none; }
  .feat img { max-width: calc(100cqw - 12px); max-height: calc(100cqh - 30px); }
  .carousel__arrow { width: 56px; height: 56px; top: calc(50% - 28px - 36px); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .touch__social { flex-direction: column; align-items: flex-start; }
  .social-tiles--stack { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: 28px; }
  .footer__bottom > p { order: 3; }
  .footer__legal { order: 2; justify-content: center; }
  .footer__actions { order: 1; justify-content: center; }
  .picker { flex-direction: column; align-items: flex-start; gap: 6px; }
  .picker__list { min-width: min(300px, calc(100vw - var(--pad-x) * 2)); }
  .btn--xl { width: 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .masonry { columns: 2 140px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-split] > span { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
html.motion-off .carousel__arrow--next { animation: none; }

/* ---------- Dev notice (remove when the site goes live) ---------- */
.devnote {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: flex-start; gap: 12px;
  width: min(340px, calc(100vw - 32px));
  padding: 13px 10px 13px 14px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  transform: translateY(calc(100% + 30px));
  transition: transform .9s var(--ease-out) .8s, opacity .4s;
}
.devnote.is-ready { transform: none; }
.devnote.is-closing { transform: translateY(calc(100% + 30px)); opacity: 0; transition: transform .6s var(--ease), opacity .5s; }
html:not(.js) .devnote { transform: none; }
html:not(.js) .devnote__close { display: none; }
.devnote__dot { width: 8px; height: 8px; flex: none; margin-top: 6px; background: var(--fg); animation: devdot 2s var(--ease-soft) infinite; }
@keyframes devdot { 50% { opacity: .25; } }
html.motion-off .devnote__dot { animation: none; }
.devnote__text { flex: 1; font-size: 13px; line-height: 1.45; color: var(--muted); }
.devnote__text strong { color: var(--fg); font-weight: 700; }
.devnote__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -5px 0 -5px; color: var(--fg); border: 1px solid transparent; transition: border-color .3s, background-color .3s, color .3s; }
.devnote__close svg { width: 16px; height: 16px; }
.devnote__close:hover { background: var(--fg); color: var(--bg); }

/* Explore grid on phones: taller tiles with the caption under the image */
@media (max-width: 640px) {
  .egrid { gap: 36px 16px; }
  .etile__btn { aspect-ratio: auto; overflow: visible; background: none; }
  .etile__btn img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .etile__btn::after { display: none; }
  .etile__pill { top: 8px; left: 8px; font-size: 10px; padding: 5px 7px 4px; }
  .etile__title { position: static; display: block; margin-top: 10px; color: var(--fg); font-size: 15px; line-height: 1.3; transform: none; opacity: 1; }
  .etile__open { display: none; }
  .etile__btn:hover img, .etile__btn:focus-visible img { transform: none; }
  .etile--more a { aspect-ratio: 4 / 5; padding: 16px 14px; gap: 8px; }
  .etile--more strong { font-size: 16px; line-height: 1.25; }
  .etile--more span { font-size: 13px; line-height: 1.4; }
}

/* Phones: more room between cards so each title clearly belongs to the image above it */
@media (max-width: 640px) {
  .masonry { column-gap: 16px; }
  .g-item { margin-bottom: 36px; }
  .g-item__title { margin-top: 10px; font-size: 15px; line-height: 1.3; }
  .search__results { gap: 32px 16px; }
  .sresult__title { margin-top: 8px; }
}
