@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --paper: #f4efe6;
  --ink: #17130f;
  --muted: #6d6259;
  --line: rgba(23, 19, 15, 0.16);
  --wine: #6e2630;
  --brass: #b08a45;
  --navy: #101f37;
  --ledger: #f2eadc;
  --slate: #6d7785;
  --white: #fffaf2;
  --shadow: 0 24px 80px rgba(33, 26, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "DRAFT ONLY - AI AUTOMATION STUDIO - NOT FOR PRODUCTION";
  position: fixed;
  inset: -25vh -25vw;
  z-index: 50;
  pointer-events: none;
  display: grid;
  place-items: center;
  transform: rotate(-24deg);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.2rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(40, 33, 25, 0.075);
  text-align: center;
  white-space: nowrap;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(16px);
}

.topbar.dark {
  background: rgba(16, 31, 55, 0.94);
  color: var(--ledger);
  border-color: rgba(242, 234, 220, 0.16);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.brand span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dark .brand span {
  color: rgba(242, 234, 220, 0.66);
}

.links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.links a {
  text-decoration: none;
}

.button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.button.gold {
  color: var(--navy);
  background: #d4b66f;
  border-color: #d4b66f;
}

.button.dark {
  color: var(--ledger);
  background: var(--navy);
  border-color: var(--navy);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) 0;
}

.section.tight {
  padding: clamp(46px, 6vw, 80px) 0;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
}

.dark-page .kicker,
.variant-b .kicker {
  color: #d4b66f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid > *,
.hero-a > *,
.hero-b > * {
  min-width: 0;
}

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

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

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

.cover-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
}

.cover-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 42px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.cover-hero h1 {
  max-width: 1040px;
  font-size: clamp(4.2rem, 7.2vw, 8.5rem);
  line-height: 0.9;
}

.diagnosis {
  align-items: start;
}

.note-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  align-self: start;
}

.note-card strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 10px;
}

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

.variant-card {
  min-height: 430px;
  border-radius: 40px;
  padding: 34px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.variant-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 110px;
  height: 110px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.28;
}

.variant-card.a {
  background: #fff7ed;
  border: 1px solid rgba(110, 38, 48, 0.25);
}

.variant-card.b {
  background: var(--navy);
  color: var(--ledger);
}

.variant-card h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin-bottom: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-a {
  min-height: 820px;
  width: min(1520px, calc(100% - 96px));
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(560px, 1.05fr);
  gap: clamp(42px, 5vw, 86px);
  align-items: center;
}

.hero-a h1 {
  max-width: 820px;
  font-size: clamp(5.4rem, 6.7vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-a .lede {
  max-width: 620px;
}

.portrait-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  align-self: center;
  width: 100%;
}

.image-panel {
  width: 100%;
  min-height: 340px;
  border-radius: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-panel img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 28px;
  background: #eee7dc;
}

.image-panel.small {
  transform: none;
  align-self: stretch;
}

.visual-caption {
  grid-column: 1 / -1;
  justify-self: stretch;
  max-width: none;
  border-left: 3px solid var(--brass);
  background: rgba(255, 250, 242, 0.76);
  border-radius: 0 24px 24px 0;
  padding: 18px 22px;
  color: var(--muted);
  box-shadow: 0 18px 50px rgba(33, 26, 18, 0.08);
}

.visual-caption span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 8px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  margin-top: 32px;
  background: rgba(255, 250, 242, 0.65);
}

.stat {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card,
.team-card,
.testimonial,
.contact-card,
.faq-card {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  align-self: start;
}

.service-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
}

.service-card .number {
  font-family: "IBM Plex Mono", monospace;
  color: var(--wine);
  font-size: 0.8rem;
}

.dark-band {
  background: #211812;
  color: var(--white);
  margin: 0;
  width: 100%;
}

.dark-band .section {
  padding-top: clamp(70px, 8vw, 118px);
  padding-bottom: clamp(70px, 8vw, 118px);
}

.dark-band .lede,
.dark-band p {
  color: rgba(255, 250, 242, 0.72);
}

.dark-band .testimonial,
.dark-band .team-card {
  background: rgba(255, 250, 242, 0.08);
  border-color: rgba(255, 250, 242, 0.17);
}

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

.team-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.5);
  margin-bottom: 18px;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.14;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-card a {
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(176, 138, 69, 0.22), transparent 30%),
    rgba(23, 19, 15, 0.82);
  backdrop-filter: blur(18px);
}

.access-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 34px;
  background: var(--paper);
  padding: clamp(28px, 5vw, 46px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.access-card h2 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: 14px;
}

.access-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0 18px;
  margin: 16px 0 12px;
  font: inherit;
}

.access-card .button {
  width: 100%;
}

.gate-error {
  display: block;
  margin-top: 12px;
  color: var(--wine);
  font-weight: 700;
}

.variant-b {
  background: var(--ledger);
  color: var(--navy);
  font-family: "Archivo", sans-serif;
}

.variant-b h1,
.variant-b h2 {
  font-family: "Libre Baskerville", serif;
  letter-spacing: -0.045em;
}

.hero-b {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.ledger-panel {
  background: var(--navy);
  color: var(--ledger);
  border-radius: 0 46px 46px 0;
  padding: clamp(32px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.ledger-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 49%, rgba(212, 182, 111, 0.12) 49% 50%, transparent 50% 100%);
  background-size: 96px 100%;
  pointer-events: none;
}

.ledger-panel > * {
  position: relative;
}

.ledger-panel .lede {
  color: rgba(242, 234, 220, 0.74);
}

.ledger-panel h1 {
  font-size: clamp(4.1rem, 6.8vw, 7.2rem);
  line-height: 0.92;
  max-width: 700px;
}

.case-file {
  border: 1px solid rgba(16, 31, 55, 0.18);
  background: rgba(255, 250, 242, 0.72);
  border-radius: 32px;
  padding: 28px;
  align-self: start;
}

.case-file img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  margin-bottom: 18px;
  background: #e7ddce;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 31, 55, 0.18);
  border-left: 1px solid rgba(16, 31, 55, 0.18);
}

.ledger-cell {
  padding: 24px;
  border-right: 1px solid rgba(16, 31, 55, 0.18);
  border-bottom: 1px solid rgba(16, 31, 55, 0.18);
  background: rgba(255, 250, 242, 0.46);
}

.ledger-cell b {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  color: var(--brass);
  margin-bottom: 12px;
}

.navy-band {
  background: var(--navy);
  color: var(--ledger);
}

.navy-band .section {
  padding-top: clamp(70px, 8vw, 112px);
  padding-bottom: clamp(70px, 8vw, 112px);
}

.navy-band .service-card,
.navy-band .testimonial {
  background: rgba(242, 234, 220, 0.06);
  border-color: rgba(242, 234, 220, 0.16);
}

.navy-band p {
  color: rgba(242, 234, 220, 0.72);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .links {
    display: none;
  }

  .brand {
    font-size: 1.3rem;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .chooser,
  .hero-a,
  .hero-b,
  .contact-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.75rem, 12.4vw, 4.15rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-a,
  .hero-b {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 52px;
    width: calc(100vw - 52px);
    max-width: 338px;
    margin: 0 auto;
    gap: 28px;
  }

  .portrait-stack {
    grid-template-columns: 1fr;
    transform: none;
  }

  .image-panel.small {
    transform: none;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .ledger-panel {
    border-radius: 34px;
    padding: 30px 20px;
    width: 100%;
    max-width: 100%;
  }

  .ledger-panel h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
    line-height: 1;
    max-width: 100%;
  }

  .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    overflow-wrap: break-word;
  }

  .case-file,
  .cover-card,
  .service-card,
  .team-card,
  .testimonial,
  .contact-card,
  .faq-card {
    width: 100%;
    max-width: 100%;
  }

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

  .section {
    width: auto;
    margin-left: 13px;
    margin-right: 13px;
  }

  .meta-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .meta-row .button {
    width: 100%;
    min-width: 0;
  }

  .brand img {
    width: 96px;
  }

  .lede {
    font-size: 0.9rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .portrait-stack {
    margin-top: 10px;
  }

  .hero-a h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.45rem);
    line-height: 1;
  }

  .image-panel {
    min-height: 280px;
  }

  .image-panel img {
    height: 100%;
    max-height: 360px;
  }

  .variant-b .hero-b {
    width: 300px;
    max-width: calc(100vw - 34px);
    margin-left: 13px;
    margin-right: auto;
  }

  .variant-b .button {
    font-size: 0.9rem;
  }

  body::before {
    font-size: 2rem;
    white-space: normal;
  }
}
