/* =========================================================
   TriSphere Studios — main stylesheet
   Brand colours live in :root. Change them here and the
   whole site updates.
   ========================================================= */

:root {
  --ink: #15122B;
  --ink-2: #2A2547;
  --paper: #FFF6EA;
  --peach: #FFEBD6;
  --white: #FFFFFF;
  --muted: #5B5675;
  --paper-dim: #CBC5DA;

  --violet: #6A4CFF;
  --coral: #FF5C7A;
  --teal: #14C8A8;
  --sun: #FFC53D;

  --line: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.015em; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--coral); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--coral); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--coral); }

.btn--sun { background: var(--sun); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 234, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 42px; height: 42px; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-text small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav-menu { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nav-links a:hover { background: var(--peach); }
.nav-cta { padding: 0.7em 1.2em; font-size: 0.98rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.05em;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dot { width: 0.7em; height: 0.7em; border-radius: 50%; border: 1.5px solid var(--ink); }
.dot--violet { background: var(--violet); }
.dot--coral { background: var(--coral); margin-left: -0.55em; }
.dot--teal { background: var(--teal); margin-left: -0.55em; margin-right: 0.25em; }

.hero h1 { margin: 24px 0 22px; }

.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.06em;
  height: 0.38em;
  border-radius: 0.08em;
  background: var(--hl);
  transform: skewX(-12deg) rotate(-1.2deg);
}
.hl--violet { --hl: var(--violet); }
.hl--coral { --hl: var(--coral); }
.hl--teal { --hl: var(--teal); }

.hero-lead {
  max-width: 38ch;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Orbiting spheres illustration */
.orbit-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-ring {
  position: absolute;
  inset: 3%;
  border: 2.5px dashed rgba(21, 18, 43, 0.28);
  border-radius: 50%;
  animation: spin 70s linear infinite;
}
.orbit-ring--inner { inset: 20%; border-style: dotted; animation-direction: reverse; animation-duration: 50s; }

.orb {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  translate: calc(var(--mx) * var(--depth) * 8px) calc(var(--my) * var(--depth) * 8px);
  transition: translate 0.4s ease-out;
  animation: float 7s ease-in-out infinite;
}
.orb::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 21%;
  width: 24%;
  height: 13%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: rotate(-32deg);
}
.orb-icon {
  width: 34%;
  height: 34%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orb--design .orb-icon, .orb--web .orb-icon { stroke: var(--ink); }

.orb--games {
  z-index: 1;
  width: 46%;
  left: 27%;
  top: 5%;
  background: radial-gradient(circle at 32% 28%, #A796FF 0 8%, var(--violet) 48%, #4A2EDB 100%);
}
.orb--design {
  z-index: 2;
  width: 41%;
  left: 3%;
  top: 47%;
  background: radial-gradient(circle at 32% 28%, #FFAABA 0 8%, var(--coral) 48%, #E33A5B 100%);
  animation-delay: -2.3s;
}
.orb--web {
  z-index: 3;
  width: 39%;
  left: 57%;
  top: 50%;
  background: radial-gradient(circle at 32% 28%, #8DF2DF 0 8%, var(--teal) 48%, #0B9F86 100%);
  animation-delay: -4.6s;
}

.orb-label {
  position: absolute;
  z-index: 5;
  padding: 0.4em 0.95em;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  white-space: nowrap;
}
.orb-label--games { top: 9%; left: 68%; transform: rotate(6deg); }
.orb-label--design { top: 88%; left: 4%; transform: rotate(-5deg); background: var(--sun); }
.orb-label--web { top: 91%; left: 60%; transform: rotate(4deg); }

.deco { position: absolute; z-index: 4; }
.deco--spark {
  top: 8%;
  left: 8%;
  width: 13%;
  fill: var(--sun);
  stroke: var(--ink);
  stroke-width: 1.2;
  animation: twinkle 4s ease-in-out infinite;
}
.deco--spark-sm { top: 40%; left: 86%; width: 7%; fill: var(--coral); animation-delay: -2s; }
.deco--dot {
  top: 34%;
  left: 12%;
  width: 4.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}
.deco--ring {
  top: 2%;
  left: 76%;
  width: 9%;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  background: var(--teal);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.8) rotate(20deg); }
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: clip; padding: 24px 0; }
.marquee {
  margin-inline: -20px;
  padding: 16px 0;
  border-block: var(--line);
  background: var(--sun);
  transform: rotate(-1.5deg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding-right: 0.75em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--coral); -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--peach { background: var(--peach); }
.section--white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head > p:not(.kicker) {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
}
.section--ink .section-head > p:not(.kicker) { color: var(--paper-dim); }
.section-head a { font-weight: 700; color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.kicker::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: currentColor;
}
.section--ink .kicker { color: var(--sun); }
.kicker--ink { color: var(--ink); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 34px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.service-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.service-card--games { background: var(--violet); color: var(--white); }
.service-card--design { background: var(--coral); }
.service-card--web { background: var(--teal); }

.service-num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  opacity: 0.85;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.service-icon .i { width: 30px; height: 30px; }
.service-card h3 { font-size: clamp(1.55rem, 2.1vw, 1.9rem); margin-top: 6px; }
.service-card ul {
  display: grid;
  gap: 9px;
  margin: 6px 0 0;
  padding: 16px 0 0;
  border-top: 2px dashed currentColor;
  list-style: none;
  font-weight: 600;
}
.service-card li { display: flex; gap: 0.7em; }
.service-card li::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  margin-top: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Overlap / Venn ---------- */
.overlap-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.overlap-copy .section-head { margin-bottom: 32px; }

.venn svg { width: 100%; max-width: 500px; margin-inline: auto; isolation: isolate; overflow: visible; }
.vc { mix-blend-mode: screen; }
.vc--games { fill: var(--violet); }
.vc--design { fill: var(--coral); }
.vc--web { fill: var(--teal); }

.vr {
  fill: var(--sun);
  fill-opacity: 0;
  cursor: pointer;
  transition: fill-opacity 0.25s ease;
}
.vr:hover { fill-opacity: 0.5; }
.vr.is-active { fill-opacity: 1; }

.venn-outlines { fill: none; stroke: var(--paper); stroke-width: 2.5; pointer-events: none; }
.venn-labels {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-anchor: middle;
  fill: var(--ink);
  pointer-events: none;
}
.venn-labels .vl--light { fill: var(--white); }
.venn-badges { pointer-events: none; }
.venn-badges circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.venn-badges text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-anchor: middle;
  fill: var(--paper);
}

.overlap-list { display: grid; gap: 12px; }
.overlap-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 18px 20px;
  border: 2.5px solid rgba(255, 246, 234, 0.25);
  border-radius: 18px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.overlap-item:hover { border-color: var(--paper); }
.overlap-item[aria-pressed="true"] {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
  transform: translateX(6px);
}
.overlap-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}
.overlap-text { display: grid; gap: 2px; }
.overlap-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.overlap-text strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.overlap-text span:last-child { opacity: 0.88; }

/* ---------- Process ---------- */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 42px;
  right: calc(25% - 16.5px - 34px);
  border-top: 2.5px dashed var(--ink);
}
.process-step {
  position: relative;
  padding: 0 4px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}
.step-num--violet { background: var(--violet); color: var(--white); }
.step-num--coral { background: var(--coral); }
.step-num--teal { background: var(--teal); }
.step-num--sun { background: var(--sun); }
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--muted); }

.toolbox {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 28px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.toolbox-title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.45em 1em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.chips li:nth-child(4n + 1) { background: #E6E0FF; }
.chips li:nth-child(4n + 2) { background: #FFE0E6; }
.chips li:nth-child(4n + 3) { background: #D3F6EE; }
.chips li:nth-child(4n + 4) { background: #FFF0C7; }

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.studio-grid .section-head { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat:nth-child(even) { translate: 0 22px; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat span { font-weight: 600; line-height: 1.35; }
.stat--sun { background: var(--sun); }
.stat--violet { background: var(--violet); color: var(--white); }
.stat--coral { background: var(--coral); }
.stat--teal { background: var(--teal); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(64px, 8vw, 104px);
}
.value {
  padding: 26px 24px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.value h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.value p { color: var(--muted); }
.value-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--line);
  border-radius: 50%;
}
.value-icon .i { width: 24px; height: 24px; }
.value-icon--violet { background: var(--violet); color: var(--white); }
.value-icon--coral { background: var(--coral); }
.value-icon--teal { background: var(--teal); }
.value-icon--sun { background: var(--sun); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.faq-list details[open] { background: var(--white); box-shadow: var(--shadow-sm); }
.faq-list summary {
  position: relative;
  padding: 20px 64px 20px 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--coral); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border: var(--line);
  border-radius: 32px;
  background: var(--coral);
  box-shadow: 10px 10px 0 var(--ink);
}
.contact-lead { margin-top: 18px; font-size: 1.15rem; font-weight: 500; }

.contact-list { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.socials { display: flex; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--line);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--paper);
  transition: transform 0.15s ease;
}
.socials a:hover { transform: translate(-2px, -2px); }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--violet);
}
.field input::placeholder, .field textarea::placeholder { color: #8C87A3; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D11A45; box-shadow: 4px 4px 0 #D11A45; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label { position: relative; cursor: pointer; }
.choice-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-chips span {
  display: inline-block;
  padding: 0.45em 0.95em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.choice-chips span:hover { background: var(--peach); }
.choice-chips input:checked + span { background: var(--ink); color: var(--paper); }
.choice-chips input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.88rem; color: var(--muted); text-align: center; }
.form-note a { font-weight: 600; }
.form-status { font-weight: 700; text-align: center; min-height: 1.6em; }
.form-status.is-success { color: #0B7A65; }
.form-status.is-error { color: #C0143C; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 104px) 0 32px;
  background: var(--ink);
  color: var(--paper);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 2px solid rgba(255, 246, 234, 0.18);
}
.footer-big {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.footer-cta .btn { box-shadow: 4px 4px 0 var(--coral); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: clamp(40px, 5vw, 56px) 0;
}
.brand--light { color: var(--paper); }
.brand--light img { padding: 3px; border-radius: 50%; background: var(--paper); }
.brand--light .brand-text small { color: var(--paper-dim); }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--paper-dim); }
.footer-title {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: var(--paper-dim); text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--paper); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 246, 234, 0.18);
  font-size: 0.92rem;
  color: var(--paper-dim);
}
.to-top { font-weight: 600; text-decoration: none; }
.to-top:hover { color: var(--paper); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-simple { padding: clamp(48px, 8vw, 96px) 0; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.prose .updated { font-weight: 600; color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 0.5em 0.7em; }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px var(--gutter) 28px;
    border-bottom: var(--line);
    background: var(--paper);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a {
    padding: 0.7em 0.2em;
    border-bottom: 2px dashed rgba(21, 18, 43, 0.2);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
  }
  .nav-links a:hover { background: none; color: var(--violet); }
  .nav-cta { padding: 0.9em 1.5em; font-size: 1.05rem; }

  .hero-grid,
  .overlap-grid,
  .studio-grid,
  .faq-grid,
  .contact-card { grid-template-columns: 1fr; }

  .hero-visual { order: 2; }
  .orbit-stage { max-width: 440px; }

  .services-grid { grid-template-columns: 1fr; max-width: 620px; }
  .venn svg { max-width: 420px; }
  .overlap-item[aria-pressed="true"] { transform: none; }

  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(even) { translate: none; }
  .contact-card { box-shadow: 6px 6px 0 var(--ink); border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@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;
    transition-delay: 0s !important;
  }
  .js .reveal { translate: none; }
}
