/* ============================================================
   DAIANA BAIB — delicate & soft tattooing, Almaty
   Design system: bone / ink / chrome / steel-blue
   ============================================================ */

:root {
  --bone: #f1efeb;
  --bone-2: #e7e4de;
  --ink: #101014;
  --ink-2: #1b1b21;
  --grey: #63636c;
  --steel: #5b77e8;        /* accent on dark surfaces */
  --steel-text: #3f57c4;   /* accent for text on bone (WCAG AA) */
  --line: rgba(16, 16, 20, 0.14);
  --line-light: rgba(241, 239, 235, 0.16);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-serif: "Cormorant", serif;
  --font-mono: "JetBrains Mono", monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 104px;
  --space-7: 168px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bone); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

/* ---------- placeholder sigil strokes ---------- */
.s1, .s2, .s3, .dot { fill: none; stroke: currentColor; stroke-linecap: round; }
.s1 { stroke-width: 1.1; opacity: 0.9; }
.s2 { stroke-width: 1.6; opacity: 0.75; }
.s3 { stroke-width: 2.4; opacity: 0.85; }
.dot { fill: currentColor; stroke: none; }

/* ---------- the substance: one continuous material behind the page ---------- */
.substance {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
.substance.live { opacity: 1; }
.no-webgl .substance { display: none; }
main, .header, .mmenu { position: relative; z-index: 1; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: clip-path 0.9s var(--ease-inout);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__mark {
  font-family: var(--font-display); font-weight: 300; font-size: 15px;
  letter-spacing: 0.5em; padding-left: 0.5em; color: var(--bone);
}
.loader__bar { width: 132px; height: 1px; background: rgba(241, 239, 235, 0.2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--bone); transition: width 0.25s ease; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s, background 0.25s;
  opacity: 0; mix-blend-mode: exclusion; background: #fff;
}
.cursor.on { opacity: 1; }
.cursor.grow { width: 46px; height: 46px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: transform 0.5s var(--ease-out), background 0.4s, backdrop-filter 0.4s;
}
.header.solid {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.header.hide { transform: translateY(-110%); }
.header__mark {
  font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: 0.34em;
}
.header__nav { display: flex; gap: 34px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__book { color: var(--steel-text); }
.header__book::after { background: var(--steel-text) !important; }
.header__right { display: flex; align-items: center; gap: 22px; }
.lang { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--grey); }
.lang__btn { padding: 6px 2px; color: inherit; transition: color 0.25s; }
.lang__btn[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang__sep { opacity: 0.5; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 24px; }
.burger.open span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px 28px 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-inout);
  visibility: hidden;
}
.mmenu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu__nav { display: flex; flex-direction: column; gap: 8px; }
.mmenu__nav a {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 9vw, 44px);
  padding: 8px 0; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mmenu.open .mmenu__nav a { opacity: 1; transform: none; }
.mmenu.open .mmenu__nav a:nth-child(1) { transition-delay: 0.15s; }
.mmenu.open .mmenu__nav a:nth-child(2) { transition-delay: 0.22s; }
.mmenu.open .mmenu__nav a:nth-child(3) { transition-delay: 0.29s; }
.mmenu.open .mmenu__nav a:nth-child(4) { transition-delay: 0.36s; }
.mmenu__meta { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(241,239,235,0.7); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 999px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--steel-text); color: #fff; }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--steel-text); color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px) clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.no-webgl .hero {
  background:
    radial-gradient(90% 70% at 70% 20%, #d9dade 0%, transparent 60%),
    radial-gradient(70% 60% at 20% 60%, #c7cad2 0%, transparent 55%),
    var(--bone);
}
.hero__inner { position: relative; z-index: 2; }
.hero__kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey); margin-bottom: clamp(14px, 2.5vh, 26px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(52px, 12.5vw, 176px);
  line-height: 0.98; letter-spacing: 0.01em;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__word { display: inline-block; }
.hero__word .ch { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease-inout); transition-delay: calc(var(--i) * 45ms + var(--l) * 120ms); }
body.ready .hero__word .ch { transform: none; }
.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: clamp(24px, 4.5vh, 48px); flex-wrap: wrap;
}
.hero__sub { max-width: 420px; font-size: 15px; color: var(--ink-2); }
.hero__sub em { font-family: var(--font-serif); font-style: italic; font-size: 21px; letter-spacing: 0.01em; }
.hero__photo {
  position: absolute; z-index: 2;
  right: clamp(64px, 7vw, 130px); top: 16vh;
  width: clamp(200px, 22vw, 330px); aspect-ratio: 4 / 5;
  background: var(--bone-2); border-radius: 2px; overflow: hidden;
  color: var(--ink);
  box-shadow: 0 22px 60px -28px rgba(16, 16, 20, 0.35);
}
.hero__photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12) contrast(1.02);
}
.hero__photo svg { width: 100%; height: 100%; padding: 12%; }
.hero__photo-note {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--grey);
}
.hero__photo:has(img) .hero__photo-note { display: none; }

.hero__scroll {
  position: absolute; right: clamp(20px, 4vw, 56px); top: 50%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey);
  writing-mode: vertical-rl;
}
.hero__scroll i { display: block; width: 1px; height: 52px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease-inout) infinite; }
@keyframes drip { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 200; font-size: 15px; letter-spacing: 0.24em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--steel); }
.marquee__track .marquee__strong { font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: var(--space-7) clamp(20px, 4vw, 56px); }
.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.section-head__idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel-text); letter-spacing: 0.2em;
}
.section-head__idx--light { color: var(--steel); }
.section-head__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 58px); letter-spacing: 0.01em;
}
.section-head__note { font-size: 14px; color: var(--grey); margin-left: auto; max-width: 300px; }

/* ---------- work ---------- */
.work__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}
.piece { grid-column: span 4; }
.piece--tall { grid-column: span 4; grid-row: span 2; }
.piece:nth-child(1) { margin-top: var(--space-5); }
.piece:nth-child(3) { margin-top: var(--space-6); }
.piece:nth-child(4) { margin-top: calc(var(--space-6) * -1); }
.piece__media {
  position: relative; overflow: hidden; background: var(--bone-2);
  aspect-ratio: 4 / 5; border-radius: 2px;
}
.piece--tall .piece__media { aspect-ratio: 4 / 6.4; }
.piece__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
  transform: scale(1.04);
  transition: transform 1s var(--ease-out), filter 0.6s;
}
.piece:hover .piece__media img { transform: scale(1.0); filter: grayscale(0) contrast(1); }
.piece__ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--ink); padding: 12%;
  transition: transform 1s var(--ease-out);
}
.piece:hover .piece__ph { transform: scale(1.03) rotate(0.5deg); }
.piece--ph .piece__media::after {
  content: "PLACEHOLDER — assets/README"; position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--grey);
}
.piece__media--ig { display: grid; place-items: center; background: var(--ink); }
.piece__ph--ig { color: rgba(241, 239, 235, 0.25); }
.piece__more {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--bone); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 24px;
}
.piece__more strong { font-family: var(--font-display); font-weight: 300; font-size: 17px; letter-spacing: 0.06em; text-transform: none; }
.piece__more svg { transition: transform 0.3s var(--ease-out); }
.piece__more:hover svg { transform: translate(4px, -4px); }
.piece__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.piece__name { font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.piece__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey); text-transform: uppercase; }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__portrait {
  position: relative; background: var(--bone-2); border-radius: 2px; overflow: hidden;
  aspect-ratio: 4 / 5.2; color: var(--ink);
}
.about__portrait img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.about__portrait svg { width: 100%; height: 100%; padding: 10%; }
.about__stamp {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--grey);
}
.about__portrait:has(img) .about__stamp {
  color: rgba(241, 239, 235, 0.85);
  text-shadow: 0 1px 8px rgba(16, 16, 20, 0.65);
}
/* first sentence of the biography — slightly emphasized, not a headline */
.about__intro {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.5vw, 30px); line-height: 1.4;
  max-width: 34ch; margin-bottom: var(--space-4);
}
.about__facts { list-style: none; max-width: 56ch; }
.fact {
  border-top: 1px solid var(--line);
  padding: 16px 0; font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
.about__facts .fact:last-child { border-bottom: 1px solid var(--line); }

/* ---------- process ---------- */
.process { border-top: 1px solid var(--line); }
.process__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step__num { font-family: var(--font-mono); font-size: 12px; color: var(--steel-text); letter-spacing: 0.2em; }
.step__name { font-family: var(--font-display); font-weight: 300; font-size: 19px; margin: 14px 0 10px; }
.step__text { font-size: 14px; color: var(--ink-2); max-width: 30ch; }

/* ---------- abyss: booking + footer live inside the substance's dark state ---------- */
.abyss { position: relative; }
/* fallback when WebGL is unavailable: same bone→graphite→black journey, marble-soft */
.no-webgl .abyss {
  background:
    radial-gradient(120% 55% at 30% 34%, rgba(42, 42, 48, 0.55) 0%, transparent 60%),
    radial-gradient(90% 40% at 75% 60%, rgba(58, 58, 66, 0.4) 0%, transparent 65%),
    linear-gradient(to bottom, var(--bone) 0%, #b9b7b2 9%, #55555c 22%, #17171c 36%, #0b0b0f 60%, #0b0b0f 100%);
}

/* ---------- booking ---------- */
.book {
  position: relative; z-index: 1; color: var(--bone);
  /* upper ~30% of the surface is the light→dark transition; content sits below it */
  padding-top: clamp(200px, 32vh, 340px);
}
.book__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 110px);
}
.book__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.06; letter-spacing: 0.01em;
  margin: 18px 0 var(--space-5);
}
.book__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.06em; }
.book__links { list-style: none; display: grid; gap: 2px; max-width: 480px; }
.book__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 18px 4px; border-top: 1px solid var(--line-light);
  transition: padding 0.35s var(--ease-out), color 0.3s;
}
.book__links li:last-child a { border-bottom: 1px solid var(--line-light); }
.book__links a span { font-family: var(--font-display); font-weight: 300; font-size: 19px; }
.book__links a small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(241, 239, 235, 0.6); transition: color 0.3s; }
.book__links a:hover { color: var(--steel); padding-left: 14px; }
.book__links a:hover small { color: var(--steel); }

.book__form { display: grid; gap: 26px; align-content: start; }
.book__formnote { font-size: 14px; color: rgba(241, 239, 235, 0.65); max-width: 40ch; }
.field { display: grid; gap: 9px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(241, 239, 235, 0.75); }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0.05em; opacity: 0.6; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--bone); font-family: var(--font-body); font-size: 17px;
  padding: 8px 2px 14px; resize: vertical; min-height: 44px;
  transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(241, 239, 235, 0.35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--steel); }
.field__err { display: none; font-size: 12.5px; color: #ff9d9d; }
.field.bad input, .field.bad textarea { border-bottom-color: #ff9d9d; }
.field.bad .field__err { display: block; }
.field__hint { font-size: 12.5px; color: rgba(241, 239, 235, 0.45); }
.book .btn { justify-self: start; }
.book .btn[disabled] { opacity: 0.55; pointer-events: none; }
.form__status { font-size: 14px; max-width: 42ch; }
.form__status--ok { color: rgba(241, 239, 235, 0.85); }
.form__status--err { color: #ff9d9d; }

/* attach file control */
.attach { display: flex; align-items: center; gap: 10px; }
.attach__input {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.attach__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--line-light); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--bone);
  cursor: pointer; max-width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.attach__btn:hover { border-color: rgba(241, 239, 235, 0.5); background: rgba(241, 239, 235, 0.05); }
.attach__input:focus-visible + .attach__btn { outline: 2px solid var(--steel); outline-offset: 3px; }
.attach__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.attach.has-file .attach__btn { border-color: rgba(241, 239, 235, 0.55); }
.attach__clear {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line-light); color: rgba(241, 239, 235, 0.7);
  transition: color 0.3s, border-color 0.3s;
}
.attach__clear:hover { color: #ff9d9d; border-color: #ff9d9d; }

/* native date & time picker, themed dark */
.field input[type="datetime-local"] {
  color-scheme: dark;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.03em;
  cursor: pointer;
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.65; transition: opacity 0.25s;
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  color: rgba(241, 239, 235, 0.72);
  border-top: 1px solid rgba(241, 239, 235, 0.1);
  margin-top: var(--space-5);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 56px) 34px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--bone); }

/* ============================================================
   MOBILE — designed, not shrunk
   ============================================================ */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .burger { display: block; }

  section { padding: var(--space-6) 20px; }

  .hero { justify-content: flex-end; padding-bottom: 34px; }
  .hero__photo {
    right: 20px; top: 92px;
    width: 38vw; max-width: 180px;
    box-shadow: 0 14px 36px -18px rgba(16, 16, 20, 0.4);
  }
  .hero__title { font-size: clamp(58px, 17.5vw, 110px); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero__scroll { display: none; }

  .section-head { flex-direction: column; gap: 10px; margin-bottom: var(--space-4); }
  .section-head__note { margin-left: 0; }

  /* gallery becomes an edge-swipe filmstrip on phone */
  .work__grid {
    display: flex; gap: 16px; overflow-x: auto; padding: 0 20px 18px;
    margin: 0 -20px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .piece, .piece--tall { flex: 0 0 78vw; max-width: 360px; margin-top: 0 !important; scroll-snap-align: center; grid-row: auto; }
  .piece--tall .piece__media { aspect-ratio: 4 / 5; }

  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__portrait { max-width: 300px; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 24px; }

  .process__list { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
  .step__num { grid-row: span 2; padding-top: 5px; }
  .step__name { margin: 0 0 6px; }
  .step__text { max-width: none; }

  .book { padding-top: clamp(150px, 26vh, 240px); }
  .book__inner { grid-template-columns: 1fr; gap: 48px; }
  .attach__label { max-width: 55vw; }
  .book .btn { justify-self: stretch; justify-content: center; }

  .footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .piece, .piece--tall { grid-column: span 6; grid-row: auto; margin-top: 0 !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .hero__scroll i::after, .book__glow { animation: none; }
  .reveal, .hero__word .ch, .piece__media img, .piece__ph { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__word .ch { transform: none; }
  .loader { transition: opacity 0.3s; }
  .loader.done { opacity: 0; pointer-events: none; clip-path: none; }
}
