:root {
  --bg: #07111d;
  --bg-soft: #0b1725;
  --bg-deep: #050b14;
  --text-light: #f5f1ea;
  --text-muted: rgba(245, 241, 234, 0.76);
  --text-dark: #121821;
  --text-dark-muted: rgba(18, 24, 33, 0.66);
  --page: #f5f1ea;
  --page-2: #efe8de;
  --card-light: rgba(255, 255, 255, 0.72);
  --card-dark: rgba(255, 255, 255, 0.06);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(18, 24, 33, 0.08);
  --accent: #8cd6ff;
  --accent-strong: #d5efff;
  --shadow-xl: 0 30px 80px rgba(3, 10, 21, 0.26);
  --shadow-lg: 0 18px 48px rgba(7, 15, 24, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
  --header-height: 92px;
  --easing: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; cursor: pointer; }
img, svg, video, canvas { display: block; max-width: 100%; }
::selection { background: rgba(140, 214, 255, 0.25); }

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 400;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 18px rgba(140, 214, 255, 0.45);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  padding: 18px 0;
  transition: padding 0.45s var(--easing);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 10px 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 18, 0.38);
  backdrop-filter: blur(18px) saturate(135%);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.45s var(--easing), transform 0.45s var(--easing);
}
.site-header.is-scrolled {
  padding: 10px 0;
}
.site-header.is-scrolled::before {
  opacity: 1;
  transform: translateY(0);
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}
.brand img {
  width: clamp(170px, 16vw, 228px);
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.86);
  padding: 10px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--easing);
  opacity: 0.6;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-cta {
  padding: 13px 18px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta::after { display: none; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-light);
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.35s var(--easing), opacity 0.35s var(--easing);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero-dark,
.site-footer,
.mini-cta { color: var(--text-light); }
.hero-dark,

.image-side-card img {
  filter: saturate(0.96) contrast(1.02);
}
.contact-grid .card {
  min-height: 100%;
}

.site-footer { background: var(--bg); }
.section-light { background: var(--page); color: var(--text-dark); }
.section-cream { background: var(--page-2); color: var(--text-dark); }
.section-dark { background: var(--bg); color: var(--text-light); }
.section {
  position: relative;
  padding: 88px 0;
  overflow: clip;
}

.hero,
.page-hero {
  position: relative;
  overflow: clip;
}
.hero {
  min-height: clamp(700px, 84svh, 860px);
  padding: calc(var(--header-height) + 32px) 0 74px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 14% 22%, rgba(140, 214, 255, 0.12), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(140, 214, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.85) 0%, rgba(7, 17, 29, 0.96) 100%);
}
.page-hero {
  padding: calc(var(--header-height) + 22px) 0 64px;
  background:
    radial-gradient(circle at 18% 20%, rgba(140, 214, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.85) 0%, rgba(7, 17, 29, 0.96) 100%);
}
.hero-grid,
.hero-canvas,
.hero-rings {
  position: absolute;
  inset: 0;
}
.hero-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  mix-blend-mode: screen;
}
.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.72;
}
.hero-rings span {
  position: absolute;
  border: 1px solid rgba(140, 214, 255, 0.12);
  border-radius: 50%;
  animation: drift 24s linear infinite;
}
.hero-rings span:nth-child(1) {
  width: 280px;
  height: 280px;
  top: 80px;
  left: 22%;
}
.hero-rings span:nth-child(2) {
  width: 460px;
  height: 460px;
  right: 12%;
  top: 200px;
  animation-duration: 30s;
}
.hero-rings span:nth-child(3) {
  width: 180px;
  height: 180px;
  right: -40px;
  top: 54px;
  animation-duration: 18s;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(180deg); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.68fr);
  gap: 40px;
  align-items: end;
}
.page-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.split-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  align-items: end;
}

.eyebrow,
.brief-label,
.panel-label,
.panel-label-dark,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow,
.brief-label,
.panel-label { color: rgba(245, 241, 234, 0.72); }
.eyebrow-dark,
.panel-label-dark,
.card-kicker { color: rgba(18, 24, 33, 0.48); }
.eyebrow::before,
.brief-label::before,
.panel-label::before,
.panel-label-dark::before,
.card-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.hero-copy { max-width: 760px; }
.hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  font-weight: 700;
}
.hero-title .title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.js .hero-title .title-line {
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.95s var(--easing), opacity 0.95s var(--easing);
}
body.is-ready .hero-title .title-line {
  opacity: 1;
  transform: translateY(0);
}
body.is-ready .hero-title .title-line:nth-child(1) { transition-delay: 0.10s; }
body.is-ready .hero-title .title-line:nth-child(2) { transition-delay: 0.22s; }
body.is-ready .hero-title .title-line:nth-child(3) { transition-delay: 0.34s; }
.hero-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(140, 214, 255, 0.18);
}
.hero-text,
.page-intro,
.footer-brand p,
.card p,
.cta-shell p,
.story-copy p,
.page-side-card li,
.bullet-list li {
  margin: 0;
}
.hero-text {
  margin-top: 26px;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-brief,
.page-side-card,
.card,
.analysis-panel,
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-brief,
.page-side-card,
.dark-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: var(--shadow-xl);
}
.hero-brief {
  padding: 28px 26px 26px;
  align-self: end;
}
.hero-brief h2 {
  margin: 18px 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.hero-brief ul,
.page-side-card ul,
.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-brief li,
.page-side-card li,
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}
.hero-brief li::before,
.page-side-card li::before,
.bullet-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(140, 214, 255, 0.55);
}

.page-title,
.display {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.page-title { font-size: clamp(2.7rem, 5vw, 5rem); max-width: 13ch; }
.display { font-size: clamp(2rem, 4vw, 4rem); }
.small-display { max-width: 14ch; }
.page-intro {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 1.02rem;
  color: var(--text-muted);
}
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head.narrow { max-width: 700px; }
.section-head p,
.story-copy p { color: var(--text-dark-muted); }
.story-copy p + p { margin-top: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--easing), background-color 0.4s var(--easing), border-color 0.4s var(--easing), box-shadow 0.4s var(--easing), color 0.4s var(--easing);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #061019;
  box-shadow: 0 16px 36px rgba(140, 214, 255, 0.24);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-dark {
  background: var(--text-dark);
  color: var(--text-light);
  box-shadow: 0 16px 36px rgba(18, 24, 33, 0.14);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-dark);
}
.text-link::after {
  content: "→";
  transition: transform 0.35s var(--easing);
}
.text-link:hover::after,
.text-link:focus-visible::after { transform: translateX(4px); }

.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid-2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  padding: 26px 24px 24px;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing), border-color 0.4s var(--easing);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
}
.light-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 24, 33, 0.07);
  box-shadow: var(--shadow-lg);
}
.light-card h3,
.dark-card h3,
.analysis-overlay strong,
.contact-card h3,
.process-card strong {
  margin: 16px 0 10px;
  font-size: clamp(1.38rem, 2vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.light-card p,
.process-card p,
.story-copy p,
.contact-card p,
.analysis-overlay strong {
  color: var(--text-dark-muted);
}
.light-card .bullet-list li,
.dark-bullets li {
  color: var(--text-dark-muted);
}
.dark-bullets li::before,
.light-card .bullet-list li::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(140, 214, 255, 0.35);
}
.dark-card,
.contact-card { color: var(--text-light); }
.dark-card p,
.contact-card p { color: var(--text-muted); }
.contact-card {
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.98) 0%, rgba(10, 18, 29, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.contact-card .btn-primary {
  margin-top: 18px;
}
.process-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(18, 24, 33, 0.06);
  box-shadow: 0 14px 34px rgba(18, 24, 33, 0.08);
}
.process-card strong {
  display: block;
}
.process-card h3,
.process-card strong { margin-bottom: 10px; }

.compact-services { padding-top: 74px; }
.compact-band { padding: 60px 0; }
.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
}
.compact-actions { margin-top: 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 24, 33, 0.08);
  box-shadow: 0 10px 26px rgba(18, 24, 33, 0.06);
  color: rgba(18, 24, 33, 0.84);
  font-size: 0.88rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 26px;
  align-items: start;
}
.analysis-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 24, 33, 0.08);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.analysis-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1.5 / 1;
  margin-bottom: 16px;
}
.analysis-media img,
.image-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.analysis-media::after,
.image-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.06) 0%, rgba(7, 17, 29, 0.64) 100%);
}
.analysis-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--text-light);
}
.analysis-overlay strong {
  display: block;
  margin: 10px 0 0;
  color: var(--text-light);
  font-size: 1.2rem;
}
.analysis-sheet {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 242, 247, 0.95) 0%, rgba(249, 251, 253, 1) 100%);
  border: 1px solid rgba(18, 24, 33, 0.08);
}
.sheet-header {
  width: 46%;
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 24, 33, 0.12);
  margin-bottom: 16px;
}
.sheet-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.sheet-columns span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 24, 33, 0.08);
}
.analysis-sheet svg {
  width: 100%;
  height: auto;
}

.page-side-card {
  padding: 24px;
}
.page-side-card.image-side-card {
  padding: 0;
  min-height: 260px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 20px;
}
.contact-card {
  padding: 28px;
}

.site-footer {
  position: relative;
  padding: 32px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px 40px;
  align-items: flex-end;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand img {
  width: min(250px, 60vw);
}
.footer-brand p {
  max-width: 42ch;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  color: rgba(245, 241, 234, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--easing), transform 0.85s var(--easing);
}
.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }
.js .reveal.delay-3 { transition-delay: 0.24s; }
.js .reveal.delay-4 { transition-delay: 0.32s; }
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .hero-layout,
  .split-page-hero,
  .story-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-brief,
  .page-side-card { max-width: 620px; }
  .card-grid-4up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 10px) 16px auto;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(6, 11, 18, 0.95);
    backdrop-filter: blur(18px) saturate(135%);
    display: grid;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--easing), transform 0.35s var(--easing);
  }
  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a,
  .nav-cta {
    width: 100%;
    padding: 14px 12px !important;
    border-radius: 14px;
  }
  .nav-cta { text-align: center; }
  .nav-toggle { display: inline-flex; }
  .card-grid-3up,
  .card-grid-2up,
  .cta-shell,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 740px) {
  .container,
  .container.wide {
    width: min(calc(100% - 28px), var(--max-width));
  }
  .site-header::before { inset: 8px 10px; }
  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }
  .hero-title {
    font-size: clamp(2.8rem, 16vw, 4.9rem);
  }
  .page-title,
  .display {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }
  .section {
    padding: 70px 0;
  }
  .hero-actions,
  .cta-actions { width: 100%; }
  .btn { width: 100%; }
  .card-grid-4up,
  .card-grid-3up,
  .card-grid-2up,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-brief,
  .page-side-card,
  .analysis-panel,
  .card {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-side-card.image-side-card { padding: 0; }
}
