:root {
  --bg: #020817;
  --bg-secondary: #061326;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(8, 18, 37, 0.85);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #f8fafc;
  --muted: #aab4c2;
  --gold: #d4af37;
  --gold-soft: #f5d27a;
  --silver: #d9dde3;
  --silver-dark: #aeb4c0;
  --border: rgba(212, 175, 55, 0.25);
  --border-soft: rgba(217, 221, 227, 0.12);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100vw - 32px));
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.12), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(217, 221, 227, 0.08), transparent 24%),
    linear-gradient(180deg, #020817 0%, #061326 55%, #020817 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  top: -40px;
  left: 12px;
  z-index: 1000;
  background: var(--gold-soft);
  color: #081120;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus-visible {
  top: 12px;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.section,
.section-sm {
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-sm {
  padding: 24px 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(2, 8, 23, 0.45);
  border-bottom: 1px solid rgba(217, 221, 227, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-title {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text span:last-child,
.footer-inner p,
.contact-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .button-primary {
  color: #0b1020;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 221, 227, 0.1);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
}

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

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #0b1020;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(217, 221, 227, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(212, 175, 55, 0.34);
}

.hero {
  padding-top: 78px;
  padding-bottom: 84px;
  overflow: clip;
  min-height: min(860px, calc(100vh - var(--header-height) + 84px));
  background-color: #030b18;
  background-image:
    linear-gradient(90deg, rgba(2, 8, 23, 0.96) 0%, rgba(2, 8, 23, 0.86) 34%, rgba(2, 8, 23, 0.50) 68%, rgba(2, 8, 23, 0.3) 100%),
    linear-gradient(180deg, rgba(2, 8, 23, 0.15) 0%, rgba(2, 8, 23, 0.85) 100%),
    image-set(
      url("assets/hero-macdonald-ventures.webp") type("image/webp"),
      url("assets/hero-macdonald-ventures.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid,
.hero-orb,
.hero-overlay {
  position: absolute;
}

.hero-overlay {
  inset: 0;
}

.hero-overlay-global {
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.08) 0%, rgba(2, 8, 23, 0.32) 100%);
}

.hero-overlay-left {
  background: linear-gradient(90deg, rgba(2, 8, 23, 0.86) 0%, rgba(2, 8, 23, 0.64) 24%, rgba(2, 8, 23, 0.18) 54%, rgba(2, 8, 23, 0) 74%);
}

.hero-overlay-bottom {
  background: linear-gradient(180deg, rgba(2, 8, 23, 0) 58%, rgba(2, 8, 23, 0.88) 100%);
}

.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 221, 227, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 221, 227, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 85%);
  opacity: 0.12;
  animation: pulseGrid 12s ease-in-out infinite;
}

.hero-orb {
  border-radius: 50%;
  filter: blur(28px);
}

.hero-orb-gold {
  width: 320px;
  height: 320px;
  right: 16%;
  top: 12%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 72%);
}

.hero-orb-silver {
  width: 220px;
  height: 220px;
  left: 18%;
  top: 20%;
  background: radial-gradient(circle, rgba(217, 221, 227, 0.08) 0%, rgba(217, 221, 227, 0) 72%);
}

.hero-layout {
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 760px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 6vw, 6.1rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.9rem;
  line-height: 1.05;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.08rem;
}

.hero-microcopy,
.cta-microcopy {
  margin-top: 22px;
  color: var(--silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.hero-microcopy span,
.cta-microcopy span {
  color: var(--gold);
  margin: 0 10px;
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
}

.emblem-card,
.about-card,
.feature-card,
.criteria-panel,
.portfolio-card,
.cta-panel,
.contact-card,
.strip-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(217, 221, 227, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.emblem-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(8, 18, 37, 0.94) 0%, rgba(8, 18, 37, 0.76) 100%);
  border-color: var(--border);
}

.emblem-glow {
  position: absolute;
  inset: auto -100px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 74%);
}

.emblem-card img {
  width: min(220px, 44%);
  margin-bottom: 28px;
}

.emblem-copy {
  display: grid;
  gap: 16px;
}

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

.strip-card {
  padding: 18px 20px;
  border-radius: 999px;
  text-align: center;
  color: var(--silver);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: end;
}

.section-heading {
  display: grid;
  gap: 18px;
}

.section-heading.centered {
  justify-items: center;
  text-align: center;
  margin-bottom: 36px;
}

.about-card,
.criteria-panel,
.cta-panel,
.contact-card {
  border-radius: var(--radius);
}

.about-card {
  padding: 34px;
  border-color: var(--border);
  position: relative;
}

.about-card::before,
.criteria-panel::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.56), rgba(217, 221, 227, 0.08), rgba(212, 175, 55, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card,
.portfolio-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover,
.feature-card:focus-within,
.portfolio-card:hover,
.portfolio-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
}

.feature-card::after,
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.feature-card:hover::after,
.portfolio-card:hover::after {
  opacity: 1;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-card p,
.portfolio-card p {
  margin-top: 14px;
}

.criteria-panel {
  position: relative;
  padding: 38px;
}

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

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(217, 221, 227, 0.08);
  color: var(--silver);
}

.criteria-item::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.criteria-note {
  margin-top: 26px;
  max-width: 58ch;
}

.cta-panel {
  position: relative;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at right top, rgba(212, 175, 55, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 37, 0.94) 0%, rgba(8, 18, 37, 0.82) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 30px;
}

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

label {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

label span {
  color: var(--silver);
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(217, 221, 227, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(245, 210, 122, 0.8);
  outline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-note {
  font-size: 0.92rem;
}

.site-footer {
  padding: 32px 0 42px;
  border-top: 1px solid rgba(217, 221, 227, 0.08);
}

.footer-inner,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.footer-meta {
  margin-top: 20px;
}

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

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

.reveal-delay {
  transition-delay: 120ms;
}

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

@keyframes pulseGrid {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.26; }
}

@media (max-width: 1040px) {
  .split-panel,
  .contact-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
  }

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

@media (max-width: 780px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding: 14px 0;
  }

  .brand-text span:last-child {
    display: none;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(4, 13, 29, 0.96);
    border: 1px solid rgba(217, 221, 227, 0.08);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-cta {
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 72px;
    background-image:
      linear-gradient(90deg, rgba(2, 8, 23, 0.98) 0%, rgba(2, 8, 23, 0.92) 42%, rgba(2, 8, 23, 0.66) 74%, rgba(2, 8, 23, 0.48) 100%),
      linear-gradient(180deg, rgba(2, 8, 23, 0.26) 0%, rgba(2, 8, 23, 0.92) 100%),
      image-set(
        url("assets/hero-macdonald-ventures.webp") type("image/webp"),
        url("assets/hero-macdonald-ventures.png") type("image/png")
      );
    background-position: 65% center;
  }

  .hero-layout {
    min-height: 0;
  }

  .focus-grid,
  .portfolio-grid,
  .criteria-grid,
  .field-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero {
    background-image:
      linear-gradient(90deg, rgba(2, 8, 23, 0.99) 0%, rgba(2, 8, 23, 0.97) 50%, rgba(2, 8, 23, 0.82) 76%, rgba(2, 8, 23, 0.66) 100%),
      linear-gradient(180deg, rgba(2, 8, 23, 0.34) 0%, rgba(2, 8, 23, 0.95) 100%),
      image-set(
        url("assets/hero-macdonald-ventures.webp") type("image/webp"),
        url("assets/hero-macdonald-ventures.png") type("image/png")
      );
    background-position: 70% center;
  }

  .hero-grid {
    opacity: 0.08;
  }

  .emblem-card,
  .about-card,
  .criteria-panel,
  .cta-panel,
  .contact-card,
  .feature-card,
  .portfolio-card {
    padding: 24px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
