:root {
  --ink: #06101c;
  --ink-2: #0b1e31;
  --ink-3: #102b42;
  --paper: #f5efe5;
  --paper-2: #fffaf1;
  --gold: #c8923c;
  --gold-2: #f0c978;
  --teal: #4ebfc4;
  --text: #f9f3e8;
  --muted: #aab7c6;
  --dark-muted: #566371;
  --line: rgba(240, 201, 120, 0.28);
  --line-dark: rgba(11, 30, 49, 0.16);
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

svg,
canvas,
img {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 82px;
  padding: 0 max(44px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(170px, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(240, 201, 120, 0.18);
  background: rgba(5, 14, 25, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 64px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.brand-copy span {
  max-width: 390px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #eef4f8;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  content: "";
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-mail {
  justify-self: end;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  text-decoration: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 160px max(44px, calc((100vw - var(--max)) / 2)) 36px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #06101c;
}

.hero::before {
  position: absolute;
  inset: 82px 0 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 16, 28, 0.99) 0%, rgba(6, 16, 28, 0.84) 38%, rgba(6, 16, 28, 0.18) 68%, rgba(6, 16, 28, 0.5) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 86px);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(6, 16, 28, 0.86) 58%, #06101c);
}

.hero-image,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -4;
  background-image: url("./assets/ant-hero-generated.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-canvas {
  z-index: -3;
  opacity: 0.42;
}

.hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-bottom: 128px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 660px;
  margin-top: 18px;
  color: #fffaf1;
  font-size: 68px;
  line-height: 0.96;
}

.hero-lead {
  max-width: 600px;
  margin: 26px 0 0;
  color: #dbe5ef;
  font-size: 20px;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 201, 120, 0.44);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(240, 201, 120, 0.9);
  outline: none;
  transform: translateY(-2px);
}

.button-primary {
  color: #08111d;
  background: linear-gradient(135deg, #fff0ba, #d6a04a 58%, #a46a24);
  box-shadow: 0 18px 48px rgba(201, 146, 60, 0.24);
}

.button-secondary {
  background: rgba(6, 16, 28, 0.5);
}

.hero-proof {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(240, 201, 120, 0.32);
  border-bottom: 1px solid rgba(240, 201, 120, 0.32);
}

.hero-proof div {
  min-height: 96px;
  padding: 20px 24px;
  display: grid;
  gap: 7px;
  border-right: 1px solid rgba(240, 201, 120, 0.2);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.hero-proof span {
  color: #cdd8e4;
  font-size: 14px;
  line-height: 1.45;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-head {
  max-width: 860px;
  margin-top: 16px;
  margin-bottom: 36px;
}

.section-head h2,
.method-copy h2,
.about-text h2,
.request-panel h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  line-height: 1.05;
}

.section-head p,
.method-copy p,
.about-text p,
.request-panel p {
  color: #cbd6e2;
  font-size: 18px;
  line-height: 1.72;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(240, 201, 120, 0.26);
}

.practice-card {
  min-height: 430px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(240, 201, 120, 0.22);
  background: linear-gradient(180deg, rgba(10, 32, 51, 0.78), rgba(5, 14, 25, 0.88));
}

.practice-card:last-child {
  border-right: 0;
}

.practice-num {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.practice-card h3 {
  margin-top: 26px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.16;
}

.practice-card p {
  color: #c8d3df;
  line-height: 1.65;
}

.practice-card ul {
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(240, 201, 120, 0.2);
  color: #dbe4ee;
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
}

.practice-card li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
}

.practice-card li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--gold-2);
}

.method-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: 52px;
  border-top: 1px solid rgba(240, 201, 120, 0.22);
  border-bottom: 1px solid rgba(240, 201, 120, 0.22);
}

.method-copy p {
  margin-top: 22px;
}

.method-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.method-list li {
  min-height: 214px;
  padding: 28px;
  border: 1px solid rgba(240, 201, 120, 0.24);
  background: rgba(7, 23, 38, 0.64);
}

.method-list span {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.method-list strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 20px;
}

.method-list p {
  color: #cbd6e2;
  line-height: 1.55;
}

.light-section {
  padding: 104px max(20px, calc((100% - var(--max)) / 2));
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.97), rgba(245, 239, 229, 0.98)),
    var(--paper);
}

.light-section .section-kicker {
  color: #9c6a27;
}

.light-section .section-head h2 {
  color: var(--ink);
}

.light-section .section-head p {
  color: var(--dark-muted);
}

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

.case-card {
  min-height: 460px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 0 20px 56px rgba(16, 43, 66, 0.08);
}

.case-media {
  height: 190px;
  border-bottom: 1px solid rgba(11, 30, 49, 0.12);
  background: var(--ink);
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.case-card:hover .case-media img {
  transform: scale(1.035);
}

.case-card span {
  display: block;
  margin: 26px 28px 0;
  color: #9c6a27;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 22px 28px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.12;
}

.case-card p {
  margin: 16px 28px 30px;
  color: var(--dark-muted);
  line-height: 1.65;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-top: 22px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(240, 201, 120, 0.24);
}

.facts div {
  min-height: 170px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 10px;
  border-right: 1px solid rgba(240, 201, 120, 0.2);
  border-bottom: 1px solid rgba(240, 201, 120, 0.2);
  background: rgba(7, 23, 38, 0.6);
}

.facts div:nth-child(2n) {
  border-right: 0;
}

.facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.facts span {
  color: #cbd6e2;
  line-height: 1.45;
}

.request {
  padding: 0 20px 104px;
}

.request-panel {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 44px;
  border: 1px solid rgba(240, 201, 120, 0.32);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.request-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 20, 34, 0.96) 0%, rgba(7, 20, 34, 0.9) 42%, rgba(7, 20, 34, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 20, 34, 0.2), rgba(7, 20, 34, 0.78)),
    url("./assets/cta-consultation-bg.png");
  background-position: center;
  background-size: cover;
}

.request-panel > * {
  position: relative;
  z-index: 1;
}

.request-panel p {
  margin-top: 20px;
}

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

.request-form label {
  display: grid;
  gap: 8px;
}

.request-form label:nth-of-type(3),
.request-form label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.request-form span {
  color: #d6e0ea;
  font-size: 13px;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid rgba(240, 201, 120, 0.34);
  color: var(--text);
  background: rgba(4, 12, 21, 0.74);
  outline: none;
}

.request-form textarea {
  min-height: 132px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(240, 201, 120, 0.14);
}

.request-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid rgba(240, 201, 120, 0.28);
}

.footer-main p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer address {
  display: grid;
  gap: 12px;
  color: #cbd6e2;
  font-style: normal;
  line-height: 1.5;
}

.footer address a {
  color: var(--gold-2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(260px, 1fr) auto auto;
    padding: 0 24px;
  }

  .main-nav {
    position: fixed;
    inset: 82px 18px auto;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    background: rgba(5, 14, 25, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-button {
    display: grid;
  }

  .hero-image {
    background-position: 62% top;
  }

  .practice-grid,
  .hero-proof,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-card:nth-child(2n),
  .hero-proof div:nth-child(2n) {
    border-right: 0;
  }

  .practice-card:nth-child(n + 3),
  .hero-proof div:nth-child(n + 3) {
    border-top: 1px solid rgba(240, 201, 120, 0.22);
  }

  .method-band,
  .about,
  .request-panel,
  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy span {
    max-width: 210px;
    font-size: 10px;
  }

  .header-mail {
    display: none;
  }

  .main-nav {
    inset: 78px 14px auto;
  }

  .hero {
    min-height: 720px;
    padding: 126px 14px 22px;
  }

  .hero-inner {
    padding-bottom: 34px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-image {
    background-position: 68% top;
    opacity: 0.62;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 16, 28, 0.98), rgba(6, 16, 28, 0.82)),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 86px),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 86px);
  }

  .hero-proof,
  .practice-grid,
  .method-list,
  .case-grid,
  .facts,
  .request-form {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .practice-card,
  .facts div {
    border-right: 0;
  }

  .hero-proof div,
  .practice-card:not(:first-child),
  .facts div:not(:first-child) {
    border-top: 1px solid rgba(240, 201, 120, 0.22);
  }

  .section,
  .method-band,
  .footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .section,
  .method-band,
  .light-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-head h2,
  .method-copy h2,
  .about-text h2,
  .request-panel h2 {
    font-size: 34px;
  }

  .section-head p,
  .method-copy p,
  .about-text p,
  .request-panel p {
    font-size: 16px;
  }

  .practice-card,
  .method-list li {
    min-height: 0;
    padding: 24px;
  }

  .case-card {
    min-height: 0;
  }

  .case-media {
    height: 180px;
  }

  .request {
    padding: 0 14px 72px;
  }

  .request-panel {
    padding: 24px;
  }

  .request-form label:nth-of-type(3),
  .request-form label:nth-of-type(4) {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 39px;
  }

  .hero-proof strong,
  .practice-num,
  .facts strong {
    font-size: 30px;
  }
}
