/* ==========================================================================
   VATVAGHOOL — night theme
   Tokens sit on :root. Change them to re-brand the whole site.
   ========================================================================== */
/* Dark (night) is the default. Light is set with data-theme="light" on <html>. */
:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #9aa1c4;
  --accent: #ffb938; /* bat-eye amber */
  --accent-2: #8b5cf6; /* dusk violet */
  --accent-3: #2dd4bf; /* echo teal */
  --danger: #f87171;
  --on-accent: #0a0b14;
  --text-accent: #ffb938;
  --text-accent-3: #2dd4bf;
  --bat-opacity: 0.55;
  --input-bg: rgba(7, 8, 15, 0.6);
  --scrim: rgba(7, 8, 15, 0.72);
  --scrim-strong: rgba(7, 8, 15, 0.97);
  --hero-glow-1: rgba(139, 92, 246, 0.35);
  --hero-glow-2: rgba(45, 212, 191, 0.18);
  --section-glow: rgba(139, 92, 246, 0.12);
  --panel-shadow: rgba(0, 0, 0, 0.6);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow-glow: 0 0 60px -10px rgba(139, 92, 246, 0.45);
  color-scheme: dark;
}

/* Light (day) theme */
:root[data-theme="light"] {
  --bg: #faf9ff;
  --bg-2: #f1effa;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(30, 27, 75, 0.12);
  --text: #15132b;
  --muted: #5b5f80;
  --accent: #e39b00; /* amber, darkened for contrast on white */
  --accent-2: #7c3aed;
  --accent-3: #0f9f8f;
  --danger: #dc2626;
  --on-accent: #15132b;
  --text-accent: #8f5c00; /* amber text, darkened for contrast on light */
  --text-accent-3: #0a6b60;
  --bat-opacity: 0.4;
  --input-bg: #ffffff;
  --scrim: rgba(250, 249, 255, 0.8);
  --scrim-strong: rgba(250, 249, 255, 0.97);
  --hero-glow-1: rgba(124, 58, 237, 0.16);
  --hero-glow-2: rgba(15, 159, 143, 0.12);
  --section-glow: rgba(124, 58, 237, 0.07);
  --panel-shadow: rgba(30, 27, 75, 0.18);
  --shadow-glow: 0 0 60px -12px rgba(124, 58, 237, 0.3);
  color-scheme: light;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2.display {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 500;
}

h2.display em {
  font-style: normal;
  color: var(--text-accent);
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 820px;
}

.muted {
  color: var(--muted);
}

.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: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: ping 2.2s infinite;
}

.tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent-3);
  border: 1px solid color-mix(in srgb, var(--accent-3) 40%, transparent);
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ffd27a 60%, var(--accent));
  background-size: 200% 100%;
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(255, 185, 56, 0.6);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 40px -10px rgba(255, 185, 56, 0.75);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-glow);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

/* The blur lives on a pseudo-element. A backdrop-filter on the header itself
   would trap the fixed mobile menu inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
  backdrop-filter: saturate(160%) blur(16px);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a:not(.btn) {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.bars {
  top: 21px;
}

.bars::before,
.bars::after {
  content: "";
  left: 0;
}

.bars::before {
  top: -7px;
}

.bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Header tools (language and theme) ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.tool-btn:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark shows the sun (switch to light); light shows the moon (switch to dark) */
.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 110px;
  overflow: hidden;
  isolation: isolate;
}









.hero-inner {
  position: relative;
}

.hero-title {
  margin-bottom: 1.6rem;
}

/* The headline is three short words, so it can run very large on wide screens. */
@media (min-width: 900px) {
  .hero-title {
    font-size: clamp(5rem, 9.5vw, 10rem);
    line-height: 0.86;
    letter-spacing: -0.05em;
  }
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero-title .line:nth-child(3) > span {
  animation-delay: 0.24s;
}

.hero-title .accent {
  background: linear-gradient(100deg, var(--text-accent), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 580px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

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

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 44px;
  margin-left: -13px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 1.8s var(--ease) infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}

.marquee-track i {
  font-style: normal;
  color: var(--text-accent);
  font-size: 0.8em;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

.section-dark {
  position: relative;
  background: var(--bg-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.principles {
  display: grid;
  gap: 0 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.principle {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.4s;
}

.principle:hover {
  border-color: var(--accent);
}

.principle-num {
  display: block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-accent-3);
  letter-spacing: 0.1em;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

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

.echo-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}


.echo-steps span {
  min-width: 72px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-accent);
}

/* ---------- Services ---------- */
/* Bento layout: the first service is the flagship tile. Spans add up to six columns per row. */
.services {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
}

.service:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}

.service:nth-child(n + 2):nth-child(-n + 3) {
  grid-column: span 2;
}

.service:nth-child(n + 4):nth-child(-n + 5) {
  grid-column: span 3;
}

.service:nth-child(n + 6):nth-child(-n + 8) {
  grid-column: span 2;
}

.service:nth-child(n + 9):nth-child(-n + 12) {
  grid-column: span 3;
}

.service {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), border-color 0.4s;
}

/* Spotlight that follows the pointer */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 185, 56, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.service:hover::before {
  opacity: 1;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(255, 185, 56, 0.12));
  color: var(--text-accent);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  margin-bottom: 0.5rem;
}

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

/* ---------- Process timeline ---------- */
.timeline {
  --progress: 0;
  position: relative;
  max-width: 880px;
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
}

.timeline::before {
  background: var(--border);
}

.timeline::after {
  background: linear-gradient(var(--accent), var(--accent-2));
  transform-origin: top;
  transform: scaleY(var(--progress));
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding-bottom: 56px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-top: 10px;
  font-size: 1.6rem;
}

.step p {
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Agile chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 10px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.chips li:first-child {
  color: var(--text-accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---------- Work ---------- */
/* Projects scroll sideways as large browser-framed previews, one per snap point. */
.work-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 14px;
}

.work-grid > .work-card {
  flex: 0 0 min(560px, 82vw);
  scroll-snap-align: start;
}

.work-card {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-2) 60%, transparent);
}

.work-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.browser-bar span {
  margin-left: 10px;
  font-family: var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-visual img {
  flex: 1;
  min-height: 0;
}

.work-visual svg {
  width: 96px;
  height: auto;
  color: rgba(255, 255, 255, 0.9);
  animation: hover-bob 5s ease-in-out infinite;
}

.v1 {
  background: linear-gradient(135deg, #3b2a7a, #8b5cf6 60%, #ffb938);
}

.v2 {
  background: linear-gradient(135deg, #0f4c4a, #2dd4bf 60%, var(--bg-2));
}

.v3 {
  background: linear-gradient(135deg, #5a2a0c, #ffb938 70%, #fff3d6);
}

.v3 svg {
  color: #3b1d05;
}

.work-body {
  padding: 22px 24px 26px;
}

.work-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  margin-bottom: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.faq[open] {
  border-color: color-mix(in srgb, var(--accent-2) 50%, transparent);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-accent);
  transition: transform 0.35s var(--ease);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.split {
  display: grid;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.contact-list span {
  min-width: 64px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent-3);
  padding-top: 3px;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.contact-list a:hover {
  color: var(--text-accent);
  border-color: var(--text-accent);
}

.form {
  padding: 36px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px var(--panel-shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field select option {
  background: var(--bg-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 4px rgba(255, 185, 56, 0.15);
}

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

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.error {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.error:empty {
  display: none;
}

.form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-weight: 500;
  color: var(--text-accent-3);
}

.form-status.is-error {
  color: var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Cursor glow (fine pointers only, enabled by JS) ---------- */
.cursor-glow {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.has-cursor .cursor-glow {
  display: block;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--stagger, 0s);
}

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

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .about-grid {
    grid-template-columns: 1.25fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    z-index: 70;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--scrim-strong);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--text);
  }

  .nav-links .btn {
    margin-top: 10px;
  }

  .form {
    padding: 26px 22px;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 8px;
  }

  .tool-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .step {
    grid-template-columns: 46px 1fr;
    gap: 18px;
  }

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

  .timeline::before,
  .timeline::after {
    left: 22px;
  }
}

/* ---------- Motion ---------- */


@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  to {
    transform: translate(-6%, 8%) scale(1.08);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
  }
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

@keyframes hover-bob {
  50% {
    transform: translateY(-8px);
  }
}

@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;
  }
  .marquee-track,
  .hero-glow {
    animation: none;
  }

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

  .hero-title .line > span {
    transform: none;
  }
}

/* ---------- Sections added for trust and pricing ---------- */
[hidden] {
  display: none !important;
}

.quotes {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote {
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
}

.quote figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.price {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-accent);
}

.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓ ";
  color: var(--text-accent-3);
}

.booking {
  margin-top: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Lighter page on phones: fewer moving bats and no blur on the header */
@media (max-width: 760px) {

  .site-header::before {
    backdrop-filter: none;
  }
}

.legal {
  padding: 140px 0 96px;
}

.legal h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.draft {
  padding: 14px 18px;
  border: 1px dashed var(--text-accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}

/* ---------- Layout: hero visual, merged work, links, spam trap ---------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.echo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(340px, 80vw);
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  opacity: 0;
  animation: echo 3.6s ease-out infinite;
}

.ring.r2 {
  animation-delay: 1.2s;
}

.ring.r3 {
  animation-delay: 2.4s;
}

@keyframes echo {
  0% {
    transform: scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.echo-bat {
  position: relative;
  width: 38%;
  height: auto;
  color: var(--text-accent);
  filter: drop-shadow(0 0 18px rgba(255, 185, 56, 0.35));
  animation: hover-bob 6s ease-in-out infinite;
}

.echo-chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.echo-chain li {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.echo-chain li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--text-accent-3);
}

.work-block + .work-block {
  margin-top: clamp(72px, 10vw, 110px);
}

.work-block .section-head {
  margin-bottom: 40px;
}

/* On wide screens the heading stays put on the left while the projects scroll on the right. */
@media (min-width: 960px) {
  .work-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
    gap: 48px;
    align-items: start;
  }

  .work-block .section-head {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.work-link::after {
  content: "↗";
  display: inline-block;
  color: var(--text-accent);
  transition: transform 0.35s var(--ease), color 0.3s;
}

.work-link:hover {
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--accent), #ffd27a 60%, var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
}

.work-link:hover::after {
  color: var(--on-accent);
  transform: translate(3px, -3px);
}

/* Visually hidden from people, still reachable by bots that fill every field */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sarcastic reactions ---------- */

.brand-logo.wiggle {
  animation: wiggle 0.7s ease;
}

.shake {
  animation: shake 0.5s ease;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(11deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(3deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(4px);
  }
}

.bat-flight {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}

.flying-bat {
  position: absolute;
  top: var(--top);
  left: -15vw;
  width: var(--size);
  color: var(--text-accent);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 185, 56, 0.4));
  animation: bat-cross 5s linear var(--delay) forwards;
}

.flying-bat svg {
  display: block;
  width: 100%;
  height: auto;
  animation: bat-flap 0.6s ease-in-out infinite alternate;
}

@keyframes bat-cross {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(125vw, -20vh);
    opacity: 0;
  }
}

@keyframes bat-flap {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.8);
  }
}

.work-visual img {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-2) 14%, transparent) 0%,
    rgba(8, 10, 20, 0.18) 45%,
    rgba(8, 10, 20, 0.7) 100%
  );
  pointer-events: none;
}

.work-visual .browser-bar {
  position: relative;
  z-index: 1;
}

/* ---------- Extra sarcastic touches ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

.loader.is-shown {
  display: grid;
}

.help-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  transform: translate(-50%, -50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px var(--panel-shadow);
}

.help-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}

.to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--accent), #ffd27a 60%, var(--accent));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(255, 185, 56, 0.6);
  cursor: pointer;
}

.footer-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Review fixes: mobile button, tap targets, help panel ---------- */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.to-top-icon {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 600px) {
  /* Icon only on phones, so the button does not cover the content. The text stays for screen readers. */
  .to-top {
    left: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

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

  .to-top-icon {
    display: block;
  }
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Animations ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}

.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

h2.display.is-visible .split-word > span {
  transform: none;
}

.echo {
  transition: transform 0.5s ease-out;
  transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 16px));
}

.service .service-icon {
  transition: transform 0.4s var(--ease);
}

.service:hover .service-icon {
  transform: rotate(-8deg) scale(1.08);
}

.work-visual img {
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-visual img {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.97);
}

.faq[open] p {
  animation: faq-open 0.45s var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Creative layer: texture, motion, brief builder ---------- */

/* Film grain over the whole page. Decorative only. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Spotlight that follows the pointer on dark sections (set from script.js). */
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 185, 56, 0.09), transparent 70%);
}

/* Section headings start soft and sharpen as they scroll into view. */
.js .section-head .display {
  filter: blur(6px);
  opacity: 0.25;
  transform: translateY(14px);
  transition: filter 1s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}

.js .section-head.is-visible .display {
  filter: none;
  opacity: 1;
  transform: none;
}

/* Eyebrow labels above section headings are retired. The text stays in the markup for the CMS. */
.section-head .eyebrow {
  display: none;
}

/* Ripple that spawns where the pointer moves over the hero. */
.hero-ping {
  position: absolute;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  pointer-events: none;
  animation: hero-ping 1.1s var(--ease) forwards;
}

@keyframes hero-ping {
  from {
    transform: scale(0.2);
    opacity: 0.9;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Flagship service tile gets more room. */
.service:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 185, 56, 0.16), rgba(139, 92, 246, 0.1)), var(--surface);
  padding: 44px 40px;
}

.service:nth-child(1) h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

@media (max-width: 760px) {
  .services {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .service {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Brief builder */
.brief {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .brief {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
}

.brief fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.brief legend {
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brief-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-options label {
  position: relative;
  cursor: pointer;
}

.brief-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-options span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.brief-options input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #0c0e1a;
}

.brief-options input:focus-visible + span {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.brief-estimate {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.brief-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.brief-canvas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 44px;
  gap: 10px;
  align-content: start;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
}

.wf {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.wf-nav {
  grid-column: 1 / -1;
  grid-row: span 1;
}

.wf-hero {
  grid-column: 1 / -1;
  grid-row: span 3;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
}

.wf-block {
  grid-column: span 2;
}

.wf-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Unchecked features stay in place as dashed outlines, so the layout never shifts. */
.wf-feature {
  grid-column: span 3;
  grid-row: span 1;
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  font-size: 0.8rem;
  color: var(--muted);
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}

.wf-feature.is-on {
  background: color-mix(in srgb, var(--accent-3) 35%, transparent);
  border-style: solid;
  border-color: transparent;
  color: var(--text);
}

.is-assembling .wf-base {
  animation: wf-in 0.6s var(--ease) both;
}

.is-assembling .wf-base:nth-child(1) { animation-delay: 0s; }
.is-assembling .wf-base:nth-child(2) { animation-delay: 0.08s; }
.is-assembling .wf-base:nth-child(3) { animation-delay: 0.16s; }
.is-assembling .wf-base:nth-child(4) { animation-delay: 0.24s; }
.is-assembling .wf-base:nth-child(5) { animation-delay: 0.32s; }

@keyframes wf-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }

  .js .section-head .display {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .is-assembling .wf-base {
    animation: none;
  }

  .wf-feature {
    transition: none;
  }
}
