/* Andes Interactive Studios — site styles. Mobile-first, no framework. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/space-grotesk/space-grotesk-latin-wght-normal.woff2') format('woff2');
}

:root {
  --ink-950: #05080f;
  --ink-900: #0a0f1c;
  --ink-850: #0d1424;
  --ink-800: #121b30;
  --ink-700: #1b2742;
  --ink-600: #26355a;
  --line: rgba(150, 175, 225, 0.14);
  --line-strong: rgba(150, 175, 225, 0.26);
  --text: #e9eef8;
  --text-muted: #a3b0c9;
  --text-dim: #73819d;
  --snow: #f6f8fc;
  --glacier: #7cc6ff;
  --glacier-deep: #3b8fd9;
  --dawn: #ff8a4c;
  --dawn-soft: #ffb36b;
  --success: #3ddc97;
  --danger: #ff6b6b;
  --warning: #ffc857;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--glacier);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--snow);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--snow);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 650;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(124, 198, 255, 0.35);
  color: var(--snow);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--snow);
  color: var(--ink-950);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--dawn-soft), var(--dawn));
  color: #1a0d05;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 76, 0.65);
}

.btn--primary:hover {
  color: #1a0d05;
  box-shadow: 0 16px 40px -12px rgba(255, 138, 76, 0.8);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: var(--glacier);
  color: var(--snow);
  background: rgba(124, 198, 255, 0.08);
}

.btn--sm {
  min-height: 40px;
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
  color: var(--glacier);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-arrow .icon {
  transition: transform 0.25s var(--ease);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 8, 15, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--snow);
  text-decoration: none;
}

.brand:hover {
  color: var(--snow);
}

.brand__mark {
  width: 38px;
  height: 38px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font: 700 1.15rem/1 var(--font-display);
  letter-spacing: 0.14em;
}

.brand__sub {
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--text-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon--close,
.site-header.is-open .nav-toggle .icon--menu {
  display: none;
}

.site-header.is-open .nav-toggle .icon--close {
  display: block;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 28px;
  background: rgba(5, 8, 15, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.site-nav__link {
  padding: 14px 4px;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav__link[aria-current='page'] {
  color: var(--glacier);
}

.site-nav .btn {
  margin-top: 16px;
}

/* Six destinations plus the CTA need the room; below this the menu collapses. */
@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
  }

  .site-nav__link {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition:
      color 0.2s var(--ease),
      background-color 0.2s var(--ease);
  }

  .site-nav__link:hover {
    color: var(--snow);
    background: rgba(255, 255, 255, 0.05);
  }

  .site-nav__link[aria-current='page'] {
    color: var(--snow);
    background: rgba(124, 198, 255, 0.1);
  }

  .site-nav .btn {
    margin: 0 0 0 10px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px));
  padding-bottom: clamp(220px, 34vw, 380px);
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 50% 108%, rgba(255, 138, 76, 0.32), transparent 62%),
    radial-gradient(900px 400px at 82% 0%, rgba(59, 143, 217, 0.18), transparent 70%),
    linear-gradient(180deg, #04060c 0%, #0a1226 46%, #1b1d3c 72%, #3a2540 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero__star {
  fill: #fff;
  animation: twinkle 4s ease-in-out infinite;
}

/* Staggered without inline styles, which the CSP forbids. */
.hero__star:nth-child(4n + 1) {
  animation-delay: -1s;
}

.hero__star:nth-child(4n + 2) {
  animation-delay: -2.2s;
  animation-duration: 5s;
}

.hero__star:nth-child(4n + 3) {
  animation-delay: -3.1s;
  animation-duration: 3.4s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}

.hero__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  width: 100%;
  height: auto;
  min-height: 240px;
  pointer-events: none;
}

.hero__layer {
  will-change: transform;
}

.hero__content {
  position: relative;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.hero h1 {
  margin-bottom: 0.4em;
}

.text-gradient {
  background: linear-gradient(100deg, var(--dawn-soft) 0%, var(--dawn) 45%, #ff6f91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__disciplines li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero__disciplines li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dawn);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 80px);
}

.section--alt {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dawn);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.page-hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(36px, 6vw, 64px);
  background:
    radial-gradient(800px 320px at 15% -10%, rgba(124, 198, 255, 0.14), transparent 70%),
    radial-gradient(700px 300px at 90% 0%, rgba(255, 138, 76, 0.1), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero p {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card--link:hover {
  color: inherit;
  transform: translateY(-4px);
}

.card--link .link-arrow {
  margin-top: auto;
}

.card h3 {
  margin-bottom: 0.45em;
}

.card p {
  color: var(--text-muted);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(124, 198, 255, 0.18), rgba(124, 198, 255, 0.04));
  border: 1px solid rgba(124, 198, 255, 0.25);
  color: var(--glacier);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

.card__footer {
  margin-top: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex: 1;
}

/* ---------- Projects ---------- */

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--accent, var(--glacier)) 55%, transparent);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img,
.project-card:hover .cover-art__mark {
  transform: scale(1.04);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-card__headline {
  margin-bottom: 0.6em;
  font-weight: 500;
  color: var(--text);
}

.project-card__body p {
  flex: 1;
  color: var(--text-muted);
}

.project-card__name {
  font-size: 1.6rem;
}

.cover-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      120% 90% at 50% 120%,
      color-mix(in srgb, var(--accent, var(--glacier)) 55%, transparent),
      transparent 60%
    ),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
}

.cover-art__ridge {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 55%;
}

.cover-art__ridge path:first-child {
  fill: color-mix(in srgb, var(--accent, var(--glacier)) 22%, var(--ink-800));
}

.cover-art__ridge path:last-child {
  fill: color-mix(in srgb, var(--accent, var(--glacier)) 10%, var(--ink-950));
}

.cover-art__mark {
  position: relative;
  font: 700 clamp(2.4rem, 6vw, 3.6rem) / 1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--snow);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease);
}

.cover-art__mark span {
  color: var(--accent, var(--glacier));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.chip--accent {
  border-color: color-mix(in srgb, var(--accent, var(--glacier)) 50%, transparent);
  color: var(--accent, var(--glacier));
  background: color-mix(in srgb, var(--accent, var(--glacier)) 10%, transparent);
}

.chip--live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.filter:hover {
  color: var(--snow);
  border-color: var(--glacier);
}

.filter[aria-current='true'] {
  color: var(--ink-950);
  background: var(--snow);
  border-color: var(--snow);
}

/* ---------- Project detail ---------- */

.case-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(
      900px 460px at 15% -10%,
      color-mix(in srgb, var(--accent, var(--glacier)) 38%, transparent),
      transparent 72%
    ),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-bottom: 1px solid var(--line);
}

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.case-hero__back .icon {
  transform: rotate(180deg);
}

.case-hero__headline {
  max-width: 760px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-muted);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .case-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.case-meta dt {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.case-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--snow);
}

.case-cover {
  position: relative;
  aspect-ratio: 16 / 8;
  margin-top: clamp(32px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

@media (min-width: 960px) {
  .case-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
}

.prose {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.panel + .panel {
  margin-top: 20px;
}

.panel h2,
.panel h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text);
}

.check-list .icon {
  margin-top: 3px;
  color: var(--success);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  gap: 18px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.process__step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font: 700 0.9rem/1 var(--font-display);
  letter-spacing: 0.14em;
  color: var(--dawn);
}

.process__step h3 {
  font-size: 1.15rem;
}

.process__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Capabilities ---------- */

.capabilities {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.capability {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.capability .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--glacier);
}

.capability strong {
  display: block;
  color: var(--snow);
}

.capability span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Services detail ---------- */

.service-detail {
  display: grid;
  gap: 28px;
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 0;
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.service-detail__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-detail__title .card__icon {
  margin: 0;
}

.service-detail__title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid rgba(255, 138, 76, 0.3);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(255, 138, 76, 0.28), transparent 70%),
    radial-gradient(500px 260px at 0% 0%, rgba(124, 198, 255, 0.16), transparent 70%),
    var(--ink-850);
}

.cta-band h2 {
  max-width: 620px;
}

.cta-band p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Studio ---------- */

.facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .facts div {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }
}

.facts dt {
  font-weight: 600;
  color: var(--text-dim);
}

.facts dd {
  margin: 0;
  color: var(--snow);
}

/* ---------- Forms ---------- */

.contact-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 980px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field .label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.field .optional {
  font-weight: 400;
  color: var(--text-dim);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 8, 15, 0.6);
  color: var(--snow);
  font: 400 1rem/1.4 var(--font-body);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.textarea {
  min-height: 160px;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 52%,
    calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.select option {
  background: var(--ink-900);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--glacier);
  box-shadow: 0 0 0 4px rgba(124, 198, 255, 0.15);
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
}

.field__error {
  font-size: 0.86rem;
  color: var(--danger);
}

.field__hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--dawn);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.btn[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}

.alert {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 0.95rem;
}

.alert--error {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
  color: #ffc9c9;
}

.alert--success {
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.08);
  color: #c4f5df;
}

.success-state {
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.success-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.12);
  color: var(--success);
}

.success-state__icon .icon {
  width: 34px;
  height: 34px;
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--glacier);
}

.contact-list .icon {
  color: var(--glacier);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  color: var(--text-muted);
}

.steps li::before {
  counter-increment: next;
  content: counter(next);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: 700 0.9rem/1 var(--font-display);
  color: var(--dawn);
}

.steps strong {
  display: block;
  color: var(--snow);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(16px, 3vw, 40px);
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.site-footer h2 {
  margin-bottom: 14px;
  font: 700 0.75rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .brand {
  color: var(--snow);
}

.site-footer__about p {
  max-width: 320px;
  margin-top: 16px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.social a:hover {
  border-color: var(--glacier);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Error page ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 64px;
  text-align: center;
}

.error-page__code {
  font: 700 clamp(5rem, 18vw, 10rem) / 1 var(--font-display);
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--snow), rgba(124, 198, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  max-width: 480px;
  margin-inline: auto;
  color: var(--text-muted);
}

.error-page .hero__actions {
  justify-content: center;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

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