/* Baseline Studio — minimal, confident, engineered */

:root {
  --bg: #0A0A0B;
  --panel: #141414;
  --panel-2: #101010;
  --text: #E8EDF2;
  --muted: #9AA4B2;
  --muted-2: #9AA4B2;
  --stroke: rgba(244, 244, 244, 0.12);
  --stroke-2: rgba(244, 244, 244, 0.18);
  --accent: #E8EDF2;
  --electric-blue: #2f6bff;
  --electric-blue-strong: rgba(47, 107, 255, 0.34);
  --electric-blue-mid: rgba(47, 107, 255, 0.18);
  --electric-blue-soft: rgba(47, 107, 255, 0.1);
  --electric-blue-faint: rgba(47, 107, 255, 0.06);

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --container: 1120px;

  /* Fixed header sizing */
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;

  /* Prevent anchor links from hiding under the fixed header */
  scroll-padding-top: calc(var(--header-h) + 8px);
}

/* ✅ KEY FIX: anchor offset applies to the actual element being targeted */
*[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  background: radial-gradient(
      1200px 700px at 20% 10%,
      rgba(244, 244, 244, 0.06),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 80% 30%,
      rgba(244, 244, 244, 0.04),
      transparent 60%
    ),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.5;

  /* Required: keep content from sliding under fixed header */
  padding-top: var(--header-h);
}
/* Sticky footer (keeps footer at bottom on short pages) */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sp-hero {
  flex: 1;
}

main {
  flex: 1;
}

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

p {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #000;
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* Header */

.site-header {
  position: fixed; /* static, not scrolling */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  /* solid, no glass */
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* Hero — Engineered */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  --hero-content-offset: 28vh;

  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container, 1120px);
  margin: 0 auto;

  transform: translate3d(0, var(--hero-content-offset), 0);

  display: flex;
  align-items: center;

  padding: clamp(28px, 5vw, 56px);
  padding-left: calc(clamp(28px, 5vw, 56px) + 16px);
}



.hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 58vw);
  height: auto;

  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.22) 0%,
    rgba(10, 10, 11, 0.18) 100%
  );

  border-radius: 10px;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  pointer-events: none;
  z-index: -1;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}




.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform:
    translate3d(0, var(--hero-media-y, 0px), 0)
    scale(var(--hero-media-scale, 1.02));

  will-change: transform;
}


/* Legibility layer (subtle) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 35%,
    rgba(0, 0, 0, 0.10) 70%,
    rgba(0, 0, 0, 0.00) 100%
  );
}


/* Offset placement */
.hero-title,
.hero-subtitle {
  max-width: 44ch;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 12px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: #9AA4B2;
  line-height: 1.5;
}

.hero-copy {
  transform: none;
}

.hero-title--stacked {
  max-width: min(11.5ch, 100%);
}

.hero-title-line {
  display: block;
}

.hero-title-line--top,
.hero-title-line--bottom {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title-line--focus {
  margin: 0.12em 0 0.14em;
  font-size: clamp(40px, 4.45vw, 56px);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.99;
}

@media (max-width: 640px) {
  .hero-copy {
    transform: none;
  }

  .hero-title--stacked {
    max-width: 10.5ch;
  }

  .hero-title-line--top,
  .hero-title-line--bottom {
    font-size: clamp(17px, 4.2vw, 20px);
  }

  .hero-title-line--focus {
    margin: 0.13em 0 0.15em;
    font-size: clamp(33px, 8.1vw, 42px);
    line-height: 1.01;
  }

  .hero-lede {
    max-width: 27ch;
    text-wrap: balance;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero--engineered .hero-media img {
    transform: scale(1.02);
    will-change: auto;
  }
}

.hero--engineered {
  --hero-media-y: 0px;
  --hero-media-scale: 1.0;
  position: relative;
  isolation: isolate;
}

.hero--engineered::after {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 34vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      60% 85% at 22% 30%,
      rgba(47, 107, 255, 0.12) 0%,
      rgba(47, 107, 255, 0.04) 42%,
      rgba(47, 107, 255, 0) 100%
    ),
    radial-gradient(
      48% 70% at 78% 18%,
      rgba(47, 107, 255, 0.08) 0%,
      rgba(47, 107, 255, 0.03) 40%,
      rgba(47, 107, 255, 0) 100%
    );
  filter: blur(22px);
}


/* Secondary hero spacing (restore original vertical rhythm) */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(96px, 14vh, 160px) 0;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 10% auto auto 8%;
  width: min(38vw, 420px);
  height: min(28vw, 260px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(47, 107, 255, 0.08) 0%,
    rgba(47, 107, 255, 0.03) 48%,
    rgba(47, 107, 255, 0) 100%
  );
  filter: blur(18px);
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero .hero-title {
  margin-bottom: 24px;
}

.home-hero .hero-lede {
  margin-bottom: 32px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, calc(var(--hero-content-offset) + 14px), 0);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}



.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--hero-content-offset), 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  height: clamp(28px, 3vw, 34px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo img {
  display: block;
  height: clamp(28px, 3vw, 34px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-toggle {
  display: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8edf2;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(244, 244, 244, 0.08);
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.98) 0%,
      rgba(15, 17, 21, 0.96) 28%,
      rgba(10, 10, 11, 0.98) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #e8edf2;
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.99) 0%,
      rgba(15, 17, 21, 0.97) 28%,
      rgba(10, 10, 11, 0.99) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.016) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 0 1px rgba(47, 107, 255, 0.22),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

.nav-link.is-active {
  color: #e8edf2;
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.99) 0%,
      rgba(15, 17, 21, 0.97) 28%,
      rgba(10, 10, 11, 0.99) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.016) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  border: 1px solid rgba(47, 107, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 0 1px rgba(47, 107, 255, 0.22),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

.portfolio-page .portfolio-page-nav {
  gap: 36px !important;
}

@media (min-width: 781px) {
  .portfolio-page .header-inner {
    justify-content: flex-start;
  }

  .portfolio-page .portfolio-page-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px !important;
  }
}

.nav-cta {
  color: var(--text);
  background: var(--text);
}

.nav-cta:hover {
  background: rgba(244, 244, 244, 0.9);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: rgba(244, 244, 244, 0.05);
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  opacity: 0.85;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

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


.kicker {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title-accent {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.hero-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 160ms ease,
    color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #e8edf2;
  color: var(--text);
}

.home-hero .btn-primary,
.about-text .btn-primary {
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.98) 0%,
      rgba(15, 17, 21, 0.96) 28%,
      rgba(10, 10, 11, 0.98) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  color: #e8edf2;
  border-color: rgba(244, 244, 244, 0.08);
  padding: 15px 20px;
  min-height: 52px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: rgba(244, 244, 244, 0.92);
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

.home-hero .btn-primary:hover,
.home-hero .btn-primary:focus-visible,
.about-text .btn-primary:hover,
.about-text .btn-primary:focus-visible {
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.99) 0%,
      rgba(15, 17, 21, 0.97) 28%,
      rgba(10, 10, 11, 0.99) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.016) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  color: #e8edf2;
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 0 1px rgba(47, 107, 255, 0.22),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

.btn-secondary {
  background: rgba(244, 244, 244, 0.06);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(47, 107, 255, 0.08);
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

.btn:focus-visible {
  outline: none;
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 0 4px rgba(47, 107, 255, 0.12),
    0 0 20px rgba(47, 107, 255, 0.12);
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-meta li {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(244, 244, 244, 0.03);
}

/* Hero card */

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(244, 244, 244, 0.06),
    rgba(244, 244, 244, 0.02)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 320px;
}

.hero-card-inner {
  padding: 16px;
}

.hero-card-top {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.22);
}

.hero-card-body {
  padding-top: 16px;
}

.line {
  height: 10px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.08);
  border: 1px solid rgba(244, 244, 244, 0.10);
  margin-bottom: 10px;
}

.w-80 {
  width: 80%;
}
.w-55 {
  width: 55%;
}
.w-70 {
  width: 70%;
}

.spacer {
  height: 14px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(244, 244, 244, 0.03);
}

.block {
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
}

/* Sections */
.section {
  padding: 40px 0; /* tightened for fixed header */
}

#deliverables.section {
  padding-bottom: 52px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 74ch;
}

.section-head h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--stroke);
  background: rgba(244, 244, 244, 0.03);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.card-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-list li {
  padding-left: 14px;
  position: relative;
}

.card-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #9AA4B2;
}

/* Steps */

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  border: 1px solid var(--stroke);
  background: rgba(244, 244, 244, 0.03);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #E8EDF2;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-body p {
  color: var(--muted);
  font-size: 14px;
}

/* Projects placeholder */

.projects-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-skel {
  height: 170px;
  border-radius: var(--radius);
  border: 1px dashed rgba(244, 244, 244, 0.18);
  background: rgba(244, 244, 244, 0.02);
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

/* ✅ Safe fallback: if image fails to load, it won’t leave an awkward blank */
.about-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  filter: brightness(0.95);
}

/* Hide broken image elements cleanly */
.about-image img:not([src]),
.about-image img[src=""] {
  display: none;
}

/* If there’s no image showing, don’t keep “centered empty” behavior */
.about-image:has(img:not([src])),
.about-image:has(img[src=""]) {
  display: none;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.about-thesis {
  color: var(--text);
  margin-top: 6px;
  margin-bottom: 88px;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image-mobile {
  display: none;
}

/* Mobile */
@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    display: none;
  }

  .about-image-mobile {
    display: flex;
    justify-content: center;
    width: 85%;
    margin: 24px auto;
  }

  .about-image-mobile img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    filter: brightness(0.95);
  }
}

.checklist {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checklist li {
  padding-left: 22px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  opacity: 0.65;
}

.aside-callout {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

/* Footer */

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

.brand--footer .brand-mark {
  font-size: 16px;
}

/* --- Work (matches your HTML) --- */
.work-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(244, 244, 244, 0.03);
  background-image: linear-gradient(
    160deg,
    rgba(244, 244, 244, 0.06),
    rgba(244, 244, 244, 0)
  );
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease,
    background 160ms ease, box-shadow 160ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 255, 0.36);
  background: rgba(244, 244, 244, 0.04);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(47, 107, 255, 0.2),
    0 0 28px rgba(47, 107, 255, 0.18),
    0 0 52px rgba(47, 107, 255, 0.08);
}

.work-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.work-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.work-year {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.work-desc {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   Work Grid (Portfolio page)
   ============================================================ */

.work-header {
  padding: 80px 0 52px;
}

.work-header__title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  margin-top: 10px;
}

.work-grid-section {
  padding-bottom: 120px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-grid .deliver-card--media .deliver-media {
  aspect-ratio: 1 / 1;
}

.work-card {
  display: block;
  position: relative;
  text-decoration: none;
  background: var(--panel);
  overflow: hidden;
  outline-offset: 3px;
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}


.work-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(1.03);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 280ms ease;
}

.work-card:hover .work-card__overlay,
.work-card:focus-visible .work-card__overlay {
  opacity: 1;
}

.work-card__cta {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 11px 22px;
  border: 1px solid rgba(232, 237, 242, 0.28);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(6px);
  transition: transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card__cta,
.work-card:focus-visible .work-card__cta {
  transform: translateY(0);
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid var(--stroke);
  background: var(--panel);
}

.work-card__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9AA4B2;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.work-card__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  flex: 1;
}

.work-card__category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA4B2;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .work-header {
    padding: 56px 0 36px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .work-card--featured .work-card__media {
    aspect-ratio: 4 / 3;
  }

  .work-card__meta {
    padding: 16px 20px;
  }

  .work-card__name {
    font-size: 16px;
  }
}

/* ============================================================
   Project page
   ============================================================ */

.project-hero {
  background: var(--panel-2);
}

.project-hero__image {
  width: 100%;
  max-height: 72vh;
  overflow: hidden;
  line-height: 0;
}

.project-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: cover;
  object-position: top center;
}

.project-intro {
  padding: calc(var(--header-h) + 56px) 0 64px;
  border-bottom: 1px solid var(--stroke);
}

.project-intro__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.project-intro__title {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 8px;
}

.project-intro__head {
  margin-top: -10px;
}

.project-intro__body {
  padding-top: 36px;
}

.project-intro__logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-top: 12px;
  margin-left: -58px;
}

.project-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-meta__item dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA4B2;
}

.project-meta__item dd {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.project-intro__overview {
  font-size: 17px;
  line-height: 1.7;
  color: #9AA4B2;
  margin-bottom: 36px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #9AA4B2;
  transition: color 160ms ease;
  text-decoration: none;
}

.project-back:hover,
.project-back:focus-visible {
  color: var(--text);
}

.project-gallery {
  padding: 64px 0 80px;
}

.project-gallery > .container {
  max-width: min(50vw, calc(100% - 48px));
  min-width: 320px;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.project-gallery__item {
  margin: 0;
  overflow: hidden;
  background: var(--panel-2);
  line-height: 0;
}

.project-gallery__item--wide {
  grid-column: span 3;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.project-end {
  padding: 80px 0 100px;
  border-top: 1px solid var(--stroke);
}

.project-end__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.project-end__headline {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.project-end .btn-primary {
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.98) 0%,
      rgba(15, 17, 21, 0.96) 28%,
      rgba(10, 10, 11, 0.98) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  color: #e8edf2;
  border-color: rgba(244, 244, 244, 0.08);
  padding: 15px 20px;
  min-height: 52px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.project-end .btn-primary:hover,
.project-end .btn-primary:focus-visible {
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.99) 0%,
      rgba(15, 17, 21, 0.97) 28%,
      rgba(10, 10, 11, 0.99) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.016) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  color: #e8edf2;
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(47, 107, 255, 0.18),
    0 0 0 1px rgba(47, 107, 255, 0.22),
    0 0 20px rgba(47, 107, 255, 0.14),
    0 0 38px rgba(47, 107, 255, 0.07);
}

@media (max-width: 768px) {
  .project-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .project-gallery__item--wide {
    grid-column: span 1;
  }

  .project-hero__image {
    max-height: 50vw;
  }

  .project-hero__image img {
    max-height: 50vw;
  }
}

/* --- Core Qualities (matches your HTML) --- */
.deliverables-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.deliver-card {
  position: relative;
  isolation: isolate;
  display: block;
  border: none;
  border-radius: var(--radius);
  padding: 18px;
  overflow: visible;
  background: #0a0a0b;
  background-image: linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.98) 0%,
      rgba(15, 17, 21, 0.96) 28%,
      rgba(10, 10, 11, 0.98) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  background-size:
    auto,
    100% 64px;
  background-position:
    0 0,
    top center;
  background-repeat:
    no-repeat,
    no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease, border-color 160ms ease,
    background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.deliver-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.36),
    0 0 28px rgba(47, 107, 255, 0.2),
    0 0 52px rgba(47, 107, 255, 0.1);
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.deliver-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      120% 52% at 50% -8%,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.014) 28%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0) 24%
    );
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.deliver-card > * {
  position: relative;
  z-index: 1;
}

.deliverables-grid > .deliver-card:first-child .deliver-content h3,
.deliverables-grid > .deliver-card:nth-child(3) .deliver-content h3 {
  margin-bottom: 6px;
}

.deliver-card:hover,
.deliver-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.deliver-card:hover::before,
.deliver-card:focus-within::before {
  opacity: 1;
}

.deliver-card:hover::after,
.deliver-card:focus-within::after {
  opacity: 1;
}

/* Hover-reveal paragraph */
.deliver-more {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deliver-card:hover .deliver-more,
.deliver-card:focus-within .deliver-more {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

.deliver-cta-wrap {
  display: block;
  margin-top: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deliver-card:hover .deliver-cta-wrap,
.deliver-card:focus-within .deliver-cta-wrap {
  max-height: 64px;
  opacity: 1;
  transform: translateY(0);
}

.deliver-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(244, 244, 244, 0.08);
  background: #111317;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 19, 23, 0.98) 0%,
      rgba(15, 17, 21, 0.96) 28%,
      rgba(10, 10, 11, 0.98) 100%
    ),
    radial-gradient(
      88% 30px at 50% 0,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background 160ms ease, color 120ms ease;
}

.deliver-card:hover .deliver-cta,
.deliver-card:focus-within .deliver-cta {
  border-color: rgba(244, 244, 244, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.deliver-copy--muted {
  color: #9AA4B2;
}

/* Banner media */
.deliver-card--media .deliver-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.deliver-media--placeholder {
  background:
    radial-gradient(
      120% 115% at 18% 12%,
      rgba(70, 78, 92, 0.42) 0%,
      rgba(70, 78, 92, 0) 52%
    ),
    linear-gradient(140deg, #2B313A 0%, #1D222A 38%, #111317 100%);
}

.deliver-card--placeholder .deliver-media,
.deliver-card--image-only .deliver-media {
  margin-bottom: 0;
}

.deliver-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 237, 242, 0.12);
  background: rgba(10, 10, 11, 0.72);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.deliver-card--media .deliver-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.deliver-card--placeholder .deliver-img {
  filter: brightness(0.68) saturate(0.72);
}

.deliver-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deliver-card:hover .deliver-img--hover,
.deliver-card:focus-within .deliver-img--hover {
  opacity: 1;
  transform: scale(1);
}

/* Responsive for these grids */
@media (max-width: 960px) {
  .work-grid,
  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel__viewport {
    height: min(72vh, 680px);
    max-height: 72vh;
    padding: 0 56px;
  }

  .portfolio-slide {
    inset: 0 56px;
  }
}

@media (max-width: 640px) {
  .portfolio-carousel__viewport {
    height: min(68vh, 520px);
    max-height: 68vh;
    padding: 0 44px;
  }

  .portfolio-slide {
    inset: 0 44px;
  }

  .portfolio-slide img {
    max-height: 68vh;
  }

  .portfolio-carousel__arrow {
    width: 36px;
    height: 36px;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 280px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .projects-placeholder {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .site-nav {
    position: absolute;
    right: 24px;
    top: calc(var(--header-h) + 10px);
    width: min(320px, calc(100% - 48px));
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 12px;
  }

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

/* HARD KILL: hero UI mock */
.hero-card,
.hero-card * {
  display: none !important;
}

/* Prevent grid from reserving space */
.hero-grid {
  grid-template-columns: 1fr !important;
}

/* Start Project page (sp-*) */
.sp-hero{position:relative;isolation:isolate;padding:64px 0 48px;}
.sp-hero__inner{display:grid;gap:18px;}
.sp-hero__eyebrow{color:var(--muted-2);text-transform:uppercase;letter-spacing:.18em;font-size:12px;}
.sp-hero__title{font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.1;}
.sp-hero__sub{color:var(--muted);max-width:56ch;}
.sp-hero::before{content:"";position:absolute;inset:20px auto auto 10%;width:min(52vw,540px);height:300px;pointer-events:none;z-index:0;background:radial-gradient(50% 50% at 50% 50%,rgba(47,107,255,.22) 0%,rgba(47,107,255,.08) 46%,rgba(47,107,255,0) 100%);filter:blur(16px);}
.sp-hero__inner{position:relative;z-index:1;}
.sp-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;}
.sp-hero__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:14px;border:1px solid var(--stroke);font-size:14px;font-weight:600;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,color .2s ease;}
.sp-hero__btn--primary{background:linear-gradient(180deg,#1c1c20 0%,#101012 100%);color:var(--text);border-color:var(--stroke-2);}
.sp-hero__btn--ghost{background:transparent;color:var(--text);}
.sp-hero__btn:hover,.sp-hero__btn:focus-visible{transform:translateY(-1px);border-color:rgba(47,107,255,.34);box-shadow:0 0 0 1px rgba(47,107,255,.18),0 0 20px rgba(47,107,255,.14),0 0 38px rgba(47,107,255,.07);} 
.sp-hero__meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:18px;}
.sp-hero__metaItem{padding:14px 16px;border-radius:var(--radius-sm);border:1px solid var(--stroke);background:var(--panel);}
.sp-hero__metaLabel{display:block;color:var(--muted-2);font-size:12px;text-transform:uppercase;letter-spacing:.16em;margin-bottom:4px;}
.sp-hero__metaValue{font-weight:600;}

.sp-form{position:relative;isolation:isolate;padding:32px 0 80px;}
.sp-form::before{content:"";position:absolute;inset:0 10% auto auto;width:min(34vw,360px);height:220px;pointer-events:none;z-index:0;background:radial-gradient(50% 50% at 50% 50%,rgba(47,107,255,.08) 0%,rgba(47,107,255,.03) 44%,rgba(47,107,255,0) 100%);filter:blur(22px);}
.sp-form__inner{position:relative;z-index:1;}
.sp-form__header{display:grid;gap:12px;margin-bottom:32px;}
.sp-form__lead{color:var(--muted);max-width:60ch;}
.sp-form__card{position:relative;display:grid;gap:22px;padding:28px 32px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--stroke-2);box-shadow:var(--shadow);}
.sp-form__card::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(47,107,255,.08) 0%,rgba(47,107,255,0) 18%);opacity:.7;}
.sp-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
.sp-field{display:grid;gap:8px;}
.sp-field--full{grid-column:1/-1;}
.sp-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.11em;font-weight:500;}
.sp-input,.sp-select,.sp-textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(244,244,244,0.1);background:#080809;color:var(--text);font:inherit;}
.sp-input::placeholder,.sp-textarea::placeholder{color:rgba(154,164,178,.4);}
.sp-input:focus,.sp-select:focus,.sp-textarea:focus{outline:none;border-color:rgba(47,107,255,.36);box-shadow:0 0 0 1px rgba(47,107,255,.26),0 0 0 4px rgba(47,107,255,.12),0 0 26px rgba(47,107,255,.1);}
.sp-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;}
.sp-form__footer{display:flex;flex-wrap:wrap;align-items:center;gap:16px;}
.sp-submit{padding:12px 28px;border-radius:14px;border:1px solid var(--stroke-2);background:linear-gradient(180deg,#1c1c20 0%,#101012 100%);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;}
.sp-submit:hover,.sp-submit:focus-visible{border-color:rgba(47,107,255,.34);box-shadow:0 0 0 1px rgba(47,107,255,.18),0 0 20px rgba(47,107,255,.14),0 0 38px rgba(47,107,255,.07);transform:translateY(-1px);}
.sp-note{color:var(--muted-2);}
.sp-note a{color:var(--text);text-decoration:underline;}
@media (max-width:780px){.sp-hero{padding:48px 0 36px;}.sp-form__grid{grid-template-columns:1fr;}.sp-form__footer{flex-direction:column;align-items:flex-start;}}
/* =========================
   FOOTER — CANONICAL
   ========================= */

.site-footer {
  padding: 18px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 400;
}

/* absolutely no motion */
.site-footer,
.site-footer * {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Thank-you page refinement */

.sp-hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sp-next {
  margin-top: 48px;
}

.sp-next__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.sp-next__item {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
}

.sp-next__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.sp-hero__btn--ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
}

.sp-hero__btn--ghost:hover,
.sp-hero__btn--ghost:focus-visible {
  border-color: rgba(47, 107, 255, 0.24);
}

@media (max-width: 900px) {
  .sp-next__grid {
    grid-template-columns: 1fr;
  }
}
/* THANK YOU PAGE REFINEMENT */

.sp-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.sp-next {
  margin-top: 56px;
}

.sp-next__grid {
  max-width: 980px;
  margin: 32px auto 0 auto;
}

.sp-next__item {
  text-align: left;
}

.sp-hero__actions {
  margin-top: 56px;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sp-hero {
  flex: 1;
}

.sp-next__item {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.sp-next__item:hover,
.sp-next__item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 255, 0.38);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(47, 107, 255, 0.2),
    0 0 28px rgba(47, 107, 255, 0.18),
    0 0 52px rgba(47, 107, 255, 0.08);
  background: var(--panel-2);
}

@media (max-width: 600px) {
  .sp-next__item {
    aspect-ratio: auto;
    width: clamp(220px, 62vw, 300px);
    min-height: clamp(220px, 62vw, 300px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .sp-hero__eyebrow,
  .sp-hero__inner > h1,
  .sp-hero__inner > p {
    width: min(70vw, 320px);
    margin-inline: auto;
  }

  .sp-hero__inner > p {
    max-width: 260px;
  }
}
