/* ==========================================================================
   Akibaza Studio — shared stylesheet
   "Workbench": warm near-black, cream paper surfaces, Akibaza red,
   rounded cards and pill buttons. Sketch first, final when you say so.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #13110e;
  --bg-2: #1a1713;       /* alternate section band */
  --bg-3: #24201b;       /* chips, hover, placeholder fills */
  --panel: #1c1915;      /* cards */
  --line: #2e2a24;       /* card borders, dividers */
  --line-2: #5a5349;     /* input borders, ghost buttons */

  --red: #e3101a;        /* fills: primary buttons, active states */
  --red-2: #ff4a52;      /* small red text on dark (5.7:1) */
  --red-hover: #c60c15;  /* button hover: darker, white text stays 6.1:1 */
  --red-deep: #8a0a10;   /* small red text on paper */
  --red-tint: #3a1214;   /* badge background */

  --paper: #ede6da;      /* cream surface (CTA bands, highlight cards) */
  --paper-ink: #13110e;
  --paper-2: #4a443b;    /* secondary text on paper (7.8:1) */

  --text: #ede6da;
  --text-2: #cfc7b9;
  --text-3: #a69e91;     /* labels and meta (7.0:1 on --bg) */

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;        /* cards */
  --radius-sm: 12px;     /* inputs, small tiles */
  --pill: 999px;         /* buttons, chips */

  --container: 1240px;
  --gutter: 20px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: var(--pill); z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
  position: relative;
}
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 720px;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.section-head--split {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
}
.section-head--split h2 { margin: 0; }
.section-head--split p { margin: 0; max-width: 440px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.eyebrow--red { color: var(--red-2); }

.grid {
  display: grid;
  gap: 16px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Rounded corner utility (kept as .cut so existing markup still works) ---------- */
.cut { border-radius: var(--radius); overflow: hidden; }
.cut-sm { border-radius: var(--radius-sm); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none !important;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }

.btn--lg { min-height: 56px; padding-inline: 30px; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* Old glow wrapper: now a plain inline wrapper */
.glow { display: inline-block; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .container { gap: 10px; }
  .site-header .brand { gap: 8px; font-size: 1.1rem; }
  .site-header .brand__logo { width: 32px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .header-actions .btn { padding: 8px 14px; font-size: 0.9rem; }
}

.brand__logo {
  width: 38px; height: auto;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-6deg); }

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none !important;
  border-radius: var(--pill);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--red-2); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--gutter) 16px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}
.mobile-nav a[aria-current="page"] { color: var(--red-2); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 7vw, 104px) clamp(40px, 6vw, 80px);
}
/* Blurred copy of the showcase final behind the hero; layers cross-fade when the piece changes. */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg img {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  filter: blur(36px) saturate(1.25);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero__bg img.is-in { opacity: 0.95; }
/* Dark on the text side, lighter behind the showcase, fading into the page at the bottom. */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 17, 14, 0.25) 0%, rgba(19, 17, 14, 0) 35%, rgba(19, 17, 14, 0.2) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(19, 17, 14, 0.9) 0%, rgba(19, 17, 14, 0.72) 38%, rgba(19, 17, 14, 0.18) 68%, rgba(19, 17, 14, 0.3) 100%);
}
@media (max-width: 959px) {
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(19, 17, 14, 0.85) 0%, rgba(19, 17, 14, 0.7) 45%, rgba(19, 17, 14, 0.35) 75%, var(--bg) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero__bg img { transition: none; } }
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--red-2); }
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__proof {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 0.95rem; color: var(--text-2);
}
.hero__proof strong { color: var(--text); }

/* Sketch / final compare (Home hero) */
.compare-art { margin: 0; display: grid; gap: 14px; }
.compare-art__stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
}
.compare-art__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare-art__sketch {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-art__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: var(--red);
  pointer-events: none;
}
.compare-art__handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.compare-art__handle svg { width: 22px; height: 22px; }
.compare-art__tag {
  position: absolute; top: 16px;
  padding: 6px 12px;
  border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  pointer-events: none;
}
.compare-art__tag--sketch { left: 16px; background: var(--bg); color: var(--text); }
.compare-art__tag--final { right: 16px; background: var(--red); color: #fff; }
.compare-art__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize;
}
.compare-art__stage:has(.compare-art__range:focus-visible) { outline: 2px solid var(--red-2); outline-offset: 4px; }
.compare-art figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  font-size: 0.9rem; color: var(--text-3);
}
.compare-art figcaption span:last-child { font-family: var(--font-mono); font-size: 0.8rem; }
.compare-art__picks { display: flex; flex-wrap: wrap; gap: 8px; }

/* Framed image (About) */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.hero__frame { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.hero__frame-inner { position: absolute; inset: 0; }
.hero__frame-inner > .cover { position: absolute; inset: 0; }
.hero__frame-inner > .cover--contain { object-fit: contain; background: #0d0d0d; }
.hero__corner, .hero__scan { display: none; }
.hero__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(19,17,14,0.85);
  padding: 6px 12px;
  border-radius: var(--pill);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.hero__meta ul { margin: 0; padding: 0; display: contents; }
.hero__meta li { list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- Placeholder image blocks ---------- */
/* Swap: replace the .ph element with <img> or set a background-image. */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--bg-3);
  border: 1px dashed var(--line-2);
  border-radius: inherit;
  color: var(--text-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px;
  overflow: hidden;
}
.ph__label { position: relative; max-width: 90%; }
.ph__label strong { display: block; color: var(--text-2); margin-bottom: 2px; }

/* ---------- Spec strip (studio numbers) ---------- */
.trust { border-block: 1px solid var(--line); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 900px) { .stat { border-bottom: 0; } }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  color: var(--text);
}
.stat__value .unit { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--text-2); margin-left: 4px; }

/* ---------- Cards (1px border via padding, rounded) ---------- */
.card {
  position: relative;
  background: var(--line);
  padding: 1px;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  height: 100%;
}
.card__inner {
  position: relative;
  height: 100%;
  background: var(--panel);
  border-radius: calc(var(--radius) - 1px);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-glow-wrap { height: 100%; }
.card:hover { background: var(--line-2); transform: translateY(-3px); }
.card__glow { display: none; }

.card__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-2);
}
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--red-2);
  background: var(--red-tint);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 4px 0 0; font-size: 1.35rem; }
.card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.93rem; display: grid; gap: 4px; }
.card ul li { display: flex; gap: 8px; align-items: flex-start; }
.card ul li::before { content: "→"; color: var(--red-2); flex: 0 0 auto; }
.card__link {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 600;
  color: var(--red-2);
  display: inline-flex; gap: 8px; align-items: center;
  text-decoration: none !important;
}
.card__link .arrow { transition: transform 0.25s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }

/* Make the whole card clickable without nested interactive content */
.card--link { cursor: pointer; }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Service line card with artwork on top (Home) */
.line-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.line-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.line-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.line-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.line-card:hover .line-card__media img { transform: scale(1.04); }
.line-card__body { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.line-card h3 { margin: 0; font-size: 1.4rem; }
.line-card p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.line-card__foot {
  margin-top: auto; padding-top: 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px;
}
.line-card__price { color: var(--text-2); font-size: 0.95rem; white-space: nowrap; }
.line-card__price strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); margin-left: 4px; }
.line-card__link { font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.line-card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Process steps (Home) ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.process__num { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--red-2); }
.process h3 { margin: 0; font-size: 1.6rem; }
.process p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.process li.is-paper { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.process li.is-paper .process__num { color: var(--red-deep); }
.process li.is-paper p { color: var(--paper-2); }
.process li.is-red { background: var(--red); border-color: var(--red); color: #fff; }
.process li.is-red .process__num, .process li.is-red p { color: #fff; }

/* ---------- Portfolio grid ---------- */
.work-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.work__inner { position: absolute; inset: 0; background: var(--panel); }
.work:hover { transform: translateY(-3px); }
.work__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(19,17,14,0.92), rgba(19,17,14,0.5) 60%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 8px;
  z-index: 2;
}
.work__title { min-width: 0; font-weight: 600; font-size: 0.95rem; color: #fff; line-height: 1.3; }
.work__cat {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text); background: rgba(19,17,14,0.8); padding: 3px 9px; border-radius: var(--pill); white-space: nowrap;
}

/* Pinboard: masonry-style columns, caption under each piece (Home) */
.pinboard { columns: 3 280px; column-gap: 18px; }
.pin { margin: 0 0 18px; break-inside: avoid; }
.pin img { width: 100%; height: auto; border-radius: 16px; background: var(--panel); }
.pin figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 2px 0; font-size: 0.92rem; color: var(--text-2);
}
.pin figcaption span:last-child { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }

/* ---------- Testimonials ---------- */
.quote {
  position: relative;
  background: var(--line);
  padding: 1px;
  border-radius: var(--radius);
  height: 100%;
}
.quote__inner {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) - 1px);
  background: var(--panel);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.quote__mark { display: none; }
.quote__stars { color: var(--red-2); letter-spacing: 2px; font-size: 0.9rem; }
.quote blockquote { margin: 0; color: var(--text); font-size: 1rem; }
.quote figcaption {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text-3);
}
.quote figcaption strong { color: var(--text); display: block; font-weight: 600; }
.avatar {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--text);
}

/* Big pull quote + side quotes (Home) */
.reviews { display: grid; gap: 40px 64px; }
@media (min-width: 960px) { .reviews { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.reviews__lead blockquote {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.25; letter-spacing: -0.01em;
}
.reviews__lead p { margin: 20px 0 0; color: var(--text-3); }
.reviews__lead p strong { color: var(--text); }
.reviews__side { display: grid; gap: 14px; }
.reviews__side figure { margin: 0; padding: 22px; border-radius: 16px; border: 1px solid var(--line); }
.reviews__side blockquote { margin: 0; line-height: 1.55; }
.reviews__side figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--text-3); }
/* Long website reviews drop to a calmer size so the pull quote doesn't fill the screen. */
.reviews__lead blockquote.is-long { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.4; }
.review-stars { color: #f5b301; letter-spacing: 0.08em; white-space: nowrap; }

/* ---------- Final CTA (cream paper card) ---------- */
.cta-band {
  position: relative;
  padding: clamp(36px, 6vw, 88px);
  border-radius: 28px;
  background: var(--paper);
  color: var(--paper-ink);
  text-align: left;
}
.cta-band__inner { display: none; }
.cta-band__content {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between;
}
.cta-band__content > :not(.hero__ctas) { flex: 1 1 100%; }
.cta-band__text { flex: 1 1 480px !important; min-width: 0; }
.cta-band .eyebrow { color: var(--red-deep); justify-content: flex-start !important; }
.cta-band h2 { margin-bottom: 14px; color: var(--paper-ink); }
.cta-band p { color: var(--paper-2); font-size: 1.08rem; margin: 0; max-width: 560px; }
.cta-band .hero__ctas { justify-content: flex-start; }
.cta-band .btn--ghost { color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-ink); }
.cta-band .btn--ghost:hover { background: rgba(19,17,14,0.06); }
.cta-band a:not(.btn) { color: var(--red-deep); }
.cta-band-wrap { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-block: 48px 28px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand p { max-width: 360px; margin-top: 14px; color: var(--text-3); }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-3);
}
.footer__bottom span:last-child { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Generic content blocks (used on inner pages) ---------- */
.page-hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.page-hero p { color: var(--text-2); font-size: 1.1rem; max-width: 680px; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ff8a90;
  background: var(--red-tint);
  padding: 4px 10px;
  border-radius: var(--pill);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Sticky category sub-nav (Services) ---------- */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(19,17,14,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.subnav .container::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip.is-active {
  color: var(--paper-ink);
  background: var(--paper);
  border-color: var(--paper);
}
.chip .count { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--text-3); }
.chip[aria-pressed="true"] .count, .chip.is-active .count { color: var(--paper-2); }

/* ---------- Service category sections ---------- */
.svc-section { scroll-margin-top: 140px; }
.svc-section + .svc-section { border-top: 1px solid var(--line); }
.svc-section__head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
@media (min-width: 900px) {
  .svc-section__head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.svc-section__head p { color: var(--text-2); margin: 0; max-width: 560px; }
.svc-section__head h2 { margin: 0; }
.svc-section__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red-2);
  display: block;
  margin-bottom: 8px;
}

/* Service card */
.svc {
  position: relative;
  background: var(--line);
  padding: 1px;
  border-radius: var(--radius);
  height: 100%;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc:hover { background: var(--line-2); transform: translateY(-3px); }
.svc--flagship { background: var(--red); }
.svc--flagship:hover { background: var(--red); }
.svc__inner {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.svc__desc { color: var(--text-2); margin: 0; font-size: 0.95rem; }
.svc__list {
  margin: 0; padding: 14px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
  font-size: 0.9rem; color: var(--text-2);
}
.svc__list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.svc__list svg { width: 16px; height: 16px; color: var(--red-2); margin-top: 3px; }
.svc__list strong { color: var(--text); font-weight: 600; }
.svc__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price { font-size: 0.9rem; color: var(--text-2); }
.price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
.price strong .cur { color: var(--text); font-size: 1em; }

/* ---------- Portfolio ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.work-grid--full { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .work-grid--full { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .work-grid--full { grid-template-columns: repeat(4, 1fr); } }
.work-wrap.is-hidden { display: none; }
.work-wrap.is-filtering { animation: pop 0.4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.empty-state {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.empty-state.is-visible { display: block; }

/* ---------- About ---------- */
.prose { max-width: 720px; color: var(--text-2); font-size: 1.06rem; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); }
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline time { grid-row: span 2; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--red-2); padding-top: 2px; }
.timeline strong { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.timeline p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

.pillar { background: var(--line); padding: 1px; border-radius: var(--radius); height: 100%; }
.pillar__inner { border-radius: calc(var(--radius) - 1px); background: var(--panel); padding: 28px 24px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { margin: 4px 0 0; font-size: 1.45rem; }
.pillar p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

.member { background: var(--line); padding: 1px; border-radius: var(--radius); height: 100%; }
.member__inner { border-radius: calc(var(--radius) - 1px); overflow: hidden; background: var(--panel); height: 100%; display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 1 / 1; }
.member__photo .ph { min-height: 100%; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; }
.member__body { padding: 18px 20px 22px; display: grid; gap: 4px; }
.member h3 { margin: 0; font-size: 1.25rem; }
.member__role { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-2); }
.member p { color: var(--text-2); margin: 6px 0 0; font-size: 0.93rem; }
.member__photo { overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }

/* Proximity hover (Home team, [data-proximity]). --p (0..1) is set per card
   by main.js: 1 under the cursor, fading with distance for the neighbours.
   translate/scale/filter stay clear of .reveal, which owns transform/opacity.
   Without the script, :hover sets --p: 1 on its own. */
[data-proximity] .member {
  --p: 0;
  background: color-mix(in srgb, var(--line) calc(100% - var(--p) * 100%), var(--red));
  translate: 0 calc(var(--p) * -10px);
  scale: calc(1 + var(--p) * 0.04);
  box-shadow: 0 calc(var(--p) * 24px) calc(var(--p) * 40px) -18px rgba(227, 16, 26, calc(var(--p) * 0.55));
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    translate 0.25s var(--ease), scale 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  transition-delay: var(--delay, 0ms), var(--delay, 0ms), 0s, 0s, 0s, 0s, 0s;
}
/* Cards away from the cursor dim only while it is over the row. */
[data-proximity].is-near .member { filter: brightness(calc(0.6 + var(--p) * 0.4)); }
[data-proximity]:not([data-proximity-on]) .member:hover { --p: 1; }
[data-proximity] .member__photo img {
  filter: grayscale(calc(1 - var(--p)));
  transform: scale(calc(1.02 + var(--p) * 0.06));
  transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}
/* Touch screens never hover, so show the portraits in colour from the start. */
@media (hover: none) { [data-proximity] .member__photo img { filter: none; } }

.lang-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .lang-grid { grid-template-columns: repeat(4, 1fr); } }
.lang { border: 1px solid var(--line); border-radius: 16px; }
.lang__inner { padding: 18px; display: grid; gap: 2px; }
.lang__code { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--red-2); line-height: 1.3; }
.lang__name { font-weight: 600; color: var(--text); }
.lang__note { font-size: 0.85rem; color: var(--text-3); }

/* ---------- Order: form ---------- */
.order-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .order-grid { grid-template-columns: 1.5fr 0.85fr; align-items: start; } }

.panel { background: var(--line); padding: 1px; border-radius: 24px; }
.panel__inner { border-radius: 23px; background: var(--panel); padding: clamp(22px, 3.4vw, 40px); }
.panel-wrap { display: block; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; align-items: start; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.field .req { color: var(--red-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 16, 26, 0.3);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--bg); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="date"] { color-scheme: dark; }
.field__hint { font-size: 0.85rem; color: var(--text-3); margin: 0; }
.field__error { font-size: 0.85rem; font-weight: 500; color: var(--red-2); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid .field__error { display: block; }

.dropzone {
  position: relative;
  border: 2px dashed var(--line-2);
  border-radius: 16px;
  background: transparent;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag, .dropzone:focus-within { border-color: var(--red); background: rgba(227,16,26,0.05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone strong { color: var(--text); display: block; margin-bottom: 2px; font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: 0 0 auto; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 6px; }
.form__note { font-size: 0.9rem; color: var(--text-3); }

/* ---------- Order: contact cards ---------- */
.contact-stack { display: grid; gap: 10px; }
.contact {
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  text-decoration: none !important;
  display: block;
}
.contact:hover { border-color: var(--line-2); transform: translateY(-2px); }
.contact__inner { padding: 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; }
.contact__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--red-2); background: var(--red-tint); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.contact__value { color: var(--text); font-weight: 600; word-break: break-word; }
.contact__arrow { color: var(--red-2); font-size: 1.1rem; }

.aside-note { color: var(--text-2); font-size: 0.95rem; }
.aside-note ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aside-note li { display: flex; gap: 8px; }
.aside-note li::before { content: "\2192"; color: var(--red-2); }

/* ---------- FAQ-style details ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  min-height: 56px;
  padding: 16px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-2); font-size: 1.5rem; font-family: var(--font-body); font-weight: 400; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; max-width: 760px; }

/* ==========================================================================
   Real artwork helpers (images sourced from the studio's Fiverr profile)
   ========================================================================== */
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__inner > .cover { position: absolute; inset: 0; }

/* Light tile for dark logos delivered on transparent backgrounds */
.work__inner--light { background: var(--paper); }
.work__inner--light > .cover { object-fit: contain; padding: 12%; }

/* Tile variant for cut-out artwork with transparent backgrounds: show whole shape, no crop */
.work__inner--contain { background: var(--bg-3); }
.work__inner--contain > .cover { object-fit: contain; padding: 6%; }

/* Service card cover image */
.svc__media {
  margin: -24px -24px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__rating {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-3);
}
.svc__rating strong { color: var(--text); font-weight: 600; }
.svc__rating .star { color: var(--red-2); }

/* Badge row (Top Rated / Vetted Pro) */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 6px 14px;
  border-radius: var(--pill);
}
.badge .star { color: var(--red-2); }

/* Logo mark in footer / about */
.logo-img { width: 120px; height: auto; display: block; border-radius: var(--radius-sm); }

/* Language grid can hold six */
@media (min-width: 720px) { .lang-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lang-grid--6 { grid-template-columns: repeat(6, 1fr); } }

/* ==========================================================================
   Per-service order pages (/order/<slug>), generated by the Seller dashboard
   ========================================================================== */
.page-hero--compact { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); }
.page-hero--compact h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 14px; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text-3); }
.svc-page__rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 0.95rem; color: var(--text-2); margin-bottom: 12px;
}
.svc-page__rating strong { color: var(--text); }
.svc-page__rating .star { color: var(--red-2); }

.svc-page__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .svc-page__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; } }
.svc-page__main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.svc-page__cover {
  margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--panel);
  border-radius: var(--radius);
}
.svc-page__cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: -22px; }
.svc-gallery a {
  display: block; aspect-ratio: 1; overflow: hidden;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.svc-gallery a:hover { border-color: var(--red); transform: translateY(-2px); }
.svc-gallery img { width: 100%; height: 100%; object-fit: cover; }
.svc-page__cover img.is-zoomable, .svc-gallery a { cursor: zoom-in; }

/* Showcase lightbox (js/main.js; used by service pages and the portfolio) */
html.has-lightbox { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 9, 7, 0.88); }
.lightbox[open] { display: block; animation: lightbox-in 0.25s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  margin: 0;
  width: 100%; height: 100%;
  box-sizing: border-box;
  padding: 72px 16px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
@media (min-width: 768px) { .lightbox__figure { padding: 56px 96px 32px; } }
.lightbox__img {
  max-width: 100%;
  min-height: 0;
  flex: 0 1 auto;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__cap { font-size: 0.92rem; color: var(--text-2); text-align: center; }
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(19, 17, 14, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 767px) {
  .lightbox__nav { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__figure { padding-bottom: 88px; }
}

/* Zoom: wheel/pinch/double-tap on the image, drag to pan (js/main.js) */
.lightbox__figure { touch-action: none; }
.lightbox__img {
  position: relative; z-index: 1;
  cursor: zoom-in;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  transform-origin: center;
  will-change: transform;
}
.lightbox__img.is-animating { transition: transform 0.25s var(--ease); }
.lightbox.is-zoomed .lightbox__img { cursor: grab; }
.lightbox.is-zoomed.is-dragging .lightbox__img { cursor: grabbing; }
.lightbox__btn, .lightbox__zoom { z-index: 2; }
.lightbox__zoom {
  position: absolute; top: 16px; left: 16px;
  height: 48px; padding: 0 4px;
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  background: rgba(19, 17, 14, 0.85);
}
.lightbox__zbtn, .lightbox__zlevel {
  height: 38px; border: 0; border-radius: var(--pill);
  background: transparent; color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox__zbtn { width: 38px; }
.lightbox__zbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lightbox__zlevel { min-width: 58px; padding: 0 8px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.lightbox__zbtn:hover:not(:disabled), .lightbox__zlevel:hover { background: var(--red); color: #fff; }
.lightbox__zbtn:disabled { opacity: 0.35; cursor: default; }
.lightbox__zbtn:focus-visible, .lightbox__zlevel:focus-visible { outline: 2px solid var(--red-2); outline-offset: 1px; }
.lightbox.is-zoomed .lightbox__cap { visibility: hidden; }

/* Portfolio pieces open in the lightbox */
.work-grid--full .work { cursor: zoom-in; }
.work-grid--full .work:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

.svc-page__h { font-size: 1.8rem; margin-bottom: 14px; }
.svc-page__block .prose { max-width: none; }
.svc-page__block .faq summary { font-size: 1.1rem; }

/* Package panel (sticky on desktop) */
.svc-page__aside { position: relative; }
@media (min-width: 1000px) { .svc-page__aside { position: sticky; top: 96px; } }
.pkg-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.pkg-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  margin: 16px 16px 0; padding: 6px;
  background: var(--bg); border-radius: var(--pill);
}
.pkg-tab {
  min-height: 44px; padding: 8px; background: transparent; border: 0; cursor: pointer;
  border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: var(--text-2); transition: color 0.2s, background 0.2s;
}
.pkg-tab:hover { color: var(--text); }
.pkg-tab[aria-selected="true"] { color: var(--paper-ink); background: var(--paper); }
.pkg-body { padding: 22px 24px 18px; display: grid; gap: 14px; }
.pkg-body[hidden] { display: none; }
.pkg-body__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pkg-body__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.pkg-body__price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--text); }
/* "/ emote" after the price on per-item services */
.pkg-body__price small, .pkg-choice__price small, .compare td.price-cell small {
  margin-left: 3px; font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--text-3);
}
.compare td.price-cell small { font-size: 0.75rem; }
.pkg-body__desc { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.pkg-meta {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.93rem; color: var(--text-2);
}
.pkg-meta li { display: inline-flex; align-items: center; gap: 6px; }
.pkg-meta svg { width: 16px; height: 16px; color: var(--red-2); }
.pkg-features { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.95rem; color: var(--text); }
.pkg-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.pkg-features svg { width: 16px; height: 16px; color: var(--red-2); margin-top: 4px; }
.pkg-panel__note {
  margin: 0; padding: 12px 24px 18px; text-align: center;
  font-size: 0.88rem; color: var(--text-3);
}

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.compare { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-family: var(--font-display); font-weight: 700; color: var(--text);
  background: var(--bg-3); font-size: 1rem;
}
.compare thead th small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-3); font-size: 0.8rem; margin-top: 2px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text-2); }
.compare td { color: var(--text-2); }
.compare td.price-cell { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.compare td.yes svg { width: 18px; height: 18px; color: var(--red-2); display: inline-block; vertical-align: middle; }
.compare td.no { color: var(--text-3); }
/* Phones: fit the four columns instead of scrolling (a scrolling table widened the mobile layout viewport) */
@media (max-width: 520px) {
  .compare { min-width: 0; font-size: 0.85rem; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare tbody th { padding-left: 12px; }
  .compare td.price-cell { font-size: 1rem; }
}

/* Package tabs: "Most popular" badge and the delivery date under each package */
.pkg-tab { position: relative; }
.pkg-tabs:has(.pkg-tab__pop) { margin-top: 24px; }
.pkg-tab__pop {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 1px 8px; border-radius: var(--pill);
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.pkg-eta { margin: 0; font-size: 0.9rem; color: var(--text-3); }
.pkg-eta strong { color: var(--text); font-weight: 600; }
.pkg-eta[hidden] { display: none; }

/* ==========================================================================
   Checkout page (/order/<slug>/checkout), generated by the Seller dashboard
   ========================================================================== */
.co-hero { padding-block: clamp(24px, 4vw, 44px) clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.co-hero[hidden] { display: none; }
.co-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.co-hero p { margin: 0; color: var(--text-2); }
.co-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.9rem; color: var(--text-2); }
.co-back:hover { color: var(--text); }

.co-grid { display: grid; gap: 24px; align-items: start; }
.co-grid[hidden] { display: none; }
@media (min-width: 1000px) { .co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; } }
.co-main { display: grid; gap: 16px; min-width: 0; }

.co-step {
  margin: 0; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 16px;
}
.co-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-step__head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 0; }
.co-step__num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 50%; background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
}
.co-step__aside { font-size: 0.85rem; color: var(--text-3); }
.co-step .pkg-choices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 559px) { .co-step .pkg-choices { grid-template-columns: 1fr; } }
.co-step textarea.is-short { min-height: 96px; }

/* Account line / sign-in gate / confirm-email panel, placed above the form by js/main.js */
.co-account-slot { display: grid; gap: 12px; }
.co-account-slot:empty { display: none; }
.co-account-slot .form__account {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
}
.co-account-slot .form__account[hidden] { display: none; }
.form__draft {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3);
}
.form__draft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9fd49a; }

/* Package and extras cards */
.pkg-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pkg-choice {
  position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 46px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.pkg-choice input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.pkg-choice:hover { border-color: var(--text-3); }
.pkg-choice:has(input:checked) { border-color: var(--red); background: rgba(227, 16, 26, 0.08); }
.pkg-choice:has(input:focus-visible) { outline: 2px solid var(--red-2); outline-offset: 2px; }
.pkg-choice__name { font-weight: 600; color: var(--text); }
.pkg-choice__price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text); }
.pkg-choice__meta { font-size: 0.82rem; color: var(--text-3); }
.pkg-choice:has(.pkg-choice__pop) .pkg-choice__name { padding-right: 70px; }
.pkg-choice__pop { position: absolute; top: 12px; right: 12px; }

/* Quantity stepper (per-item services) */
.qty-field { display: grid; gap: 8px; padding-top: 4px; }
.qty-field > label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.qty { display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--bg); }
.qty__btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--text); font-size: 1.3rem; line-height: 1;
}
.qty__btn:hover { background: var(--bg-3); }
.qty input {
  width: 64px; height: 44px; border: 0; background: none; text-align: center;
  font: 700 1.15rem var(--font-display); color: var(--text); -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline: 2px solid var(--red-2); outline-offset: -2px; border-radius: 8px; }
.field legend { padding: 0; margin-bottom: 8px; }

.extra-list { display: grid; gap: 8px; }
.extra-opt {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; cursor: pointer;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.extra-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.extra-opt:has(input:checked) { border-color: var(--red); background: rgba(227, 16, 26, 0.06); }
.extra-opt__body strong { display: block; color: var(--text); font-weight: 600; font-size: 0.97rem; }
.extra-opt__body small { display: block; color: var(--text-3); font-size: 0.85rem; margin-top: 2px; }
.extra-opt__price { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.extra-opt__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--text-3); }
.extra-opt__price small.is-faster { color: #9fd49a; }

/* Reference files */
.dropzone[hidden] { display: none; }
.dropzone__types { display: block; margin-top: 4px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files[hidden] { display: none; }
.file {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg);
}
.file.is-bad { border-color: var(--red); }
.file__thumb {
  position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  background: var(--bg-3); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--text-3);
}
.file__thumb img, .file__thumb video { width: 100%; height: 100%; object-fit: cover; }
.file__play {
  position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.7); color: #fff;
}
.file__play svg { width: 10px; height: 10px; }
.file__text { min-width: 0; }
.file__name { display: block; color: var(--text); font-size: 0.92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__meta { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.file.is-bad .file__meta { color: var(--red-2); }
.file__remove {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer;
  color: var(--text-2); display: grid; place-items: center;
}
.file__remove:hover { color: var(--text); border-color: var(--text); }
.file__remove svg { width: 16px; height: 16px; }
.meter { display: grid; gap: 6px; }
.meter[hidden] { display: none; }
.meter__bar { height: 6px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; background: var(--text-2); border-radius: 6px; transition: width 0.3s var(--ease); }
.meter.is-full .meter__bar span { background: var(--red); }
.meter__text { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }

/* Summary card */
.co-summary { position: relative; }
@media (min-width: 1000px) { .co-summary { position: sticky; top: 96px; } }
.sum {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.sum__head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sum__head img { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 14px; }
.sum__head h2 { font-size: 1.15rem; margin: 0 0 4px; line-height: 1.2; }
.sum__head p { margin: 0; font-size: 0.85rem; color: var(--text-3); }
.sum__head .star { color: var(--red-2); }
.sum__body { padding: 18px 20px 20px; display: grid; gap: 16px; }
.sum dl { margin: 0; display: grid; gap: 8px; }
.sum dl > div { display: flex; justify-content: space-between; gap: 16px; }
.sum dt { font-size: 0.9rem; color: var(--text-3); }
.sum dd { margin: 0; text-align: right; color: var(--text); font-size: 0.93rem; }
.sum__lines dd span { display: block; }
.sum__lines dd small { color: var(--text-3); font-size: 0.8rem; }
.sum__eta { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); }
.sum__eta span { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); }
.sum__eta strong { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.sum__eta small { color: var(--paper-2); font-size: 0.8rem; }
.sum .sum__total { align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.sum__total dt { font-size: 1rem; color: var(--text-2); }
.sum__total dd { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.sum__pay { margin: 0; font-size: 0.85rem; color: var(--text-3); }
.sum .check { font-size: 0.86rem; }
.sum .form__actions { display: grid; gap: 10px; margin: 0; }
.sum .form__actions[hidden] { display: none; }
.sum .form__note { text-align: center; font-size: 0.85rem; }
.co-signin-note { display: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); color: var(--text-2); font-size: 0.9rem; }
form[data-account="out"] .co-signin-note,
form[data-account="verify"] .co-signin-note { display: block; }

.co-mobilebar .btn { min-height: 44px; }
.co-mobilebar__total { display: grid; line-height: 1.2; }
.co-mobilebar__total small { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--text-3); }

/* Sent */
.done { max-width: 760px; margin-inline: auto; display: grid; gap: 22px; }
.done[hidden], .done [hidden] { display: none; }
.done__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.done__check svg { width: 30px; height: 30px; stroke-width: 3; }
.done h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0; outline: none; }
.done .eyebrow { margin-bottom: 8px; }
.done__lead { margin: 0; color: var(--text-2); font-size: 1.08rem; }
.done__no { font-family: var(--font-mono); color: var(--text); }
.next-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.next-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-2); }
.next-steps li:last-child::before { display: none; }
.next-steps__dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3);
}
.next-steps .is-now .next-steps__dot { border-color: var(--red); color: var(--red-2); }
.next-steps b { display: block; color: var(--text); }
.next-steps small { color: var(--text-3); font-size: 0.9rem; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.done__actions p { margin: 0; }

/* Mobile bottom bar */
.pkg-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(19, 17, 14, 0.95); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display); font-weight: 700; color: var(--text);
  transition: transform 0.3s var(--ease);
}
.pkg-mobilebar[hidden] { display: none; }
.pkg-mobilebar.is-hidden { transform: translateY(110%); }
@media (min-width: 1000px) { .pkg-mobilebar { display: none; } }
@media (max-width: 999px) { .svc-order-page .site-footer { padding-bottom: 96px; } }

/* ---------- Form control fixes (radios/checkboxes inside .field, fieldset reset) ---------- */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type="checkbox"],
.field input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  flex: 0 0 auto;
  accent-color: var(--red);
}
.field input[type="checkbox"]:focus,
.field input[type="radio"]:focus { box-shadow: none; }
.field input[type="checkbox"]:focus-visible,
.field input[type="radio"]:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }

/* Labels that wrap a control keep body text styling, not the field-label style */
.field label.check,
.field label.pkg-choice,
.field label.extra-opt {
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--text-2);
}

/* ---------- Order form error (shown when sending fails) ---------- */
.form-error {
  display: grid; gap: 10px; justify-items: start;
  padding: 14px 16px;
  border: 1px solid var(--red);
  border-radius: 16px;
  background: rgba(227, 16, 26, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}
.form-error[hidden] { display: none; }
.form-error p { margin: 0; }

/* ==========================================================================
   Client account (/account/*, header button, sign-in gate on order forms)
   ========================================================================== */

/* ---------- Header: Account / Sign in ---------- */
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.acct-btn:hover { border-color: var(--text); }
.acct-btn--out { padding-inline: 16px; }
.avatar {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
/* Phones: avatar only, Sign in moves into the mobile menu; the narrowest phones use the menu link only */
@media (max-width: 520px) {
  .acct-btn { padding: 0; border: 0; min-width: 44px; justify-content: center; }
  .acct-btn__label, .acct-btn--out { display: none; }
}
@media (max-width: 470px) {
  .site-header .acct-btn { display: none; }
}

/* ---------- Sign-in gate inside order forms ---------- */
.account-gate {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--paper-ink);
}
.account-gate[hidden] { display: none; }
.account-gate .eyebrow { color: var(--red-deep); margin: 0; }
.account-gate h1,
.account-gate h3 { margin: 0; color: var(--paper-ink); font-size: 1.4rem; }
.account-gate strong { color: var(--paper-ink); overflow-wrap: anywhere; }
.account-gate__note a { color: inherit; }
.account-gate p { margin: 0; color: var(--paper-2); }
.account-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-gate .btn--ghost { color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-ink); }
.account-gate .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--paper-ink); }
.account-gate__note { font-family: var(--font-mono); font-size: 0.78rem; }
.form__account { margin: 0; font-size: 0.92rem; color: var(--text-3); }
.form__account[hidden] { display: none; }
.form__account strong { color: var(--text); }
.form__account a { color: var(--red-2); }

/* ---------- Account pages ---------- */
.account-main { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 112px); }
.account-main[aria-busy="true"] .account-view { visibility: hidden; }

.auth-card { max-width: 520px; margin-inline: auto; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 8px; }
.auth-card .panel__inner > p { color: var(--text-2); margin: 0 0 24px; }
.auth-card__alt { margin: 20px 0 0; color: var(--text-3); font-size: 0.94rem; }
.auth-card__alt a, .check a { color: var(--red-2); }

.notice {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.94rem;
}
.notice[hidden] { display: none; }
.notice--error { border-color: var(--red); background: var(--red-tint); color: var(--text); }
.notice--ok { border-color: #3d6b3a; background: #1d2a1c; color: var(--text); }

.acct { display: grid; gap: 24px; }
@media (min-width: 900px) { .acct { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.acct > * { min-width: 0; }
.acct__nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .acct__nav { flex-direction: column; position: sticky; top: 96px; } }
.acct__nav a, .acct__nav button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}
.acct__nav a:hover, .acct__nav button:hover { color: var(--text); background: var(--bg-3); }
.acct__nav a[aria-current="page"] { background: var(--paper); color: var(--paper-ink); }
.acct__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.acct__head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.acct__head .eyebrow { margin: 0 0 6px; }

.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.order-row:hover { border-color: var(--line-2); transform: translateY(-2px); }
.order-row__img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-3); }
.order-row__no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--red-2); }
.order-row__title { font-weight: 700; margin: 2px 0 4px; overflow-wrap: anywhere; }
.order-row__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--text-3); font-size: 0.88rem; }
.order-row__go { color: var(--text-3); font-size: 1.2rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--bg-3);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--active { background: var(--red-tint); color: #ff8a90; }
.status--done { background: #1d2a1c; color: #9fd49a; }

.empty { padding: clamp(28px, 5vw, 48px); border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--text-2); }
.empty h2 { font-size: 1.5rem; margin: 0 0 8px; color: var(--text); }
.empty p { margin: 0 auto 20px; max-width: 460px; }

.acct-card { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.acct-card p { margin: 0; color: var(--text-2); }
.acct-card strong { color: var(--text); }

/* ---------- Order detail ---------- */
.od { display: grid; gap: 20px; }
@media (min-width: 1000px) { .od { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.od > * { min-width: 0; }
.od__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 18px; }
.od__title small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--red-2); letter-spacing: 0.02em; }
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.stepper li { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); }
.stepper .is-done::before { background: var(--text-2); }
.stepper .is-now { color: var(--red-2); }
.stepper .is-now::before { background: var(--red); }
@media (max-width: 520px) { .stepper li span { display: none; } .stepper .is-now span { display: inline; white-space: nowrap; } }
.od__status { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 20px; color: var(--text-2); }
.od__status strong { color: var(--text); }
.od-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(18px, 3vw, 26px); }
.od-block + .od-block { margin-top: 16px; }
.od-block h2 { font-size: 1.25rem; margin: 0 0 14px; }
.od-block > p { margin: 0; color: var(--text-2); }

/* Extra charges waiting for the client's answer */
.od-approve {
  margin-bottom: 20px; padding: clamp(18px, 3vw, 24px); border-radius: var(--radius);
  background: var(--paper); color: var(--paper-ink);
}
.od-approve[hidden] { display: none; }
.od-approve h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--paper-ink); }
.od-approve > p { margin: 0 0 14px; color: var(--paper-2); }
.od-approve__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.od-approve__item {
  display: grid; gap: 12px; align-items: center; padding: 14px 16px;
  border-radius: 14px; background: #fff8ee; border: 1px solid #d8cdbb;
}
@media (min-width: 640px) { .od-approve__item { grid-template-columns: minmax(0, 1fr) auto; } }
.od-approve__item strong { display: block; color: var(--paper-ink); }
.od-approve__item p { margin: 4px 0 0; font-size: 0.9rem; color: var(--paper-2); }
.od-approve__meta { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--red-deep); margin-top: 2px; }
.od-approve__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.od-approve__actions .btn--ghost { color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-ink); }
.od-approve__item .notice { grid-column: 1 / -1; margin: 0; }
.od-approve > .od-approve__actions { margin-top: 4px; }
.od-approve .notice { margin: 12px 0 0; }
.od-approve .notice[hidden], .od-revise[hidden] { display: none; }
.od-approve .btn[hidden] { display: none; }
.od-revise { display: grid; gap: 8px; margin-top: 4px; }
.od-revise label { font-weight: 600; color: var(--paper-ink); }
.od-revise textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; resize: vertical;
  font: inherit; color: var(--paper-ink); background: #fff8ee; border: 1px solid #d8cdbb; border-radius: 12px;
}
.od-revise textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.od-revise__quota { margin: 0; font-size: 0.88rem; color: var(--paper-2); }

/* Review stars: radios in 5→1 order, laid out reversed, so "~" lights up every star up to the hovered/checked one. */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0 0 6px; padding: 0; border: 0; }
.star-input legend { width: 100%; margin-bottom: 4px; font-weight: 600; color: var(--paper-ink); }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; font-size: 2rem; line-height: 1; color: #cfc3ae; transition: color 0.12s, transform 0.12s; }
.star-input label::before { content: "★"; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5b301; }
.star-input:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: #cfc3ae; }
.star-input input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.od-review blockquote { margin: 6px 0 0; color: var(--paper-ink); white-space: pre-wrap; }
.od-review .review-stars { margin: 0; font-size: 1.3rem; }
.od-review[hidden] { display: none; }
.od-block dl { margin: 0; display: grid; gap: 14px; }
.od-block dt { font-size: 0.85rem; font-weight: 600; color: var(--text-3); }
.od-block dd { margin: 4px 0 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.od-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text-2); font-size: 0.94rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 0.94rem; }
.timeline time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }

.summary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; display: grid; gap: 14px; }
@media (min-width: 1000px) { .summary { position: sticky; top: 96px; } }
.summary__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--bg-3); }
.summary dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 0.92rem; }
.summary dt { color: var(--text-3); }
.summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary__total span { color: var(--text-3); font-size: 0.92rem; }
.summary__total b { font-family: var(--font-display); font-size: 1.6rem; }
.summary__pay { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__pay[hidden] { display: none; }
.summary__pay .btn { width: 100%; justify-content: center; }
.summary__pay p { margin: 0; font-size: 0.85rem; color: var(--text-3); }

/* ---------- Chat (order thread and Messages page) ---------- */
.dot {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.dot[hidden] { display: none; }
.acct__nav .dot { margin-left: 8px; }
.acct-btn .dot { margin-left: -2px; }
@media (max-width: 520px) { .acct-btn .dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 0.65rem; padding: 0 4px; } .acct-btn { position: relative; } }

.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; }
.chat__head small { color: var(--text-3); font-size: 0.85rem; }
.chat__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: min(60vh, 520px);
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__empty { margin: auto; max-width: 340px; text-align: center; color: var(--text-3); font-size: 0.94rem; }
.msg {
  max-width: min(80%, 520px);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg-3);
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg a { color: inherit; text-decoration: underline; }
.msg time { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); white-space: normal; }
.msg--me { align-self: flex-end; background: var(--paper); color: var(--paper-ink); border-bottom-right-radius: 4px; }
.msg--me time { color: var(--paper-2); }
.msg--them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--sys { align-self: center; max-width: 100%; padding: 2px 0; background: none; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); text-align: center; }
.msg--pending { opacity: 0.6; }
.msg__files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; white-space: normal; }
.msg__img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.msg__img img { display: block; width: auto; max-width: 220px; height: 150px; object-fit: cover; }
.msg__file { display: inline-block; padding: 6px 10px; border: 1px solid currentColor; border-radius: 10px; font-size: 0.85rem; text-decoration: none !important; opacity: 0.85; }
.msg__order { display: inline-flex; vertical-align: -1px; margin-left: 2px; color: inherit; text-decoration: none !important; opacity: 0.9; }
.msg__order:hover { opacity: 1; }
.msg__order:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; border-radius: 3px; }
.chat__day { align-self: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--pill); font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.chat__seen { align-self: flex-end; margin-top: -6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer__row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 200px;
  resize: vertical;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.composer textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 16, 26, 0.3); }
.composer__attach {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
}
.composer__attach:hover { color: var(--text); border-color: var(--text); }
.composer__attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.composer__attach:focus-within { outline: 2px solid var(--red-2); outline-offset: 2px; }
.composer__files { margin: 0; font-size: 0.85rem; color: var(--text-2); }
.composer__files[hidden], .composer .notice[hidden] { display: none; }
.composer__files button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--red-2); font: inherit; cursor: pointer; text-decoration: underline; }
.composer__hint { margin: 0; font-size: 0.8rem; color: var(--text-3); }
/* ---------- Floating chat (js/main.js setupChatDock) ---------- */
.chatdock { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 110; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.chatdock > * { pointer-events: auto; }
.chatdock__fab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: var(--pill);
  background: var(--red); color: #fff; font: 700 0.95rem var(--font-display); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chatdock__fab:hover { background: var(--red-hover); transform: translateY(-1px); }
.chatdock__fab:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.chatdock__fab .dot { position: absolute; top: -4px; right: -4px; background: var(--paper); color: var(--paper-ink); }
.chatdock.is-open .chatdock__label { display: none; }
.chatdock.is-open .chatdock__fab { padding: 12px; }
.chatdock__panel {
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 120px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.chatdock__panel[hidden] { display: none; }
.chatdock--chat .chatdock__panel { height: min(600px, calc(100vh - 120px)); }
.chatdock__head { flex: none; padding: 12px 12px 12px 16px; }
.chatdock__head > div { flex: 1; min-width: 0; }
.chatdock__icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.chatdock__icon:hover { background: var(--bg-3); color: var(--text); }
.chatdock__body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.chatdock__body > .account-gate { margin: 12px; }
.chatdock__intro { display: grid; gap: 12px; padding: 20px; color: var(--text-2); }
.chatdock__intro p { margin: 0; }
.chatdock__intro strong { color: var(--text); }
.chatdock__chat { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.chatdock .chat__log { height: auto; padding: 14px; }
.chatdock .msg { max-width: 85%; }
.chatdock .composer__hint { display: none; }
@media (max-width: 999px) { .svc-order-page .chatdock { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 520px) {
  .chatdock { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .chatdock__fab { padding: 14px; }
  .chatdock__label { display: none; }
  .chatdock__panel { width: calc(100vw - 24px); }
  /* The thread itself takes the whole screen; sign-in and confirm cards stay above the button. */
  .chatdock--chat.is-open { inset: 0; padding: 8px; }
  .chatdock--chat.is-open .chatdock__fab { display: none; }
  .chatdock--chat .chatdock__panel { width: 100%; height: 100%; max-height: none; }
}
@media print { .chatdock { display: none; } }

@media (max-width: 520px) { .composer .btn { padding-inline: 16px; } .chat__log { height: 55vh; padding: 14px; } .msg { max-width: 88%; } }



/* ---------- Settings ---------- */
.settings { display: grid; gap: 16px; max-width: 640px; }
.settings h2 { font-size: 1.3rem; margin: 0 0 16px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.2em; }
