/* ==========================================================
   Your Ideal Stitches — palette from the logo
   ink black · logo gold · deep gold · ivory · white, plus wine for detailing
   ========================================================== */
:root {
  --ink: #141414;       /* script lettering */
  --ink-2: #1E1E1E;
  --gold: #D5AE65;      /* "ideal" + needle and thread */
  --gold-deep: #9A7330; /* gold for small text / buttons on light grounds */
  --gray: #6E6E6E;      /* "Embroidery Digitizing" tagline */
  --ivory: #F8F4EC;
  --white: #FFFFFF;
  --wine: #7A2232;      /* detailing: stitch lines, badges, frames */

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* default (dark) section tokens */
  --s-bg: var(--ink);
  --s-fg: var(--ivory);
  --s-muted: rgba(248, 244, 236, .68);
  --s-line: rgba(213, 174, 101, .2);
  --s-accent: var(--gold);
  --s-card: rgba(255, 255, 255, .04);
}

/* Section themes */
.t-dark  { --s-bg: var(--ink); --s-fg: var(--ivory); --s-muted: rgba(248, 244, 236, .68); --s-line: rgba(213, 174, 101, .2);  --s-accent: var(--gold);  --s-card: rgba(255, 255, 255, .04); }
.t-light { --s-bg: var(--ivory);  --s-fg: var(--ink); --s-muted: rgba(20, 20, 20, .7);    --s-line: rgba(20, 20, 20, .14);  --s-accent: var(--gold-deep); --s-card: var(--white); }
.t-green { --s-bg: var(--gold); --s-fg: var(--ink); --s-muted: rgba(20, 20, 20, .72); --s-line: rgba(20, 20, 20, .18); --s-accent: var(--wine); --s-card: rgba(255, 255, 255, .25); }
.t-dark, .t-light, .t-green { background: var(--s-bg); color: var(--s-fg); }
.t-light, .t-green { border-radius: var(--radius); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ivory);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--wine); color: var(--ivory); }

em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section { padding: clamp(90px, 13vw, 170px) 0; position: relative; overflow: clip; }
.muted { color: var(--s-muted); }
.small { font-size: 14px; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--s-muted); margin-bottom: 26px;
}
.label span { padding: 6px 12px; border-radius: 999px; background: var(--s-accent); color: var(--s-bg); font-weight: 500; }
.t-light .label span { background: var(--wine); color: var(--ivory); }
.t-green .label span { color: var(--ivory); }

.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: .98; letter-spacing: -.04em; margin: 0 0 28px;
}
.h2 em { font-size: 1.06em; color: var(--s-accent); padding-right: .04em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--sage { background: var(--gold); color: var(--ink); }
.btn--sage::before { background: var(--ivory); }
.btn--green { background: var(--gold-deep); color: var(--white); }
.btn--green::before { background: var(--ink); }
.t-green .btn--green { background: var(--white); color: var(--ink); }
.t-green .btn--green::before { background: var(--gold); }
.btn--ghost-light { border: 1px solid rgba(248, 244, 236, .45); color: var(--ivory); }
.btn--ghost-light::before { background: var(--ivory); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--ghost-dark { border: 1px solid rgba(20, 20, 20, .35); color: var(--ink); }
.btn--ghost-dark::before { background: var(--ink); }
.btn--ghost-dark:hover { color: var(--ivory); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  background: rgba(20, 20, 20, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--gold); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(213, 174, 101, .7); } 100% { box-shadow: 0 0 0 12px rgba(213, 174, 101, 0); } }
.announce {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--white);
  background: rgba(20, 20, 20, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px);
  font-size: 14px; transition: border-color .3s;
}
.announce:hover { border-color: var(--gold); }
.announce__tag { padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.announce svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.announce:hover svg { transform: translateX(3px); }
kbd {
  display: inline-block; font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(20, 20, 20, .2); border-bottom-width: 3px; color: var(--ink);
}
.kbds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--white); color: var(--ink); display: grid; place-items: center; padding: var(--gutter); }
.loader__inner { width: min(640px, 100%); }
.loader__logo { display: block; width: min(300px, 70vw); height: auto; margin: 0 auto 34px; mix-blend-mode: multiply; }
.loader__stitch { width: 100%; height: 40px; overflow: visible; }
.loader__stitch path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 10 8; stroke-linecap: round; }
.loader__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.loader__brand { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.loader__count { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 9vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.loader__count i { font-style: normal; color: var(--gold); }
.loader__words { display: flex; gap: 18px; margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: 22px; }
.loader__words span:nth-child(1) { color: var(--ink); }
.loader__words span:nth-child(2) { color: var(--gold-deep); }
.loader__words span:nth-child(3) { color: var(--wine); }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; border-radius: 50%; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--gold);
  display: grid; place-items: center; mix-blend-mode: normal;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--wine); box-shadow: 0 0 0 2px var(--ivory); }
.cursor__label { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .25s; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold-deep); background: rgba(213, 174, 101, .25); }
.cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Progress + grain ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; left: 14px; top: 50%; z-index: 58; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 12px;
  padding: 14px 8px; border-radius: 999px;
  background: rgba(20, 20, 20, .88); border: 1px solid rgba(213, 174, 101, .25); backdrop-filter: blur(12px);
  color: var(--ivory); font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
}
.rail__count { writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(248, 244, 236, .55); }
.rail__count b { color: var(--gold); font-weight: 500; }
.rail__track { position: relative; width: 2px; height: 28vh; background: rgba(213, 174, 101, .2); border-radius: 2px; overflow: hidden; }
.rail__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
.rail__name { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; letter-spacing: .14em; color: var(--ivory); }
@media (min-width: 1280px) { .rail { display: flex; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 60; width: min(1240px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 6px 8px 6px 18px; border-radius: 999px; color: var(--ink);
  background: var(--white); border: 1px solid rgba(213, 174, 101, .45);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s;
}
.nav.is-solid { background: var(--white); }
.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 50px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(20, 20, 20, .72); transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(213, 174, 101, .18); }
.nav__cta { background: var(--ink); color: var(--gold); }
.nav__cta::before { background: var(--gold); }
.nav__cta:hover { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--wine); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--gold); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px; clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 12vw, 4.6rem); letter-spacing: -.04em; line-height: 1.1;
  display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid rgba(213, 174, 101, .2); padding: 8px 0;
}
.menu__links i { font-family: var(--f-mono); font-style: normal; font-size: 12px; color: var(--gold); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: rgba(248, 244, 236, .68); font-size: 15px; }
@media (max-width: 980px) { .nav__links, .nav__cta { display: none; } .nav__burger { display: block; } }

/* ---------- Hero (plain video, no colour filter) ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__media { position: absolute; inset: 0; background: #000; will-change: transform, clip-path; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* neutral legibility shade only — no tint */
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,0) 55%); }
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 128px; max-width: 1600px; margin: 0 auto;
}
.hero__top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 14vw, 15rem); line-height: .84; letter-spacing: -.055em;
  display: flex; flex-direction: column;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line b { color: var(--gold); }
.hero__line.l2 { padding-left: 10vw; }
.hero__line.l2 em { font-size: 1.1em; letter-spacing: -.02em; line-height: .8; color: var(--gold); }
.hero__line.l3 { padding-left: 3vw; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 420px) auto 1fr; align-items: end; gap: 32px; }
.hero__lede { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, .9); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas .btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); backdrop-filter: blur(8px); }
.hero__scroll { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hero__scroll i { width: 1px; height: 54px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.hero__story {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: min(1000px, 88vw); margin: 0; transform: translate(-50%, -50%);
  text-align: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.035em; color: var(--white); visibility: hidden; pointer-events: none;
}
.hero__story em { color: var(--gold); font-size: 1.08em; }

.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track > * { margin-right: 28px; flex: none; }
.marquee b { font-weight: 400; }
.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: rgba(255, 255, 255, .85);
  background: rgba(20, 20, 20, .55); backdrop-filter: blur(8px);
}
.hero__marquee b { color: var(--gold); }
@media (max-width: 860px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
  .hero__scroll { display: none; }
  .hero__line.l2 { padding-left: 8vw; }
  .hero__inner { padding-bottom: 112px; }
  .announce { font-size: 13px; }
}

/* ---------- About + bento ---------- */
.about__big {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 clamp(60px, 9vw, 110px); max-width: 26ch;
}
.about__big .hl { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -.01em; color: var(--gold-deep); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 30px; border-radius: 24px; overflow: hidden; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card[data-tone="forest"] { background: var(--ink); color: var(--ivory); --ic-bg: var(--gold); --ic-fg: var(--ink); --p: rgba(248, 244, 236, .72); }
.card[data-tone="green"]  { background: var(--gold-deep); color: var(--white); --ic-bg: var(--ivory); --ic-fg: var(--gold-deep); --p: rgba(255, 255, 255, .8); }
.card[data-tone="sage"]   { background: var(--gold); color: var(--ink); --ic-bg: var(--ink); --ic-fg: var(--gold); --p: rgba(20, 20, 20, .78); }
.card::after { content: ""; position: absolute; inset: 12px; border-radius: 16px; border: 1.5px dashed var(--wine); opacity: .55; pointer-events: none; }
.card[data-tone="forest"]::after { border-color: var(--gold); opacity: .35; }
.card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; margin-bottom: 48px; background: var(--ic-bg); }
.card__icon svg { width: 24px; fill: none; stroke: var(--ic-fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: -.03em; margin: 0 0 10px; }
.card p { margin: 0; color: var(--p); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Services (horizontal) ---------- */
.services { position: relative; }
.services__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.services__track { display: flex; align-items: stretch; gap: 22px; padding: 0 var(--gutter); will-change: transform; }
.services__intro { flex: 0 0 min(520px, 86vw); display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
.services__meter { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-family: var(--f-mono); font-size: 12px; color: var(--gold); }
.services__meter div { flex: 1; max-width: 180px; height: 2px; background: rgba(213, 174, 101, .2); }
.services__meter i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.17); }
/* Photo service cards */
.svc {
  flex: 0 0 min(400px, 82vw); height: min(76vh, 660px);
  border-radius: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--ivory); color: var(--ink);
}
.svc:nth-child(odd) { background: var(--white); }
.svc__media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 10px 10px 0; border-radius: 18px; }
.svc__media img { position: absolute; inset: -6% -10%; width: 120%; height: 112%; max-width: none; object-fit: cover; }
.svc__no {
  position: absolute; z-index: 1; top: 14px; left: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-family: var(--f-display); font-weight: 800; font-size: 16px;
}
.svc__body { position: relative; padding: 22px 26px 26px; }
.svc__body::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; border-top: 1.5px dashed var(--wine); opacity: .5; }
.svc__tag { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin-bottom: 10px; }
.svc h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -.035em; line-height: 1; margin: 0 0 10px; }
.svc p { margin: 0 0 16px; color: rgba(20, 20, 20, .72); font-size: 15.5px; }
.svc__link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--gold-deep); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.svc__link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.svc__link:hover svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .services__pin { height: auto; display: block; padding: 90px 0; }
  .services__track { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .services__intro { grid-column: 1 / -1; padding-right: 0; }
  .svc { flex: none; width: auto; height: auto; }
  .svc__media { flex: none; aspect-ratio: 4 / 3; }
  .services__meter { display: none; }
}
@media (max-width: 600px) { .services__track { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stitchline { width: 100%; height: 40px; margin: 6px 0 50px; overflow: visible; }
.stitchline path { fill: none; stroke: var(--wine); stroke-width: 3; stroke-dasharray: 12 10; stroke-linecap: round; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -44; } }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  container-type: inline-size; position: relative; overflow: hidden; min-width: 0;
  padding: 26px 26px 30px; border-radius: 24px; background: var(--ink); color: var(--gold);
}
.stat:nth-child(2) { background: var(--white); color: var(--ink); }
.stat:nth-child(3) { background: var(--wine); color: var(--ivory); }
.stat:nth-child(4) { background: var(--ivory); color: var(--ink); }
.stat__tag { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 40px; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 22cqi, 5.2rem); letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__num sup { font-size: .42em; vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stat__bar { display: block; height: 3px; border-radius: 3px; margin-top: 22px; background: currentColor; opacity: .5; transform-origin: 0 50%; }
@media (max-width: 980px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stat { padding: 20px 18px 22px; } .stat__tag { margin-bottom: 26px; font-size: 10px; } }

/* ---------- Studio video bridge (plain) ---------- */
.studio { position: relative; height: 100vh; overflow: hidden; background: var(--ink); }
.studio__frame { position: absolute; inset: 0; clip-path: inset(14% 18% round 32px); will-change: clip-path; }
.studio__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.studio__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.studio__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(50px, 8vw, 100px); max-width: 1360px; margin: 0 auto; color: var(--white); }
.studio__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 7rem); line-height: .95; letter-spacing: -.05em; margin: 0; max-width: 13ch; }
.studio__title em { color: var(--gold); font-size: 1.06em; }

/* ---------- Process story (pinned) ---------- */
.story__pin { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 60px; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.story__steps { display: grid; gap: 22px; margin-top: 10px; }
.sstep { border-left: 2px solid var(--s-line); padding-left: 22px; }
.sstep__no { font-family: var(--f-mono); font-size: 12px; color: var(--gold-deep); letter-spacing: .1em; }
.sstep h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.035em; margin: 6px 0 8px; line-height: 1.05; }
.sstep p { margin: 0; color: var(--s-muted); max-width: 42ch; }
.story__dots { display: none; }
/* animated mode: steps stack and swap */
.story.is-anim .story__steps { grid-template-areas: "s"; }
.story.is-anim .sstep { grid-area: s; border-left-color: var(--gold-deep); }
.story.is-anim .story__dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 34px 0 0; }
.story__dots li { width: 34px; height: 4px; border-radius: 4px; background: var(--s-line); position: relative; overflow: hidden; transition: background .4s; }
.story__dots li.is-on { background: var(--wine); }

.story__visual { display: grid; place-items: center; }
.sv { position: relative; width: min(520px, 100%); aspect-ratio: 1; border-radius: 30px; background: var(--white); box-shadow: 0 40px 80px -40px rgba(20, 20, 20, .45); }
.sv__grid { position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(rgba(20,20,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,20,.07) 1px, transparent 1px); background-size: 16px 16px; }
.sv__art { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; mix-blend-mode: multiply; }
.sv__mesh { position: absolute; inset: 16%; width: 68%; height: 68%; opacity: .55; clip-path: inset(0 0 0 0); pointer-events: none; }
.sv__scan { position: absolute; left: 8%; right: 8%; top: 12%; height: 2px; background: var(--wine); box-shadow: 0 0 0 4px rgba(122, 34, 50, .14); opacity: 0; }
.sv__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sv__frame rect { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-dasharray: 9 7; }
.sv__card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--white); color: var(--ink); border: 1px solid rgba(20, 20, 20, .12);
  box-shadow: 0 20px 40px -18px rgba(20, 20, 20, .35); font-size: 13px; line-height: 1.3;
}
.sv__card b { display: block; font-weight: 600; }
.sv__card small { color: rgba(20, 20, 20, .65); }
.sv__ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--ivory); font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.sv__ico--ok { background: var(--gold-deep); color: var(--white); font-size: 16px; }
.sv__file { left: -6%; top: 8%; min-width: 230px; }
.sv__bar { margin-top: 6px; height: 4px; border-radius: 4px; background: var(--ivory); overflow: hidden; }
.sv__bar i { display: block; height: 100%; background: var(--gold-deep); transform-origin: 0 50%; }
.sv__quote { right: -6%; bottom: 14%; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 200px; background: var(--ink); color: var(--ivory); border: 0; }
.sv__quote small { color: var(--gold); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.sv__quote b { font-family: var(--f-display); font-size: 28px; letter-spacing: -.03em; }
.sv__quote b span { font-family: var(--f-body); font-size: 13px; font-weight: 400; color: rgba(248, 244, 236, .7); letter-spacing: 0; }
.sv__quote ul { margin: 2px 0 0; padding: 0 0 0 16px; font-size: 12.5px; color: rgba(248, 244, 236, .85); }
.sv__tag { left: 50%; top: -5%; transform: translateX(-50%); background: var(--gold); border: 0; white-space: nowrap; }
.sv__tag small { margin-left: 4px; }
.sv__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); animation: ping 1.4s infinite; }
.sv__mail { right: -6%; top: 10%; min-width: 220px; }
.sv__chips { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); display: flex; gap: 8px; }
.sv__chips span { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-family: var(--f-mono); font-size: 12px; box-shadow: 0 12px 24px -12px rgba(20, 20, 20, .6); }
@media (max-width: 900px) {
  .story__pin { padding: 90px 0 50px; }
  .story__grid { grid-template-columns: 1fr; gap: 34px; }
  .story__visual { order: -1; }
  .sv { width: min(78vw, 40vh); }
  .sv__card { font-size: 11.5px; padding: 9px 10px; }
  .sv__file, .sv__mail { min-width: 0; }
  .sv__ico { width: 30px; height: 30px; }
  .sv__quote b { font-size: 20px; }
  .story .h2 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 18px; }
  .story .label { margin-bottom: 14px; }
}

/* ---------- Pricing ---------- */
.pricing__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.pricing__head .muted { margin: 0 0 32px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.plan {
  --mx: 50%; --my: 0%;
  position: relative; padding: 34px; border-radius: 26px; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--s-line); display: flex; flex-direction: column;
}
.plan::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(213, 174, 101, .16), transparent 60%); }
.plan:hover::before { opacity: 1; }
.plan > * { position: relative; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-family: var(--f-display); font-weight: 700; font-size: 27px; letter-spacing: -.03em; margin: 0; }
.plan__tier { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--s-line); color: var(--gold); }
.plan__price { font-family: var(--f-display); font-weight: 800; font-size: clamp(4.5rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -.06em; margin: 36px 0 10px; }
.plan__price sup { font-size: .38em; vertical-align: top; position: relative; top: .3em; color: var(--gold); margin-right: 4px; }
.plan__desc { color: var(--s-muted); margin: 0 0 26px; min-height: 3.1em; }
.plan ul { list-style: none; padding: 26px 0 0; margin: 0 0 34px; border-top: 1px dashed var(--s-line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn { justify-content: center; }
.plan--pop { z-index: 2; background: var(--ivory); color: var(--ink); border-color: var(--ivory); --s-muted: rgba(20, 20, 20, .7); --s-line: rgba(20, 20, 20, .16); }
.plan--pop .plan__tier { color: var(--gold-deep); }
.plan--pop .plan__price sup { color: var(--gold-deep); }
.plan--pop li::before { background-color: var(--gold-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }
.plan--pop::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(154, 115, 48, .14), transparent 60%); }
.plan__badge { position: absolute; top: -1px; right: 28px; padding: 7px 12px; border-radius: 0 0 12px 12px; background: var(--wine); color: var(--ivory); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 980px) { .pricing__head { grid-template-columns: 1fr; gap: 0; } .plans { grid-template-columns: 1fr; } }

/* ---------- Work: square tiles ---------- */
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.work__head .h2 { margin-bottom: 0; }
.work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.piece { margin: 0; }
.tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--tile);
  display: grid; place-items: center; padding: 10%; cursor: none; transform-style: preserve-3d;
  box-shadow: 0 24px 50px -30px rgba(20, 20, 20, .6);
}
.tile img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.tile--mult img { mix-blend-mode: multiply; }
.tile::after { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 2px dashed var(--wine); opacity: .45; z-index: 2; pointer-events: none; transition: opacity .4s, inset .5s var(--ease); }
.tile[style*="#000"]::after { border-color: var(--gold); }
.piece:hover .tile::after { opacity: 1; inset: 14px; }
.piece:hover .tile img { transform: scale(1.07) rotate(-2deg); }
.piece figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px 0; }
.piece figcaption span { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.piece figcaption i { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--gold-deep); }
@media (hover: none) { .tile { cursor: auto; } }
@media (max-width: 1080px) { .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .work__grid { gap: 12px; } .piece figcaption span { font-size: 16px; } }

/* ---------- FAQ ---------- */
.faq__wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__side { position: sticky; top: 120px; }
.faq__side .muted { margin: 0 0 28px; max-width: 38ch; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--s-line); padding: 0 22px; transition: border-color .3s, background .3s; }
.qa:hover { border-color: rgba(213, 174, 101, .5); }
.qa.is-open { border-color: var(--gold); background: rgba(213, 174, 101, .08); }
.qa__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.02em; }
.qa__q i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--s-line); position: relative; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open .qa__q i { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(135deg); }
.qa__a { height: 0; overflow: hidden; }
.qa__a p { margin: 0; padding: 0 40px 22px 0; color: var(--s-muted); }
@media (max-width: 860px) { .faq__wrap { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(90px, 13vw, 170px) 0; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; border-radius: inherit; }
.contact__bg canvas { opacity: .45; }
.contact__wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--s-line); }
.contact__list span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.contact__list a { font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; transition: color .3s; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--wine); }
.form {
  position: relative; padding: clamp(24px, 3vw, 38px); border-radius: 28px; background: var(--ivory); color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(20, 20, 20, .8); display: grid; gap: 16px;
}
.form .muted { color: rgba(20, 20, 20, .65); }
.form__head { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: rgba(20, 20, 20, .7); padding-bottom: 8px; border-bottom: 1px dashed rgba(20, 20, 20, .2); }
.form__head .dot { background: var(--gold-deep); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(20, 20, 20, .7); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid rgba(20, 20, 20, .16); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(154, 115, 48, .15); }
.field.is-invalid input { border-color: #B3261E; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed rgba(20, 20, 20, .3); border-radius: 16px; cursor: pointer; background: rgba(213, 174, 101, .2); transition: border-color .3s, background .3s; }
.drop:hover, .drop.is-over { border-color: var(--gold-deep); background: rgba(213, 174, 101, .4); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold-deep); fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__text { font-size: 14.5px; color: rgba(20, 20, 20, .7); }
.drop__text b { color: var(--ink); font-weight: 600; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__foot .muted { margin: 0; }
.form .btn--green { background: var(--gold-deep); color: var(--white); }
.form .btn--green::before { background: var(--ink); }
.form__msg { margin: 0; min-height: 1em; font-size: 14.5px; color: var(--gold-deep); }
.form__msg.is-error { color: #B3261E; }
@media (max-width: 920px) { .contact__wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__list li { grid-template-columns: 90px 1fr; } }

/* ---------- Footer ---------- */
.footer { --s-bg: var(--white); padding: clamp(80px, 10vw, 130px) 0 28px; margin-top: 16px; position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.footer__line { margin: 0 0 clamp(30px, 5vw, 60px); font-family: var(--f-display); font-weight: 800; font-size: clamp(2.8rem, 8vw, 8rem); line-height: .95; letter-spacing: -.05em; }
.footer__line em { color: var(--gold-deep); font-size: 1.06em; }
.footer__marquee { padding: clamp(24px, 4vw, 44px) 0; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); background: var(--ink); color: var(--ivory); }
.footer__marquee .marquee__track > * { margin-right: 40px; }
.footer__marquee .marquee__track { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -.055em; line-height: 1; }
.footer__marquee em { font-size: 1.08em; color: var(--gold); padding-right: .08em; }
.footer__marquee b { color: var(--wine); font-size: .4em; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; }
.footer__grid h4 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 18px; }
.footer__grid a:not(.brand) { display: block; color: var(--s-muted); padding: 4px 0; transition: color .3s, transform .3s var(--ease); overflow-wrap: anywhere; }
.footer__grid a:not(.brand):hover { color: var(--ink); transform: translateX(4px); }
.footer__logo { display: block; width: min(280px, 70vw); height: auto; margin: -10px 0 10px -6px; mix-blend-mode: multiply; }
.footer__story .muted { max-width: 36ch; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--s-line); font-size: 13px; color: var(--s-muted); }
.totop:hover { color: var(--gold-deep); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__story { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .sv__pulse, .hero__scroll i::after, .stitchline path { animation: none; }
  .studio__frame { clip-path: none; }
}
