:root {
  --bg: #080706;
  --bg-soft: #12100d;
  --panel: #17130f;
  --panel-2: #1d1813;
  --text: #f4eee2;
  --muted: #b9ad99;
  --gold: #d3b17a;
  --line: rgba(211, 177, 122, 0.24);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --section-pad: clamp(2.8rem, 5.5vw, 4.4rem);
  --grid-gap: clamp(0.8rem, 1.8vw, 1.1rem);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 0% 0%, #2b2012 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, #1d1912 0%, transparent 40%), var(--bg);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.2) 0.45px,
    transparent 0.45px
  );
  background-size: 3px 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  padding: 0.95rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.8);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.2rem;
  font-size: 0.9rem;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
}

.nav-backdrop {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.section,
.page-hero {
  width: min(1160px, 91vw);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section.tight-top {
  padding-top: clamp(1rem, 2vw, 1.4rem);
}

.page-hero {
  padding: clamp(2.2rem, 4vw, 3rem) 0 clamp(0.9rem, 2vw, 1.2rem);
}

.page-hero.compact {
  padding-bottom: 0.2rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.1rem, 7.4vw, 4.8rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.4rem, 3.8vw, 2.8rem);
}

h3 {
  font-size: clamp(1.1rem, 2.7vw, 1.7rem);
}

p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  color: var(--gold);
  font-size: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  font-size: 0.82rem;
  transition:
    transform 760ms cubic-bezier(0.2, 0.85, 0.28, 1),
    box-shadow 760ms cubic-bezier(0.2, 0.85, 0.28, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #d8b883, #9f7b4e);
  border-color: transparent;
  color: #1d150a;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(216, 184, 131, 0.35);
}

.btn-outline {
  border-color: rgba(216, 184, 131, 0.58);
}

.hero {
  padding-top: 1.8rem;
}

.hero-shell {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(1.3rem, 2.8vw, 2rem);
  background: linear-gradient(
    140deg,
    rgba(26, 21, 16, 0.96),
    rgba(13, 11, 9, 0.96)
  );
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--grid-gap);
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-copy p {
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.stat,
.surface,
.service-card,
.step,
.application,
.list-card,
.application-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    140deg,
    rgba(24, 20, 15, 0.96),
    rgba(14, 12, 10, 0.96)
  );
  box-shadow: var(--shadow);
}

.stat {
  padding: 1.2rem;
}

.stat-value {
  font-family: "Bodoni Moda", serif;
  font-size: 2.2rem;
  color: var(--gold);
}

.stat p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-stage {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    140deg,
    rgba(17, 14, 11, 0.95),
    rgba(10, 9, 7, 0.95)
  );
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.browser-top {
  height: 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(211, 177, 122, 0.58);
}

.browser-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.row {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(211, 177, 122, 0.35),
    rgba(211, 177, 122, 0.08)
  );
  animation: glide 12s ease-in-out infinite;
}

.row:nth-child(2) {
  width: 85%;
  animation-delay: 0.9s;
}

.row:nth-child(3) {
  width: 64%;
  animation-delay: 1.8s;
}

.kpi-grid {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.kpi-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}

.kpi-box strong {
  display: block;
  color: var(--gold);
  font-size: 1.05rem;
}

.kpi-box span {
  color: var(--muted);
  font-size: 0.78rem;
}

.float-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(230px, calc(100% - 2rem));
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(
    140deg,
    rgba(26, 22, 17, 0.94),
    rgba(15, 13, 11, 0.94)
  );
  padding: 0.7rem;
  animation: bob 12s ease-in-out infinite;
}

.float-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

.float-card strong {
  color: var(--gold);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

body[data-page="index.html"] .stat-strip {
  padding-bottom: 2rem;
}

body[data-page="index.html"] .grid-three {
  padding-top: 2rem;
}

body[data-page="index.html"] .footer-newsletter {
  margin-top: 4.5rem;
}

.surface {
  padding: 1.3rem;
}

.surface p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.section-heading h2 {
  max-width: 18ch;
}

.section-intro {
  color: var(--muted);
  max-width: 66ch;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
  text-align: center;
  font-size: 0.81rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.founder-title {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-grid {
  display: grid;
  gap: var(--grid-gap);
}

.links-grid .service-card {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
}

.links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.links-grid .service-card p {
  color: var(--muted);
}

.service-link {
  margin-top: auto;
  align-self: flex-start;
}

.media-band {
  padding-top: 0.6rem;
}

.band-platform {
  min-height: 260px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.timeline-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  padding: 1.25rem;
}

.step span {
  color: var(--gold);
  letter-spacing: 0.1rem;
  font-size: 0.74rem;
}

.step p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.detail-split {
  align-items: stretch;
}

.detail-split > * {
  min-width: 0;
}

.list-card {
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.list-card p {
  color: var(--muted);
}

.list-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

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

.cta-panel {
  text-align: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(
    145deg,
    rgba(27, 22, 16, 0.95),
    rgba(13, 11, 9, 0.95)
  );
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.cta-panel p {
  color: var(--muted);
  max-width: 62ch;
}

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

.firm-founder-grid {
  align-items: stretch;
}

.firm-page .section {
  position: relative;
}

.firm-page {
  --firm-gap: calc(var(--section-pad) * 1.5);
}

.firm-page .firm-about-section {
  padding-top: var(--firm-gap);
  padding-bottom: 0;
}

.firm-page .firm-founder-section {
  padding-top: var(--firm-gap);
  padding-bottom: 0;
}

.firm-page .firm-principles-section {
  padding-top: var(--firm-gap);
  padding-bottom: 0;
}

.firm-page .firm-cta-section {
  padding-top: var(--firm-gap);
  padding-bottom: var(--firm-gap);
}

body[data-page="index.html"] {
  --home-gap: calc(var(--section-pad) * 1.5);
}

body[data-page="index.html"] .section {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page="index.html"] .section + .section {
  margin-top: var(--home-gap);
}

body[data-page="index.html"] .hero {
  padding-top: clamp(1rem, 2vw, 1.4rem);
}

body[data-page="index.html"] .stat-strip,
body[data-page="index.html"] .grid-three {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page="index.html"] .footer-newsletter {
  margin-top: var(--home-gap);
}

.firm-about-section .about-load {
  animation: aboutLoadIn 1300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes aboutLoadIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.firm-hero-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  display: grid;
  gap: 1rem;
  background: linear-gradient(
    145deg,
    rgba(27, 22, 16, 0.95),
    rgba(13, 11, 9, 0.95)
  );
  box-shadow: var(--shadow);
}

.firm-hero h1 {
  max-width: 16ch;
}

.firm-hero-note {
  color: var(--muted);
  max-width: 56ch;
}

.firm-intro-grid .surface {
  min-height: 180px;
}

.founder-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 1.2rem;
  margin-bottom: 1rem;
  align-items: start;
}

.firm-founder-layout {
  margin-bottom: 1.3rem;
  align-items: stretch;
}

.founder-portrait {
  margin: 0;
  display: grid;
  place-items: start;
  align-content: start;
  padding-top: 0.15rem;
}

.founder-main {
  min-height: 0;
}

.firm-founder-grid .list-card {
  min-height: 0;
  height: 100%;
}

.founder-photo-wrap {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    circle at 38% 24%,
    rgba(211, 177, 122, 0.2),
    transparent 65%
  );
}

.founder-photo {
  position: absolute;
  width: 130%;
  max-width: none;
  height: auto;
  left: -9.5%;
  top: -6%;
}

.firm-cta {
  text-align: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.firm-cta p {
  color: var(--muted);
}

.principles-panel {
  padding: 1.25rem;
  background: linear-gradient(
    140deg,
    rgba(25, 21, 16, 0.97),
    rgba(14, 12, 10, 0.97)
  );
}

.principles-timeline {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.25rem 0 1rem;
}

.principle-item.principle-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1800ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.principle-item.principle-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.principle-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 48px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(
    rgba(211, 177, 122, 0.6),
    rgba(211, 177, 122, 0.2)
  );
  pointer-events: none;
}

.principle-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(211, 177, 122, 0.48);
  background: linear-gradient(145deg, rgba(24, 20, 15, 1), rgba(14, 12, 10, 1));
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  line-height: 1;
  text-align: center;
  display: grid;
  place-items: center;
  z-index: 1;
}

.principle-copy {
  display: grid;
  gap: 0.4rem;
  border: 1px solid rgba(211, 177, 122, 0.2);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: linear-gradient(
    145deg,
    rgba(28, 23, 17, 0.74),
    rgba(15, 13, 11, 0.74)
  );
}

.principle-item h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.principle-item p {
  color: var(--muted);
  margin-top: 0.1rem;
}

.application {
  padding: 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.application-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.application-page h1 {
  margin: 0.2rem 0 0.5rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.82rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(211, 177, 122, 0.68);
  box-shadow: 0 0 0 3px rgba(211, 177, 122, 0.14);
}

.assistant-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(
    140deg,
    rgba(21, 17, 13, 0.95),
    rgba(11, 10, 8, 0.95)
  );
  display: grid;
  gap: 0.8rem;
}

.chat-log {
  display: grid;
  gap: 0.55rem;
}

.bubble {
  max-width: 90%;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}

.bubble.user {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.bubble.ai {
  background: rgba(211, 177, 122, 0.2);
  color: #f2e2c9;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.summary-item strong {
  color: var(--gold);
  display: block;
  font-size: 0.98rem;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-footer {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-mark {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2rem;
  font-size: 0.92rem;
}

.footer-copy {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-meta {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.footer-btn {
  justify-self: start;
  margin-top: 0.3rem;
}

.footer-col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-title {
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 240ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.footer-newsletter {
  width: min(1160px, 92vw);
  margin: 0 auto 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgba(24, 20, 15, 0.9),
    rgba(14, 12, 10, 0.9)
  );
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
}

.footer-newsletter-copy {
  display: grid;
  gap: 0.45rem;
}

.footer-newsletter-copy h3 {
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
}

.footer-newsletter-copy p:last-child,
.footer-newsletter-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-newsletter-form {
  display: grid;
  gap: 0.5rem;
}

.footer-newsletter-form label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.footer-newsletter-form.is-enhanced {
  gap: 0.85rem;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.newsletter-field {
  display: grid;
  gap: 0.35rem;
}

.newsletter-field input {
  width: 100%;
}

.newsletter-field-wide {
  grid-column: 1 / -1;
}

.footer-newsletter-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-newsletter-row input {
  flex: 1;
}

.footer-newsletter-row .btn {
  white-space: nowrap;
  min-width: 148px;
}

.footer-newsletter-success {
  color: var(--gold);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
}

.form-status {
  min-height: 1.1rem;
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.is-error {
  color: #ff9d9d;
}

.is-confirmed {
  animation:
    confirmRise 650ms cubic-bezier(0.2, 0.85, 0.28, 1) forwards,
    confirmGlow 1600ms ease-out 1;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.77rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1450ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glide {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.75;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes confirmRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confirmGlow {
  0% {
    text-shadow: 0 0 0 rgba(211, 177, 122, 0);
  }
  40% {
    text-shadow: 0 0 14px rgba(211, 177, 122, 0.4);
  }
  100% {
    text-shadow: 0 0 0 rgba(211, 177, 122, 0);
  }
}

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(3, 2, 2, 0.84);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
    z-index: 44;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 0.8rem;
    column-gap: 0.6rem;
    padding: 0.85rem 4vw;
    z-index: 46;
  }

  .brand {
    min-width: 0;
    font-size: 0.82rem;
    letter-spacing: 0.16rem;
  }

  .brand-logo {
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    transition:
      background-color 240ms ease,
      border-color 240ms ease;
    z-index: 48;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition:
      transform 280ms ease,
      opacity 280ms ease;
  }

  .site-header.is-mobile-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-mobile-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-mobile-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header.is-mobile-open .nav-toggle {
    background: rgba(211, 177, 122, 0.11);
    border-color: rgba(211, 177, 122, 0.42);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    min-height: 100svh;
    margin: 0;
    padding: 5.2rem 1rem 1rem;
    border-left: 1px solid rgba(211, 177, 122, 0.62);
    background: linear-gradient(
      160deg,
      rgba(38, 29, 21, 0.995),
      rgba(14, 11, 9, 0.995) 52%,
      rgba(8, 7, 6, 0.995)
    );
    box-shadow:
      -40px 0 90px rgba(0, 0, 0, 0.78),
      inset 0 1px 0 rgba(255, 240, 214, 0.1);
    display: grid;
    grid-auto-rows: minmax(52px, auto);
    align-content: start;
    gap: 0.62rem;
    overflow: hidden;
    transform: translateX(105%);
    transition:
      transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 320ms step-end;
    visibility: hidden;
    pointer-events: none;
    z-index: 47;
  }

  .site-header.is-mobile-open .nav-links {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 0s;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    text-align: left;
    border: 1px solid rgba(211, 177, 122, 0.42);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    padding: 0 0.95rem;
    transition:
      border-color 220ms ease,
      background-color 220ms ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-color: rgba(211, 177, 122, 0.72);
    background: rgba(211, 177, 122, 0.13);
  }

  .site-header > .btn-outline {
    display: none;
  }

  .section,
  .page-hero,
  .site-footer,
  .footer-newsletter {
    width: min(1160px, 94vw);
  }

  .section {
    padding: clamp(2.1rem, 7vw, 3rem) 0;
  }

  .hero-shell,
  .founder-layout,
  .founder-grid,
  .split,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .grid-three,
  .service-grid,
  .links-grid,
  .timeline,
  .deliverable-grid,
  .faq-grid,
  .timeline-four,
  .stat-strip,
  .pill-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surface,
  .step,
  .list-card,
  .application {
    padding: 1rem;
  }

  .links-grid .service-card {
    min-height: 0;
    padding: 1rem;
  }

  .platform-stage {
    min-height: 280px;
  }

  .founder-photo-wrap {
    width: min(240px, 68vw);
    height: min(240px, 68vw);
  }

  .firm-hero-shell {
    border-radius: 20px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    width: min(88vw, 340px);
  }

  .grid-three,
  .service-grid,
  .links-grid,
  .timeline,
  .deliverable-grid,
  .faq-grid,
  .timeline-four,
  .stat-strip,
  .pill-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles-panel {
    padding: 1rem;
  }

  .principle-item {
    grid-template-columns: 44px 1fr;
    gap: 0.7rem;
    padding-bottom: 0.85rem;
  }

  .principle-item:not(:last-child)::after {
    left: 15px;
    top: 42px;
  }

  .principle-step {
    width: 32px;
    height: 32px;
    font-size: 0.62rem;
  }

  .principle-copy {
    gap: 0.3rem;
  }

  .principle-item h3 {
    font-size: 1.02rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .newsletter-fields {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter-row .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.75rem 4vw;
  }

  .brand-logo {
    height: 32px;
  }

  .hero-cta,
  .footer-newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .footer-newsletter-row .btn {
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .float-card {
    position: static;
    width: auto;
    margin: 0 1rem 1rem;
    animation: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
