/* High-contrast, touch-friendly additions shared by desktop and mobile. */
:root {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-alt: rgba(241, 245, 249, 0.96);
  --border: rgba(51, 65, 85, 0.18);
  --border-strong: rgba(30, 41, 59, 0.3);
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-mute: #475569;
}

html[data-theme="dark"] {
  --panel: rgba(20, 29, 48, 0.94);
  --panel-strong: rgba(10, 15, 29, 0.98);
  --panel-alt: rgba(20, 27, 46, 0.97);
  --border: rgba(203, 213, 225, 0.2);
  --border-strong: rgba(226, 232, 240, 0.34);
  --ink: #f8fafc;
  --ink-soft: #d7deea;
  --ink-mute: #bac5d6;
}

html,
body {
  font-size: 16px;
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
canvas {
  max-width: 100%;
}

/*
 * Keep reveal effects from shifting neighboring columns into one another.
 * The original directional selectors were more specific than `.reveal.in-view`,
 * which left elements permanently translated after the animation completed.
 */
.js .reveal[data-reveal="left"],
.js .reveal[data-reveal="right"] {
  transform: translateY(28px);
}

.js .reveal.in-view {
  transform: none;
}

:is(.nav, .nav-list, .hero-inner, .about-grid, .card-grid, .contact-grid, .footer-grid) > *,
:is(.about-grid, .card-grid, .contact-grid, .footer-grid) > * {
  min-width: 0;
}

:is(h1, h2, h3, p, a, span, strong, label) {
  overflow-wrap: anywhere;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.glass {
  background: var(--panel);
  border-color: var(--border-strong);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav.scrolled,
.section,
.footer {
  background: var(--panel-strong);
}

.nav {
  width: min(1180px, 100%);
}

.nav-list {
  min-width: 0;
}

.section.alt {
  background: var(--panel-alt);
}

.hero-inner {
  width: min(760px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.88);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}

.hero-actions .btn {
  max-width: 100%;
}

html[data-theme="dark"] .hero-inner {
  background: rgba(10, 15, 29, 0.88);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.nav-link,
.nav-cta,
.btn,
.marquee span,
.info-row,
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: 1rem;
}

.btn,
.nav-cta,
.nav-toggle,
.theme-toggle,
.graphics-toggle,
.language-toggle,
.social-icon {
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle {
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  width: auto;
  min-width: 102px;
  padding: 0 13px 0 38px;
  border-radius: 999px;
}

.theme-toggle .theme-icon {
  left: 12px;
}

.theme-toggle .theme-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-code,
.eyebrow,
.badge,
.tag,
.hero-float small,
.about-mark p,
.stat-label,
.follow-label,
.field label,
.form-note,
.footer-brand-col p,
.footer-col h6,
.footer-col a,
.footer-bottom {
  font-size: 0.875rem;
}

.card p,
.process-step p {
  font-size: 1rem;
  line-height: 1.7;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card,
.about-mark,
.contact-info,
.contact-form {
  min-width: 0;
}

.info-row > div,
.process-step > div:last-child {
  min-width: 0;
}

.info-row a,
.footer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form :is(input, select, textarea) {
  width: 100%;
  max-width: 100%;
}

.field label {
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 144px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-mute);
  opacity: 1;
}

@media (max-width: 1300px) {
  .nav-wrap {
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }

  .nav-list {
    width: 100%;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  }

  .theme-toggle {
    min-width: 100%;
    padding-left: 2.7rem;
  }

  .theme-toggle .theme-icon {
    left: 0.7rem;
  }

  .theme-toggle .theme-label {
    font-size: 0.95rem;
    font-weight: 600;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: 5.25rem;
  }

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .hero {
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 2rem) max(1rem, env(safe-area-inset-right)) 3.5rem max(1rem, env(safe-area-inset-left));
  }

  .hero-title {
    line-height: 1.12;
  }

  .hero-inner {
    padding: 1.5rem 1.15rem;
  }

  .section-head {
    margin-bottom: 2.3rem;
  }

  .section-head h2,
  .about-copy h3 {
    text-wrap: balance;
  }

  .process-step {
    gap: 1rem;
  }

  .contact-info,
  .contact-form,
  .card,
  .about-mark {
    padding: 1.5rem 1.25rem;
  }

  .footer {
    padding-bottom: calc(1.8rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: max(1rem, env(safe-area-inset-left));
  }

  .nav {
    padding: 0.55rem 0.65rem 0.55rem 0.8rem;
  }

  .brand-logo-frame {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 4.25rem 0;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10.5vw, 2.45rem);
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.65;
  }

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

  .process::before {
    left: 23px;
  }

  .step-num {
    width: 48px;
    height: 48px;
  }

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

  .footer-brand-col {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .nav-wrap {
    padding-top: 0.45rem;
  }

  .hero-inner,
  .contact-info,
  .contact-form,
  .card,
  .about-mark {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .process-step {
    align-items: flex-start;
  }

  .process::before {
    display: none;
  }

  .step-num {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .nav-list {
    max-height: calc(100dvh - 82px);
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(15, 23, 42, 0.38);
    --border-strong: rgba(15, 23, 42, 0.58);
  }

  html[data-theme="dark"] {
    --border: rgba(248, 250, 252, 0.38);
    --border-strong: rgba(248, 250, 252, 0.62);
  }
}

/* 2026 homepage conversion and portfolio refresh. */
.nav-list {
  gap: clamp(0.8rem, 1.45vw, 1.55rem);
}

.hero {
  padding-top: calc(var(--nav-h) + 3.25rem);
}

.hero-inner {
  width: min(800px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-title {
  max-width: 720px;
  margin-inline: auto;
  text-wrap: balance;
}

.hero-sub {
  max-width: 630px;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.hero-proof li > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--indigo);
  font-size: 0.72rem;
}

.card-left {
  top: 27%;
  left: max(2.5%, calc(50% - 620px));
}

.card-right {
  top: 22%;
  right: max(2.5%, calc(50% - 620px));
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* Keep the brand mark contained and separate from the about copy at every width. */
.about-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.about-grid > *,
.faq-layout > * {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.about-mark {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-logo {
  position: static;
  z-index: 0;
  width: min(100%, 420px);
  max-height: 150px;
  flex: 0 1 auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.about-mark p,
.about-copy {
  position: relative;
  z-index: 1;
}

.value-point {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.value-point > span {
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.value-point h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.value-point p {
  font-size: 0.82rem;
  line-height: 1.55;
}

.work-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(79, 70, 229, 0.08), transparent 28%),
    radial-gradient(circle at 92% 84%, rgba(14, 165, 233, 0.08), transparent 28%),
    var(--panel-strong);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.work-card {
  overflow: hidden;
  min-width: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.work-card-project {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  min-height: 430px;
}

.work-project-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf0f6, #dce7f1);
}

.work-project-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.work-card-project:hover .work-project-screen {
  transform: none;
  filter: saturate(1.03) contrast(1.01);
}

.work-project-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 45%, rgba(4, 11, 20, 0.28)),
    linear-gradient(0deg, rgba(4, 11, 20, 0.64), transparent 50%);
  pointer-events: none;
}

.work-project-icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.work-project-film {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.7);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.work-project-film > span:first-child {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 0.58rem;
}

.work-project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}

.work-card-featured {
  grid-row: span 2;
}

.work-visual {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(145deg, #15183a, #372568 58%, #176488);
}

.work-card-featured .work-visual {
  min-height: 370px;
}

.work-copy {
  padding: 1.6rem;
}

.work-type {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  text-wrap: balance;
}

.work-copy p {
  font-size: 0.94rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.work-tags li {
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.mock-window {
  position: absolute;
  inset: 9% 7% auto;
  height: 10%;
  border-radius: 13px 13px 0 0;
  background: rgba(255, 255, 255, 0.94);
}

.mock-window i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 12px 0 0 7px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.35);
}

.mock-sidebar {
  position: absolute;
  top: 19%;
  bottom: 8%;
  left: 7%;
  width: 23%;
  border-radius: 0 0 0 13px;
  background: rgba(244, 247, 255, 0.92);
}

.mock-kpi {
  position: absolute;
  top: 24%;
  right: 7%;
  left: 34%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
}

.mock-kpi span {
  height: 58px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.mock-chart {
  position: absolute;
  right: 7%;
  bottom: 8%;
  left: 34%;
  height: 45%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 10% 8% 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.mock-chart b {
  width: 10%;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(var(--indigo), var(--violet));
}

.mock-chart b:nth-child(1) { height: 35%; }
.mock-chart b:nth-child(2) { height: 62%; }
.mock-chart b:nth-child(3) { height: 48%; }
.mock-chart b:nth-child(4) { height: 82%; }
.mock-chart b:nth-child(5) { height: 68%; }

.work-visual-site {
  background: linear-gradient(145deg, #f4ecff, #d7e9ff);
}

.mock-site-nav,
.mock-site-title,
.mock-site-copy,
.mock-site-button {
  position: absolute;
  left: 10%;
  border-radius: 999px;
  background: rgba(21, 24, 58, 0.88);
}

.mock-site-nav { top: 14%; right: 10%; height: 13px; opacity: 0.3; }
.mock-site-title { top: 34%; width: 62%; height: 24px; }
.mock-site-copy { top: 52%; width: 48%; height: 9px; opacity: 0.32; }
.mock-site-button { top: 67%; width: 24%; height: 28px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }

.work-visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #122c38, #143f55 55%, #293163);
}

.flow-node {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.work-visual-flow > span {
  width: clamp(18px, 5vw, 52px);
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.work-visual-flow > span::after {
  content: "›";
  display: block;
  color: #fff;
  transform: translate(100%, -54%);
}

.marquee-wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.75rem;
  -webkit-mask-image: none;
  mask-image: none;
}

.marquee {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  animation: none;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.availability i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.contact-intro {
  margin: -0.45rem 0 1.4rem;
  font-size: 0.92rem;
}

.contact-promises {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--border);
}

.contact-promises li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-promises li > span:first-child {
  color: var(--indigo);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.form-privacy {
  margin: 0.9rem 0 0;
  color: var(--ink-mute);
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card-featured {
    grid-row: auto;
  }

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

  .work-project-media {
    min-height: 360px;
  }

  .work-card-featured .work-visual,
  .work-visual {
    min-height: 260px;
  }

  .contact-info {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2.5rem);
  }

  .hero-inner {
    padding: 1.75rem 1.15rem;
  }

  .hero-proof {
    justify-content: flex-start;
  }

  .hero-proof li {
    flex: 1 1 100%;
  }

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

  .work-card-featured .work-visual,
  .work-visual {
    min-height: 210px;
  }

  .work-project-media {
    min-height: 260px;
  }

  .work-project-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .mock-kpi span {
    height: 42px;
  }

  .work-copy {
    padding: 1.3rem;
  }

  .marquee-wrap {
    padding-inline: 1rem;
  }
}

/* Phase 1: signature hero motion and first-impression details. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-inner {
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  transform: perspective(1200px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, box-shadow 350ms var(--ease);
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.32), transparent 34%, transparent 68%, rgba(79, 70, 229, 0.08));
}

html[data-theme="dark"] .hero-inner::before {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 34%, transparent 68%, rgba(144, 149, 255, 0.1));
}

.hero-title-visual,
.hero-title-lead,
.hero-rotator {
  display: block;
}

.hero-title-lead {
  font-size: 0.54em;
  line-height: 1.2;
  margin-bottom: 0.22em;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-rotator {
  min-height: 1.12em;
  overflow: hidden;
}

#heroRotatingText {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 230ms ease, transform 230ms var(--ease), filter 230ms ease;
  text-wrap: balance;
}

#heroRotatingText.is-changing {
  opacity: 0;
  transform: translateY(-0.34em) scale(0.985);
  filter: blur(5px);
}

.hero-intro {
  animation: hero-intro-up 760ms var(--ease) both;
}

.hero-intro-1 { animation-delay: 90ms; }
.hero-intro-2 { animation-delay: 170ms; }
.hero-intro-3 { animation-delay: 250ms; }
.hero-intro-4 { animation-delay: 330ms; }
.hero-intro-5 { animation-delay: 410ms; }

.hero-float-intro {
  animation: hero-float-arrive 900ms var(--ease) both;
}

.hero-float-intro.card-left { animation-delay: 520ms; }
.hero-float-intro.card-right { animation-delay: 620ms; }

.nav .brand-logo-frame {
  position: relative;
  isolation: isolate;
  animation: brand-arrive 820ms var(--ease) both;
}

.nav .brand-logo-frame::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.78) 49%, transparent 60%);
  transform: translateX(-70%) rotate(8deg);
  animation: brand-sheen 1100ms 720ms var(--ease) both;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  color: var(--ink-mute);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: scroll-cue-arrive 700ms 900ms var(--ease) both;
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: scroll-cue-bounce 1800ms 1600ms ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--indigo);
}

@keyframes hero-intro-up {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes hero-float-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes brand-arrive {
  0% { opacity: 0; transform: scale(0.68) rotate(-12deg); }
  62% { opacity: 1; transform: scale(1.07) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes brand-sheen {
  from { transform: translateX(-70%) rotate(8deg); }
  to { transform: translateX(70%) rotate(8deg); }
}

@keyframes scroll-cue-arrive {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 760px) {
  .hero-title-lead {
    font-size: 0.6em;
  }

  .hero-rotator {
    min-height: 2.2em;
  }

  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    transform: none !important;
    transition: none;
  }

  .hero-intro,
  .hero-float-intro,
  .nav .brand-logo-frame,
  .nav .brand-logo-frame::after,
  .scroll-cue,
  .scroll-cue svg {
    animation: none !important;
  }

  #heroRotatingText {
    transition: none;
  }
}

/* Phase 2: interactive public-safe project blueprints. */
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  transition: gap 220ms var(--ease), border-color 220ms ease;
}

.work-link svg {
  width: 16px;
  height: 16px;
}

.work-link:hover {
  gap: 0.72rem;
  border-color: currentColor;
}

body.dialog-open {
  overflow: hidden;
}

.case-study-dialog {
  width: min(1040px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90dvh, 860px);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.3);
}

.case-study-dialog::backdrop {
  background: rgba(8, 10, 24, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.case-study-dialog[open] {
  animation: case-dialog-in 360ms var(--ease) both;
}

.case-study-shell {
  position: relative;
  min-height: 100%;
}

.case-study-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(10, 15, 29, 0.38);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 200ms ease, transform 200ms var(--ease);
}

.case-study-close:hover {
  background: rgba(10, 15, 29, 0.68);
  transform: rotate(5deg) scale(1.04);
}

.case-study-close svg {
  width: 19px;
  height: 19px;
}

.case-study-panel[hidden] {
  display: none;
}

.case-study-cover {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem 2rem;
  isolation: isolate;
}

.case-study-cover > span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.cover-platform {
  background: linear-gradient(135deg, #111638 0%, #373078 50%, #1678a4 100%);
}

.cover-website {
  background: linear-gradient(135deg, #26134a 0%, #6d28d9 52%, #db2777 100%);
}

.cover-automation {
  background: linear-gradient(135deg, #082f49 0%, #155e75 45%, #4f46e5 100%);
}

.cover-orbit {
  position: absolute;
  top: 50%;
  right: 9%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  transform: translateY(-50%);
}

.cover-orbit::before,
.cover-orbit::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.cover-orbit::after {
  inset: 42%;
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.55);
}

.cover-window {
  position: absolute;
  top: 20%;
  right: 17%;
  width: 34%;
  height: 60%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-6deg);
  backdrop-filter: blur(6px);
}

.cover-window::before,
.cover-window::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  height: 11%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.cover-window::before { top: 18%; }
.cover-window::after { top: 42%; right: 34%; opacity: 0.54; }

.case-study-content {
  padding: clamp(1.5rem, 4vw, 3.2rem);
}

.case-study-content > h2 {
  max-width: 820px;
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.case-study-lede {
  max-width: 760px;
  font-size: 1.04rem;
}

.case-study-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.case-study-story section {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-alt);
}

.case-study-story section > span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-study-story h3 {
  margin-bottom: 0.42rem;
  font-size: 1rem;
}

.case-study-story p {
  font-size: 0.84rem;
  line-height: 1.6;
}

.case-study-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-study-tech li {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

@keyframes case-dialog-in {
  from { opacity: 0; transform: translateY(22px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .case-study-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 20px;
  }

  .case-study-cover {
    min-height: 190px;
    padding: 1.25rem;
  }

  .cover-orbit {
    right: -2rem;
    width: 180px;
    height: 180px;
  }

  .cover-window {
    right: 12%;
    width: 48%;
  }

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

  .case-study-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .case-study-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-dialog[open] {
    animation: none;
  }
}

/* Phase 3: safe, interactive document-automation demonstration. */
.demo-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 24%, rgba(99, 102, 241, 0.13), transparent 31%),
    radial-gradient(circle at 8% 78%, rgba(6, 182, 212, 0.1), transparent 29%);
}

.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent, #000 45%, #000);
}

.demo-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.demo-copy h2 {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.demo-copy .lede {
  max-width: 610px;
}

.demo-benefits {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.8rem;
}

.demo-benefits li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.demo-benefits li > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.09);
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.demo-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 590px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.demo-privacy svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #10b981;
}

.automation-demo {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 30px 80px rgba(25, 28, 71, 0.16);
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms var(--ease);
}

.automation-demo.review-ready {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 30px 90px rgba(79, 70, 229, 0.2);
}

.automation-demo.complete {
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow: 0 30px 90px rgba(16, 185, 129, 0.16);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}

.demo-window-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.48);
}

.demo-window-bar > span:nth-child(1) { background: #fb7185; }
.demo-window-bar > span:nth-child(2) { background: #fbbf24; }
.demo-window-bar > span:nth-child(3) { background: #34d399; }

.demo-window-bar strong {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(280px, 1.22fr);
  min-height: 480px;
}

.demo-document {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  padding: 1.4rem;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(rgba(99, 102, 241, 0.025) 1px, transparent 1px),
    #fff;
  background-size: 100% 28px;
  color: #172033;
}

.demo-document header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 2.4rem;
}

.demo-document header div {
  display: grid;
  gap: 0.16rem;
}

.demo-document header strong {
  font-size: 0.82rem;
}

.demo-document header small {
  color: #64748b;
  font-size: 0.68rem;
}

.demo-document-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.demo-document-lines {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.demo-document-lines span {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.demo-document-lines span:nth-child(2) { width: 74%; }
.demo-document-lines span:nth-child(3) { width: 48%; }

.demo-document dl {
  display: grid;
  gap: 1rem;
}

.demo-document dl > div {
  display: grid;
  gap: 0.22rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.demo-document dt {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-document dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.demo-scan-line {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  background: #22d3ee;
  box-shadow: 0 0 18px 3px rgba(34, 211, 238, 0.45);
}

.automation-demo.processing .demo-scan-line {
  opacity: 1;
  animation: demo-scan 1.45s ease-in-out infinite;
}

.demo-pipeline {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--panel-strong);
}

.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.demo-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 650;
  text-align: center;
}

.demo-steps li::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
}

.demo-steps li:last-child::after { display: none; }

.demo-steps li > span:first-child {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--ink-soft);
  font-size: 0.68rem;
  transition: color 240ms ease, border-color 240ms ease, background 240ms ease, transform 240ms var(--ease);
}

.demo-steps li.active > span:first-child {
  border-color: #6366f1;
  background: #6366f1;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12);
}

.demo-steps li.completed > span:first-child {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.demo-steps li.completed::after {
  background: #10b981;
}

.demo-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-alt);
}

.demo-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  transition: width 520ms var(--ease);
}

.automation-demo.complete .demo-progress > span {
  background: linear-gradient(90deg, #059669, #34d399);
}

.demo-status {
  min-height: 3.8rem;
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-alt);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.review-ready .demo-status { color: var(--indigo); }
.complete .demo-status { color: #047857; }

.demo-results {
  display: grid;
  gap: 0.52rem;
  max-height: 240px;
  margin-top: 0.9rem;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 420ms var(--ease), opacity 300ms ease, transform 420ms var(--ease), margin 300ms ease;
}

.demo-results[aria-hidden="true"] {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.demo-results > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
  font-size: 0.7rem;
}

.demo-results span { color: var(--ink-soft); }
.demo-results strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-results em {
  color: #059669;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: auto;
  padding-top: 1rem;
}

.demo-actions [hidden] { display: none !important; }

.demo-actions .btn {
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-size: 0.75rem;
}

.demo-actions .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

@keyframes demo-scan {
  0% { top: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

@media (max-width: 1120px) {
  .demo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-copy {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .automation-demo { border-radius: 19px; }

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

  .demo-document {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .demo-pipeline { min-height: 450px; }

  .demo-steps li > span:last-child { font-size: 0.58rem; }

  .demo-results > div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  }

  .demo-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .automation-demo,
  .demo-progress > span,
  .demo-results,
  .demo-steps li > span:first-child {
    transition: none;
  }

  .automation-demo.processing .demo-scan-line {
    animation: none;
    opacity: 0;
  }
}

/* Phase 4: credibility through transparent delivery and ownership. */
.trust-section {
  position: relative;
  overflow: hidden;
  background: var(--panel-alt);
}

.trust-section::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(940px, 95vw);
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12), transparent 68%);
  transform: translateX(-50%);
}

.trust-section .wrap {
  position: relative;
  z-index: 1;
}

.trust-heading {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.trust-heading h2 {
  max-width: 700px;
  margin-inline: auto;
  text-wrap: balance;
}

.trust-heading .lede {
  max-width: 700px;
  margin-inline: auto;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.3rem;
}

.trust-pillar {
  display: flex;
  gap: 0.85rem;
  min-height: 170px;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease;
}

.trust-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.34);
  box-shadow: 0 16px 42px rgba(30, 41, 59, 0.09);
}

.trust-pillar-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
}

.trust-pillar h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1rem;
}

.trust-pillar p {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.delivery-room {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 28px 90px rgba(30, 41, 59, 0.13);
}

.delivery-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.09), transparent 48%),
    var(--panel-strong);
}

.delivery-live {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delivery-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.delivery-room-head h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  letter-spacing: -0.025em;
}

.delivery-health {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.09);
  color: #047857;
  font-size: 0.7rem;
  font-weight: 800;
}

html[data-theme="dark"] .delivery-health {
  color: #6ee7b7;
}

.delivery-health svg {
  width: 14px;
  height: 14px;
}

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

.delivery-timeline,
.delivery-package {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.delivery-timeline {
  border-right: 1px solid var(--border);
}

.delivery-timeline h4,
.delivery-package h4 {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delivery-timeline ol {
  display: grid;
  gap: 0;
}

.delivery-timeline li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 68px;
}

.delivery-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: var(--border-strong);
}

.delivery-timeline li.done:not(:last-child)::after {
  background: #10b981;
}

.delivery-timeline li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 800;
}

.delivery-timeline li.done > span {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.delivery-timeline li.current > span {
  border-color: #6366f1;
  background: #6366f1;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.11);
}

.delivery-timeline li svg {
  width: 15px;
  height: 15px;
}

.delivery-timeline li div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.25rem;
}

.delivery-timeline strong {
  font-size: 0.82rem;
}

.delivery-timeline small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.delivery-timeline li.current small {
  color: var(--indigo);
  font-weight: 750;
}

.delivery-package ul {
  display: grid;
  gap: 0.68rem;
}

.delivery-package li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 50px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-alt);
}

.delivery-package li > svg {
  width: 17px;
  height: 17px;
  color: #10b981;
}

.delivery-package li > span {
  overflow: hidden;
  font-size: 0.77rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-package em {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .delivery-package em {
  color: #6ee7b7;
}

.delivery-room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--border);
  background: var(--panel-alt);
}

.delivery-room-footer p {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.delivery-room-footer strong {
  color: var(--ink);
}

.delivery-room-footer .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-size: 0.72rem;
}

@media (max-width: 960px) {
  .trust-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-pillar {
    min-height: 145px;
  }
}

@media (max-width: 680px) {
  .trust-pillars,
  .delivery-room-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-pillar {
    min-height: 0;
  }

  .delivery-room {
    border-radius: 19px;
  }

  .delivery-room-head,
  .delivery-room-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .delivery-room-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-pillar {
    transition: none;
  }

  .trust-pillar:hover {
    transform: none;
  }
}

/* Phase 5: local-only guided project starter. */
.planner-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(34, 211, 238, 0.1), transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(99, 102, 241, 0.12), transparent 32%);
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.planner-copy h2 {
  max-width: 560px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.planner-copy .lede {
  max-width: 590px;
}

.planner-assurances {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.7rem;
}

.planner-assurances li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.planner-assurances svg {
  width: 17px;
  height: 17px;
  color: #10b981;
}

.project-planner {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 30px 90px rgba(30, 41, 59, 0.14);
}

.planner-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planner-topline span:last-child {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo);
}

.planner-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.planner-step + .planner-step {
  margin-top: 1.35rem;
}

.planner-step legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.72rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.planner-step legend > span:first-child {
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.planner-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.planner-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  min-height: 86px;
  padding: 0.82rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-alt);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.planner-option:hover {
  border-color: rgba(99, 102, 241, 0.36);
  transform: translateY(-2px);
}

.planner-option:has(input:checked) {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.09);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.09);
}

.planner-option:has(input:focus-visible) {
  outline: 3px solid rgba(99, 102, 241, 0.24);
  outline-offset: 2px;
}

.planner-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.planner-option > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.planner-option strong {
  font-size: 0.72rem;
  line-height: 1.35;
}

.planner-option small {
  color: var(--ink-soft);
  font-size: 0.6rem;
  line-height: 1.4;
}

.planner-option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--indigo);
  box-shadow: inset 0 0 0 1px var(--border);
}

.planner-option-icon svg {
  width: 17px;
  height: 17px;
}

.planner-option-compact {
  min-height: 66px;
}

.planner-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  max-height: 320px;
  margin-top: 1.4rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 15px;
  background:
    linear-gradient(115deg, rgba(16, 185, 129, 0.09), transparent 58%),
    var(--panel-alt);
  opacity: 1;
  transform: translateY(0);
  transition: max-height 420ms var(--ease), opacity 280ms ease, transform 420ms var(--ease), margin 320ms ease, padding 320ms ease;
}

.planner-result[aria-hidden="true"] {
  max-height: 0;
  margin-top: 0;
  padding-block: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.planner-result-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
}

.planner-result-mark svg {
  width: 19px;
  height: 19px;
}

.planner-result-copy > span {
  display: block;
  margin-bottom: 0.22rem;
  color: #047857;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .planner-result-copy > span {
  color: #6ee7b7;
}

.planner-result-copy h3 {
  margin-bottom: 0.22rem;
  font-size: 0.94rem;
}

.planner-result-copy p {
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.5;
}

.planner-result-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.planner-result-copy li {
  padding: 0.26rem 0.48rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 700;
}

.planner-result .btn {
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.planner-local-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.55;
}

.planner-local-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: #10b981;
}

@media (max-width: 1120px) {
  .planner-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .project-planner {
    border-radius: 19px;
  }

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

  .planner-option,
  .planner-option-compact {
    min-height: 68px;
  }

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

  .planner-result .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .planner-option,
  .planner-result {
    transition: none;
  }

  .planner-option:hover {
    transform: none;
  }
}

/* Phase 6: decision-confidence FAQ and next-step path. */
.faq-section {
  position: relative;
  overflow: hidden;
  background: var(--panel-alt);
}

.faq-section::before {
  content: "?";
  position: absolute;
  top: -0.28em;
  right: -0.02em;
  color: rgba(99, 102, 241, 0.045);
  font-family: var(--font-display);
  font-size: clamp(24rem, 44vw, 48rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.faq-section .wrap {
  position: relative;
  z-index: 1;
}

.faq-heading {
  max-width: 790px;
}

.faq-heading h2 {
  max-width: 720px;
  text-wrap: balance;
}

.faq-heading .lede {
  max-width: 720px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  margin-top: 2.3rem;
}

.faq-list {
  display: grid;
  gap: 0.68rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel-strong);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.38);
  background:
    linear-gradient(110deg, rgba(99, 102, 241, 0.055), transparent 50%),
    var(--panel-strong);
  box-shadow: 0 13px 36px rgba(30, 41, 59, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem 1.1rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.22);
  outline-offset: -3px;
  border-radius: 14px;
}

.faq-item summary i {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel-alt);
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--indigo);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease), opacity 220ms ease;
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary i::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] summary i {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.09);
}

.faq-item > div {
  padding: 0 1.1rem 1.1rem;
}

.faq-item > div p {
  max-width: 720px;
  padding-top: 0.92rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.7;
}

.next-step-card {
  position: sticky;
  top: 108px;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.12), transparent 42%),
    var(--panel-strong);
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.13);
}

.next-step-label {
  display: block;
  margin-bottom: 0.72rem;
  color: var(--indigo);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-step-card h3 {
  max-width: 400px;
  margin-bottom: 1.45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.next-step-card ol {
  display: grid;
  gap: 0;
}

.next-step-card li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 84px;
}

.next-step-card li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(var(--indigo), var(--border));
}

.next-step-card li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
}

.next-step-card li div {
  padding-top: 0.2rem;
}

.next-step-card li strong {
  display: block;
  margin-bottom: 0.24rem;
  font-size: 0.8rem;
}

.next-step-card li p {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.55;
}

.next-step-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.45rem 0 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.07);
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.55;
}

.next-step-note svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #10b981;
}

.next-step-card .btn {
  min-height: 48px;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-step-card {
    position: static;
  }

  .next-step-card ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .next-step-card li {
    min-height: 0;
  }

  .next-step-card li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .faq-item summary {
    min-height: 58px;
    padding: 0.9rem;
    font-size: 0.76rem;
  }

  .faq-item > div {
    padding: 0 0.9rem 0.95rem;
  }

  .next-step-card {
    border-radius: 19px;
  }

  .next-step-card ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-step-card li {
    min-height: 76px;
  }

  .next-step-card li:not(:last-child)::after {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary i::before,
  .faq-item summary i::after {
    transition: none;
  }
}

/* Phase 7: launch-readiness navigation and accessibility polish. */
.skip-link {
  position: fixed;
  z-index: 10020;
  top: max(0.7rem, env(safe-area-inset-top));
  left: 50%;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, calc(-100% - 2rem));
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  color: #fff;
  transform: translate(-50%, 0);
}

#mainContent:focus {
  outline: none;
}

.scroll-progress {
  position: fixed;
  z-index: 10010;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 52%, #a855f7 100%);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.55);
  will-change: transform;
}

.back-to-top {
  position: fixed;
  z-index: 9900;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.68rem 0.86rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 15px 44px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(12px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 220ms ease, transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.back-to-top[hidden] {
  display: none !important;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: var(--panel-alt);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  color: var(--indigo);
  transform: rotate(-90deg);
}

@media (max-width: 640px) {
  .back-to-top {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .back-to-top {
    transition: none;
  }
}

/* Phase 8: mobile-first navigation and conversion polish. */
@media (max-width: 1300px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-list.open {
    overscroll-behavior: contain;
  }
}

.mobile-contact-dock {
  display: none;
}

.mobile-contact-dock[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .mobile-contact-dock {
    position: fixed;
    z-index: 9850;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.42rem 0.45rem 0.42rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: translateY(calc(100% + 1.5rem));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 220ms ease, transform 260ms var(--ease);
  }

  .mobile-contact-dock.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-contact-dock-status {
    display: grid;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    place-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
  }

  .mobile-contact-dock-status i {
    width: 6px;
    height: 6px;
    border-radius: inherit;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  }

  .mobile-contact-dock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 0;
    min-height: 48px;
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.3);
  }

  .mobile-contact-dock-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  body.mobile-dock-visible .back-to-top {
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 70px);
  }

  body.mobile-dock-visible .footer {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-contact-dock,
  .nav-toggle span {
    transition: none;
  }
}

/* Noven Dental Imaging portfolio case study. */
.project-nav-wrap {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  padding: 1rem clamp(1rem, 3vw, 2rem);
}

.project-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 64px;
  margin-inline: auto;
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  border-radius: 18px;
}

.project-brand {
  display: flex;
  width: 150px;
  height: 40px;
  align-items: center;
}

.project-brand img {
  width: 100%;
  height: auto;
}

.project-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}

.project-back:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.project-page {
  position: relative;
  z-index: 1;
  overflow: clip;
}

/* Case-study content must remain readable if the homepage animation runtime is unavailable. */
.project-page .reveal {
  opacity: 1;
  transform: none;
}

.project-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7.25rem, 10vw, 9rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 14% 24%, rgba(79, 70, 229, 0.15), transparent 31%),
    radial-gradient(circle at 88% 68%, rgba(14, 165, 233, 0.13), transparent 30%);
}

.project-hero > .wrap {
  width: 100%;
  max-width: 1440px;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 390px);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.project-product-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-product-mark img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.project-hero-copy h1 {
  max-width: 760px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(3rem, 5.7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.project-lede {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 2rem;
}

.project-facts li {
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-film-shell {
  position: relative;
  width: min(100%, 380px);
  justify-self: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: linear-gradient(145deg, #101727, #04070d);
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.28);
}

.project-film-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  left: 50%;
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
  pointer-events: none;
}

.project-film-label {
  position: absolute;
  z-index: 3;
  right: -1.2rem;
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.project-film-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.project-film {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 25px;
  background: #02050a;
  object-fit: cover;
}

.project-story-section {
  background: var(--panel-strong);
}

.project-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-story-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.project-story-card > span {
  color: var(--indigo);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-story-card h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.3rem;
}

.project-story-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.72;
}

.project-gallery-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.09), transparent 30%),
    var(--bg);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-shot {
  overflow: hidden;
  margin: 0;
}

.project-shot-wide {
  grid-column: 1 / -1;
}

.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-bottom: 1px solid var(--border);
  background: #09121d;
  object-fit: contain;
  transition: filter 0.35s var(--ease);
}

.project-shot:hover img {
  filter: saturate(1.04) contrast(1.01);
}

.project-shot figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem 1.2rem;
}

.project-shot figcaption strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.project-shot figcaption span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.project-cta-section {
  padding-top: 0;
}

.project-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background:
    linear-gradient(120deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.08)),
    var(--panel-strong);
}

.project-cta > img {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.project-cta h2 {
  max-width: 700px;
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.18;
}

.project-footer {
  position: relative;
  z-index: 1;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.project-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

html[data-theme="dark"] .project-brand img {
  content: url("../images/noven-tech-wordmark-dark.svg");
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-logo {
    width: min(100%, 500px);
    max-height: 160px;
  }

  .project-brand {
    width: 130px;
  }

  .project-nav-actions {
    flex: 0 0 auto;
  }

  .project-back,
  .project-nav .language-toggle,
  .project-nav .theme-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    flex: 0 0 44px;
    justify-content: center;
  }

  .project-back {
    font-size: 1.1rem;
  }

  .project-back span:last-child,
  .project-nav .language-label,
  .project-nav .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

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

  .project-cta .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (min-width: 721px) and (max-width: 1050px) {
  .work-card-project {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }

  .work-project-media {
    min-height: 360px;
  }

  .project-hero {
    padding-top: 7.25rem;
    padding-bottom: 2.25rem;
  }

  .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .project-product-mark {
    margin-bottom: 0.8rem;
  }

  .project-hero-copy h1 {
    margin-block: 0.55rem 0.8rem;
    font-size: clamp(2.75rem, 5.6vw, 4rem);
    line-height: 0.98;
  }

  .project-lede {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .project-facts {
    gap: 0.4rem;
    margin: 1.1rem 0 1.35rem;
  }

  .project-facts li {
    padding: 0.4rem 0.62rem;
    font-size: 0.68rem;
  }

  .project-hero-actions .btn {
    padding-inline: 1rem;
    font-size: 0.82rem;
  }

  .project-film-shell {
    width: min(100%, 320px);
    padding: 0.6rem;
    border-radius: 28px;
  }

  .project-film {
    border-radius: 21px;
  }

  .project-film-label {
    right: -0.5rem;
    bottom: 1.25rem;
  }

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

@media (max-width: 720px) {
  .project-hero {
    display: block;
  }

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

  .project-film-shell {
    width: min(84vw, 390px);
  }

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

@media (max-width: 640px) {
  .about-mark {
    padding-block: 1.35rem;
  }

  .about-logo {
    width: min(100%, 320px);
    max-height: 110px;
    margin-bottom: 0.75rem;
  }

  .project-nav-wrap {
    padding: 0.65rem;
  }

  .project-nav {
    min-height: 58px;
    padding: 0.4rem 0.45rem 0.4rem 0.75rem;
  }

  .project-brand {
    width: 112px;
  }

  .project-hero {
    padding-top: 7.5rem;
  }

  .project-hero-copy h1 {
    font-size: clamp(2.7rem, 16vw, 4.5rem);
  }

  .project-film-label {
    right: 50%;
    bottom: -1rem;
    transform: translateX(50%);
    white-space: nowrap;
  }

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

  .project-shot-wide {
    grid-column: auto;
  }

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

  .project-cta > img {
    width: 58px;
    height: 58px;
  }

  .project-cta .btn {
    grid-column: auto;
  }
}

/* Phase 9: resilient first render and no-script fallback. */
.no-script-notice {
  position: relative;
  z-index: 10030;
  padding: 0.72rem max(1rem, env(safe-area-inset-right)) 0.72rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(99, 102, 241, 0.28);
  background: #eef2ff;
  color: #312e81;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

html[data-theme="dark"] .no-script-notice {
  border-bottom-color: rgba(129, 140, 248, 0.35);
  background: #161932;
  color: #c7d2fe;
}

@supports (content-visibility: auto) {
  main > .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 880px;
  }
}
