/* Majka Ceramics
   Shape rule: photographs and surfaces are sharp (radius 0); interactive controls are full pills.
   One accent: cobalt glaze. Light and dark follow the system. */

:root {
  --bg: #edeeea;
  --bg-2: #e3e5e0;
  --ink: #1c1f1d;
  --ink-2: #4c534e;
  --ink-3: #626964;
  --line: rgb(28 31 29 / 0.14);
  --accent: #2e4799;
  --accent-ink: #f3f4f1;
  --photo: #dcdfd9;

  --pad: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
  --max: 1520px;

  --f-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-text: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --bg-2: #1a1d1b;
    --ink: #e9eae6;
    --ink-2: #b0b6b1;
    --ink-3: #8b928d;
    --line: rgb(233 234 230 / 0.13);
    --accent: #9db0f2;
    --accent-ink: #10172e;
    --photo: #202421;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  transition: background-color .35s var(--ease-out), transform .2s var(--ease-out);
}
.btn i { font-size: 18px; transition: transform .45s var(--ease-out); }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:hover i { transform: translate(2px, 2px); }
.btn:active { transform: scale(0.98); }
#piece-ask:hover i { transform: translate(2px, -2px); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.link i { font-size: 19px; }
.link:hover { border-color: var(--ink); }
.link:active { transform: scale(0.98); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 999px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.icon-btn i { font-size: 20px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(0.96); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 7px;
  text-decoration: none; margin-right: auto;
}
.logo {
  display: block; height: 48px; aspect-ratio: 900 / 348;
  background: currentColor;
  -webkit-mask: url("img/logo-mask.png") center / contain no-repeat;
  mask: url("img/logo-mask.png") center / contain no-repeat;
}
.wordmark.small .logo { height: 40px; }
.wm-main {
  font-family: var(--f-display); font-weight: 600; font-size: 25px; letter-spacing: -0.04em; line-height: 1;
}
.wm-sub {
  font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em;
}
.wordmark.small .wm-main { font-size: 20px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--ink-2);
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang {
  display: inline-flex; gap: 4px; align-items: center;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  height: 36px; padding: 0 14px; cursor: pointer; font-size: 13px; letter-spacing: 0.04em;
}
.lang span { color: var(--ink-3); transition: color .3s; }
.lang .lang-sep { opacity: .5; }
html[lang="tr"] .lang [data-l="tr"], html[lang="en"] .lang [data-l="en"] { color: var(--ink); font-weight: 600; }
.lang:hover { border-color: var(--ink); }

/* ---------- mobile menu ---------- */
.menu-btn {
  display: none; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0; font-size: 13.5px; font-weight: 500;
}
.menu-btn:active { transform: scale(0.97); }
.menu {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0 var(--pad);
  border: 0; background: var(--bg); color: var(--ink);
}
.menu::backdrop { background: transparent; }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-links { display: flex; flex-direction: column; margin-top: 8vh; }
.menu-links a {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 12vw, 4rem);
  letter-spacing: -0.04em; line-height: 1.15; text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.menu[open] { display: flex; flex-direction: column; }
.menu-foot { margin-top: auto; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); display: flex; gap: 24px; font-size: 15px; color: var(--ink-2); }
.menu-foot a { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-links a { animation: menu-in .7s var(--ease-out) both; }
  .menu[open] .menu-links a:nth-child(2) { animation-delay: .05s; }
  .menu[open] .menu-links a:nth-child(3) { animation-delay: .1s; }
  .menu[open] .menu-links a:nth-child(4) { animation-delay: .15s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(24px, 4vw, 72px);
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 12px) var(--pad) var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding-bottom: clamp(8px, 3vw, 40px);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.1vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-title em { font-style: italic; font-weight: 400; letter-spacing: -0.035em; }
.hero-sub { max-width: 36ch; color: var(--ink-2); margin: 0 0 36px; font-size: clamp(16px, 1.25vw, 18.5px); }

.hero-media {
  position: relative; overflow: hidden; background: var(--photo);
  height: calc(100dvh - var(--nav-h) - 12px - var(--pad));
  min-height: 480px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); }
  .js .hero-sub, .js .hero-copy .btn { opacity: 0; transform: translateY(14px); }
  .js .hero-media { clip-path: inset(100% 0 0 0); }
  .js .hero-media img { transform: scale(1.14); }

  .is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
  .is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
  .is-loaded .hero-sub, .is-loaded .hero-copy .btn { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .35s, transform .9s var(--ease-out) .35s; }
  .is-loaded .hero-copy .btn { transition-delay: .45s; }
  .is-loaded .hero-media { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease-in-out) .05s; }
  .is-loaded .hero-media img { transform: scale(1); transition: transform 2.2s var(--ease-out) .05s; }
}

/* ---------- statement ---------- */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 16vw, 220px) var(--pad);
}
.statement-text {
  font-family: var(--f-display);
  font-weight: 450;
  font-size: clamp(1.7rem, 3.7vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 26ch;
  margin: 0 0 0 auto;
  margin-right: clamp(0px, 8vw, 140px);
  text-wrap: pretty;
  view-timeline-name: --statement;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement-text .w {
      animation: word-in linear both;
      animation-timeline: --statement;
      animation-range-start: cover calc(14% + 34% * var(--i) / var(--n));
      animation-range-end: cover calc(18% + 34% * var(--i) / var(--n));
    }
  }
}
@keyframes word-in { from { opacity: .16; } to { opacity: 1; } }

/* ---------- works ---------- */
.works { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(96px, 12vw, 180px); }
.works-head { display: flex; flex-direction: column; gap: 26px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 14.5px; color: var(--ink-2);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:active { transform: scale(0.97); }

.grid { columns: 3; column-gap: clamp(14px, 1.8vw, 28px); }
.card {
  break-inside: avoid;
  display: block; width: 100%;
  margin: 0 0 clamp(28px, 3.4vw, 52px);
  padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in;
}
.card[hidden] { display: none; }
.card-media { position: relative; overflow: hidden; background: var(--photo); }
.card-media img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out), opacity .6s ease; }
.card-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 12px; font-size: 15px;
}
.card-title { font-weight: 500; }
.card-cat { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .grid:has(.card:hover) .card:not(:hover) .card-media img { opacity: .62; }
  .card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}
.card:focus-visible { outline-offset: 6px; }

/* image fade-in once decoded */
.js .fade { opacity: 0; }
.js .fade.is-ready { opacity: 1; }

/* ---------- process ---------- */
.process {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--pad);
  border-top: 1px solid var(--line);
}
.process-rail {
  position: sticky; top: calc(var(--nav-h) + 40px);
  align-self: start;
}
.steps { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; }
.step { padding: 20px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3 {
  margin: 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink-3); transition: color .5s var(--ease-out);
}
.step-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease-out), opacity .5s var(--ease-out); }
.step-body p { min-height: 0; overflow: hidden; margin: 0; padding-top: 10px; max-width: 40ch; color: var(--ink-2); }
.step.is-on h3 { color: var(--ink); }
.step.is-on .step-body { grid-template-rows: 1fr; opacity: 1; }

.process-media { display: grid; gap: clamp(20px, 3vw, 40px); }
.pm { overflow: hidden; background: var(--photo); }
.pm img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pm[data-step="3"] img { aspect-ratio: 4 / 5; object-position: 40% 50%; }

/* ---------- material bento ---------- */
.material { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(96px, 12vw, 180px); }
.material .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  grid-template-rows: clamp(280px, 26vw, 420px) clamp(260px, 22vw, 360px);
  grid-template-areas:
    "glaze text1 top   top"
    "glaze hands text2 wide";
  gap: clamp(10px, 1.2vw, 18px);
  max-height: none;
}
.b { position: relative; overflow: hidden; background: var(--photo); min-height: 0; }
.b img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.b-glaze { grid-area: glaze; }
.b-top { grid-area: top; }
.b-hands { grid-area: hands; }
.b-wide { grid-area: wide; }
.b-text { padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg-2); }
.b-text h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; }
.b-text p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.b-t1 { grid-area: text1; }
.b-t2 { grid-area: text2; }
.b-tint { background: var(--accent); color: var(--accent-ink); }
.b-tint p { color: color-mix(in oklab, var(--accent-ink) 82%, transparent); }

/* ---------- full bleed ---------- */
.bleed { position: relative; height: min(92dvh, 980px); min-height: 520px; overflow: hidden; background: #1b1d1b; isolation: isolate; }
.bleed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgb(14 16 15 / .55) 0%, rgb(14 16 15 / .12) 45%, rgb(14 16 15 / 0) 65%);
}
.bleed-line {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: clamp(40px, 7vw, 110px);
  margin: 0; max-width: 18ch;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.04em;
  color: #f1f2ee;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bleed-img { animation: bleed-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .bleed-line { animation: bleed-rise linear both; animation-timeline: view(); animation-range: entry 15% cover 38%; }
  }
}
@keyframes bleed-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes bleed-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- studio ---------- */
.studio {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) var(--pad) clamp(80px, 10vw, 150px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
}
.studio-media { grid-column: 1 / -1; overflow: hidden; background: var(--photo); }
.studio-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 55%; }
.studio-facts { grid-column: 1 / 5; margin: 6px 0 0; display: grid; gap: 18px; align-content: start; }
.studio-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.studio-facts dt { font-size: 13px; color: var(--ink-3); }
.studio-facts dd { margin: 2px 0 0; font-size: 15.5px; }
.studio-copy { grid-column: 1 / 9; grid-row: 2; }
.studio-copy .h2 { margin-bottom: 22px; }
.studio-copy p { margin: 0 0 16px; max-width: 54ch; color: var(--ink-2); font-size: clamp(16.5px, 1.3vw, 19px); }

/* ---------- contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 110px); align-content: start;
  padding: clamp(80px, 10vw, 150px) var(--pad) clamp(96px, 12vw, 170px);
  border-top: 1px solid var(--line);
}
.contact-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.5rem, 6.6vw, 6.4rem); line-height: 1.02; letter-spacing: -0.045em;
  max-width: 14ch; margin: 0 0 24px; text-wrap: balance;
}
.contact-copy { grid-column: 1; grid-row: 1; align-self: end; }
.contact-media { grid-column: 2; grid-row: 1; overflow: hidden; background: var(--photo); }
.contact-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; }
.contact-sub { color: var(--ink-2); max-width: 44ch; margin: 0 0 40px; font-size: clamp(16.5px, 1.3vw, 19px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

.foot {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--pad) 40px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .card.reveal { transition-delay: calc(var(--d, 0) * 70ms); }
}

/* ---------- piece dialog ---------- */
.piece {
  width: min(1240px, calc(100vw - 2 * var(--pad)));
  height: min(820px, calc(100dvh - 2 * var(--pad)));
  max-width: none; max-height: none;
  padding: 0; border: 0; color: var(--ink); background: var(--bg);
  overflow: hidden;
}
.piece::backdrop { background: rgb(12 14 13 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.piece-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); height: 100%; }
.piece-media { background: var(--photo); overflow: hidden; min-height: 0; }
.piece-media img { width: 100%; height: 100%; object-fit: cover; }
.piece-media.is-wide img { object-fit: contain; }
.piece-title:focus { outline: none; }
.piece-info {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3.6vw, 56px); overflow-y: auto; min-height: 0;
}
.piece-info > * { flex-shrink: 0; }
.piece-cat { margin: auto 0 10px; color: var(--ink-3); font-size: 14px; }
.piece-title {
  margin: 0 0 16px; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em;
}
.piece-desc { margin: 0 0 28px; color: var(--ink-2); max-width: 38ch; }
.piece-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.thumb {
  width: 60px; height: 60px; padding: 0; border: 0; background: var(--photo); cursor: pointer;
  overflow: hidden; opacity: .55; outline-offset: 2px; transition: opacity .3s var(--ease-out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb[aria-current="true"] { opacity: 1; outline: 1px solid var(--ink); }
.thumb:active { transform: scale(0.96); }
.piece-meta { margin: 0 0 32px; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.piece-meta dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.piece-meta dd { margin: 0; font-size: 15px; font-weight: 500; }
.piece-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 32px; }
.piece-count { font-size: 13.5px; color: var(--ink-3); min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
.piece-close { position: absolute; top: 16px; right: 16px; background: color-mix(in oklab, var(--bg) 88%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .piece { transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), overlay .55s allow-discrete, display .55s allow-discrete; }
  .piece:not([open]) { opacity: 0; transform: translateY(16px) scale(.985); }
  .piece[open] { opacity: 1; transform: none; }
  @starting-style { .piece[open] { opacity: 0; transform: translateY(16px) scale(.985); } }
  .piece::backdrop { transition: opacity .45s var(--ease-out), overlay .45s allow-discrete, display .45s allow-discrete; opacity: 0; }
  .piece[open]::backdrop { opacity: 1; }
  @starting-style { .piece[open]::backdrop { opacity: 0; } }
  #piece-img.swap { animation: swap-in .6s var(--ease-out); }
}
@keyframes swap-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* view transitions (filter + open) */
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { columns: 2; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "glaze text1"
      "glaze hands"
      "top   top"
      "text2 wide";
  }
  .b-glaze { min-height: 560px; }
  .b-hands, .b-wide { aspect-ratio: 4 / 5; }
  .b-top { aspect-ratio: 16 / 10; }
  .b-text { min-height: 240px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav { gap: 8px; }
  .menu-btn { display: inline-block; }
  .hero-title { font-size: clamp(2.6rem, 11.4vw, 3.4rem); }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding-top: calc(var(--nav-h) + 20px); }
  .hero-copy { order: 1; padding-bottom: 0; }
  .hero-media { order: 2; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .hero-title { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 28px; }

  .statement-text { margin: 0; }

  .process { grid-template-columns: 1fr; gap: 24px; }
  .process-rail {
    position: sticky; top: var(--nav-h); z-index: 5;
    background: var(--bg); margin: 0 calc(-1 * var(--pad)); padding: 16px var(--pad) 14px;
    border-bottom: 1px solid var(--line);
  }
  .process-rail .h2 { font-size: 15px; letter-spacing: 0; font-family: var(--f-text); font-weight: 500; color: var(--ink-3); }
  .steps { margin-top: 6px; }
  .step { display: none; border: 0 !important; padding: 0; }
  .step.is-on { display: block; }
  .step.is-on .step-body p { padding-top: 4px; font-size: 15px; }
  .step h3 { font-size: 1.5rem; }

  .studio-copy { grid-column: 1 / -1; grid-row: auto; }
  .studio-facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; order: 3; }
  .studio-media img { aspect-ratio: 4 / 3; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy { grid-row: 1; }
  .contact-media { grid-column: 1; grid-row: 2; margin-top: 48px; }

  .piece { width: 100vw; height: 100dvh; max-height: 100dvh; }
  .piece-inner { grid-template-columns: 1fr; grid-template-rows: 50% 1fr; }
  .piece-info { padding: 22px var(--pad) 28px; }
  .piece-cat { margin-top: 0; }
  .piece-meta { margin-bottom: 24px; }
  .piece-title { font-size: 1.9rem; margin-bottom: 10px; }
  .piece-desc { margin-bottom: 16px; }
  .piece-thumbs { margin-bottom: 18px; }
  .thumb { width: 52px; height: 52px; }
  .piece-nav { padding-top: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { columns: 2; column-gap: 10px; }
  .card { margin-bottom: 22px; }
  .card-cap { flex-direction: column; gap: 0; padding-top: 8px; font-size: 14px; }
  .card-cat { font-size: 12.5px; }
  .chip { height: 38px; padding: 0 14px; font-size: 14px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "glaze" "text1" "top" "hands" "text2" "wide"; }
  .b-glaze { min-height: 0; aspect-ratio: 4 / 5; }
  .b-text { min-height: 0; padding: 26px 22px; }
  .bleed { height: 78dvh; min-height: 460px; }
  .wm-sub { display: none; }
  .contact-links .btn, .contact-links .link { flex: 1 1 auto; justify-content: center; }
}

/* no-JS gallery fallback (also what crawlers without JS read) */
.grid-fallback { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.grid-fallback img { width: 100%; height: auto; display: block; }
.grid-fallback span { display: block; padding-top: 10px; font-weight: 500; }
