/* ============================================================
   WEBSTACK — personal portfolio
   Concept: a Persian code editor / terminal hybrid
   Fonts: Yekan Bakh + Pinar (local) & JetBrains Mono (SIL OFL)
   ============================================================ */

@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-semibold.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/yekanbakh-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pinar';
  src: url('fonts/pinar-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-fa: 'YekanBakh', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Pinar', 'YekanBakh', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, 'YekanBakh', monospace;

  --bg: #070908;
  --bg-soft: #0b0e0c;
  --panel: #0f1310;
  --panel-2: #141a15;
  --panel-3: #1b231c;

  --text: #e6ede3;
  --text-strong: #f7fbf4;
  --muted: #8b9a8e;
  --muted-2: #6a776c;

  --accent: #c8f25a;
  --accent-2: #5eead4;
  --warm: #f5b971;
  --on-accent: #0b0f08;

  --accent-dim: rgba(200, 242, 90, .08);
  --accent-line: rgba(200, 242, 90, .22);
  --line: rgba(230, 237, 227, .08);
  --line-strong: rgba(230, 237, 227, .16);
  --glass: rgba(8, 11, 9, .78);

  /* the wordmark is silver: it only reads on a dark ground, so the light
     theme swaps in the ink pass built by scripts/build-logo.mjs */
  --logo-wordmark: url("logo/wordmark-dark.png");
  --logo-glow: rgba(200, 242, 90, .35);

  /* validation + pipeline negatives (same rose as .t-err in the terminal) */
  --bad: #fb7185;
  --bad-dim: rgba(251, 113, 133, .08);
  --bad-line: rgba(251, 113, 133, .28);

  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .68, .2, 1);
  --titlebar-h: 52px;
  --statusbar-h: 30px;
  --sidebar-w: 252px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ea;
  --bg-soft: #eeece3;
  --panel: #fbfaf5;
  --panel-2: #f6f4ec;
  --panel-3: #e8e5d9;

  --text: #242922;
  --text-strong: #10140f;
  --muted: #5c655c;
  --muted-2: #7b8379;

  --accent: #3f6f12;
  --accent-2: #0f766e;
  --warm: #b45309;
  --on-accent: #f8fdf2;

  --accent-dim: rgba(63, 111, 18, .08);
  --accent-line: rgba(63, 111, 18, .24);
  --line: rgba(22, 28, 20, .1);
  --line-strong: rgba(22, 28, 20, .18);
  --glass: rgba(244, 242, 234, .84);

  --logo-wordmark: url("logo/wordmark-light.png");
  --logo-glow: rgba(63, 111, 18, .3);

  --bad: #be123c;
  --bad-dim: rgba(190, 18, 60, .07);
  --bad-line: rgba(190, 18, 60, .28);

  --shadow: 0 30px 70px -40px rgba(45, 50, 35, .35);
}

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

* { margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] body::before { opacity: .022; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--panel-3);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg:not(.sprite) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 500;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============ TITLEBAR ============ */

.titlebar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 150;
  height: var(--titlebar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-block-end: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* The wordmark spells its own name, so the brand is a single image and the
   link's aria-label stays its accessible name. Background rather than <img>:
   only the theme that is actually showing gets fetched. */
.brand-logo {
  height: 22px;
  aspect-ratio: 1050 / 192;
  background: var(--logo-wordmark) no-repeat center / contain;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 0 9px var(--logo-glow));
}
.brand-logo.small { height: 19px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  direction: ltr;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.breadcrumb .crumb-sep { opacity: .45; }
.breadcrumb .crumb-current {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.branch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.branch svg { width: 10px; height: 10px; }

.title-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.kbd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  transition: border-color .2s, color .2s, background .2s;
}
.kbd-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.kbd-btn svg { width: 14px; height: 14px; }

kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-block-end-width: 2px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--panel-2); }
.icon-btn svg { width: 16px; height: 16px; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.menu-btn { display: none; }

/* ============ SIDEBAR ============ */

.sidebar {
  position: fixed;
  inset-block-start: var(--titlebar-h);
  inset-block-end: var(--statusbar-h);
  inset-inline-start: 0;
  z-index: 140;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 14px;
  background: var(--bg-soft);
  border-inline-end: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
}
.side-head .side-dots { letter-spacing: .1em; opacity: .7; }

.tree { display: flex; flex-direction: column; gap: 2px; direction: ltr; }
.tree-folder {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
}
.tree-folder svg { width: 11px; height: 11px; opacity: .65; }

.tree-list { display: flex; flex-direction: column; gap: 1px; }

.tree-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: left;
  transition: background .18s, color .18s, border-color .18s;
}
.tree-link .ic { width: 14px; height: 14px; flex: 0 0 auto; opacity: .7; }
.tree-link:hover { background: var(--panel); color: var(--text); }
.tree-link.active {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.tree-link.active .ic { opacity: 1; }
.tree-note {
  margin-inline-start: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
  color: var(--muted-2);
  font-size: 10px;
  opacity: .75;
  padding-inline-start: 8px;
}
.tree-link:hover .tree-note, .tree-link.active .tree-note { opacity: 1; }
.tree-count {
  margin-inline-start: auto;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}
.tree-list:has(.tree-count) .tree-count { margin-inline-start: 0; }

.side-card {
  position: relative;
  margin-block-start: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.side-card::before {
  content: "";
  position: absolute;
  inset-block-start: -50px;
  inset-inline-end: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}
.pulse {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.side-card p { color: var(--muted); font-size: 11.25px; line-height: 1.85; }

.side-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 700;
  transition: transform .2s var(--ease), filter .2s;
}
.side-cta:hover { transform: translateY(-1px); filter: brightness(1.04); }
.side-cta svg { width: 13px; height: 13px; }

.side-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  direction: ltr;
  transition: color .2s;
}
.side-phone svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--accent); }
.side-phone:hover { color: var(--text); }

.socials {
  display: flex;
  gap: 6px;
  padding-block-start: 9px;
  border-block-start: 1px solid var(--line);
}
.socials a {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.socials svg { width: 13px; height: 13px; }

.side-foot {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-align: center;
  direction: ltr;
  opacity: .75;
}

.nav-scrim {
  position: fixed;
  inset-block-start: var(--titlebar-h);
  inset-block-end: var(--statusbar-h);
  inset-inline: 0;
  z-index: 130;
  background: rgba(3, 5, 3, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nav-scrim.show { opacity: 1; pointer-events: auto; }

/* ============ LAYOUT ============ */

.main {
  margin-inline-start: var(--sidebar-w);
  padding-block-start: var(--titlebar-h);
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.4vw, 46px);
}

.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 94px);
  border-block-end: 1px solid var(--line);
  scroll-margin-top: calc(var(--titlebar-h) + 8px);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: clamp(26px, 3.4vw, 40px);
}
.sec-head > div { max-width: 650px; }

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}
.sec-index {
  padding: 1px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 9px;
}
.sec-slash { color: var(--accent); opacity: .55; }

.sec-head h2 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.sec-head h2 .accent { color: var(--accent); }
.sec-head p {
  max-width: 58ch;
  margin-block-start: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2.05;
}

.sec-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  transition: color .2s, border-color .2s, background .2s;
}
.sec-link svg { width: 12px; height: 12px; }
.sec-link:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 34px -20px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 18px 36px -18px var(--accent); }
.btn-ghost {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--panel-2); color: var(--accent); }
.btn-block { width: 100%; }

/* ============ HERO ============ */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5.4vw, 72px) 0;
  border-block-end: 1px solid var(--line);
  scroll-margin-top: var(--titlebar-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at var(--mx, 22%) var(--my, 8%), var(--accent-dim), transparent 68%),
    radial-gradient(520px 380px at 92% 8%, rgba(94, 234, 212, .05), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 10%, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(26px, 3.6vw, 52px);
  align-items: center;
}

.hero h1 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.9vw, 5.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
}
.hero h1 .accent { color: var(--accent); }
/* the service line sits inside the h1 so the page headline carries both the
   brand and what it does, at a size the giant wordmark does not swallow */
.hero h1 .h1-sub {
  display: block;
  margin-block-start: 12px;
  color: var(--text);
  font-family: var(--font-fa);
  font-size: clamp(1rem, 1.75vw, 1.3rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 34ch;
  margin-block-start: 16px;
  color: var(--text);
  font-size: clamp(1.02rem, 1.65vw, 1.28rem);
  font-weight: 600;
  line-height: 1.9;
}
.hero-tagline .hl {
  color: var(--accent);
  border-block-end: 1px dashed var(--accent-line);
  padding-block-end: 1px;
}

.hero-desc {
  max-width: 47ch;
  margin-block-start: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.05;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block-start: 25px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  margin-block-start: 30px;
}
.hero-stats > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-inline-start: 12px;
}
.hero-stats > div::before {
  content: "";
  position: absolute;
  inset-block: 3px;
  inset-inline-start: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent), transparent);
  opacity: .65;
}
.hero-stats dt {
  color: var(--text-strong);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.hero-stats dt sup { color: var(--accent); font-size: 11px; font-weight: 600; }
.hero-stats dd { color: var(--muted-2); font-size: 10.5px; }

.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -6% -10% -12% 2%;
  z-index: 0;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 76%);
  filter: blur(22px);
  pointer-events: none;
}

/* ---- terminal ---- */

.term {
  position: relative;
  z-index: 1;
  direction: ltr;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #090c0a;
  box-shadow: 0 44px 90px -48px #000, inset 0 1px 0 rgba(255, 255, 255, .035);
  overflow: hidden;
  font-family: var(--font-mono);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 37px;
  padding-inline: 12px;
  border-block-end: 1px solid rgba(255, 255, 255, .07);
  background: #0c100d;
}
.term-dots { display: flex; gap: 5px; flex: 0 0 auto; }
.term-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2a332c; }
.term-dots i:nth-child(1) { background: rgba(248, 113, 113, .8); }
.term-dots i:nth-child(2) { background: rgba(251, 191, 36, .75); }
.term-dots i:nth-child(3) { background: rgba(74, 222, 128, .7); }
.term-title {
  color: #7d8b80;
  font-size: 10px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-state {
  margin-inline-start: auto;
  padding: 1px 6px;
  border: 1px solid rgba(154, 230, 180, .22);
  border-radius: 4px;
  color: #86efac;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.term-body {
  height: clamp(236px, 23vw, 270px);
  padding: 13px 14px 10px;
  overflow-y: auto;
  color: #c3cfc4;
  font-size: 11.5px;
  line-height: 2;
  scrollbar-width: thin;
  scrollbar-color: #2a332c transparent;
}
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: #2a332c; border: 0; }

.t-line {
  direction: rtl;
  text-align: right;
  padding-block: 1px;
  animation: lineIn .3s var(--ease) both;
}
.t-echo { direction: ltr; text-align: left; margin-block-start: 3px; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.t-prompt { color: #c8f25a; font-weight: 600; margin-inline-end: 4px; }
.t-cmd { color: #eef4ea; }
.t-out { color: #9dab9f; }
.t-out strong { color: #f1f7ed; font-weight: 500; }
.t-muted { color: #6d7b70; }
.t-err { color: #fb7185; }
.t-link { color: #c8f25a; text-decoration: underline; text-underline-offset: 2px; }
.t-help {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1px 14px;
  margin-block: 4px 2px;
}
.t-help span:nth-child(odd) { color: #c8f25a; }
.t-help span:nth-child(even) { color: #8b9a8e; }

.term-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-block-start: 1px solid rgba(255, 255, 255, .06);
  background: #0b0f0c;
  direction: ltr;
}
.term-prompt { color: #c8f25a; font-size: 12px; user-select: none; }
.term-input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: none;
  color: #eaf0e6;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: left;
  caret-color: #c8f25a;
}
.term-input::placeholder {
  color: #55615a;
  font-family: var(--font-fa);
  font-size: 10.5px;
}
.term-send {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  color: #8b9a8e;
  transition: color .2s, border-color .2s;
}
.term-send:hover { color: #c8f25a; border-color: rgba(200, 242, 90, .35); }
.term-send svg { width: 12px; height: 12px; }

.term-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-block-start: 9px;
  color: var(--muted-2);
  font-size: 10.5px;
}
.term-hint button {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  border-block-end: 1px dashed var(--accent-line);
  line-height: 1.4;
}
.term-hint button:hover { opacity: .8; }

/* ============ MARQUEE ============ */

.marquee {
  position: relative;
  z-index: 1;
  /* ltr anchors the track to the left edge; in an rtl band the max-content
     track overflows leftward, so translating it left empties the whole strip */
  direction: ltr;
  margin-block-start: clamp(34px, 5vw, 54px);
  padding-block: 11px;
  border-block-start: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 64px;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-soft), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-soft), transparent);
}
.marquee-track {
  --mq-shift: 0px;
  --mq-speed: 58;
  --mq-loop: 24s;
  display: flex;
  width: max-content;
  direction: ltr;
  animation: marquee var(--mq-loop) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: 0 0 auto; align-items: center; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline: 22px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after { content: "◆"; color: var(--accent); font-size: 6px; }
.marquee-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: .22;
  animation: mq-dot 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * .18s);
}
.marquee-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, var(--accent-dim) 50%, transparent 60%);
  background-size: 300% 100%;
  animation: mq-sheen 7s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--mq-shift))); }
}
@keyframes mq-dot {
  0%, 100% { opacity: .18; transform: scale(.75); }
  50% { opacity: .9; transform: scale(1.25); }
}
@keyframes mq-sheen {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* ============ PROJECTS ============ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.project:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 24px 50px -34px #000;
}
.project:not([hidden]).pop { animation: cardIn .35s var(--ease) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.shot {
  --chrome-line: rgba(255, 255, 255, .09);
  --chrome-bg: rgba(255, 255, 255, .06);
  --chrome-fg: rgba(255, 255, 255, .55);
  --mock-line: rgba(255, 255, 255, .11);
  --mock-soft: rgba(255, 255, 255, .06);
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 12px 12px 0;
  overflow: hidden;
  border-block-end: 1px solid var(--line);
  background: var(--mock-bg, #121512);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(255, 255, 255, .1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 45%);
}
.shot.light { --chrome-line: rgba(35, 28, 18, .12); --chrome-bg: rgba(255, 255, 255, .6); --chrome-fg: rgba(40, 32, 22, .6); --mock-line: rgba(35, 28, 18, .1); }
.shot.light::before { background: radial-gradient(120% 80% at 82% -10%, rgba(255, 255, 255, .75), transparent 60%); }
.shot-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; margin-block-end: 9px; }
.shot-dots { display: flex; gap: 3.5px; flex: 0 0 auto; }
.shot-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.shot-dots i:nth-child(2) { background: #febc2e; }
.shot-dots i:nth-child(3) { background: #28c840; }
.shot-url {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  padding-inline: 8px;
  border: 1px solid var(--chrome-line);
  border-radius: 99px;
  background: var(--chrome-bg);
  color: var(--chrome-fg);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: .02em;
  direction: ltr;
  overflow: hidden;
  white-space: nowrap;
}

.mock {
  position: relative;
  z-index: 1;
  height: calc(100% - 25px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--mock-line);
  border-block-end: 0;
  border-radius: 8px 8px 0 0;
  background: var(--mock-panel, rgba(255, 255, 255, .04));
  color: var(--mock-fg, #eef2ea);
  overflow: hidden;
  transition: transform .5s var(--ease);
  direction: rtl;
  box-shadow: 0 22px 44px -32px #000;
}
.shot.light .mock { box-shadow: 0 18px 34px -28px rgba(55, 38, 15, .55); }
.project:hover .mock { transform: scale(1.015); }

.mock-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; }
.mock-brand { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.mock-brand::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--mock-acc, #c8f25a); }
.mock-navlinks { display: flex; align-items: center; gap: 5px; }
.mock-navlinks i { width: 11px; height: 2px; border-radius: 2px; background: currentColor; opacity: .28; }
.mock-navlinks i:first-child { width: 14px; opacity: .8; background: var(--mock-acc); }
.mock-navlinks .nl-cta { width: auto; height: auto; padding: 2px 5px; border-radius: 3px; background: var(--mock-acc); color: var(--mock-acc-ink, #10130d); font-size: 5.5px; font-weight: 700; opacity: 1; }
.mock-kicker {
  display: inline-block;
  color: var(--mock-acc, #c8f25a);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .95;
}
.mock-title { display: block; font-size: clamp(17px, 1.85vw, 23px); font-weight: 800; line-height: 1.22; letter-spacing: -.035em; }
.mock-meta { display: block; color: var(--mock-fg); font-size: 6.5px; line-height: 1.9; opacity: .55; }
.mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: fit-content;
  min-width: 52px;
  height: 17px;
  margin-block-start: 7px;
  padding-inline: 8px;
  border-radius: 4px;
  background: var(--mock-acc, #c8f25a);
  color: var(--mock-acc-ink, #10130d);
  font-size: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.mock-btn::after { content: "↗"; font-size: 6px; line-height: 1; }
.mock-btn.ghost { background: transparent; border: 1px solid var(--mock-line); color: var(--mock-fg); }
.mock-btn.ghost::after { content: none; }

/* mock — cafe */
.mock-cafe { gap: 7px; }
.mock-cafe .mh { display: grid; grid-template-columns: 1fr minmax(80px, 112px); gap: 10px; align-items: center; flex: 1; min-height: 0; }
.mock-cafe .mock-title { font-size: clamp(18px, 2vw, 24px); }
.cafe-copy { display: flex; flex-direction: column; align-items: flex-start; }
.cup {
  position: relative;
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0 34%, #f2e4d0 35% 100%);
  box-shadow: 0 16px 26px -18px rgba(70, 38, 8, .85), inset 0 0 0 1px rgba(120, 78, 35, .12);
}
.cup::before {
  content: "";
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #d9a768, #9a5526 52%, #5f3013 100%);
  box-shadow: inset 0 0 0 5px #fdf8ef, inset 0 3px 7px rgba(0, 0, 0, .3);
}
.cup::after {
  content: "";
  position: absolute;
  width: 38%;
  height: 22%;
  inset-block-start: 29%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 45%, rgba(255, 248, 235, .9), transparent 60%);
  transform: rotate(-12deg);
}
.cup span {
  position: absolute;
  z-index: 1;
  width: 19%;
  height: 25%;
  border-radius: 55% 55% 45% 45% / 65% 65% 35% 35%;
  background: linear-gradient(180deg, #f9edd8, #e8d2b0);
  opacity: .6;
  transform: rotate(-16deg) translateY(1px);
}
.cup span::after { content: ""; position: absolute; inset-inline: 46%; inset-block: 55% 100%; background: #e8d2b0; opacity: .7; }
.menu-strip { display: flex; gap: 5px; flex: 0 0 auto; }
.menu-strip .it {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid var(--mock-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, .45);
}
.menu-strip b { color: var(--mock-fg); font-size: 6.5px; font-weight: 700; }
.menu-strip span { color: var(--mock-acc); font-family: var(--font-mono); font-size: 6px; }

/* mock — photo */
.mock-photo { gap: 7px; }
.photo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.photo-title { display: block; font-family: var(--font-fa); font-size: clamp(19px, 2.1vw, 26px); font-weight: 700; line-height: 1.18; letter-spacing: -.04em; }
.photo-sub { display: block; margin-block-start: 3px; color: var(--mock-acc); font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .12em; opacity: .9; }
.photo-index { color: var(--mock-fg); font-family: var(--font-mono); font-size: 6px; opacity: .45; white-space: nowrap; }
.mock-photo .mgrid { display: grid; grid-template-columns: 1.35fr .82fr .82fr; gap: 5px; flex: 1; min-height: 0; }
.mock-photo .mgrid > span { position: relative; border-radius: 5px; overflow: hidden; }
.mock-photo .mgrid > span:nth-child(1) {
  background:
    radial-gradient(circle at 52% 27%, #e3c29d 0 9.5%, transparent 10.5%),
    radial-gradient(ellipse 30% 42% at 52% 93%, #211812 0 70%, transparent 72%),
    radial-gradient(circle at 50% 32%, rgba(255, 233, 202, .35), transparent 42%),
    linear-gradient(168deg, #8d6b4d, #3c2b1f 68%, #191310);
}
.mock-photo .mgrid > span:nth-child(2) {
  background:
    radial-gradient(circle at 68% 26%, #f4dcae 0 7%, transparent 8%),
    linear-gradient(180deg, transparent 58%, #132026 59%),
    linear-gradient(158deg, #2d4650, #16252c 70%);
}
.mock-photo .mgrid > span:nth-child(3) {
  background:
    radial-gradient(ellipse 42% 30% at 50% 78%, rgba(58, 43, 30, .8), transparent 70%),
    linear-gradient(150deg, #d6c4a6, #a68e6d 60%, #6d5942);
}
.mock-photo .mgrid > span::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .38));
}
.photo-cap {
  position: absolute;
  z-index: 2;
  inset-block-end: 7%;
  inset-inline-start: 8%;
  color: #f7ecdc;
  font-family: var(--font-mono);
  font-size: 5px;
  font-style: normal;
  letter-spacing: .06em;
  opacity: .85;
}
.photo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--mock-fg); font-family: var(--font-mono); font-size: 5px; letter-spacing: .12em; opacity: .5; }

/* mock — shop */
.mock-shop { gap: 7px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.shop-title { display: block; font-size: clamp(15px, 1.7vw, 20px); font-weight: 800; letter-spacing: -.03em; }
.shop-sub { display: block; margin-block-start: 2px; color: var(--mock-fg); font-size: 6px; opacity: .5; }
.shop-all { color: var(--mock-acc); font-size: 6px; white-space: nowrap; opacity: .9; }
.mock-shop .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; min-height: 0; }
.mock-shop .prod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--mock-line);
  border-radius: 5px;
  background: var(--mock-soft);
  overflow: hidden;
}
.mock-shop .ph {
  position: relative;
  flex: 1;
  min-height: 36px;
  border-radius: 4px;
  overflow: hidden;
}
.mock-shop .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 7px),
    linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 45%);
}
.prod-add {
  position: absolute;
  z-index: 2;
  inset-block-start: 9px;
  inset-inline-start: 9px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #241a36;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(18, 10, 30, .25);
}
.mock-shop .prod:nth-child(1) .ph { background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.5), transparent 46%), linear-gradient(155deg, #e8ddff, #b49cf0 48%, #6647ad); }
.mock-shop .prod:nth-child(2) .ph { background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.5), transparent 46%), linear-gradient(155deg, #ffe0ec, #daa1c2 48%, #8f4d74); }
.mock-shop .prod:nth-child(3) .ph { background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.5), transparent 46%), linear-gradient(155deg, #d9f4ee, #8bcabe 48%, #3c756c); }
.prod-meta { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.prod-name { color: var(--mock-fg); font-size: 6.5px; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; }
.prod-price { color: var(--mock-acc); font-family: var(--font-mono); font-size: 6.5px; white-space: nowrap; }
.prod-line { display: block; height: 2px; width: 62%; border-radius: 2px; background: currentColor; opacity: .12; }

/* mock — bot */
.mock-bot { gap: 7px; }
.chat-head { display: flex; align-items: center; gap: 6px; padding-block-end: 6px; border-block-end: 1px solid var(--mock-line); flex: 0 0 auto; }
.bot-ava { position: relative; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(150deg, var(--mock-acc), #2cb9a4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.bot-ava::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 33% 42%, #06231d 0 8%, transparent 9%),
    radial-gradient(circle at 67% 42%, #06231d 0 8%, transparent 9%),
    linear-gradient(#06231d, #06231d) center 72% / 34% 8% no-repeat;
}
.bot-id { display: flex; flex-direction: column; gap: 1px; }
.bot-name { color: var(--mock-fg); font-size: 7.5px; font-weight: 700; }
.bot-sub { color: var(--mock-acc); font-family: var(--font-mono); font-size: 5px; letter-spacing: .04em; opacity: .9; }
.mock-bot .chat { display: flex; flex-direction: column; gap: 4px; flex: 1; justify-content: flex-end; min-height: 0; }
.chat-date { align-self: center; padding: 1px 6px; border-radius: 99px; background: var(--mock-soft); color: var(--mock-fg); font-size: 5px; opacity: .5; }
.bubble {
  position: relative;
  width: fit-content;
  max-width: 84%;
  padding: 4px 7px;
  border-radius: 7px 7px 7px 2px;
  background: var(--mock-soft);
  color: var(--mock-fg);
  font-size: 6.5px;
  line-height: 1.8;
}
.bubble.me { align-self: flex-end; border-radius: 7px 7px 2px 7px; background: var(--mock-acc); color: var(--mock-acc-ink, #06231d); font-weight: 600; }
.bubble .dots { display: flex; gap: 2px; padding-block: 2px; }
.bubble .dots i { width: 2.5px; height: 2.5px; border-radius: 50%; background: currentColor; opacity: .65; }
.quick { display: flex; gap: 3px; flex-wrap: wrap; flex: 0 0 auto; }
.quick span { padding: 1px 5px; border: 1px solid var(--mock-line); border-radius: 99px; color: var(--mock-acc); font-size: 5.5px; white-space: nowrap; }
.chat-input {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-inline: 7px;
  border: 1px solid var(--mock-line);
  border-radius: 99px;
  color: var(--mock-fg);
  font-size: 5.5px;
  opacity: .8;
  flex: 0 0 auto;
}
.chat-input::after {
  content: "↑";
  width: 11px;
  height: 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mock-acc);
  color: var(--mock-acc-ink, #06231d);
  font-size: 6px;
  font-weight: 700;
}

/* mock — clinic */
.mock-clinic { gap: 7px; }
.mock-clinic .clinic-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8px; flex: 1; min-height: 0; align-items: center; }
.clinic-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.clinic-badges { display: flex; gap: 5px; margin-block-start: 7px; }
.clinic-badges span { padding: 1px 5px; border: 1px solid var(--mock-line); border-radius: 99px; color: var(--mock-fg); font-size: 5.5px; opacity: .8; }
.clinic-card {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--mock-line);
  border-radius: 7px;
  background: var(--mock-soft);
  box-shadow: 0 14px 26px -22px rgba(13, 70, 62, .55);
}
.appt-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--mock-fg); font-size: 6px; font-weight: 700; }
.appt-ic { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--mock-acc); }
.cross { position: relative; width: 8px; height: 8px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--mock-acc-ink, #fff); border-radius: 1px; }
.cross::before { inset-inline: 0; inset-block-start: calc(50% - 1px); height: 2px; }
.cross::after { inset-block: 0; inset-inline-start: calc(50% - 1px); width: 2px; }
.appt-doctor { display: flex; align-items: center; gap: 5px; padding-block: 5px; border-block-start: 1px solid var(--mock-line); border-block-end: 1px solid var(--mock-line); }
.appt-doc-ava { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #d9efe9 0 30%, #9cc9c0 31%); box-shadow: inset 0 0 0 1px rgba(13, 70, 62, .12); }
.appt-doc-id { display: flex; flex-direction: column; gap: 1px; }
.appt-doc-id b { color: var(--mock-fg); font-size: 5.5px; font-weight: 700; }
.appt-doc-id span { color: var(--mock-fg); font-size: 5px; opacity: .5; }
.appt-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.appt-days span { padding-block: 3px; border: 1px solid var(--mock-line); border-radius: 3px; color: var(--mock-fg); font-size: 5px; text-align: center; opacity: .7; }
.appt-days span.on { background: var(--mock-acc); border-color: var(--mock-acc); color: var(--mock-acc-ink, #fff); opacity: 1; font-weight: 700; }
.appt-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.appt-slots span { padding-block: 3px; border: 1px solid var(--mock-line); border-radius: 3px; color: var(--mock-fg); font-family: var(--font-mono); font-size: 5px; text-align: center; opacity: .65; }
.appt-slots span.on { border-color: var(--mock-acc); color: var(--mock-acc); font-weight: 700; opacity: 1; }
.appt-btn { padding-block: 4px; border-radius: 3px; background: var(--mock-acc); color: var(--mock-acc-ink, #fff); font-size: 5.5px; font-weight: 700; text-align: center; }

/* mock — fitness */
.mock-fit { background: transparent; gap: 6px; }
.mock-fit > :not(.stripes) { position: relative; z-index: 1; }
.fit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-fit .big {
  color: var(--mock-acc);
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.7vw, 44px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.075em;
}
.mock-fit .tagline { color: var(--mock-fg); font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .16em; opacity: .55; }
.fit-progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-block-start: auto; }
.fit-prog { display: flex; flex-direction: column; gap: 1px; padding: 5px 6px; border: 1px solid var(--mock-line); border-radius: 4px; background: var(--mock-soft); }
.fit-prog b { color: var(--mock-acc); font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: -.04em; }
.fit-prog span { color: var(--mock-fg); font-size: 5.5px; opacity: .65; }
.mock-fit .stripes {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 42%;
  background: repeating-linear-gradient(115deg, transparent 0 8px, rgba(217, 249, 157, .055) 8px 16px);
  pointer-events: none;
}

.p-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px 17px 15px;
}
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-head h3 { color: var(--text-strong); font-size: 14.5px; font-weight: 700; }
.p-badge {
  flex: 0 0 auto;
  padding: 0 5px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.9;
  white-space: nowrap;
}
.p-desc { color: var(--muted); font-size: 12.5px; line-height: 1.95; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips li {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  direction: ltr;
}
.p-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-block-start: auto;
  padding-block-start: 2px;
  color: var(--accent);
  font-size: 11.5px;
  opacity: .9;
  transition: opacity .2s;
}
.p-link svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.p-link:hover { opacity: 1; }
.p-link:hover svg { transform: translateX(-3px); }

/* featured single project */

.project-solo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
  align-items: stretch;
}
.project-solo .shot {
  aspect-ratio: auto;
  padding: 12px;
  border-block-end: 0;
  border-inline-end: 1px solid var(--line);
}
.project-solo .shot::before { background: radial-gradient(120% 80% at 82% -10%, rgba(255, 255, 255, .07), transparent 55%); }
.shot-link {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #050a12;
}
.shot-link img { display: block; width: 100%; height: auto; transition: transform .55s var(--ease); }
.project-solo:hover .shot-link img { transform: scale(1.012); }

.project-solo .p-head { align-items: flex-start; }
.project-solo .p-body { justify-content: space-between; }
.project-solo .p-actions { margin-block-start: 0; }
.project-solo .p-head h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.p-kicker {
  display: block;
  margin-block-end: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}
.p-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-style: solid;
  border-color: var(--accent-line);
  color: var(--accent);
  font-family: var(--font-fa);
  font-size: 9.5px;
}
.p-badge.live .pulse { width: 5px; height: 5px; }
.project-solo .p-desc { font-size: 12.8px; line-height: 2; }

.p-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.p-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
}
.p-facts span { color: var(--muted-2); font-size: 9px; }
.p-facts b { color: var(--text); font-size: 10.5px; font-weight: 600; }
.p-facts b.is-live { color: var(--accent); }

.p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-block-start: auto;
  padding-block-start: 2px;
}
.p-actions .p-link { margin-block-start: 0; padding-block-start: 0; }
.p-link.subtle { color: var(--muted); font-size: 10.5px; }

.project-cta {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  background:
    linear-gradient(120deg, var(--accent-dim), transparent 58%),
    var(--panel);
  overflow: hidden;
}
.project-cta::after {
  content: "</>";
  position: absolute;
  inset-inline-end: 22%;
  inset-block-start: -18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 90px;
  font-weight: 800;
  opacity: .035;
  pointer-events: none;
}
.project-cta h3 { color: var(--text-strong); font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
.project-cta p { margin-block-start: 3px; color: var(--muted); font-size: 11px; }

/* ============ SERVICES ============ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.svc::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  opacity: 0;
  transition: opacity .25s;
}
.svc:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--panel-2); }
.svc:hover::before { opacity: .75; }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 3px; }
.svc-num { color: var(--muted-2); font-family: var(--font-mono); font-size: 9.5px; }
.svc-ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
}
.svc-ic svg { width: 17px; height: 17px; }
.svc h3 { color: var(--text-strong); font-size: 13.5px; font-weight: 700; }
.svc p { color: var(--muted); font-size: 11.75px; line-height: 1.95; }

/* ============ PROCESS ============ */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step { position: relative; padding-block-start: 17px; }
.step::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  inset-block-start: -3px;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-3);
}
.step:first-child::before { background: linear-gradient(90deg, var(--accent), var(--line) 70%); }
.step:first-child::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-line); }
.step-top { display: flex; align-items: center; gap: 7px; margin-block-end: 8px; }
.step-num {
  padding: 0 5px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.9;
}
.step h3 { color: var(--text-strong); font-size: 13px; font-weight: 700; }
.step p { margin-block-start: 5px; color: var(--muted); font-size: 11.75px; line-height: 1.95; }
/* What the client physically receives in this step — the difference between
   a motivational process and one you can hold someone to. */
.step-out {
  margin-block-start: 11px;
  padding-inline-start: 9px;
  border-inline-start: 1px solid var(--accent-line);
  color: var(--text);
  font-size: 11px;
  line-height: 1.85;
}
.step-out span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ============ PRICING ============ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 21px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: border-color .25s, transform .25s var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-dim), var(--panel) 36%);
  box-shadow: 0 26px 60px -44px var(--accent);
}
.plan-badge {
  position: absolute;
  inset-block-start: -9px;
  inset-inline-start: 18px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 8.5px;
  font-weight: 700;
}
.plan h3 { color: var(--text-strong); font-size: 15.5px; font-weight: 800; }
.plan-sub { margin-block-start: 2px; color: var(--muted-2); font-size: 10.5px; line-height: 1.8; }

.plan-price {
  padding-block-end: 13px;
  border-block-end: 1px dashed var(--line-strong);
}
.pp-label { display: block; color: var(--muted-2); font-size: 9.5px; }
.pp-row { display: flex; align-items: baseline; gap: 5px; margin-block-start: 2px; }
.pp-row strong {
  color: var(--text-strong);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.pp-row span { color: var(--muted); font-size: 10px; }

.plan-features { display: flex; flex-direction: column; gap: 8px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}
.plan-features svg { width: 12px; height: 12px; flex: 0 0 auto; margin-block-start: 3px; color: var(--accent); }
.plan .btn { height: 38px; margin-block-start: auto; font-size: 11.5px; }

.addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block-start: 12px;
}
.addon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.addon-head { display: flex; align-items: center; gap: 9px; }
.addon-ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent-2);
}
.addon-ic svg { width: 14px; height: 14px; }
.addon h3 { color: var(--text-strong); font-size: 11.5px; font-weight: 700; }
.addon-sub { color: var(--muted-2); font-size: 9.5px; }
.addon-price { margin-inline-start: auto; color: var(--accent); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.addon-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.addon-tags li {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
}
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-block-start: 13px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.9;
}
.pricing-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-block-start: 3px; color: var(--accent); }

/* ============ FAQ ============ */

.faq { display: flex; flex-direction: column; gap: 7px; max-width: 840px; }
.faq details {
  padding-inline: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  transition: border-color .2s, background .2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--panel-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 14px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.q-num { color: var(--accent); font-family: var(--font-mono); font-size: 9.5px; opacity: .8; }
.faq summary .plus {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}
.faq summary .plus svg { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.faq details[open] summary { color: var(--accent); }
.faq details[open] .plus svg { transform: rotate(45deg); }
.faq-a { padding-block-end: 15px; color: var(--muted); font-size: 12px; line-height: 2.05; }

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
}
.contact-title {
  margin-block: 12px 9px;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.03em;
}
.contact-title .accent { color: var(--accent); }
.contact-lead { max-width: 44ch; color: var(--muted); font-size: 12.5px; line-height: 2.05; }
.contact-list { display: flex; flex-direction: column; gap: 7px; margin-block-start: 20px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color .2s;
}
.contact-row:hover { border-color: var(--line-strong); }
.contact-ic {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
}
.contact-ic svg { width: 14px; height: 14px; }
.contact-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.contact-txt span { color: var(--muted-2); font-size: 9.5px; }
.contact-txt a {
  direction: ltr;
  text-align: left;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.contact-txt a:hover { color: var(--accent); }
.copy-mini {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.copy-mini:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.copy-mini svg { width: 11px; height: 11px; }

/* fields — shared by the order wizard (see ORDER WIZARD below) */
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-fa);
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 94px; flex: 1 1 auto; line-height: 1.9; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); font-size: 10.5px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent-line); background: var(--panel-2); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 9px center;
  background-size: 11px;
}
.field select option { background: var(--panel); color: var(--text); }
.form-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.9;
}
.form-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-block-start: 3px; color: var(--accent); }
.form-note a { color: var(--accent); border-block-end: 1px dashed var(--accent-line); }
.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  line-height: 1.9;
}
.form-status.show { display: block; }
.form-status[data-tone="bad"] {
  border-color: var(--bad-line);
  background: var(--bad-dim);
  color: var(--bad);
}

/* ============ ORDER WIZARD ============ */
/* Same panel shell as the old contact form, but step-based. */

.order {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.order[hidden] { display: none; }
.order::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .65;
}

.order-head { display: flex; flex-direction: column; gap: 9px; }
.order-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}
.order-rail button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 10.5px;
  text-align: start;
  transition: color .2s, border-color .2s, background .2s;
}
.order-rail button em { font-style: normal; }
.order-rail button span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; }
.order-rail button.is-now { border-color: var(--accent-line); background: var(--accent-dim); color: var(--text-strong); }
.order-rail button.is-now span { color: var(--accent); }
.order-rail button.is-done { color: var(--muted); border-color: var(--line-strong); cursor: pointer; }
.order-rail button.is-done span { color: var(--accent); }
.order-rail button.is-done:hover { color: var(--text); border-color: var(--accent-line); }
.order-rail button[aria-disabled="true"] { cursor: default; }
.order-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.order-meter {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.order-meter i {
  display: block;
  width: var(--p, 33.33%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .32s var(--ease);
}

.order-step { display: none; flex-direction: column; gap: 10px; animation: stepIn .3s var(--ease) both; }
.order-step.is-now { display: flex; }
.order-step[hidden] { display: none; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.js .reveal:not(.in) .order-step.is-now { animation: none; }

.order-q { color: var(--text-strong); font-size: 14px; font-weight: 700; line-height: 1.9; }
.order-hint { color: var(--muted-2); font-size: 10.5px; line-height: 1.9; margin-block-start: -4px; }
.order-err { display: none; color: var(--bad); font-size: 10.5px; line-height: 1.9; }
.order-err.show { display: block; }

.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-block-start: 2px;
}
.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.opt input {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 12px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.opt-ic {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color .2s, background .2s, border-color .2s;
}
.opt-ic svg { width: 14px; height: 14px; }
.opt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-txt b { color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.7; }
.opt-txt small { color: var(--muted-2); font-size: 9.5px; line-height: 1.7; }
.opt.is-picked { border-color: var(--accent-line); background: var(--accent-dim); }
.opt.is-picked .opt-ic { border-color: var(--accent-line); background: var(--accent); color: var(--on-accent); }
.opt.is-picked .opt-txt b { color: var(--text-strong); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:has(input:checked)::after {
  content: "";
  position: absolute;
  inset-inline-end: 9px;
  inset-block-start: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-fields .field { min-width: 0; }
.order-fields .field.full { grid-column: 1 / -1; }
.field-help { color: var(--muted-2); font-size: 9.5px; line-height: 1.8; }
.opt-tag {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea { border-color: var(--bad-line); background: var(--bad-dim); }
.field.is-bad label { color: var(--bad); }

.trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.review {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--panel-2);
}
.review-title { display: flex; flex-direction: column; gap: 2px; color: var(--text-strong); font-size: 12px; font-weight: 700; }
.review-kicker { font-family: var(--font-mono); font-size: 9px; color: var(--accent); letter-spacing: .06em; }
.review-list { display: grid; gap: 0; list-style: none; }
.review-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-block-end: 1px solid var(--line);
  font-size: 11px;
}
.review-list li:last-child { border-block-end: 0; }
.review-list span { flex: 0 0 auto; color: var(--muted-2); font-size: 10px; }
.review-list b { min-width: 0; color: var(--text); font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.review-notes { color: var(--muted); font-size: 10.5px; line-height: 1.95; overflow-wrap: anywhere; }

.order-foot { display: grid; gap: 8px; }
.order-foot #orderSubmit { height: 42px; font-size: 12px; }
#orderSubmit:disabled,
#orderSubmit.is-busy { opacity: .62; pointer-events: none; }

.order-nav { display: flex; align-items: center; gap: 10px; }
.order-nav .btn { height: 38px; font-size: 11.5px; }
.order-nav [hidden] { display: none; }
.order-count {
  margin-inline: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.order-done {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  background: var(--panel);
}
.order-done[hidden] { display: none; }
.order-done::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.order-done h3 { color: var(--text-strong); font-size: 16px; font-weight: 800; }
.done-top { display: flex; }
.done-ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
}
.done-ic svg { width: 17px; height: 17px; }
.done-lead { color: var(--muted); font-size: 11.5px; line-height: 2; }
.done-lead b { color: var(--text-strong); }
.done-code {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px dashed var(--accent-line);
  border-radius: 11px;
  background: var(--accent-dim);
}
.done-code span { color: var(--muted-2); font-size: 10px; }
.done-code b {
  margin-inline-end: auto;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .08em;
  direction: ltr;
}
.done-next { display: grid; gap: 5px; list-style: none; }
.done-next li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.done-next span { color: var(--accent); font-family: var(--font-mono); font-size: 9.5px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.done-actions .btn { height: 38px; font-size: 11.5px; }

/* per-card order links (services + addons) */
.svc-order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-block-start: auto;
  padding-block-start: 9px;
  color: var(--muted);
  font-size: 10.5px;
  transition: color .2s;
}
.svc-order svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.svc-order:hover { color: var(--accent); }
.svc-order:hover svg { transform: translateX(-3px); }
.addon .svc-order { padding-block-start: 2px; border-block-start: 1px solid var(--line); }

/* ============ FOOTER ============ */

.footer { margin-inline-start: var(--sidebar-w); padding-block-end: var(--statusbar-h); background: var(--bg-soft); }
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 0;
}
/* the footer lockup is Latin art over Latin text: one left-aligned column */
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  direction: ltr;
}
.foot-brand .foot-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-links a { color: var(--muted); font-size: 10.5px; transition: color .2s; }
.foot-links a:hover { color: var(--accent); }
.foot-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-block-start: 18px;
  padding-block: 13px;
  border-block-start: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
}
.foot-copy .to-top { display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.foot-copy .to-top:hover { color: var(--accent); }
.foot-copy .foot-people b { color: var(--text); font-weight: 600; }
.foot-copy svg { width: 10px; height: 10px; }

/* ============ STATUS BAR ============ */

.statusbar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 150;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  border-block-start: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  direction: ltr;
}
.sb-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sb-item svg { width: 10px; height: 10px; }
.sb-accent { color: var(--accent); }
.sb-mid { margin-inline: auto; opacity: .8; letter-spacing: .04em; }

/* ============ COMMAND PALETTE ============ */

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(3, 6, 3, .62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.palette {
  width: min(540px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, .75);
  overflow: hidden;
  animation: paletteIn .2s var(--ease);
}
@keyframes paletteIn {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-block-end: 1px solid var(--line);
}
.palette-search svg { width: 14px; height: 14px; color: var(--muted-2); }
.palette-search input {
  flex: 1;
  padding: 2px 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 12.5px;
}
.palette-search input::placeholder { color: var(--muted-2); }
#paletteClose svg { transform: rotate(45deg); }
.palette-list { max-height: min(440px, 62vh); overflow-y: auto; padding: 5px; }
.palette-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: start;
  transition: background .12s, color .12s, border-color .12s;
}
.palette-item svg { width: 13px; height: 13px; opacity: .7; flex: 0 0 auto; }
.palette-item .pi-hint {
  margin-inline-start: auto;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  direction: ltr;
}
.palette-item.is-sel,
.palette-item:hover {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--text);
}
.palette-item.is-sel svg { color: var(--accent); opacity: 1; }
.palette-empty { padding: 22px; text-align: center; color: var(--muted-2); font-size: 11px; }
.palette-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  border-block-start: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
}
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ============ TOAST ============ */

.toast {
  position: fixed;
  inset-block-end: calc(var(--statusbar-h) + 14px);
  inset-inline-start: 50%;
  z-index: 320;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ REVEAL ============ */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track,
  .marquee-item::before,
  .marquee-glow { animation: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 630px; width: 100%; }
  .term-body { height: 262px; }
}

@media (max-width: 1080px) {
  .sidebar {
    width: min(296px, 86vw);
    transform: translateX(calc(100% + 12px));
    transition: transform .32s var(--ease);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .45);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; }
  .main { margin-inline-start: 0; }
  .footer { margin-inline-start: 0; }
  .breadcrumb { display: none; }
  .statusbar .sb-mid { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 7vw, 4.6rem); }
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-head > div { max-width: 100%; }
  .project-solo { grid-template-columns: 1fr; }
  .project-solo .shot { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pricing-grid .plan .plan-features { gap: 8px; }
  .addons { max-width: 520px; margin-inline: auto; }
  .faq { max-width: 100%; }
  /* tablets and phones have fingers, not cursors: every action a visitor
     can take from this page reaches a comfortable tap height here, even the
     links the desktop layout deliberately keeps small */
  .order-nav .btn, .done-actions .btn, .plan .btn, .svc-order { min-height: 44px; }
  .svc-order { align-items: center; }
  .p-link { min-height: 40px; }
}

@media (max-width: 760px) {
  :root { --titlebar-h: 50px; --statusbar-h: 28px; }
  .titlebar { padding-inline: 12px; gap: 10px; }
  .kbd-btn .label { display: none; }
  .kbd-btn { width: 34px; padding: 0; justify-content: center; }
  .kbd-btn kbd { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 16 / 9; }
  .project-cta { flex-direction: column; align-items: flex-start; padding: 18px; }
  .project-cta .btn { width: 100%; }
  .project-cta::after { inset-inline-end: 10%; font-size: 74px; }
  .hero { padding-block-start: 30px; }
  .hero h1 { font-size: clamp(2.7rem, 10.5vw, 3.9rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 18px; }
  .hero-stats dt { font-size: 19px; }
  .term-body { height: 262px; }
  .sec-link { display: none; }
  .addons { grid-template-columns: 1fr; }
  .order-fields { grid-template-columns: 1fr; }
  .order-nav .btn { flex: 1 1 auto; }
  .svc-grid { gap: 8px; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-links { gap: 14px; }
  .statusbar { gap: 9px; padding-inline: 10px; }
  .sb-item.sb-utf { display: none; }
  .palette-backdrop { padding-block-start: 9vh; }
  .side-card { margin-block-start: auto; }
}

@media (max-width: 600px) {
  .section { padding-block: 48px; }
  .hero { padding-block-end: 0; }
  .hero-stats > div { padding-inline-start: 9px; }
  .svc-grid { grid-template-columns: 1fr; }
  .step p { font-size: 10.5px; }
  .step-out { font-size: 10px; }
  .order { padding: 15px; }
  .opts { grid-template-columns: 1fr; }
  .order-rail { gap: 4px; }
  .order-rail button { padding: 6px 7px; font-size: 10px; }
  .order-count { font-size: 9px; }
  .review-list li { font-size: 10.5px; }
  .field input, .field select, .field textarea { font-size: 13px; }
  .field label { font-size: 11px; }
  .brand-logo { height: 20px; }
  .term-title { font-size: 9px; }
  .term-state { display: none; }
  .term-hint { font-size: 10px; }
  .toast { white-space: normal; text-align: center; max-width: calc(100vw - 32px); }
  .project-cta::after { display: none; }
  .q-num { display: none; }
  .faq summary { font-size: 12px; }
  .contact-title { font-size: 1.45rem; }
  .side-foot { display: none; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.55rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .pp-row strong { font-size: 23px; }
  .title-actions { gap: 5px; }
  .icon-btn, .kbd-btn { width: 31px; height: 31px; }
  .brand-logo { height: 18px; }
  .order-rail button em { display: none; }
  .order-rail button { justify-content: center; }
  .done-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* print */
@media print {
  .titlebar, .sidebar, .statusbar, .palette-backdrop, .toast,
  .term-form, .marquee, .filters, .nav-scrim { display: none !important; }
  .main { margin: 0; padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #111; }
  .section { break-inside: avoid; }
}

