:root {
  --bg: #000000;
  --bg-soft: #07070a;
  --surface: #101014;
  --surface-strong: #17171d;
  --text: #f6f1e8;
  --muted: #aaa59a;
  --line: rgba(246, 241, 232, 0.14);
  --accent: #4f46e5;
  --accent-2: #e11d48;
  --teal: #a5b4fc;
  --accent-gradient: linear-gradient(to right, #4f46e5 0%, #e11d48 100%);
  --button-primary-text: #fffaf2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background-color: #000;
  background:
    radial-gradient(circle at 45% 2%, rgba(79, 70, 229, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 34%, rgba(225, 29, 72, 0.1), transparent 32rem),
    linear-gradient(180deg, #000 0%, #030304 42%, #000 100%),
    #000;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(165, 180, 252, 0.14) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(253, 164, 175, 0.1) 0 1px, transparent 1.5px);
  background-position: 0 0, 38px 58px;
  background-size: 92px 92px, 148px 148px;
  opacity: 0.38;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.2) 18%, rgba(0, 0, 0, 0.55) 100%);
}

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

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

.page-shell {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 10;
  width: auto;
  transform: translateX(-50%);
}

.site-nav {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  height: 48px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(10, 10, 9, 0.78);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: width 260ms ease, transform 220ms ease, border-color 180ms ease;
}

.site-nav:hover,
.site-nav:focus-within {
  border-color: rgba(253, 164, 175, 0.42);
}

.site-nav.is-expanded {
  width: auto;
}

.site-nav.is-collapsed {
  width: 48px;
  cursor: pointer;
}

.site-nav.is-collapsed:hover {
  transform: scale(1.08);
}

.nav-links,
.nav-toggle {
  grid-area: 1 / 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--text);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.84);
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-nav.is-collapsed .nav-links {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px) scale(0.96);
}

.site-nav.is-collapsed .nav-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-menu-icon {
  position: relative;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-menu-icon::before {
  top: -6px;
}

.nav-menu-icon::after {
  top: 6px;
}

.site-nav a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(246, 241, 232, 0.08);
}

.hero,
.about-section,
.case-section,
.projects-section,
.contact-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  min-height: calc(88svh - 72px);
  padding: 112px 0 54px;
}

.hero.hero-spline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  width: min(100%, 1500px);
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero.hero-spline::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: clamp(180px, 24vh, 280px);
  pointer-events: none;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 54%,
    #000 100%
  );
}

.hero-spline-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-spline-background spline-viewer {
  display: block;
  width: 100%;
  height: 100svh;
}

.hero-spline-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.82), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.78)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0%, transparent 42%, rgba(0, 0, 0, 0.98) 100%);
}

.hero-spline-logo-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 210px;
  height: 92px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.72) 28%, #000 62%),
    #000;
}

.hero-spline-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px max(16px, calc((100vw - var(--max)) / 2)) 128px;
  pointer-events: none;
}

.hero-spline-left,
.hero-spline-right {
  min-width: 0;
}

.hero-spline-right {
  justify-self: end;
  width: min(100%, 470px);
}

.hero-spline-content .hero-subtitle {
  max-width: 29rem;
  margin-bottom: 28px;
  color: rgba(246, 241, 232, 0.82);
}

.hero-spline-content .hero-actions {
  pointer-events: auto;
}

.hero-spline-content .button {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 16px;
}

.hero-spline-content .button-primary {
  gap: 9px;
  color: #070707;
  background: #fffaf2;
  text-shadow: none;
}

.hero-spline-content .button-secondary {
  border-color: rgba(255, 250, 242, 0.72);
  background: rgba(0, 0, 0, 0.12);
}

.section-kicker {
  margin: 0 0 14px;
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 0.83;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--button-primary-text);
  background: var(--accent-gradient);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.26);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(246, 241, 232, 0.06);
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: clamp(420px, 54vw, 650px);
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: 6% -8% -2% 4%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 58% 46%, rgba(246, 241, 232, 0.13), transparent 16rem),
    radial-gradient(circle at 42% 60%, rgba(225, 29, 72, 0.2), transparent 22rem),
    radial-gradient(circle at 68% 18%, rgba(79, 70, 229, 0.23), transparent 21rem);
  filter: blur(12px);
}

.hero-3d-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  height: clamp(420px, 54vw, 650px);
  margin-left: auto;
}

.hero-3d-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.studio-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(28, 28, 25, 0.96), rgba(10, 10, 9, 0.96));
  box-shadow: var(--shadow);
  transform: rotateX(2deg) rotateY(-6deg);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.studio-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.studio-toolbar span:nth-child(2) {
  background: #a5b4fc;
}

.studio-toolbar span:nth-child(3) {
  margin-right: 8px;
  background: var(--accent-2);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
}

.visual-panel {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 350px;
  padding: 22px;
  overflow: hidden;
}

.visual-panel span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-panel {
  background:
    linear-gradient(150deg, rgba(255, 122, 89, 0.16), transparent 45%),
    repeating-linear-gradient(90deg, rgba(246, 241, 232, 0.08) 0 1px, transparent 1px 34px),
    #14110f;
}

.after-panel {
  background:
    radial-gradient(circle at 42% 28%, rgba(79, 70, 229, 0.22), transparent 12rem),
    radial-gradient(circle at 64% 34%, rgba(225, 29, 72, 0.18), transparent 12rem),
    linear-gradient(180deg, #2a2d2a 0%, #0d0f0d 78%);
}

.car-silhouette {
  position: relative;
  width: min(92%, 260px);
  height: 98px;
  margin-bottom: 54px;
  border-radius: 56px 68px 24px 24px;
  background: linear-gradient(180deg, #b6b0a4, #57524b);
  filter: saturate(0.65);
}

.car-silhouette::before {
  position: absolute;
  left: 45px;
  top: -42px;
  width: 140px;
  height: 64px;
  content: "";
  border-radius: 60px 70px 8px 8px;
  background: linear-gradient(135deg, #d1cabd, #69635b);
}

.car-silhouette::after {
  position: absolute;
  right: 20px;
  bottom: -24px;
  left: 20px;
  height: 34px;
  content: "";
  background:
    radial-gradient(circle at 22% 50%, #070707 0 16px, #4f46e5 17px 20px, transparent 21px),
    radial-gradient(circle at 78% 50%, #070707 0 16px, #e11d48 17px 20px, transparent 21px);
}

.car-silhouette.polished {
  background: linear-gradient(180deg, #f2f0e9, #a5aaa2);
  filter: none;
}

.car-silhouette.polished::before {
  background: linear-gradient(135deg, #ffffff, #bec6c1);
}

.studio-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.studio-meta span {
  min-height: 64px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.studio-meta span:last-child {
  border-right: 0;
}

.about-section,
.case-section,
.projects-section,
.contact-section {
  padding: 88px 0;
}

.hero.hero-spline + .about-section {
  position: relative;
  margin-top: -1px;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 260px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker),
.about-layout p,
.contact-copy p,
.case-layout p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.62fr);
  gap: 42px;
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.12), transparent 38%),
    rgba(246, 241, 232, 0.04);
}

.about-lead {
  max-width: 720px;
  color: var(--text) !important;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem) !important;
  line-height: 1.25 !important;
  font-weight: 850;
}

.about-details {
  display: grid;
  gap: 14px;
}

.about-details div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.34);
}

.about-details span {
  display: block;
  margin-bottom: 8px;
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-details strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: 42px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.14), transparent 34%),
    linear-gradient(220deg, rgba(225, 29, 72, 0.12), transparent 42%),
    rgba(246, 241, 232, 0.045);
}

.case-lead {
  max-width: 780px;
  color: var(--text) !important;
  font-size: clamp(1.35rem, 2.5vw, 2rem) !important;
  line-height: 1.3 !important;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #a5b4fc;
  font-weight: 900;
}

.case-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.case-facts div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.36);
}

.case-facts dt {
  margin-bottom: 8px;
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

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

.project-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 241, 232, 0.045);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.48);
  background: rgba(246, 241, 232, 0.072);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-media {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.18), transparent 38%),
    linear-gradient(220deg, rgba(225, 29, 72, 0.15), transparent 42%),
    linear-gradient(160deg, #1b1b18, #0b0b0a);
}

.project-card.featured .project-media {
  min-height: 280px;
}

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

.project-media-placeholder {
  display: grid;
  width: 78%;
  aspect-ratio: 16 / 10;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fda4af;
  background:
    repeating-linear-gradient(135deg, rgba(246, 241, 232, 0.08) 0 1px, transparent 1px 14px),
    rgba(0, 0, 0, 0.18);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #fda4af;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.project-body p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-list span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9d2c6;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(7, 7, 7, 0.28);
}

.project-card-hint {
  display: inline-flex;
  width: max-content;
  margin-top: 18px;
  color: #a5b4fc;
  font-size: 0.84rem;
  font-weight: 900;
}

.contact-section {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 720px;
}

.project-page {
  padding: 112px 0 80px;
}

.project-detail-hero,
.project-video-section,
.project-doc-layout,
.doc-list-grid,
.project-demo-panel,
.project-noscript {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: 620px;
}

.project-back-link {
  margin-bottom: 22px;
}

.project-detail-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.project-detail-media {
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.16), transparent 38%),
    linear-gradient(220deg, rgba(225, 29, 72, 0.14), transparent 42%),
    #121210;
  box-shadow: var(--shadow);
}

.project-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.project-detail-media.is-placeholder {
  display: grid;
  min-height: 380px;
  place-items: center;
  color: #fda4af;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
}

.project-video-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.project-video-section[hidden] {
  display: none;
}

.project-video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(165, 180, 252, 0.12), transparent 44%),
    rgba(246, 241, 232, 0.045);
}

.project-video-copy h2 {
  max-width: 22ch;
  margin: 0 0 18px;
  overflow-wrap: break-word;
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  line-height: 1.04;
  text-wrap: balance;
}

.project-video-copy p:not(.section-kicker) {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.project-video-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 18px;
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.project-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #050505;
  object-fit: cover;
}

.project-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 18px;
  margin-top: 44px;
}

.doc-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.doc-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.1), transparent 36%),
    rgba(246, 241, 232, 0.045);
}

.doc-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.doc-panel h3 {
  margin: 0 0 8px;
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-panel p,
.doc-panel li,
.doc-panel dd {
  color: var(--muted);
  line-height: 1.7;
}

.doc-copy-block + .doc-copy-block {
  margin-top: 26px;
}

.project-meta-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.project-meta-panel div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.project-meta-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-meta-panel dt {
  margin-bottom: 7px;
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta-panel dd {
  margin: 0;
  color: var(--text);
}

.doc-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.15rem;
}

.project-demo-panel {
  margin-top: 18px;
}

.rc-doc-page .doc-panel code {
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
}

.rc-table-panel {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
}

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

.rc-table-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.28);
}

.rc-table-wrap h3 {
  margin: 0;
  padding: 18px 18px 0;
}

.rc-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rc-table-wrap th,
.rc-table-wrap td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rc-table-wrap th {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rc-table-wrap td:first-child {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.pin-note {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.project-demo-panel[hidden] {
  display: none;
}

.project-demo-header {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
}

.project-demo-header h2 {
  margin-bottom: 12px;
}

.project-demo-header p {
  max-width: 780px;
}

.demo-credentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.demo-account {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.demo-account h3 {
  margin-bottom: 16px;
}

.demo-account dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.demo-account dt {
  color: #fda4af;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-account dd {
  min-width: 0;
  margin: 0 0 10px;
}

.demo-account code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.project-noscript {
  margin-top: 36px;
}

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

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 580ms ease, transform 580ms ease;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 960px) {
  .hero,
  .about-layout,
  .case-layout,
  .contact-section,
  .project-detail-hero,
  .project-video-section,
  .project-doc-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero.hero-spline {
    min-height: 100svh;
    padding: 0;
  }

  .hero-spline-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .hero-spline-right {
    justify-self: start;
    width: min(100%, 560px);
  }

  .hero-visual,
  .hero-3d-stage {
    min-height: 420px;
    height: 420px;
  }

  .hero-3d-stage {
    width: min(100%, 560px);
    margin: 0 auto;
  }

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

  .project-card.featured {
    grid-column: span 2;
  }

  .contact-section {
    display: grid;
    align-items: start;
  }

  .doc-list-grid {
    grid-template-columns: 1fr;
  }

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

  .rc-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 18px;
  }

  .site-nav {
    max-width: calc(100vw - 24px);
    font-size: 0.82rem;
  }

  .nav-links {
    gap: 2px;
    padding: 0 8px;
  }

  .site-nav a {
    padding: 10px 9px;
  }

  .hero,
  .about-section,
  .case-section,
  .projects-section,
  .contact-section,
  .project-detail-hero,
  .project-video-section,
  .project-doc-layout,
  .doc-list-grid,
  .project-noscript {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    gap: 30px;
    padding-bottom: 54px;
  }

  .hero.hero-spline {
    gap: 0;
    padding: 0;
  }

  .hero-spline-content {
    width: 100%;
    min-height: 100svh;
    padding: 108px 12px 148px;
  }

  .hero-spline-content .hero-subtitle {
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 6rem);
  }

  .hero-subtitle {
    font-size: 1.03rem;
  }

  .before-after-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
  }

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

  .visual-panel {
    min-height: 220px;
    padding: 16px 12px;
  }

  .visual-panel span {
    top: 14px;
    left: 14px;
    font-size: 0.64rem;
  }

  .car-silhouette {
    width: min(88%, 134px);
    height: 54px;
    margin-bottom: 42px;
    border-radius: 34px 40px 16px 16px;
  }

  .car-silhouette::before {
    left: 24px;
    top: -24px;
    width: 74px;
    height: 38px;
    border-radius: 34px 40px 6px 6px;
  }

  .car-silhouette::after {
    right: 10px;
    bottom: -18px;
    left: 10px;
    height: 24px;
    background:
      radial-gradient(circle at 22% 50%, #070707 0 10px, #4f46e5 11px 13px, transparent 14px),
      radial-gradient(circle at 78% 50%, #070707 0 10px, #e11d48 11px 13px, transparent 14px);
  }

  .studio-meta span {
    min-height: 52px;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    font-size: 0.66rem;
  }

  .studio-meta span:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .hero-visual,
  .hero-3d-stage {
    min-height: 330px;
    height: 330px;
  }

  .hero-visual::before {
    inset: 0 -10% -10%;
  }

  .project-grid,
  .project-card.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .project-card.featured .project-media,
  .project-media {
    min-height: 220px;
  }

  .project-page {
    padding-top: 98px;
  }

  .project-detail-hero {
    gap: 28px;
    min-height: auto;
  }

  .project-detail-hero h1 {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .project-detail-media,
  .project-detail-media img,
  .project-detail-media.is-placeholder {
    min-height: 240px;
  }

  .rc-table-panel {
    width: min(calc(100% - 24px), var(--max));
  }

  .rc-table-wrap {
    overflow-x: auto;
  }

  .project-video-copy h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 8vw, 2.55rem);
  }

  .project-demo-header {
    display: grid;
  }

  .demo-credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .site-nav {
    font-size: 0.78rem;
  }

  .site-nav a {
    padding: 10px 6px;
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .about-layout,
  .case-layout {
    padding: 20px;
  }

  .before-after-grid {
    min-height: 190px;
  }

  .visual-panel {
    min-height: 190px;
  }

  .studio-toolbar {
    min-height: 48px;
  }
}
