/* =========================================================
   TRUE LAW DIGITAL — Design Tokens
========================================================= */
:root{
  /* Ink / dark surfaces */
  --ink:            #100e0a;
  --ink-soft:       #17130d;
  --ink-elev:       #201a11;
  --ink-line:       rgba(247,242,230,0.12);
  --ink-line-soft:  rgba(247,242,230,0.07);

  /* Cream / light surfaces */
  --cream:          #faf7f0;
  --paper:          #f2ecdd;
  --paper-2:        #ece4d0;
  --cream-line:     rgba(16,14,10,0.10);
  --cream-line-soft:rgba(16,14,10,0.06);

  /* Gold */
  --gold-100: #f4dda3;
  --gold-300: #e6bd6c;
  --gold-500: #cc9a41;
  --gold-700: #a1741f;
  --gold-900: #6e4c15;
  --gold-grad: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-300) 32%, var(--gold-500) 60%, var(--gold-900) 100%);
  --gold-grad-soft: linear-gradient(135deg, var(--gold-300), var(--gold-700));

  /* Text */
  --text-on-dark:     #f8f3e6;
  --text-on-dark-70:  rgba(248,243,230,0.70);
  --text-on-dark-45:  rgba(248,243,230,0.45);
  --text-on-light:    #17140d;
  --text-on-light-62: rgba(23,20,13,0.64);
  --text-on-light-40: rgba(23,20,13,0.42);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-out-quart: cubic-bezier(.25,1,.5,1);
  --ease-io-expo: cubic-bezier(.87,0,.13,1);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --shadow-gold-l: 0 40px 90px -30px rgba(108,70,15,0.55), 0 12px 30px -12px rgba(16,14,10,0.45);
  --shadow-card: 0 2px 4px rgba(16,14,10,0.04), 0 20px 40px -24px rgba(16,14,10,0.18);
}

/* =========================================================
   Reset
========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote{ margin: 0; }
ul{ list-style: none; margin: 0; padding: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea{ font: inherit; }
svg{ display: block; }

body{
  background: var(--cream);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{ background: var(--gold-500); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Type Utilities
========================================================= */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-grad);
  flex: none;
}
.on-dark .eyebrow{ color: var(--gold-300); }

.h-display{
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
}
.h-xl{ font-size: clamp(44px, 6.6vw, 104px); }
.h-lg{ font-size: clamp(34px, 4.4vw, 64px); }
.h-md{ font-size: clamp(26px, 3vw, 42px); }

.gold-italic{
  font-style: italic;
  font-weight: 400;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede{
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  color: var(--text-on-light-62);
  max-width: 46ch;
}
.on-dark .lede{ color: var(--text-on-dark-70); }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section{ position: relative; padding: clamp(72px, 10vw, 148px) 0; }
.section-tight{ padding: clamp(48px, 6vw, 88px) 0; }
.on-dark{ background: var(--ink); color: var(--text-on-dark); }
.on-paper{ background: var(--paper); }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 76px);
}
.section-head .lede{ margin: 0; }
.section-head-stack{ max-width: 720px; }
.section-head-stack .eyebrow{ margin-bottom: 18px; }
.section-head-stack h2{ margin-bottom: 18px; }
@media (max-width: 700px){
  .section-head{ flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Reveal-on-scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > *{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
[data-reveal-stagger].is-visible > *{ opacity: 1; transform: translateY(0); }

/* Grain overlay for dark sections */
.grain{
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 17px 30px;
  border-radius: 999px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), background 0.4s var(--ease-out-quart);
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; transition: transform 0.4s var(--ease-out-expo); }
.btn:hover svg{ transform: translateX(4px); }

.btn-gold{
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(108,70,15,0.55);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(108,70,15,0.65); }
.btn-gold:active{ transform: translateY(0px) scale(0.98); }

.btn-ghost-dark{
  color: var(--text-on-dark);
  border: 1px solid var(--ink-line);
  background: rgba(247,242,230,0.03);
}
.btn-ghost-dark:hover{ background: rgba(247,242,230,0.08); border-color: rgba(247,242,230,0.24); transform: translateY(-2px); }

.btn-text{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-on-dark-70);
  border-bottom: 1px solid rgba(247,242,230,0.28);
  padding: 4px 0;
  border-radius: 0;
  gap: 8px;
}
.btn-text:hover{ color: var(--text-on-dark); border-color: var(--gold-300); }

.btn-line{
  color: var(--text-on-light);
  border-bottom: 1px solid var(--cream-line);
  padding: 4px 2px;
  border-radius: 0;
  font-size: 14.5px;
}
.btn-line:hover{ border-color: var(--gold-500); color: var(--gold-700); }

/* =========================================================
   Header
========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 22px 0;
  transition: padding 0.5s var(--ease-out-quart), background 0.5s var(--ease-out-quart), box-shadow 0.5s var(--ease-out-quart), border-color 0.5s var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled{
  padding: 14px 0;
  background: rgba(250,247,240,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--cream-line);
  box-shadow: 0 12px 30px -20px rgba(16,14,10,0.25);
}

.brand{ display: block; }
.brand img{ height: 34px; width: auto; transition: opacity 0.3s ease; }
.brand .logo-light{ display: block; }
.brand .logo-dark{ display: none; }
.site-header.is-scrolled .brand .logo-light{ display: none; }
.site-header.is-scrolled .brand .logo-dark{ display: block; }

.nav-primary{ display: flex; align-items: center; gap: 40px; }
.nav-links{ display: flex; align-items: center; gap: 34px; }
.nav-links a{
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-on-dark-70);
  padding: 6px 0;
  transition: color 0.35s ease;
}
.site-header.is-scrolled .nav-links a{ color: var(--text-on-light-62); }
.nav-links a::after{
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-quart);
}
.nav-links a:hover{ color: var(--text-on-dark); }
.site-header.is-scrolled .nav-links a:hover{ color: var(--text-on-light); }
.nav-links a:hover::after{ transform: scaleX(1); transform-origin: left; }

.header-cta{ display: flex; align-items: center; gap: 22px; }
.header-cta .btn-gold{ padding: 13px 26px; font-size: 14px; }

/* "Let's Talk" — a lighter secondary CTA next to Start Your Project.
   Same text-link language as .btn-text, plus the header's own adaptive
   light/dark color swap (mirrors .nav-links a) since the header itself
   transitions between a transparent-dark and a scrolled-light state. */
.header-lets-talk{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-70);
  border-bottom: 1px solid rgba(247,242,230,0.28);
  padding-bottom: 3px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.header-lets-talk svg{ width: 14px; height: 14px; transition: transform 0.4s var(--ease-out-expo); }
.header-lets-talk:hover{ color: var(--text-on-dark); border-color: var(--gold-300); }
.header-lets-talk:hover svg{ transform: translateX(3px); }
.site-header.is-scrolled .header-lets-talk{ color: var(--text-on-light-62); border-color: var(--cream-line); }
.site-header.is-scrolled .header-lets-talk:hover{ color: var(--gold-700); border-color: var(--gold-500); }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  flex: none;
  position: relative;
  z-index: 210;
}
.site-header.is-scrolled .nav-toggle{ border-color: var(--cream-line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text-on-dark);
  position: relative;
  transition: transform 0.4s var(--ease-io-expo), opacity 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span, .site-header.is-scrolled .nav-toggle span::before, .site-header.is-scrolled .nav-toggle span::after{ background: var(--text-on-light); }
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.menu-open .nav-toggle span{ background: transparent; }
.menu-open .nav-toggle span::before{ top: 0; transform: rotate(45deg); background: var(--text-on-dark); }
.menu-open .nav-toggle span::after{ top: 0; transform: rotate(-45deg); background: var(--text-on-dark); }

.mobile-menu{
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-quart), visibility 0.5s;
}
.menu-open .mobile-menu{ opacity: 1; visibility: visible; }
.mobile-menu .grain{ opacity: 0.05; }
.mobile-menu-links{ display: flex; flex-direction: column; gap: 6px; position: relative; }
.mobile-menu-links a{
  font-family: var(--font-display);
  font-size: clamp(34px, 11vw, 56px);
  color: var(--text-on-dark);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart), color 0.3s ease;
}
.menu-open .mobile-menu-links a{ opacity: 1; transform: translateY(0); }
.mobile-menu-links a:hover{ color: var(--gold-300); }
.mobile-menu-links a:nth-child(1){ transition-delay: 0.08s; }
.mobile-menu-links a:nth-child(2){ transition-delay: 0.14s; }
.mobile-menu-links a:nth-child(3){ transition-delay: 0.2s; }
.mobile-menu-links a:nth-child(4){ transition-delay: 0.26s; }
.mobile-menu-links a:nth-child(5){ transition-delay: 0.32s; }
.mobile-menu-foot{
  margin-top: 44px;
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-quart) 0.38s, transform 0.6s var(--ease-out-quart) 0.38s;
  position: relative;
}
.menu-open .mobile-menu-foot{ opacity: 1; transform: translateY(0); }

@media (max-width: 1180px){
  .nav-primary{ display: none; }
  .nav-toggle{ display: inline-flex; }
}

/* =========================================================
   Hero
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 64px;
}
.hero::before{
  content: "";
  position: absolute;
  top: -20%; right: -12%;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(204,154,65,0.30) 0%, rgba(204,154,65,0.10) 42%, rgba(204,154,65,0) 70%);
  pointer-events: none;
}
.hero::after{
  content: "";
  position: absolute;
  left: -10%; bottom: -20%;
  width: 40vw; height: 40vw;
  max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(204,154,65,0.14) 0%, rgba(204,154,65,0) 70%);
  pointer-events: none;
}
.hero-grid-lines{
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line-soft) 1px, transparent 1px);
  background-size: 100% 84px, 84px 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0) 75%);
  pointer-events: none;
}
.hero .container{ position: relative; z-index: 2; }
.hero-inner{
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy .eyebrow{ margin-bottom: 26px; }
.hero-copy h1{ margin-bottom: 26px; text-wrap: balance; }
.hero-copy .lede{ margin-bottom: 40px; max-width: 42ch; }
.hero-cta-row{ display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.hero-visual{ position: relative; }
.mockup-wrap{
  position: relative;
  perspective: 1600px;
}
.mockup{
  position: relative;
  border-radius: var(--radius-m);
  background: var(--ink-elev);
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-gold-l);
  transform: rotateY(-9deg) rotateX(4deg) rotate(-1.2deg);
  transition: transform 0.6s var(--ease-out-quart);
  will-change: transform;
  overflow: hidden;
}
.mockup-bar{
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(247,242,230,0.02);
}
.mockup-bar .dot{ width: 8px; height: 8px; border-radius: 50%; background: rgba(247,242,230,0.18); }
.mockup-url{
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-on-dark-45);
  background: rgba(247,242,230,0.05);
  border: 1px solid var(--ink-line-soft);
  padding: 5px 12px;
  border-radius: 999px;
  flex: 1;
  letter-spacing: 0.02em;
}
.mockup-frame{ position: relative; overflow: hidden; aspect-ratio: 890/560; }
.mockup-frame img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.float-card{
  position: absolute;
  background: rgba(250,247,240,0.94);
  color: var(--text-on-light);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.float-card .num{ font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold-700); line-height: 1; }
.float-card .cap{ font-size: 11.5px; color: var(--text-on-light-62); line-height: 1.3; max-width: 12ch; }
.float-card--a{ top: -8%; left: -9%; animation: floaty 6s var(--ease-io-expo) infinite; }
.float-card--b{ bottom: -7%; right: -7%; animation: floaty 7s var(--ease-io-expo) infinite 0.4s; }
@keyframes floaty{
  0%, 100%{ transform: translateY(0px); }
  50%{ transform: translateY(-10px); }
}

.hero-scroll-cue{
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
  opacity: 0.55;
}
.hero-scroll-cue .line{ width: 1px; height: 34px; background: linear-gradient(var(--text-on-dark), transparent); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after{
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--gold-300), transparent);
  animation: scrollcue 2.4s var(--ease-io-expo) infinite;
}
@keyframes scrollcue{ to{ top: 100%; } }
.hero-scroll-cue span{ font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-dark-45); }

@media (max-width: 1080px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ margin-top: 56px; max-width: 560px; }
  .float-card{ padding: 12px 16px; }
}
@media (max-width: 560px){
  .hero{ padding-top: 108px; }
  .float-card--a{ left: -4%; top: -6%; }
  .float-card--b{ right: -4%; bottom: -6%; }
  .float-card .cap{ max-width: 10ch; font-size: 10.5px; }
}

/* =========================================================
   Trust Marquee
========================================================= */
.marquee-band{
  background: var(--paper);
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track{
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.marquee-band:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.marquee-item{
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-light-62);
  white-space: nowrap;
}
.marquee-item b{ font-family: var(--font-display); font-weight: 600; color: var(--text-on-light); font-size: 17px; }
.marquee-item .sep{ color: var(--gold-500); font-size: 12px; }

/* =========================================================
   Services
========================================================= */
.service-row{
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr 44px;
  align-items: start;
  gap: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--cream-line);
  transition: padding 0.5s var(--ease-out-quart);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.service-list .service-row:last-child{ border-bottom: 1px solid var(--cream-line); }
.service-num{
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  padding-top: 6px;
  color: var(--text-on-light-40);
  transition: color 0.4s ease;
}
.service-title{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  display: flex; align-items: flex-start; gap: 16px;
}
.service-title-text{ padding-top: 0.14em; }
.service-icon{
  width: 34px; height: 34px;
  flex: none;
  margin-top: 0.1em;
  color: var(--gold-500);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}
.service-desc{
  font-size: 15.5px;
  color: var(--text-on-light-62);
  max-width: 52ch;
  line-height: 1.65;
}
.service-arrow{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-light);
  transition: background 0.4s var(--ease-out-quart), border-color 0.4s ease, transform 0.5s var(--ease-out-expo);
  flex: none;
}
.service-arrow svg{ width: 16px; height: 16px; transition: transform 0.4s var(--ease-out-expo); }
.service-row:hover{ padding-left: 14px; padding-right: 14px; }
.service-row:hover .service-num{ color: var(--gold-500); }
.service-row:hover .service-icon{ opacity: 1; transform: translateX(0); }
.service-row:hover .service-arrow{ background: var(--gold-grad); border-color: transparent; transform: rotate(45deg); }
.service-row:hover .service-arrow svg{ color: var(--ink); }

@media (max-width: 900px){
  .service-row{ grid-template-columns: 50px 1fr; grid-template-areas: "num arrow" "title title" "desc desc"; row-gap: 14px; }
  .service-num{ grid-area: num; }
  .service-arrow{ grid-area: arrow; justify-self: end; }
  .service-title{ grid-area: title; }
  .service-desc{ grid-area: desc; max-width: none; }
  .service-icon{ display: none; }
}

/* =========================================================
   Who We Serve
========================================================= */
.who-section{ position: relative; overflow: hidden; }
.who-watermark{
  position: absolute;
  right: clamp(-40px, -2vw, 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(220px, 30vw, 460px);
  font-weight: 600;
  line-height: 1;
  color: var(--text-on-light);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

/* Firm-profile panels */
.who-profiles{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.who-panel{
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 3.6vw, 52px) clamp(28px, 3vw, 44px);
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  transition: transform 0.55s var(--ease-out-expo), border-color 0.5s ease, box-shadow 0.55s var(--ease-out-expo), background 0.5s ease;
}
.who-panel::before{
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cream-line);
  transition: background 0.5s ease, width 0.4s ease;
}
.who-panel:hover{
  transform: translateY(-6px);
  border-color: var(--cream-line);
  box-shadow: 0 34px 64px -30px rgba(16,14,10,0.22);
  background: var(--paper);
}
.who-panel:hover::before{ background: var(--gold-grad); width: 4px; }
.who-panel--offset{ margin-top: 34px; }
.who-panel-num{
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  color: var(--text-on-light);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
.who-panel .case-tag{ position: relative; display: block; margin-bottom: 20px; }
.who-panel h3{
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.who-panel p{
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-on-light-62);
  max-width: 46ch;
}
.who-panel-media{
  position: relative;
  margin-top: 28px;
  aspect-ratio: 4/2.3;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 26px 46px -28px rgba(16,14,10,0.38);
}
.who-panel-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,10,0.02) 55%, rgba(16,14,10,0.32) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.who-panel-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s var(--ease-out-quart);
}
.who-panel:hover .who-panel-media img{ transform: scale(1.05); }

/* Practice-area strip */
.practice-head{
  display: flex; align-items: center; gap: 20px;
  margin-top: clamp(52px, 6vw, 80px);
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.practice-head-line{ flex: 1; height: 1px; background: var(--cream-line); }

.practice-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cream-line);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative; z-index: 1;
}
.practice-cell{
  background: var(--cream);
  padding: 30px 26px;
  transition: background 0.4s ease;
}
.practice-cell:hover{ background: var(--paper); }
.practice-num{
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-on-light-40);
  margin-bottom: 22px;
  transition: color 0.4s ease;
}
.practice-cell:hover .practice-num{ color: var(--gold-500); }
.practice-cell h4{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 10px;
}
.practice-cell p{ font-size: 13.5px; line-height: 1.6; color: var(--text-on-light-62); }

@media (max-width: 900px){
  .who-profiles{ grid-template-columns: 1fr; }
  .who-panel--offset{ margin-top: 0; }
  .practice-strip{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .practice-strip{ grid-template-columns: 1fr; }
  .who-panel-num{ font-size: 56px; }
}

/* =========================================================
   Why Section
========================================================= */
.why-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.why-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.why-quote em{
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-points{ display: flex; flex-direction: column; gap: 30px; }
.why-point{ padding-top: 22px; border-top: 1px solid var(--ink-line); }
.why-point .tag{ font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 10px; display: block; }
.why-point p{ font-size: 17px; line-height: 1.55; color: var(--text-on-dark-70); }
.why-point strong{ color: var(--text-on-dark); font-weight: 600; }

.seal{
  margin-top: 54px;
  width: 148px; height: 148px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.seal svg{ position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal-core{
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
}
.seal-core svg{ position: static; animation: none; width: 26px; height: 26px; color: var(--ink); }
@keyframes spin{ to{ transform: rotate(360deg); } }

@media (max-width: 920px){
  .why-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Process
========================================================= */
.process-track{ position: relative; margin-top: 20px; }
.process-line{
  position: absolute;
  left: 0; right: 0; top: 27px;
  height: 1px;
  background: var(--cream-line);
}
.process-line-fill{
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%;
  background: var(--gold-grad);
  transition: width 1.4s var(--ease-out-expo);
}
.process-steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.process-step{ display: flex; flex-direction: column; gap: 20px; }
.process-node{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-on-light-62);
  transition: background 0.4s var(--ease-out-quart), color 0.4s ease, border-color 0.4s ease;
}
.process-step.is-visible .process-node{ background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.process-step h3{ font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.process-step p{ font-size: 14.5px; color: var(--text-on-light-62); line-height: 1.6; }

@media (max-width: 980px){
  .process-line{ display: none; }
  .process-steps{ grid-template-columns: 1fr; gap: 0; }
  .process-step{ flex-direction: row; gap: 22px; padding: 26px 0; border-top: 1px solid var(--cream-line); }
  .process-step:last-child{ border-bottom: 1px solid var(--cream-line); }
  .process-node{ flex: none; }
}

/* =========================================================
   Packages / Pricing
========================================================= */
.packages-section{ position: relative; overflow: hidden; }

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.price-card{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 2.6vw, 40px);
  background: var(--ink-elev);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.5s ease, box-shadow 0.5s var(--ease-out-expo);
}
.price-card:hover{
  transform: translateY(-8px);
  border-color: rgba(230,189,108,0.4);
  box-shadow: 0 34px 70px -30px rgba(0,0,0,0.5);
}

.price-card--featured{
  background: linear-gradient(180deg, rgba(204,154,65,0.09), var(--ink-elev) 45%);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold-l);
  transform: translateY(-16px);
}
.price-card--featured:hover{ transform: translateY(-22px); }

.price-badge{
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(108,70,15,0.65);
  white-space: nowrap;
}

.price-card-head h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.price-card-desc{ font-size: 13.5px; color: var(--text-on-dark-70); min-height: 2.6em; }

.price-card-cost{
  padding-top: 22px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-top: 1px solid var(--ink-line);
}
.price-card-cost .amount{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 2.8vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 9px;
}
.price-card-cost .cost-cap{ font-size: 12px; color: var(--text-on-dark-45); }

.price-card-features{ display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.price-card-features li{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.5;
  color: var(--text-on-dark-70);
}
.price-card-features li::before{
  content: "\2713";
  flex: none;
  width: 17px; height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(230,189,108,0.12);
  color: var(--gold-300);
  font-size: 9.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.price-card-cta{ width: 100%; justify-content: center; margin-top: auto; }

@media (max-width: 980px){
  .pricing-grid{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card--featured{ order: -1; transform: none; }
  .price-card--featured:hover{ transform: translateY(-8px); }
}

/* =========================================================
   Results: stats + gallery + testimonials
========================================================= */
/* Homepage only — top padding untouched, and the shared #results
   include (also used standalone on portfolio.php) keeps its normal
   bottom padding there since this selector is scoped to data-page="home". */
body[data-page="home"] #results{ padding-bottom: 0; }

.stat-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cream-line);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.stat-cell{ background: var(--cream); padding: 38px 28px; }
.stat-cell .num{
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-cell .cap{ font-size: 13.5px; color: var(--text-on-light-62); max-width: 18ch; }
@media (max-width: 820px){ .stat-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---- Case Study Showcase (Portfolio) ---- */
.case-intro{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.case-intro h3{ font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }
.case-intro p{ font-size: 14.5px; color: var(--text-on-light-62); max-width: 40ch; }
@media (max-width: 700px){
  .case-intro{ flex-direction: column; align-items: flex-start; gap: 16px; }
}

.case-chrome{
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(247,242,230,0.02);
  flex: none;
}
.case-chrome .dot{ width: 7px; height: 7px; border-radius: 50%; background: rgba(247,242,230,0.16); }
.case-chrome .case-url{
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--text-on-dark-45);
  background: rgba(247,242,230,0.05);
  border: 1px solid var(--ink-line-soft);
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.case-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.case-arrow{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-light);
  flex: none;
  cursor: pointer;
  transition: background 0.4s var(--ease-out-quart), border-color 0.4s ease, transform 0.5s var(--ease-out-expo);
}
.case-arrow svg{ width: 15px; height: 15px; transition: transform 0.4s var(--ease-out-expo); }

/* Featured case study */
.case-featured{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  margin-bottom: 22px;
}
.case-featured-visual{ display: flex; flex-direction: column; height: 100%; }
.case-featured-frame{
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  cursor: pointer;
}
.case-featured-frame img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 3.2s var(--ease-out-quart);
}
.case-featured:hover .case-featured-frame img{ transform: scale(1.045); }
.case-featured-frame::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 60%, rgba(16,14,10,0.35));
  pointer-events: none;
}
.case-featured-info{
  position: relative;
  padding: clamp(30px, 3.4vw, 52px);
  display: flex; flex-direction: column; justify-content: center;
  color: var(--text-on-dark);
}
.case-featured-info .case-tag{ color: var(--gold-300); margin-bottom: 16px; }
.case-featured-info h3{
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.case-featured-info p{
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-on-dark-70);
  margin-bottom: 28px;
  max-width: 40ch;
}
.case-featured-cta{ display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-on-dark); width: fit-content; }
.case-featured-cta svg{ width: 15px; height: 15px; transition: transform 0.4s var(--ease-out-expo); }
.case-featured-info a.case-featured-cta{ cursor: pointer; }
.case-featured:hover .case-featured-cta svg{ transform: translateX(4px); }

/* Grid of supporting case studies */
.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 22px;
}
.case-card{
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--cream-line);
  background: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease-out-expo), box-shadow 0.55s var(--ease-out-expo);
}
.case-card:hover{ transform: translateY(-5px); box-shadow: 0 30px 60px -28px rgba(16,14,10,0.28); }
.case-frame{ position: relative; aspect-ratio: 4/2.7; overflow: hidden; cursor: pointer; }
.case-frame img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 3.4s var(--ease-out-quart);
}
.case-card:hover .case-frame img{ transform: scale(1.06); }
.case-index{
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--text-on-dark-70);
  letter-spacing: 0.02em;
  z-index: 1;
  background: rgba(16,14,10,0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(247,242,230,0.14);
  padding: 4px 10px;
  border-radius: 999px;
}
.case-caption{
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--cream);
}
.case-caption-text h4{ font-family: var(--font-display); font-size: 17.5px; font-weight: 500; margin-bottom: 5px; }
.case-card:hover .case-arrow{ background: var(--gold-grad); border-color: transparent; transform: rotate(45deg); }
.case-card:hover .case-arrow svg{ color: var(--ink); }

/* Wide (horizontal) case study card — spans 2 columns */
.case-wide{
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
.case-wide-visual{ display: flex; flex-direction: column; height: 100%; }
.case-wide .case-frame{ aspect-ratio: auto; flex: 1; min-height: 220px; }
.case-wide .case-caption{
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 26px 30px;
}
.case-wide .case-caption-foot{ display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 4px; }
.case-wide .case-caption-text p{ font-size: 13.5px; color: var(--text-on-light-62); line-height: 1.6; margin-top: 8px; max-width: 38ch; }

@media (max-width: 980px){
  .case-featured{ grid-template-columns: 1fr; }
  .case-grid{ grid-template-columns: repeat(2, 1fr); }
  .case-wide{ grid-column: span 2; grid-template-columns: 1fr; }
  .case-wide .case-frame{ aspect-ratio: 4/2.7; min-height: 0; }
}
@media (max-width: 620px){
  .case-grid{ grid-template-columns: 1fr; }
  .case-wide{ grid-column: span 1; }
}

.lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16,14,10,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }

/* Self-contained modal: fixed max height, own scroll region.
   The page behind never scrolls (body gets overflow:hidden while open);
   only .lightbox-scroll scrolls when the project image is taller than
   the available viewport. */
.lightbox-modal{
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.55);
}
.lightbox-head{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--ink-line);
  background: var(--ink);
  flex: none;
}
.lightbox-title{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--ink-soft);
}
.lightbox-scroll img{ display: block; width: 100%; height: auto; }
.lightbox-scroll::-webkit-scrollbar{ width: 9px; }
.lightbox-scroll::-webkit-scrollbar-track{ background: transparent; }
.lightbox-scroll::-webkit-scrollbar-thumb{ background: var(--gold-700); border-radius: 999px; border: 2px solid var(--ink-soft); }

.lightbox-close{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(247,242,230,0.06);
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  flex: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lightbox-close:hover{ background: rgba(247,242,230,0.14); border-color: var(--gold-500); }
.lightbox-close svg{ width: 16px; height: 16px; }

.lightbox-prev, .lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16,14,10,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250,247,240,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lightbox-prev:hover, .lightbox-next:hover{ background: rgba(16,14,10,0.75); border-color: var(--gold-500); }
.lightbox-prev{ left: 14px; }
.lightbox-next{ right: 14px; }
.lightbox-prev svg, .lightbox-next svg{ width: 17px; height: 17px; }

@media (max-width: 760px){
  .lightbox{ padding: 0; }
  .lightbox-modal{ max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: none; }
}

/* Testimonials */
.testi-wrap{ margin-top: 0; position: relative; }
.testi-layout{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.testi-main{ display: flex; flex-direction: column; }
.testi-mark{
  font-family: var(--font-display);
  font-size: 90px;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.5;
  margin-bottom: -10px;
}
.testi-track{ position: relative; min-height: 240px; flex: 1; }
.testi-slide{
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
  pointer-events: none;
}
.testi-slide.is-active{ opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.testi-slide blockquote{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 33px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-bottom: 30px;
}
.testi-slide .attrib{ display: flex; align-items: center; gap: 14px; }
.testi-slide .avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 16px;
  flex: none;
}
.testi-slide .name{ font-weight: 600; font-size: 14.5px; }
.testi-slide .role{ font-size: 13px; color: var(--text-on-light-62); }

.testi-arrows{ display: flex; gap: 10px; margin-top: 40px; }
.testi-arrow{
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.testi-arrow:hover{ background: var(--paper); border-color: var(--gold-500); }
.testi-arrow svg{ width: 15px; height: 15px; }

/* Right-side client roster panel */
.testi-side{
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
}
.testi-side-mark{
  position: absolute;
  top: -30px; right: 6px;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 1;
  color: var(--text-on-light);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.testi-side .case-tag{ position: relative; }

.testi-roster{ position: relative; display: flex; flex-direction: column; gap: 3px; margin-top: 22px; }
.testi-roster-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  text-align: left;
  transition: background 0.35s ease, transform 0.4s var(--ease-out-expo);
}
.testi-roster-item::before{
  content: "";
  position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 2px;
  background: transparent;
  transition: background 0.35s ease;
}
.testi-roster-item .avatar{
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 13px;
  flex: none;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}
.testi-roster-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testi-roster-text .name{ font-size: 13px; font-weight: 600; color: var(--text-on-light); }
.testi-roster-text .role{ font-size: 11px; line-height: 1.4; color: var(--text-on-light-40); }
.testi-roster-item:hover{ background: var(--paper); }
.testi-roster-item:hover .avatar{ opacity: 0.8; }
.testi-roster-item.is-active{ background: var(--paper); }
.testi-roster-item.is-active::before{ background: var(--gold-grad); }
.testi-roster-item.is-active .avatar{ opacity: 1; }
.testi-roster-item.is-active .testi-roster-text .role{ color: var(--gold-700); }

.testi-side-stat{
  position: relative;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--cream-line);
}
.testi-side-stat .num{
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.testi-side-stat .cap{ font-size: 12.5px; color: var(--text-on-light-62); max-width: 26ch; }

@media (max-width: 900px){
  .testi-layout{ grid-template-columns: 1fr; }
  .testi-side{ order: 2; }
  .testi-roster{ flex-direction: row; overflow-x: auto; gap: 8px; margin-top: 20px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .testi-roster-item{ flex-direction: column; align-items: center; text-align: center; width: auto; flex: none; min-width: 92px; padding: 14px 10px; gap: 8px; }
  .testi-roster-item::before{ left: 10%; right: 10%; top: 0; bottom: auto; width: auto; height: 2px; }
  .testi-roster-text .role{ display: none; }
  .testi-side-stat{ display: flex; align-items: center; gap: 14px; }
  .testi-side-stat .num{ margin-bottom: 0; }
  .testi-side-stat .cap{ max-width: none; }
}

/* =========================================================
   Final CTA
========================================================= */
.final-cta{
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final-cta .container{ position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-cta::before{
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 900px; height: 900px;
  transform: translate(-50%, -46%);
  background: radial-gradient(circle, rgba(204,154,65,0.24), transparent 68%);
}
.final-cta h2{ max-width: 18ch; text-wrap: balance; margin-bottom: 22px; }
.final-cta .lede{ max-width: 50ch; margin-left: auto; margin-right: auto; margin-bottom: 42px; }
.final-cta-row{ display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.final-reassure{ margin-top: 36px; font-size: 13.5px; color: var(--text-on-dark-45); letter-spacing: 0.03em; }

/* =========================================================
   Footer
========================================================= */
.site-footer{ background: var(--ink); color: var(--text-on-dark); position: relative; overflow: hidden; border-top: 1px solid var(--ink-line); }

.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.15fr 1.15fr;
  gap: 40px;
  padding-top: clamp(52px, 6vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand img{ height: 30px; margin-bottom: 22px; }
.footer-brand p{ font-size: 14.5px; color: var(--text-on-dark-45); max-width: 32ch; line-height: 1.6; }
.footer-col h4{ font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 20px; font-weight: 600; }
.footer-col ul{ display: flex; flex-direction: column; gap: 13px; }
.footer-col-split{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-col a{
  position: relative;
  font-size: 14.5px;
  color: var(--text-on-dark-70);
  transition: color 0.35s ease;
  display: inline-block;
}
.footer-col a::after{
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-quart);
}
.footer-col a:hover{ color: var(--gold-300); }
.footer-col a:hover::after{ transform: scaleX(1); }
.footer-disclaimer{
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-on-dark-45);
  max-width: 64ch;
  padding: 30px 0 26px;
}
.footer-bottom{
  padding: 24px 0 44px;
  border-top: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-copyright{ font-size: 12.5px; color: var(--text-on-dark-45); }
.footer-bottom-right{ display: flex; align-items: center; gap: 22px; }
.footer-divider{ width: 1px; height: 14px; background: var(--ink-line); }
.footer-top-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-on-dark-45);
  transition: color 0.3s ease, gap 0.3s var(--ease-out-expo);
}
.footer-top-link svg{ width: 12px; height: 12px; }
.footer-top-link:hover{ color: var(--gold-300); gap: 12px; }
.footer-legal{ display: flex; gap: 22px; }
.footer-legal a{ font-size: 12.5px; color: var(--text-on-dark-45); transition: color 0.3s ease; }
.footer-legal a:hover{ color: var(--text-on-dark); }

@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom-right{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-divider{ display: none; }
}

/* =========================================================
   Start Your Project Modal
========================================================= */
.startproj-modal{
  position: fixed; inset: 0; z-index: 320;
  background: rgba(16,14,10,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.startproj-modal.is-open{ opacity: 1; visibility: visible; }

.startproj-dialog{
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  display: flex;
  align-items: stretch;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 50px 100px -24px rgba(0,0,0,0.6);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.45s var(--ease-out-quart);
}
.startproj-modal.is-open .startproj-dialog{ transform: translateY(0) scale(1); opacity: 1; }

.startproj-close{
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(16,14,10,0.4);
  border: 1px solid rgba(247,242,230,0.22);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.startproj-close:hover{ background: rgba(16,14,10,0.7); border-color: var(--gold-500); transform: rotate(90deg); }
.startproj-close svg{ width: 15px; height: 15px; }

/* Left — visual */
.startproj-visual{ position: relative; flex: 0 0 42%; min-height: 0; overflow: hidden; }
.startproj-visual img{ width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.startproj-visual::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,10,0.05) 40%, rgba(16,14,10,0.82) 96%);
}
.startproj-visual-copy{
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 30px 28px;
}
.startproj-visual-rule{ display: block; width: 34px; height: 2px; background: var(--gold-grad); margin-bottom: 16px; }
.startproj-visual-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.28;
  color: var(--text-on-dark);
  margin-bottom: 14px;
}
.startproj-visual-stats{
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--gold-300);
  font-weight: 600;
}

/* Right — form panel */
.startproj-form-panel{
  position: relative;
  flex: 1 1 58%;
  min-width: 0;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3.6vw, 48px);
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.startproj-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-top: 12px;
  margin-bottom: 12px;
}
.startproj-sub{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-dark-70);
  max-width: 42ch;
  margin-bottom: 28px;
}

.startproj-form{ display: flex; flex-direction: column; gap: 16px; }
.startproj-field{ position: relative; }
.startproj-field input{
  width: 100%;
  padding: 16px 42px 16px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.startproj-field input::placeholder{ color: var(--text-on-light-40); }
.startproj-field input:focus{ outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(204,154,65,0.22); }

.startproj-phone-group{
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--cream);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.startproj-phone-group:focus-within{ border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(204,154,65,0.22); }
.startproj-phone-code{
  display: flex; align-items: center;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-on-light-62);
  background: var(--paper-2);
  border-right: 1px solid var(--cream-line);
  flex: none;
}
.startproj-phone-group input{
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.startproj-phone-group input:focus{ box-shadow: none; }

.startproj-field-alert{
  position: absolute;
  top: 15px; right: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e0554a;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: none;
  align-items: center; justify-content: center;
}
.startproj-error{
  display: none;
  margin-top: 8px;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #e0554a;
  padding: 5px 10px;
  border-radius: 6px;
}
.startproj-field.has-error input,
.startproj-field.has-error .startproj-phone-group{
  border-color: #e0554a;
  box-shadow: 0 0 0 3px rgba(224,85,74,0.16);
}
.startproj-field.has-error .startproj-field-alert{ display: flex; }
.startproj-field.has-error .startproj-error{ display: inline-block; }

.startproj-submit{ justify-content: center; width: 100%; margin-top: 6px; }

.startproj-success{ text-align: left; }
.startproj-success-icon{
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink);
  margin-bottom: 20px;
}
.startproj-success-icon svg{ width: 22px; height: 22px; }
.startproj-success h4{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.startproj-success p{ font-size: 14.5px; line-height: 1.65; color: var(--text-on-dark-70); max-width: 40ch; }

@media (max-width: 760px){
  .startproj-modal{ padding: 0; }
  .startproj-dialog{
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    overflow-y: auto;
  }
  .startproj-visual{ flex: none; height: 200px; min-height: 200px; }
  .startproj-visual-quote{ font-size: 19px; }
  .startproj-form-panel{ flex: none; overflow-y: visible; }
}

/* =========================================================
   Responsive base type
========================================================= */
@media (max-width: 560px){
  .section{ padding: 64px 0; }
  .hero-cta-row{ gap: 18px; }
  .why-point p{ font-size: 15.5px; }
}
