/* ============================================================
   Duet Ventures — design system v2
   Manrope (UI) + Source Serif 4 (editorial accents)
   ============================================================ */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-alt: #f2f0e9;
  --ink: #101c17;
  --ink-soft: #3d4a43;
  --muted: #67726c;
  --pine: #131110;
  --pine-2: #1b1815;
  --pine-3: #26211b;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-tint: #fbe8dc;
  --gold: #d9a441;
  --gold-deep: #b07f2c;
  --gold-tint: #f7ecd7;
  --border: #e6e3d8;
  --border-strong: #d5d1c2;
  --danger: #b3372e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 23, 0.05), 0 4px 14px -8px rgba(16, 28, 23, 0.1);
  --shadow-md: 0 2px 4px rgba(16, 28, 23, 0.04), 0 18px 36px -18px rgba(16, 28, 23, 0.22);
  --shadow-lg: 0 28px 56px -20px rgba(16, 28, 23, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* anchors land clear of the sticky header */
  scrollbar-color: #7a6a58 var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #7a6a58;
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
dl, dt, dd { margin: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; color: #fff; }

/* ---------- layout ---------- */

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }

.section-alt {
  background:
    radial-gradient(circle, rgba(16, 28, 23, 0.045) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--surface-alt);
}

.section-dark {
  background:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(217, 164, 65, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(194, 65, 12, 0.12), transparent 60%),
    var(--pine);
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.section-lead { font-size: 1.15rem; color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.section-head.center .kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.kicker-light { color: var(--gold); }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary::after,
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-gold:hover::after { left: 130%; }

.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover {
  background: #e6b458;
  color: var(--pine);
  box-shadow: 0 16px 32px -14px rgba(217, 164, 65, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.text-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
  display: inline-block;
}

.text-link:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -16px rgba(16, 28, 23, 0.2);
}

/* announcement top bar — collapses away once you scroll */

.header-topbar {
  background: var(--pine);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  max-height: 44px;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.site-header.is-scrolled .header-topbar { max-height: 0; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.topbar-contacts { display: flex; align-items: center; gap: 0.9rem; }

.topbar-contacts a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar-contacts a:hover { color: var(--gold); }

.topbar-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
  transition: padding 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner { padding-block: 0.55rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  transition: height 0.3s var(--ease), opacity 0.25s;
}

.brand:hover .brand-logo { opacity: 0.75; }

.site-header.is-scrolled .brand-logo { height: 38px; }

.footer-brand .brand-logo { height: 52px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--pine-2), var(--brand));
  color: var(--gold);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              width 0.3s var(--ease), height 0.3s var(--ease), font-size 0.3s var(--ease);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}


.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 1.8rem; }

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav ul a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4rem 0.1rem;
  position: relative;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}

.main-nav ul a:hover { color: var(--ink); }
.main-nav ul a:hover::after,
.main-nav ul a.is-active::after { left: 0; right: 0; }
.main-nav ul a.is-active { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-actions::before {
  content: "";
  width: 1px;
  height: 24px;
  background: var(--border-strong);
  margin-right: 0.3rem;
}

.nav-client {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.nav-client:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-tint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem 1.4rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav ul a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav ul a::after { display: none; }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 1.1rem;
  }

  .nav-actions::before { display: none; }
  .nav-client { text-align: center; }
  .nav-cta { text-align: center; }
}

@media (max-width: 640px) {
  .topbar-status { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ---------- dark hero ---------- */

.hero-dark {
  position: relative;
  background:
    radial-gradient(ellipse 55% 65% at 80% -10%, rgba(234, 88, 12, 0.38), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 110%, rgba(217, 164, 65, 0.12), transparent 55%),
    var(--pine);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.hero-dark h1 { color: #fff; max-width: 15ch; }
.hero-dark h1 em { color: var(--gold); }
.hero-dark .lead { color: rgba(255, 255, 255, 0.7); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1.5rem 3rem;
  margin-top: 2.5rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
}

@media (min-width: 560px) {
  .hero-stats { grid-template-columns: repeat(4, auto); }
}

.hero-stats .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
}

.hero-stats dd {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* hero visual — layered mockups */

.hero-visual {
  position: relative;
  min-height: 420px;
  display: none;
}

@media (min-width: 980px) {
  .hero-visual { display: block; }
}

.mock-browser {
  position: absolute;
  top: 0; left: 0;
  width: 74%;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(9deg) rotateX(3deg) rotate(-1deg);
  transition: transform 0.6s var(--ease);
}

.hero-visual:hover .mock-browser {
  transform: perspective(1400px) rotateY(5deg) rotateX(1.5deg) rotate(-1deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eef0ec;
  padding: 0.65rem 0.9rem;
}

.mock-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #cfd4cd;
}

.mock-bar span {
  margin-left: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8a938c;
  background: #fff;
  border-radius: 6px;
  padding: 0.15rem 0.9rem;
}

.mock-page { padding: 1.1rem 1.3rem 1.4rem; }

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.mock-logo {
  width: 64px; height: 10px;
  border-radius: 4px;
  background: var(--pine-2);
}

.mock-links { display: flex; gap: 8px; }

.mock-links i {
  width: 30px; height: 7px;
  border-radius: 4px;
  background: #dde1da;
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 1.3rem;
}

.mock-h1 {
  width: 75%; height: 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--pine-2), var(--brand));
}

.mock-h2 {
  width: 52%; height: 10px;
  border-radius: 5px;
  background: #e3e6e0;
}

.mock-btn {
  width: 92px; height: 26px;
  border-radius: 999px;
  background: var(--gold);
  margin-top: 0.35rem;
}

.mock-row { display: flex; gap: 10px; }

.mock-cover {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.mock-cover.c1 { background: linear-gradient(160deg, #2e5d4e, #14352b); }
.mock-cover.c2 { background: linear-gradient(160deg, #7a5637, #3a2a1a); }
.mock-cover.c3 { background: linear-gradient(160deg, #2b4a5c, #16262f); }

/* --- interactive 3D book --- */

.book3d-scene {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 230px;
  height: 340px;
  perspective: 1500px;
  --brx: 0deg; /* pointer-driven X rotation */
  --bry: 0deg; /* pointer-driven Y rotation */
}

.book3d {
  position: relative;
  width: 210px;
  height: 300px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateY(calc(-26deg + var(--bry))) rotateX(calc(4deg + var(--brx)));
  animation: book-bob 7s ease-in-out infinite;
  transition: transform 0.25s ease-out;
}

@keyframes book-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.b-face {
  position: absolute;
  border-radius: 3px 8px 8px 3px;
}

.b-front, .b-back {
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(217, 164, 65, 0.25), transparent 60%),
    linear-gradient(155deg, #2b241c 0%, #1b1815 55%, #131110 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.b-front {
  transform: translateZ(21px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.8rem 1.4rem;
  text-align: center;
}

.b-front::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: 2px 6px 6px 2px;
  pointer-events: none;
}

.b-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(217, 164, 65, 0.8);
}

.b-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #f3ead6;
}

.b-rule { width: 34px; height: 2px; background: var(--gold); }

.b-author {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.b-back {
  transform: rotateY(180deg) translateZ(21px);
  border-radius: 8px 3px 3px 8px;
}

.b-spine {
  width: 42px;
  height: 100%;
  left: 0;
  transform: translateX(-21px) rotateY(-90deg);
  background: linear-gradient(180deg, #242017, #14100c);
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-spine span {
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 164, 65, 0.75);
  white-space: nowrap;
}

.b-pages {
  width: 42px;
  height: calc(100% - 8px);
  top: 4px;
  right: 0;
  transform: translateX(21px) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f4efe2 0 2px, #ddd5c2 2px 3px);
  border-radius: 2px;
}

.book-shadow {
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 75%;
  height: 26px;
  translate: -50% 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.45), transparent 70%);
  animation: shadow-bob 7s ease-in-out infinite;
}

@keyframes shadow-bob {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

.float-chip {
  position: absolute;
  background: #fff;
  color: var(--pine-2);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-md);
  animation: chip-float 5s ease-in-out infinite;
}

.chip-1 { top: 8%; right: 2%; animation-delay: 0s; }
.chip-2 { bottom: 30%; left: -3%; animation-delay: -2.5s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* client strip */

.client-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 1.5rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.client-strip p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 18px -8px rgba(194, 65, 12, 0.5);
}

.marquee-track ul {
  display: flex;
  gap: 2.75rem;
  list-style: none;
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 1.375rem)); }
}

.client-strip li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  transition: color 0.3s;
}

.client-strip li:hover { color: var(--gold); }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(circle, rgba(19, 17, 16, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse 50% 80% at 85% 0%, var(--brand-tint), transparent 60%),
    linear-gradient(180deg, #f4f2ea 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .container { position: relative; z-index: 1; }

/* ---------- 3D gyroscope ornament ---------- */

.gyro3d {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 7vw, 7rem);
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  translate: 0 -50%;
  perspective: 800px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.gyro3d i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  opacity: 0.35;
  transform-style: preserve-3d;
}

.gyro3d i:nth-child(1) { animation: gyro-a 11s linear infinite; }

.gyro3d i:nth-child(2) {
  inset: 12%;
  border-color: var(--gold);
  opacity: 0.5;
  animation: gyro-b 8s linear infinite;
}

.gyro3d i:nth-child(3) {
  inset: 24%;
  border-style: dashed;
  animation: gyro-c 14s linear infinite;
}

.gyro3d b {
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6b458, var(--gold-deep));
  box-shadow: 0 6px 18px -4px rgba(217, 164, 65, 0.6);
  animation: gyro-pulse 3.5s ease-in-out infinite;
}

.gyro3d-dark i { border-color: rgba(255, 255, 255, 0.35); }
.gyro3d-dark i:nth-child(2) { border-color: var(--gold); }

@keyframes gyro-a { to { transform: rotate3d(1, 0.4, 0, 360deg); } }
@keyframes gyro-b { to { transform: rotate3d(0.2, 1, 0.3, -360deg); } }
@keyframes gyro-c { to { transform: rotate3d(0.6, -0.8, 0.2, 360deg); } }

@keyframes gyro-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.82); }
}

@media (max-width: 720px) {
  .gyro3d { display: none; }
}

.page-hero h1 { max-width: 21ch; }

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- cards ---------- */

.cards-2 { display: grid; gap: 1.75rem; }

@media (min-width: 780px) {
  .cards-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.cards-3 { display: grid; gap: 1.5rem; }

@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.service-card h3 { font-size: 1.45rem; margin: 0; }
.service-card > p { color: var(--muted); }

.check-list {
  list-style: none;
  margin: 0.4rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  padding-left: 1.8rem;
  position: relative;
  font-weight: 600;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.service-card .text-link { margin-top: auto; }

/* ---------- feature grid (services page) ---------- */

.feature-grid { display: grid; gap: 1.5rem; }

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* Gradient hairline that sweeps in along the top edge of cards on hover */
.feature-card, .insight-card, .work-card, .testimonial {
  position: relative;
  overflow: hidden;
}


.feature-card::after,
.price-card::after,
.insight-card::after,
.work-card::after,
.testimonial::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 4;
}

/* Price cards keep the flag overhanging the top edge, so the bar is inset instead */
.price-card::after {
  left: 18px;
  right: 18px;
  border-radius: 2px;
}

.feature-card:hover::after,
.price-card:hover::after,
.insight-card:hover::after,
.work-card:hover::after,
.testimonial:hover::after { transform: scaleX(1); }

.feature-card h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.feature-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- work ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn span {
  font-size: 0.78rem;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  color: var(--muted);
}

.filter-btn:hover { border-color: var(--brand); color: var(--brand); }

.filter-btn.is-active {
  background: var(--pine-2);
  border-color: var(--pine-2);
  color: #fff;
}

.filter-btn.is-active span {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.work-grid { display: grid; gap: 1.75rem; }

@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-feature-grid { display: grid; gap: 1.75rem; }

@media (min-width: 780px) {
  .work-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card-wide { grid-column: 1 / -1; }
  .work-card-wide .work-thumb { aspect-ratio: 21 / 8; }
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  color: inherit;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.work-card.is-hidden { display: none; }

.work-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  transition: transform 0.55s var(--ease);
}

.work-card:hover .work-thumb { transform: scale(1.045); }

.work-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 16, 12, 0.45));
}

.work-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.work-arrow {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pine-2);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-card:hover .work-arrow { opacity: 1; transform: translateY(0); }

.work-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.work-body h3 { margin: 0; font-size: 1.28rem; }
.work-body p { color: var(--muted); font-size: 0.97rem; flex: 1; }

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.work-year { font-size: 0.85rem; color: var(--muted); font-weight: 700; }

/* project art plates */

.art-north    { background: radial-gradient(circle at 75% 20%, #7fae9c, transparent 55%), linear-gradient(200deg, #2e5d4e, #14352b); }
.art-salt     { background: radial-gradient(circle at 25% 75%, #d99a63, transparent 55%), linear-gradient(150deg, #7a5637, #3a2a1a); }
.art-atelier  { background: repeating-linear-gradient(-15deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 24px), linear-gradient(160deg, #55483a, #2b241b); }
.art-tide     { background: radial-gradient(ellipse 80% 45% at 50% 100%, #8fb3c0, transparent 65%), linear-gradient(180deg, #2b4a5c, #16262f); }
.art-meridian { background: radial-gradient(circle at 80% 80%, #c3a15e, transparent 50%), linear-gradient(135deg, #43503e, #222a20); }
.art-field    { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px), linear-gradient(170deg, #4f5d68, #232b31); }

/* ---------- project detail ---------- */

.project-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.banner-wrap { perspective: 1400px; }

.project-banner {
  height: clamp(240px, 42vw, 440px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s;
}

.banner-wrap:hover .project-banner { box-shadow: var(--shadow-lg); }

.banner-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  transform: translateZ(50px);
}

.project-layout { display: grid; gap: 3rem; }

@media (min-width: 920px) {
  .project-layout { grid-template-columns: 1fr 330px; gap: 4rem; }
}

.project-main h2 { font-size: 1.55rem; margin-top: 2.25rem; }
.project-main h2:first-child { margin-top: 0; }
.project-main p { font-size: 1.12rem; }

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.results-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.project-side { display: flex; flex-direction: column; gap: 1.5rem; }

.side-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}

.side-block h3 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.side-cta {
  background: var(--pine-2);
  border-color: var(--pine-2);
  color: rgba(255, 255, 255, 0.75);
}

.side-cta h3 { color: var(--gold); }
.side-cta p { font-size: 0.95rem; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--muted);
}

.project-nav-link strong {
  color: var(--ink);
  font-size: 1.15rem;
  transition: color 0.25s;
}

.project-nav-link:hover strong { color: var(--brand); }
.align-right { text-align: right; margin-left: auto; }

/* ---------- process ---------- */

.process-line {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  position: relative;
}

@media (min-width: 880px) {
  .process-line { grid-template-columns: repeat(4, 1fr); }

  .process-line::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 6%; right: 6%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  }
}

@media (min-width: 560px) and (max-width: 879px) {
  .process-line { grid-template-columns: 1fr 1fr; }
}

.process-step { position: relative; padding-top: 0.4rem; }

.step-num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--pine-2);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 0 6px var(--bg);
}

.section-alt .step-num { box-shadow: 0 0 0 6px var(--surface-alt); }

.process-step h3 { font-size: 1.22rem; }
.process-step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-featured {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 164, 65, 0.16), transparent 60%),
    var(--pine-2);
  border-color: var(--pine-2);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 920px) {
  .price-featured { transform: scale(1.03); }
  .price-featured:hover { transform: scale(1.03) translateY(-6px); }
}

.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  background: var(--gold);
  color: var(--pine);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.price-featured h3 { color: #fff; }

.price-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.price-featured .price-value { color: var(--gold); }

.price-period {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.price-featured .price-period { color: rgba(255, 255, 255, 0.55); }

.price-desc {
  font-size: 0.98rem;
  color: var(--muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.price-featured .price-desc {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.price-card .check-list { flex: 1; margin-bottom: 1.75rem; }
.price-featured .check-list li { color: rgba(255, 255, 255, 0.82); }

.price-featured .check-list li::before {
  background: rgba(217, 164, 65, 0.18);
  color: var(--gold);
}

.price-featured .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ---------- testimonials ---------- */

.testimonial {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem 2rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.6rem;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

.testimonial p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.testimonial footer > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.testimonial footer strong { color: var(--ink); font-size: 0.98rem; }
.testimonial footer span span { font-size: 0.88rem; color: var(--muted); }

.avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pine-2), var(--brand));
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

/* ---------- stats ---------- */

.stats-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 760px) {
  .stats-inline { grid-template-columns: repeat(4, 1fr); }
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  margin-bottom: 0.7rem;
}

.stat .stat-value {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-dark .stat .stat-value { color: var(--gold); }

.stat-label {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.section-dark .stat-label { color: rgba(255, 255, 255, 0.6); }

/* ---------- team ---------- */

.team-grid { display: grid; gap: 1.5rem; }

@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

/* 3D flip cards */

.team-card {
  perspective: 1200px;
  min-height: 300px;
  outline: none;
}

.team-flip {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.team-card:hover .team-flip,
.team-card:focus-visible .team-flip,
.team-card.is-flipped .team-flip { transform: rotateY(180deg); }

.team-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-front { background: var(--surface); }

.team-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 164, 65, 0.14), transparent 60%),
    var(--pine-2);
  border-color: var(--pine-2);
  color: rgba(255, 255, 255, 0.82);
}

.team-back .team-bio { color: rgba(255, 255, 255, 0.82); }

.flip-hint {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-back .flip-hint { color: var(--gold); margin-top: 1.25rem; }

.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.15rem;
  background: linear-gradient(145deg, var(--pine-2), var(--brand));
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  box-shadow: 0 0 0 5px var(--brand-tint);
}

.team-card h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }

.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0;
}

.team-bio { font-size: 0.96rem; color: var(--muted); }

/* ---------- insights ---------- */

.insights-grid { display: grid; gap: 1.5rem; }

@media (min-width: 880px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-lead { grid-column: 1 / -1; }
  .insight-lead h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: inherit;
}

.insight-card h2, .insight-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }

.insight-card:hover h2, .insight-card:hover h3 { color: var(--brand); }

.insight-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.insight-meta span { color: var(--gold-deep); font-weight: 800; }

.insight-excerpt { color: var(--muted); font-size: 0.98rem; flex: 1; }

/* ---------- article ---------- */

.article-measure { max-width: 720px; }

.article-byline { font-size: 0.92rem; color: var(--muted); font-weight: 600; }

.article-body a {
  font-weight: 600;
  background-image: linear-gradient(90deg, var(--brand), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1.5px;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 2px;
}

.article-body a:hover { background-size: 100% 34%; color: var(--brand-dark); }

.article-body p {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
}

.article-cta {
  margin-top: 3rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

.article-cta h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.article-cta p { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- about ---------- */

.story-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 940px) {
  .story-layout { grid-template-columns: 1.15fr 0.85fr; gap: 4.5rem; }
}

.story-copy p { font-size: 1.1rem; margin-bottom: 1.2em; }

.story-copy .story-first::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.3em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--brand);
}

.founder-card {
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(217, 164, 65, 0.16), transparent 60%),
    var(--pine-2);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2rem;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 940px) {
  .founder-card { position: sticky; top: 6rem; }
}

.founder-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: #f3ead6;
  margin-bottom: 1.75rem;
}

.founder-quote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.founder-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.founder-id strong { display: block; color: #fff; }
.founder-id span span { font-size: 0.88rem; }

.founder-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.4rem;
}

.founder-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.founder-stats span { font-size: 0.82rem; }

/* value cards */

.value-grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.value-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* comparison table */

.compare {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1.2fr 1.2fr; }
}

.compare > div {
  padding: 1rem 1.4rem;
  font-size: 0.97rem;
  border-bottom: 1px solid var(--border);
}

.compare-head {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-alt);
}

.compare-head.compare-us { color: var(--brand); background: var(--brand-tint); }
.compare-head.compare-them { color: var(--muted); }

.compare-aspect {
  font-weight: 800;
  color: var(--ink);
}

.compare-us span { color: var(--brand); font-weight: 800; margin-right: 0.3rem; }
.compare-them { color: var(--muted); }
.compare-them span { color: var(--danger); font-weight: 800; margin-right: 0.3rem; }

@media (max-width: 759px) {
  .compare-head.compare-aspect { display: none; }
  .compare-aspect { background: var(--surface-alt); }
}

.chip-row.center { justify-content: center; margin-top: 2.25rem; }

/* ---------- faq ---------- */

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: rotate 0.3s var(--ease);
}

.faq-item[open] summary::after { rotate: 45deg; }

.faq-item p { padding: 0 1.5rem 1.35rem; color: var(--muted); }

/* ---------- contact ---------- */

.contact-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 920px) {
  .contact-layout { grid-template-columns: 1fr 330px; gap: 4rem; }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-card-head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.form-card-head h2 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.form-card-head p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.form-card-head .req { color: var(--brand); font-weight: 800; }

.success-steps { margin: 0.75rem 0 1rem; }
.success-steps li { color: inherit; }
.success-steps strong { color: inherit; }

.side-quote {
  margin: 0;
  background: var(--gold-tint);
  border: 1px solid #ecd9b4;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.side-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.side-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.side-guarantee .check-list { margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-row { display: grid; gap: 1.4rem; }

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }

.form-field label { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.form-field label span[aria-hidden] { color: var(--brand); }
.form-field .optional { font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 150px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger); }

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

.form-note { font-size: 0.88rem; color: var(--muted); }
.contact-form .btn { align-self: flex-start; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.75rem;
}

.alert h2 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.alert p { margin: 0; }

.alert-success {
  background: var(--brand-tint);
  border: 1px solid #f2d4bd;
  color: var(--brand-dark);
}

.alert-success h2 { color: var(--brand-dark); }

.alert-error {
  background: #faebe9;
  border: 1px solid #e7c4c0;
  color: #8c2b23;
  font-weight: 600;
}

.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }

.side-link {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.side-note { font-size: 0.9rem; color: var(--muted); margin: 0.4rem 0 0; }

.mini-steps {
  list-style: none;
  counter-reset: mini;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mini-steps li {
  counter-increment: mini;
  padding-left: 2.3rem;
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
}

.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  left: 0; top: 0.1em;
  width: 1.55rem; height: 1.55rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 90% 0%, rgba(217, 164, 65, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 90% at 5% 100%, rgba(194, 65, 12, 0.18), transparent 60%),
    linear-gradient(120deg, var(--pine), var(--pine-3));
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band .gyro3d {
  right: auto;
  left: 50%;
  translate: -50% -50%;
  opacity: 0.45;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p:last-child { color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 52ch; }

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.cta-mail {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-mail:hover { color: var(--gold); }

/* ---------- footer ---------- */

.site-footer {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(217, 164, 65, 0.05), transparent 65%),
    #0e0c0a;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 0 1.5rem;
}

.footer-top {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-news { max-width: 560px; }

.footer-news h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.footer-news p { font-size: 0.98rem; }

.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.news-form input {
  flex: 1;
  min-width: 220px;
  font-family: var(--sans);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  transition: border-color 0.25s;
}

.news-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.news-form input:focus { outline: none; border-color: var(--gold); }

.news-success {
  margin-top: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2.5rem;
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; }

.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, 0.45); }

.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col h3 {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.97rem;
  width: fit-content;
  transition: color 0.25s;
}

.footer-col a:hover { color: #fff; }

.footer-note { font-size: 0.88rem; margin: 0.3rem 0 0; }

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.footer-social a:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.4rem;
  font-size: 0.88rem;
}

.footer-base p { margin: 0; }

/* ---------- services page ---------- */

.svc-jump {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  max-width: 780px;
}

@media (min-width: 640px) { .svc-jump { grid-template-columns: 1fr 1fr; } }

.svc-jump-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.svc-jump-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  color: inherit;
}

.svc-jump-card .service-icon { margin: 0; flex-shrink: 0; }

.svc-jump-body { display: flex; flex-direction: column; line-height: 1.4; flex: 1; }
.svc-jump-body strong { color: var(--ink); font-size: 1.02rem; }
.svc-jump-body span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.svc-jump-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}

.svc-jump-card:hover .svc-jump-arrow { transform: translateY(3px); }

.svc-section { scroll-margin-top: 5rem; }

.svc-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 960px) {
  .svc-layout { grid-template-columns: 380px 1fr; gap: 4.5rem; }
  .svc-summary { position: sticky; top: 6rem; }
}

.svc-summary { position: relative; }

.svc-index {
  position: absolute;
  top: -1.5rem;
  right: 0;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  line-height: 1;
  pointer-events: none;
}

.svc-summary h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1rem; }
.svc-summary > p { color: var(--muted); }

.svc-meta {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--border);
}

.svc-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.svc-meta dt { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.svc-meta dd { font-size: 0.92rem; font-weight: 800; color: var(--ink); text-align: right; }

.svc-case {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.svc-case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

.svc-case-art {
  width: 64px; height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
}

.svc-case em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.svc-case strong { display: block; color: var(--ink); font-size: 1rem; }
.svc-case-metric { font-size: 0.85rem; color: var(--brand); font-weight: 700; }

.svc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.svc-features li {
  display: flex;
  gap: 1.4rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}

.svc-features li:first-child { border-top: 1px solid var(--border); }

.svc-features li:hover {
  background: linear-gradient(90deg, var(--brand-tint), transparent 70%);
  padding-left: 1.1rem;
}

.svc-feature-num {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-deep);
  padding-top: 0.3rem;
}

.svc-features h3 { font-size: 1.22rem; margin-bottom: 0.3rem; }
.svc-features p { color: var(--muted); font-size: 0.99rem; max-width: 52ch; }

.svc-deliverables {
  margin-top: 2rem;
  background: var(--brand-tint);
  border: 1px solid #f0d3ba;
  border-radius: var(--radius);
  padding: 1.75rem 1.9rem;
}

.section-alt .svc-deliverables { background: #fff; }

.svc-deliverables h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.svc-deliverables .check-list { margin: 0; }

/* add-ons */

.addon-grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) { .addon-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }

.addon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.addon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.addon-head h3 { font-size: 1.08rem; margin: 0; }

.addon-price {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.addon-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ---------- guarantees strip ---------- */

.guarantee-grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) { .guarantee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guarantee-grid { grid-template-columns: repeat(4, 1fr); } }

.guarantee {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}

.guarantee-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.guarantee h3 { font-size: 1.05rem; margin: 0; }
.guarantee p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- metric cards (project pages) ---------- */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}

@media (max-width: 620px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(217, 164, 65, 0.12), transparent 60%),
    var(--pine-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-align: center;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1.1;
}

.metric-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

/* metric chip on work cards */

.work-metric {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  background: rgba(23, 19, 15, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
}

.work-metric strong { color: var(--gold); font-size: 1.1rem; font-weight: 800; }
.work-metric span { color: rgba(255, 255, 255, 0.75); font-size: 0.72rem; font-weight: 600; }

/* ---------- deliverable chips (services) ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.chip {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid #f0d3ba;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

.chip-gold {
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-color: #ecd9b4;
}

/* ---------- timeline (about) ---------- */

.timeline {
  list-style: none;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--brand) 60%, var(--border-strong));
}

.timeline li { position: relative; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.timeline li:last-child::before { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }

.timeline-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.5rem;
}

.timeline h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.timeline p { color: var(--muted); font-size: 1rem; max-width: 56ch; }

/* ---------- article extras ---------- */

.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--brand);
}

.article-body h2 {
  position: relative;
  padding-top: 1.1rem;
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--brand));
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.author-box .avatar { width: 54px; height: 54px; font-size: 1.35rem; }
.author-box strong { display: block; color: var(--ink); }
.author-box span { font-size: 0.9rem; color: var(--muted); }

/* newsletter card inside insights grid */

.insight-news {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(217, 164, 65, 0.16), transparent 60%),
    var(--pine-2);
  border-radius: var(--radius);
  padding: 2rem;
  color: rgba(255, 255, 255, 0.75);
}

.insight-news h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.insight-news p { font-size: 0.95rem; margin: 0; }

/* ---------- contact person card ---------- */

.person-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(217, 164, 65, 0.14), transparent 60%),
    var(--pine-2);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.person-card .avatar { width: 56px; height: 56px; font-size: 1.3rem; flex-shrink: 0; }
.person-card strong { display: block; color: #fff; font-size: 1.02rem; }
.person-card span { font-size: 0.85rem; }
.person-card em { display: block; font-style: italic; font-family: var(--serif); color: var(--gold); font-size: 0.92rem; margin-top: 0.25rem; }

/* ---------- 3D tilt cards ---------- */

.has-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.has-tilt .tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.has-tilt:hover .tilt-glare { opacity: 1; }

/* ---------- client portal ---------- */

.btn-sm { font-size: 0.84rem; padding: 0.5rem 1.1rem; }

.auth-layout { max-width: 640px; }

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.portal-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-nav a:hover { border-color: var(--brand); color: var(--brand); }
.portal-nav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.portal-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.portal-logout { margin-left: auto; }

.portal-logout button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.portal-logout button:hover { color: var(--brand); }

.portal-flash { margin-bottom: 1.5rem; }

.verify-note {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.verify-note a { font-weight: 800; margin-left: 0.4rem; }

.panel-lite {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.panel-lite > h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.table-wrap { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-lead        { background: #f5f5f4; color: #57534e; }
.status-proposal    { background: #fef3c7; color: #92400e; }
.status-in_progress { background: var(--brand-tint); color: var(--brand-dark); }
.status-review      { background: #ede9fe; color: #5b21b6; }
.status-delivered   { background: #dcfce7; color: #166534; }
.status-closed      { background: #e7e5e4; color: #78716c; }

.pill-i-sent      { background: #eef2ff; color: #4338ca; }
.pill-i-paid      { background: #dcfce7; color: #166534; }
.pill-i-overdue   { background: #fee2e2; color: #b91c1c; }
.pill-i-cancelled { background: #e7e5e4; color: #78716c; }

.progress-track {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .progress-track { grid-template-columns: repeat(6, 1fr); }
}

.progress-track li {
  counter-increment: step;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.9rem;
  position: relative;
  border-top: 3px solid var(--border);
}

.progress-track li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  margin-right: 0.45rem;
}

.progress-track li.is-done { border-top-color: var(--gold); color: var(--ink-soft); }
.progress-track li.is-done::before { background: var(--gold); color: var(--pine); content: "✓"; }
.progress-track li.is-current { border-top-color: var(--brand); color: var(--ink); }
.progress-track li.is-current::before { background: var(--brand); color: #fff; }

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.detail-list dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-list dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--ink); }

.msg-preview-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.msg-preview-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.msg-who { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.msg-who.is-studio { color: var(--brand); }
.msg-snippet { flex: 1; min-width: 200px; color: var(--ink-soft); }
.msg-when { font-size: 0.8rem; color: var(--muted); }

.thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }

.msg { max-width: 78%; }
.msg-mine { align-self: flex-end; text-align: right; }
.msg-studio { align-self: flex-start; }

.msg-bubble {
  display: inline-block;
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.msg-mine .msg-bubble { background: var(--ink); color: rgba(255, 255, 255, 0.92); border-bottom-right-radius: 4px; }
.msg-studio .msg-bubble { background: var(--brand-tint); color: var(--ink); border-bottom-left-radius: 4px; }

.msg-meta { font-size: 0.76rem; color: var(--muted); margin-top: 0.3rem; }

.thread-form { border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ---------- polish: progress bar, back-to-top, 404 ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 250;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 5.6rem;
  z-index: 240;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.3s;
}

.back-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover { background: var(--brand); color: #fff; }

/* ---------- visitor live chat ---------- */

.dv-chat {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 9999;
  font-family: var(--sans);
}

.dv-chat-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.3rem 0.95rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 16px 40px -12px rgba(194, 65, 12, 0.55);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}

.dv-chat-launch:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 20px 44px -12px rgba(194, 65, 12, 0.6);
}

.dv-chat.is-open .dv-chat-launch {
  background: var(--pine);
  box-shadow: 0 12px 28px -14px rgba(19, 17, 16, 0.5);
}

.dv-chat-launch-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  line-height: 0;
}

.dv-chat-launch-icon svg { display: block; }

.dv-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--pine);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}

.dv-chat-badge[hidden] { display: none !important; }

.dv-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7.5rem));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}

.dv-chat.is-open .dv-chat-panel:not([hidden]) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dv-chat-panel[hidden] { display: none !important; }

.dv-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 1rem 1.05rem;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(217, 164, 65, 0.22), transparent 55%),
    linear-gradient(160deg, var(--pine-2), var(--pine));
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dv-chat-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dv-chat-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pine-3), var(--brand));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dv-chat-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.dv-chat-brand strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dv-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.dv-chat-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: chat-pulse 2.4s ease-out infinite;
}

@keyframes chat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.dv-chat-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.dv-chat-close:hover { background: rgba(255, 255, 255, 0.16); }

.dv-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, var(--brand-tint), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 100%, var(--gold-tint), transparent 55%),
    var(--surface-alt);
}

.dv-chat-welcome {
  margin: auto;
  max-width: 26ch;
  text-align: center;
  padding: 0.5rem 0.25rem 1rem;
}

.dv-chat-welcome[hidden] { display: none !important; }

.dv-chat-welcome-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.dv-chat-welcome-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dv-chat-welcome-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.dv-chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: 92%;
  animation: chat-in 0.28s var(--ease) both;
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.dv-chat-bubble.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.dv-chat-bubble.is-studio { align-self: flex-start; }

.dv-chat-bubble-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pine-2), var(--brand));
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 600;
}

.dv-chat-bubble-body {
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dv-chat-bubble-body p { margin: 0; }
.dv-chat-bubble-body time {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.dv-chat-bubble.is-mine .dv-chat-bubble-body {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.94);
  border-bottom-right-radius: 5px;
}

.dv-chat-bubble.is-studio .dv-chat-bubble-body {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.dv-chat-form {
  border-top: 1px solid var(--border);
  padding: 0.9rem;
  background: var(--surface);
  display: grid;
  gap: 0.65rem;
}

.dv-chat-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
  background: #fef2f2;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.dv-chat-error[hidden] { display: none !important; }

.dv-chat-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dv-chat-intro[hidden] { display: none !important; }

.dv-chat-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.dv-chat-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dv-chat-field small {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}

.dv-chat-field input,
.dv-chat-compose textarea {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.dv-chat-field input:focus,
.dv-chat-compose textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.dv-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.dv-chat-compose textarea {
  resize: none;
  min-height: 48px;
  max-height: 110px;
  line-height: 1.45;
  padding-top: 0.75rem;
}

.dv-chat-compose button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s;
  box-shadow: 0 8px 18px -10px rgba(194, 65, 12, 0.7);
}

.dv-chat-compose button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.dv-chat-compose button:disabled { opacity: 0.5; cursor: wait; transform: none; }

@media (max-width: 520px) {
  .dv-chat { right: 0.85rem; bottom: 0.85rem; }
  .back-to-top { bottom: 5.2rem; right: 0.85rem; }
  .dv-chat-launch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .dv-chat-launch {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .dv-chat-launch-icon { width: 60px; height: 60px; background: transparent; }
  .dv-chat-intro { grid-template-columns: 1fr; }
  .dv-chat-panel {
    position: fixed;
    inset: auto 0.5rem 0.5rem 0.5rem;
    width: auto;
    height: min(72vh, 580px);
    bottom: 0.5rem;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dv-chat-launch,
  .dv-chat-panel,
  .dv-chat-bubble,
  .dv-chat-compose button { transition: none; animation: none; }
  .dv-chat-status i { animation: none; }
}
.back-to-top svg { width: 18px; height: 18px; }

.grid-3 { display: grid; gap: 1.5rem; }

@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

a.feature-card { display: block; color: inherit; }

.card-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

a.feature-card:hover .card-more { transform: translateX(4px); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: perspective(900px) translateY(28px) rotateX(7deg);
  transform-origin: center 80%;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .book3d, .book-shadow,
  .gyro3d i, .gyro3d b { animation: none; }
  .hero-canvas { display: none; }

  .team-flip { transition: none; }
  .project-banner { transition: none; }

  .btn, .work-card, .service-card, .feature-card, .price-card,
  .team-card, .insight-card, .testimonial,
  .work-thumb, .brand-mark { transition: none; }

  .scroll-progress { display: none; }
  .back-to-top { transition: none; }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track ul { flex-wrap: wrap; }
  .marquee-track ul[aria-hidden] { display: none; }

  .btn-primary::after, .btn-gold::after { display: none; }
}
