/* Dyessect — shared styles (home, custom, satchel)
   Light is the default token set; [data-theme="dark"] overrides it. */

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

:root {
  --bg:         #FAFAF7;
  --bg-cream:   #F2E8D5;
  --bg-white:   #FFFFFF;
  --line:       #E4E1D8;
  --line-soft:  #EFEDE6;

  --ink:        #0F1B2A;
  --ink-2:      #2C3E50;
  --ink-mute:   #6B7280;
  --ink-soft:   #9CA3AF;

  --teal:       #1E7F74;
  --teal-2:     #2A9488;
  --teal-wash:  rgba(30,127,116,0.09);
  --teal-edge:  rgba(30,127,116,0.22);

  --coral:      #E8846B;
  --coral-2:    #D96E52;
  --coral-wash: rgba(232,132,107,0.12);

  --plum:       #4A3958;
  --plum-2:     #625374;
  --plum-wash:  rgba(74,57,88,0.06);

  --butter:     #F3C969;
  --butter-2:   #E8B947;
  --butter-wash:rgba(243,201,105,0.22);
  --butter-ink: #8a6a1a;

  --on-accent:  #FFFFFF;
  --nav-bg:     rgba(250,250,247,0.9);
  --hero-bg:    linear-gradient(180deg, #F2E8D5 0%, #F2E8D5 55%, #FAFAF7 100%);
  --shadow:     rgba(15,27,42,0.18);
  --shadow-2:   rgba(15,27,42,0.08);
  --hl-bg:      linear-gradient(165deg, #FFF8E3 0%, #FDE8A8 100%);
  --hl-shadow:  rgba(232,180,60,0.55);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --nav-h: 84px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:         #0E1822;
  --bg-cream:   #172433;
  --bg-white:   #1B2A3A;
  --line:       rgba(255,255,255,0.08);
  --line-soft:  rgba(255,255,255,0.04);

  --ink:        #F5F1E6;
  --ink-2:      rgba(245,241,230,0.82);
  --ink-mute:   rgba(245,241,230,0.55);
  --ink-soft:   rgba(245,241,230,0.32);

  --teal:       #5BA79E;
  --teal-2:     #78BDB4;
  --teal-wash:  rgba(91,167,158,0.14);
  --teal-edge:  rgba(91,167,158,0.35);

  --coral:      #F09578;
  --coral-2:    #F5A88F;
  --coral-wash: rgba(240,149,120,0.14);

  --plum:       #9F8DB4;
  --plum-2:     #B19FC6;
  --plum-wash:  rgba(159,141,180,0.12);

  --butter-wash:rgba(243,201,105,0.18);
  --butter-ink: #F3C969;

  --on-accent:  #0E1822;
  --nav-bg:     rgba(14,24,34,0.85);
  --hero-bg:    linear-gradient(180deg, #1A2636 0%, #141E2C 55%, #0E1822 100%);
  --shadow:     rgba(0,0,0,0.55);
  --shadow-2:   rgba(0,0,0,0.25);
  --hl-bg:      linear-gradient(165deg, #2C2815 0%, #3A2F15 100%);
  --hl-shadow:  rgba(232,180,60,0.3);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* theme-aware logo pairs */
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

/* ─────────── NAV */
nav.site-nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; height: 100%; transition: opacity 0.35s ease, transform 0.35s ease; }
.nav-brand.hide-until-scroll { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.nav-brand.hide-until-scroll.visible { opacity: 1; transform: none; pointer-events: auto; }
.nav-brand img { height: calc(var(--nav-h) - 16px); width: auto; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--coral); }
.nav-cta {
  font-size: 14px; font-weight: 500;
  color: var(--on-accent); background: var(--teal);
  padding: 11px 20px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--teal-2); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; display: block; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: none; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 32px; gap: 14px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a { font-family: var(--font-display); font-size: 40px; line-height: 1.05; color: var(--ink); }
.nav-overlay a:hover { color: var(--teal); }
.nav-overlay .nav-cta { font-family: var(--font-body); font-size: 14px; margin-top: 20px; color: var(--on-accent); }

/* ─────────── SHARED TYPE + LAYOUT */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--teal); display: block; }
.eyebrow.centered::after { content: ''; width: 18px; height: 1.5px; background: var(--teal); display: block; }

.h-section {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.022em; line-height: 1.05;
  color: var(--ink);
}
.h-section em { font-style: italic; color: var(--teal); }
.h-section .coral { color: var(--coral); font-style: italic; }

.lead { font-size: clamp(16px, 1.15vw, 18px); color: var(--ink-2); line-height: 1.65; max-width: 580px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--teal); color: var(--on-accent); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-coral { background: var(--coral); color: var(--on-accent); }
.btn-coral:hover { background: var(--coral-2); transform: translateY(-1px); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--teal); }
.text-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(3px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ─────────── HERO (shared shell) */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--coral-wash) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 80px; left: -180px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--teal-wash) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.hero-left { min-width: 0; }
.hero-logo-wrap { margin-bottom: 36px; animation: fadeUp 0.9s ease 0.1s both; }
.hero-logo-wrap img { height: clamp(90px, 10vw, 140px); width: auto; }
.hero-headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.01em; line-height: 1.08;
  color: var(--ink); margin-bottom: 22px;
  animation: fadeUp 0.9s ease 0.3s both;
}
.hero-headline em { font-style: italic; color: var(--teal); }
.hero-headline .coral { color: var(--coral); font-style: italic; }
.hero-lead { font-size: 17px; color: var(--ink-2); line-height: 1.65; animation: fadeUp 0.9s ease 0.45s both; }
.hero-lead em { font-style: italic; color: var(--coral-2); }

/* Windows-style browser window (hero preview + portfolio mini windows) */
.preview-mockup {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 54px -22px var(--shadow), 0 6px 18px -6px var(--shadow-2);
}
.preview-chrome { height: 32px; background: var(--line-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.preview-chrome .tab {
  height: 100%; display: flex; align-items: center; gap: 6px;
  padding: 0 14px; margin: 4px 0 0 8px;
  background: var(--bg-white); border-right: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  font-size: 11px; color: var(--ink-2); white-space: nowrap; max-width: 140px; overflow: hidden;
}
.preview-chrome .tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.preview-chrome .url { flex: 1; height: 18px; margin: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; max-width: 220px; }
.preview-chrome .win-ctrls { display: flex; margin-left: auto; height: 100%; }
.preview-chrome .wc { width: 34px; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); }
.preview-chrome .wc svg { width: 9px; height: 9px; stroke-width: 1.5; }
.preview-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }

.preview-cursor { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; animation: cursorPath 6s ease-in-out infinite; }
.preview-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18)); }
@keyframes cursorPath {
  0% { top: 60%; left: 18%; } 20% { top: 62%; left: 22%; } 40% { top: 40%; left: 52%; }
  55% { top: 38%; left: 56%; } 75% { top: 75%; left: 70%; } 100% { top: 60%; left: 18%; }
}

.pv-hdr { display: flex; align-items: center; justify-content: space-between; }
.pv-title { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.pv-title em { font-style: italic; color: var(--coral-2); }
.pv-chip {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--butter-wash); color: var(--butter-ink); border: 1px solid rgba(232,180,60,0.4);
}
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stat { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.pv-stat .lbl { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); margin-bottom: 3px; }
.pv-stat .val { font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.pv-stat:nth-child(1) { border-color: var(--teal-edge); background: var(--teal-wash); }
.pv-stat:nth-child(1) .val { color: var(--teal); }
.pv-stat:nth-child(2) { border-color: rgba(232,132,107,0.35); background: var(--coral-wash); }
.pv-stat:nth-child(2) .val { color: var(--coral-2); }
.pv-stat:nth-child(3) { border-color: rgba(232,180,60,0.45); background: var(--butter-wash); }
.pv-stat:nth-child(3) .val { color: var(--butter-2); }
.pv-list { display: flex; flex-direction: column; gap: 6px; }
.pv-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px;
  font-size: 12px; color: var(--ink-2);
}
.pv-row:nth-child(2) { border-left-color: var(--coral); }
.pv-row:nth-child(3) { border-left-color: var(--butter-2); }
.pv-row .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--on-accent);
  font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pv-row:nth-child(2) .avatar { background: var(--coral); }
.pv-row:nth-child(3) .avatar { background: var(--butter-2); color: #0F1B2A; }
.pv-row .body { flex: 1; }
.pv-row .tag { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--teal-wash); color: var(--teal); }
.pv-row:nth-child(2) .tag { background: var(--coral-wash); color: var(--coral-2); }
.pv-row:nth-child(3) .tag { background: var(--butter-wash); color: var(--butter-ink); }

/* phone screenshot frame (Satchel) */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 7px;
  background: #FFFDF8;
  box-shadow: 0 0 0 1px rgba(58,35,24,0.12), 0 30px 60px -28px rgba(58,35,24,0.45), 0 8px 20px -10px rgba(58,35,24,0.2);
}
.phone img { width: 100%; height: auto; border-radius: 28px; aspect-ratio: 1170 / 2532; object-fit: cover; }
[data-theme="dark"] .phone { background: #2B2119; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px -28px rgba(0,0,0,0.7); }

/* ─────────── STEPS (custom page) */
.how-top { max-width: 780px; margin: 0 auto 60px; text-align: center; }
.how-top .lead { margin-left: auto; margin-right: auto; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -16px var(--shadow); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: var(--line-soft); color: var(--ink-2); border: 1px solid transparent;
}
.step:nth-child(2) .step-num { background: var(--coral-wash); color: var(--coral-2); border-color: rgba(232,132,107,0.35); }
.step:nth-child(4) .step-num { background: var(--teal-wash); color: var(--teal); border-color: var(--teal-edge); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.step h3 em { font-style: italic; }
.step:nth-child(2) h3 em { color: var(--coral-2); }
.step:nth-child(4) h3 em { color: var(--teal); }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 18px; }
.step .step-meta { font-size: 11.5px; color: var(--ink-mute); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); letter-spacing: 0.04em; }
.step.highlight {
  background: var(--hl-bg);
  border: 2px solid var(--butter-2);
  box-shadow: 0 22px 44px -18px var(--hl-shadow), 0 6px 14px -4px rgba(232,180,60,0.25);
  transform: translateY(-4px);
}
.step.highlight .step-num { background: var(--butter-2); color: #0F1B2A; border-color: var(--butter-2); }
.step.highlight h3 em { color: var(--butter-2); }
.step.highlight .step-meta { color: var(--ink-2); border-top-color: rgba(138,106,26,0.2); }
.step.highlight::before {
  content: 'Free';
  position: absolute; top: -14px; right: 22px;
  background: #0F1B2A; color: var(--butter);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
[data-theme="dark"] .step.highlight::before { background: var(--butter-2); color: #0F1B2A; }
.plan-note {
  grid-column: 1 / -1; margin-top: 14px; padding: 18px 24px;
  background: var(--teal-wash); border: 1px solid var(--teal-edge); border-radius: 12px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.plan-note .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--on-accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.plan-note .icon svg { width: 16px; height: 16px; stroke-width: 2; }
.plan-note strong { color: var(--ink); font-weight: 600; }

/* ─────────── PORTFOLIO CAROUSEL (custom page) */
.portfolio-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 28px; }
.portfolio-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-white); color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.portfolio-note { font-size: 13.5px; color: var(--ink-mute); margin: 8px 0 38px; font-style: italic; }
.carousel-viewport { position: relative; margin: 0 -32px; }
.carousel-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 8px 32px 24px;
  scroll-padding-inline: 32px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.p-card {
  flex: 0 0 380px; scroll-snap-align: start;
  background: var(--bg-white); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px var(--shadow); }
.p-mockup { aspect-ratio: 16 / 10; background: var(--bg-cream); border-bottom: 1px solid var(--line); padding: 22px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.p-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.p-tag { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.p-tag.teal  { background: var(--teal-wash);  color: var(--teal); }
.p-tag.coral { background: var(--coral-wash); color: var(--coral-2); }
.p-tag.plum  { background: var(--plum-wash);  color: var(--plum); }
.p-tag.butter{ background: var(--butter-wash);color: var(--butter-ink); }
.p-num { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; }
.p-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.p-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); flex: 1; }

/* mini windows inside portfolio cards */
.mk-win { width: 100%; background: var(--bg-white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px -8px var(--shadow-2); }
.mk-chrome { height: 22px; background: var(--line-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.mk-chrome .mk-tab { height: 100%; display: flex; align-items: center; gap: 5px; padding: 0 9px; margin: 3px 0 0 6px; background: var(--bg-white); border-right: 1px solid var(--line); border-radius: 4px 4px 0 0; }
.mk-chrome .mk-tab-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.mk-chrome .mk-tab-label { height: 4px; width: 28px; background: var(--ink-soft); opacity: 0.5; border-radius: 1px; }
.mk-chrome .mk-ctrls { display: flex; margin-left: auto; height: 100%; align-items: center; padding-right: 6px; gap: 6px; }
.mk-chrome .mk-ctrl-line { width: 6px; height: 1px; background: var(--ink-mute); }
.mk-chrome .mk-ctrl-box { width: 6px; height: 6px; border: 1px solid var(--ink-mute); }
.mk-chrome .mk-ctrl-x { width: 8px; height: 8px; position: relative; }
.mk-chrome .mk-ctrl-x::before, .mk-chrome .mk-ctrl-x::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--ink-mute); }
.mk-chrome .mk-ctrl-x::before { transform: rotate(45deg); }
.mk-chrome .mk-ctrl-x::after { transform: rotate(-45deg); }
.mk-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mk-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.mk-stat-card { padding: 7px 8px; border-radius: 5px; border: 1px solid var(--line); }
.mk-stat-card .lbl { height: 4px; width: 70%; background: var(--ink-soft); border-radius: 1px; margin-bottom: 4px; opacity: 0.45; }
.mk-stat-card .val { height: 10px; border-radius: 1px; }
.mk-stat-card:nth-child(1) .val { background: var(--teal); width: 55%; }
.mk-stat-card:nth-child(2) .val { background: var(--coral); width: 70%; }
.mk-stat-card:nth-child(3) .val { background: var(--plum); width: 40%; }
.mk-chart { height: 60px; border: 1px solid var(--line); border-radius: 5px; padding: 4px; color: var(--teal); }
.mk-chart svg { width: 100%; height: 100%; display: block; }
.mk-cal-header { height: 12px; width: 45%; background: var(--ink); border-radius: 2px; opacity: 0.88; }
.mk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.mk-day { aspect-ratio: 1; background: var(--line-soft); border-radius: 3px; }
.mk-day.active { background: var(--teal); }
.mk-day.busy { background: var(--coral-wash); border: 1px solid var(--coral); }
.mk-day.today { background: var(--butter); }
.mk-day.scheduled { background: var(--plum-wash); border: 1px solid var(--plum); }
.mk-form { display: flex; flex-direction: column; gap: 7px; }
.mk-form-title { height: 11px; width: 55%; background: var(--ink); border-radius: 2px; opacity: 0.88; }
.mk-field { display: flex; flex-direction: column; gap: 3px; }
.mk-field .lbl { height: 4px; width: 30%; background: var(--ink-soft); opacity: 0.5; border-radius: 1px; }
.mk-field .input { height: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
.mk-field .input.filled { background: var(--teal-wash); border-color: var(--teal); }
.mk-field .input.textarea { height: 26px; }
.mk-submit-row { display: flex; justify-content: flex-end; margin-top: 2px; }
.mk-submit { height: 18px; width: 60px; background: var(--coral); border-radius: 4px; }
.mk-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-col { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.mk-col .col-hd { height: 6px; width: 60%; background: var(--ink-soft); opacity: 0.55; border-radius: 1px; margin-bottom: 2px; }
.mk-tkt { height: 16px; background: var(--bg-cream); border: 1px solid var(--line); border-left: 2px solid var(--teal); border-radius: 2px; }
.mk-col:nth-child(2) .mk-tkt:first-of-type { border-left-color: var(--coral); }
.mk-col:nth-child(3) .mk-tkt:first-of-type { border-left-color: var(--plum); }
.mk-list { display: flex; flex-direction: column; gap: 4px; }
.mk-list-title { height: 10px; width: 40%; background: var(--ink); opacity: 0.88; border-radius: 2px; margin-bottom: 4px; }
.mk-row-item { display: grid; grid-template-columns: 14px 1fr 36px; gap: 8px; align-items: center; padding: 6px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
.mk-row-item .av { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.mk-row-item:nth-child(3) .av { background: var(--coral); }
.mk-row-item:nth-child(4) .av { background: var(--plum); }
.mk-row-item:nth-child(5) .av { background: var(--butter-2); }
.mk-row-item .ln { height: 4px; background: var(--ink-soft); opacity: 0.5; border-radius: 1px; width: 75%; }
.mk-row-item .pill-sm { height: 10px; background: var(--teal-wash); border-radius: 999px; }
.mk-row-item:nth-child(3) .pill-sm { background: var(--coral-wash); }
.mk-row-item:nth-child(4) .pill-sm { background: var(--plum-wash); }
.mk-row-item:nth-child(5) .pill-sm { background: var(--butter-wash); }
.mk-invoice { display: flex; flex-direction: column; gap: 6px; }
.mk-inv-hd { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin-bottom: 4px; }
.mk-inv-hd .inv-title { height: 10px; background: var(--ink); opacity: 0.88; border-radius: 1px; }
.mk-inv-hd .inv-no { height: 6px; width: 40px; background: var(--ink-soft); opacity: 0.5; border-radius: 1px; }
.mk-inv-line { display: grid; grid-template-columns: 1fr 36px; gap: 8px; padding: 4px 6px; background: var(--bg); border-radius: 2px; }
.mk-inv-line .desc { height: 4px; background: var(--ink-soft); opacity: 0.45; border-radius: 1px; width: 70%; align-self: center; }
.mk-inv-line .amt { height: 6px; background: var(--teal); border-radius: 1px; align-self: center; }
.mk-inv-line:nth-child(3) .amt { background: var(--coral); }
.mk-inv-line:nth-child(4) .amt { background: var(--plum); }
.mk-inv-total { display: grid; grid-template-columns: 1fr 50px; gap: 8px; padding: 6px; background: var(--butter-wash); border: 1px solid var(--butter-2); border-radius: 3px; margin-top: 2px; }
.mk-inv-total .lbl { height: 6px; background: var(--ink); border-radius: 1px; width: 40%; align-self: center; opacity: 0.85; }
.mk-inv-total .val { height: 10px; background: var(--ink); border-radius: 1px; align-self: center; opacity: 0.9; }

/* ─────────── CTA BAND (subpages) */
.cta-band { padding: 88px 0; background: var(--bg-cream); text-align: center; }
.cta-band .h-section { max-width: 760px; margin: 0 auto; }
.cta-band .lead { margin: 18px auto 32px; }

/* ─────────── CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 70px; align-items: start; position: relative; z-index: 1; }
.contact-intro .big { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -0.022em; line-height: 1.05; margin-bottom: 22px; }
.contact-intro .big em { font-style: italic; color: var(--teal); }
.contact-intro p { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 28px; }

.contact-form { background: var(--bg-white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: 0 18px 48px -24px var(--shadow); }
.form-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.form-head h3 em { font-style: italic; color: var(--teal); }
.form-head p { font-size: 14px; color: var(--ink-mute); margin-bottom: 24px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.fg-row .fg { margin-bottom: 0; }
.fg label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.fg label .opt { color: var(--ink-mute); font-weight: 400; }
.fg input, .fg textarea {
  background-color: var(--bg); border: 1px solid var(--line);
  padding: 11px 14px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  outline: none; border-radius: 8px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--ink-soft); }
.fg input:focus, .fg textarea:focus { border-color: var(--teal); background-color: var(--bg-white); box-shadow: 0 0 0 3px var(--teal-wash); }
.fg textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dyx-select { position: relative; }
.dyx-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background-color: var(--bg); border: 1px solid var(--line);
  padding: 11px 14px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  border-radius: 8px; cursor: pointer; text-align: left; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.dyx-trigger:hover { border-color: var(--ink-soft); }
.dyx-trigger:focus-visible, .dyx-select.open .dyx-trigger { border-color: var(--teal); background-color: var(--bg-white); box-shadow: 0 0 0 3px var(--teal-wash); }
.dyx-value { flex: 1; }
.dyx-value.placeholder { color: var(--ink-soft); }
.dyx-arrow { width: 12px; height: 8px; flex-shrink: 0; color: var(--ink-2); transition: transform 0.2s; }
.dyx-select.open .dyx-arrow { transform: rotate(180deg); }
.dyx-options {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  list-style: none; padding: 6px;
  background: var(--bg-white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 42px -20px var(--shadow), 0 4px 12px -4px var(--shadow-2);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dyx-select.open .dyx-options { opacity: 1; transform: none; pointer-events: auto; }
.dyx-options li { padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); border-radius: 6px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.dyx-options li:hover, .dyx-options li.highlighted:not(.selected) { background: var(--teal-wash); color: var(--teal); }
.dyx-options li.selected { background: var(--teal); color: var(--on-accent); }

.form-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .fine { font-size: 12px; color: var(--ink-mute); }
.form-status { font-size: 13.5px; margin-top: 14px; min-height: 1em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--coral-2); }

/* ─────────── FOOTER */
footer.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-back { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; justify-self: start; }
.footer-back:hover { color: var(--teal); }
.footer-back svg { width: 14px; height: 14px; }
.footer-copy { font-size: 13px; color: var(--ink-mute); text-align: center; }
.footer-brand { justify-self: end; transition: opacity 0.2s; }
.footer-brand:hover { opacity: 0.8; }
.footer-brand img { height: 60px; width: auto; }

.theme-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-white); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 6px 16px var(--shadow-2);
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.theme-toggle svg { width: 16px; height: 16px; stroke-width: 1.7; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.06s; } .d-2 { transition-delay: 0.12s; } .d-3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .preview-cursor, .hero-logo-wrap, .hero-headline, .hero-lead { animation: none; }
}

/* ─────────── RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .carousel-viewport { margin: 0 -24px; }
  .carousel-track { padding: 8px 24px 24px; scroll-padding-inline: 24px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 76px; }
  .nav-brand img { height: calc(var(--nav-h) - 12px); }
  section, .cta-band { padding: 64px 0; }
  nav.site-nav { padding: 0 18px; }
  .shell { padding: 0 20px; }
  .nav-links, .nav-right .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 32px) 0 56px; }
  .hero-headline { font-size: 34px; }
  .hero-lead br, .lead br { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .fg-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .p-card { flex: 0 0 85%; }
  .carousel-viewport { margin: 0 -20px; }
  .carousel-track { padding: 8px 20px 24px; scroll-padding-inline: 20px; }
  .portfolio-head { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; justify-items: center; }
  .footer-back, .footer-copy, .footer-brand { justify-self: center; }
  .theme-toggle { width: 38px; height: 38px; right: 14px; bottom: 14px; }
}
