/* ─── Niexbot.com — Design System ───────────────────────────── */

:root {
  --dark:      #0f0f0f;
  --dark-mid:  #161616;
  --dark-card: #1e1e1e;
  --dark-line: rgba(255,255,255,0.07);
  --green:     #10a37f;
  --green-dim: rgba(16,163,127,0.15);
  --white:     #ececec;
  --white-dim: #9a9a9a;

  /* aliases matching tool page var names from juanieto */
  --navy:      var(--dark);
  --navy-mid:  var(--dark-mid);
  --navy-card: var(--dark-card);
  --navy-line: var(--dark-line);
  --teal:      var(--green);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* anchors land below the fixed header */
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(16,163,127,0.35);
  color: var(--white);
}

/* Visible only for keyboard navigation — pointer clicks stay clean */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(16,163,127,0.65);
  outline-offset: 3px;
}

body { background: var(--dark); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Film grain (site-wide identity texture) ───────────────────── */

body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.05;
  pointer-events: none;
  position: fixed;
  z-index: 5;
}

/* ─── Scroll reveal ───────────────────────────────────────────────
   Applied via JS (adds .in-view once a section enters the viewport). */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Site Header ────────────────────────────────────────────── */

.site-header {
  align-items: center;
  background: rgba(15,15,15,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--dark-line);
  display: flex;
  gap: 2rem;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(16px,4vw,48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

/* Header gains depth as the page scrolls under it — CSS scroll-driven,
   so it works on every page with no JS and degrades to the static look. */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-depth linear both;
    animation-timeline: scroll();
    animation-range: 0 160px;
  }
  @keyframes header-depth {
    to {
      background: rgba(15,15,15,0.97);
      box-shadow: 0 14px 36px -18px rgba(0,0,0,0.7);
    }
  }
}

.brand {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--green); }

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 7px;
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  transition: color 150ms ease, background-color 200ms ease;
}
.site-nav a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.nav-cta {
  background: var(--green) !important;
  border-radius: 7px !important;
  color: #fff !important;
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  transition:
    filter 200ms ease,
    transform 220ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 260ms ease !important;
}
.nav-cta:hover {
  box-shadow: 0 8px 20px -8px rgba(16,163,127,0.55);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nav-cta:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  background: var(--dark-mid);
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  left: 0;
  min-width: 160px;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.16,1,0.3,1),
    visibility 0s linear 180ms;
  visibility: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
  visibility: visible;
}
.nav-dropdown-menu a { white-space: nowrap; }

.nav-tools-menu {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  /* Explicit width: shrink-to-fit was collapsing the mega-menu to a single
     min-content column. Right-anchored so it never overflows the viewport. */
  left: auto;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 16px;
  right: 0;
  transform-origin: top right;
  width: min(620px, calc(100vw - 32px));
}
.nav-tools-col { display: flex; flex-direction: column; flex: 1 1 160px; gap: 2px; min-width: 160px; }

/* Tablet / narrow-desktop: the Tools toggle sits near the left end of the
   nav, so a 620px panel right-anchored to it runs off the left edge of the
   screen and hides the Media column. Anchor it to the viewport instead —
   it stays a DOM child of .nav-dropdown, so hover/focus still hold it
   open — and lengthen the hide grace period so the pointer can travel the
   small gap down into the panel. */
@media (min-width: 781px) and (max-width: 1080px) {
  .nav-tools-menu {
    max-height: calc(100vh - 88px);
    position: fixed;
    right: 16px;
    top: 72px;
    transition:
      opacity 180ms ease,
      transform 260ms cubic-bezier(0.16,1,0.3,1),
      visibility 0s linear 400ms;
  }
}
.nav-tools-label {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px 6px;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .nav-dropdown-menu {
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    opacity: 1;
    padding-left: 12px;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
    visibility: visible;
  }
  .nav-dropdown-menu a { font-size: 16px; }

  .nav-tools-menu { flex-direction: column; gap: 4px; left: auto; max-height: none; overflow-y: visible; padding: 0; right: auto; width: auto; }
  .nav-tools-col { min-width: unset; }
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 32px;
  justify-content: center;
  padding: 4px;
  width: 32px;
}
.menu-button span {
  background: var(--white);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1), opacity 300ms ease;
  width: 22px;
}

/* Hamburger morphs into an X while the menu is open (aria-expanded is
   already toggled by the existing menu script on every page) */
.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 780px) {
  .menu-button { display: flex; }

  .site-nav {
    background: var(--dark);
    border-top: 1px solid var(--dark-line);
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    position: fixed;
    right: 0;
    top: 64px;
    transition: max-height 350ms ease, padding 350ms ease;
    z-index: 200;
  }
  .site-nav.open {
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
  }
  .site-nav a {
    border-radius: 8px;
    font-size: 18px;
    padding: 14px 12px;
    width: 100%;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }
}

/* ─── Eyebrow ────────────────────────────────────────────────── */

.eyebrow {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--white-dim); }

/* ─── Hero ───────────────────────────────────────────────────── */

.hero-section {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px clamp(24px,6vw,80px) 80px;
  position: relative;
  text-align: center;
}

/* Aurora glow — slow-drifting silhouette of light behind the hero */
.hero-section::before,
.hero-section::after {
  border-radius: 50%;
  content: "";
  filter: blur(90px);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-section::before {
  animation: aurora-drift-a 16s ease-in-out infinite;
  background: radial-gradient(circle, rgba(16,163,127,0.4) 0%, rgba(16,163,127,0) 70%);
  height: 55vw;
  left: -10%;
  top: -20%;
  width: 55vw;
}

.hero-section::after {
  animation: aurora-drift-b 20s ease-in-out infinite;
  background: radial-gradient(circle, rgba(90,148,255,0.28) 0%, rgba(90,148,255,0) 70%);
  height: 42vw;
  right: -12%;
  top: 30%;
  width: 42vw;
}

@keyframes aurora-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(18vw, 14vh) scale(1.25); }
  50%  { transform: translate(6vw, 22vh) scale(0.85); }
  75%  { transform: translate(-14vw, 6vh) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes aurora-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(-20vw, -14vh) scale(1.3); }
  60%  { transform: translate(-6vw, 12vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}


/* Liquid melt — scroll-out dissolve. melt.js splits the headline into
   .melt-w word spans, each with its own drip rate (--d) and shear (--sk):
   words stretch downward, blur, and split into green/purple chromatic
   ghosts at individual speeds, the eyebrow evaporates upward, and the CTAs
   drift apart and tilt. Everything is driven by one --melt value, so it
   plays forward and in reverse identically on desktop and mobile. */
.hero-inner {
  --melt: 0;
  max-width: 760px;
  opacity: calc(1 - var(--melt) * 0.55);
  position: relative;
  z-index: 1;
}

.hero-inner .eyebrow {
  filter: blur(calc(var(--melt) * 6px));
  opacity: calc(1 - var(--melt) * 1.6);
  transform: translateY(calc(var(--melt) * -46px));
}

.melt-w {
  display: inline-block;
  filter: blur(calc(var(--melt) * var(--d, 0.6) * 7px));
  opacity: calc(1 - var(--melt) * (0.35 + var(--d, 0.6) * 0.65));
  text-shadow:
    calc(var(--melt) * var(--d, 0.6) * 10px) 0 rgba(16,163,127,0.35),
    calc(var(--melt) * var(--d, 0.6) * -10px) 0 rgba(199,130,255,0.3);
  transform:
    translateY(calc(var(--melt) * var(--d, 0.6) * 150px))
    scaleY(calc(1 + var(--melt) * var(--d, 0.6) * 1.1))
    skewX(calc(var(--melt) * var(--sk, 0deg)));
  transform-origin: top center;
  will-change: transform, filter, opacity;
}

.hero-inner > p {
  filter: blur(calc(var(--melt) * 5px));
  opacity: calc(1 - var(--melt) * 1.25);
  transform: translateY(calc(var(--melt) * 70px));
}

.hero-ctas {
  opacity: calc(1 - var(--melt) * 1.3);
}
/* translate/rotate (not transform) so the buttons' own hover transforms
   still compose on top of the melt drift. */
.hero-ctas .btn-primary {
  rotate: calc(var(--melt) * -3deg);
  translate: calc(var(--melt) * -40px) calc(var(--melt) * 46px);
}
.hero-ctas .btn-ghost {
  rotate: calc(var(--melt) * 2.5deg);
  translate: calc(var(--melt) * 40px) calc(var(--melt) * 60px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner,
  .hero-inner .eyebrow,
  .hero-inner > p,
  .hero-ctas,
  .melt-w {
    filter: none;
    opacity: 1;
    rotate: none;
    text-shadow: none;
    transform: none;
    translate: none;
  }
}

/* Entrance — hero content condenses into focus with a gentle stagger,
   the on-load mirror of the scroll-out melt. */
@keyframes hero-rise {
  from { filter: blur(6px); opacity: 0; transform: translateY(22px); }
  to   { filter: none;      opacity: 1; transform: none; }
}

.hero-inner > * {
  animation: hero-rise 900ms cubic-bezier(0.16,1,0.3,1) backwards;
}
.hero-inner > :nth-child(1) { animation-delay: 80ms; }
.hero-inner > :nth-child(2) { animation-delay: 200ms; }
.hero-inner > :nth-child(3) { animation-delay: 320ms; }
.hero-inner > :nth-child(4) { animation-delay: 460ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > * { animation: none; }
}

.hero-inner h1 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(40px,6vw,76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 16px 0 24px;
}

.hero-inner h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-inner p {
  color: var(--white-dim);
  font-size: clamp(15px,1.8vw,18px);
  line-height: 1.65;
  margin: 0 auto 40px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: var(--green);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
  transition:
    filter 200ms ease,
    transform 220ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 260ms ease;
}
.btn-primary:hover {
  box-shadow: 0 10px 26px -8px rgba(16,163,127,0.55);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-primary:active {
  box-shadow: 0 4px 12px -6px rgba(16,163,127,0.45);
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  color: var(--white-dim);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  text-decoration: none;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 260ms ease;
}
.btn-ghost:hover {
  background: rgba(16,163,127,0.07);
  border-color: var(--green);
  box-shadow: 0 8px 22px -12px rgba(16,163,127,0.45);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

/* ─── Services section ───────────────────────────────────────── */

.services-section {
  padding: 100px clamp(24px,6vw,80px);
}

.services-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.services-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 48px;
}

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

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  display: block;
  padding: 28px;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease;
}
.service-card:hover {
  border-color: rgba(16,163,127,0.4);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--white-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card-cta {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

/* ─── Tools section ──────────────────────────────────────────── */

.tools-section {
  /* Top blends from the hero's --dark so the boundary dissolves */
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 180px);
  overflow: hidden;
  padding: 100px clamp(24px,6vw,80px);
  position: relative;
}

/* Ambient aurora — dimmer continuation of the hero glow, tinted per tool category */
.tools-section::before,
.tools-section::after {
  border-radius: 50%;
  content: "";
  filter: blur(110px);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.tools-section::before {
  animation: aurora-drift-a 22s ease-in-out infinite;
  background: radial-gradient(circle, rgba(90,148,255,0.16) 0%, rgba(90,148,255,0) 70%);
  height: 40vw;
  left: -8%;
  top: -6%;
  width: 40vw;
}

.tools-section::after {
  animation: aurora-drift-b 28s ease-in-out infinite;
  background: radial-gradient(circle, rgba(199,130,255,0.14) 0%, rgba(199,130,255,0) 70%);
  bottom: -10%;
  height: 36vw;
  right: -6%;
  width: 36vw;
}


.tools-inner {
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
  z-index: 1;
}

/* Reform — headings condense into focus out of a soft blur/stretch as they cross the
   viewport center, and drift out again as they move away in either direction (mirrors
   the hero's dissolve). Plain CSS only — no shared SVG filter state to get stuck. */
.reform {
  --reform: 0;
  filter: blur(calc(var(--reform) * 4px));
  opacity: calc(1 - var(--reform) * 0.85);
  transform: scaleY(calc(1 + var(--reform) * 0.16)) translateY(calc(var(--reform) * -20px));
  transform-origin: top center;
  will-change: filter, opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .reform { filter: none; opacity: 1; transform: none; }
}

/* Cascade — category blocks drift in/out based on their own distance from the viewport
   center, so they naturally stagger relative to each other while scrolling. */
.cascade {
  --casc: 0;
  opacity: calc(1 - var(--casc));
  transform: translateY(calc(var(--casc) * 34px));
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .cascade { opacity: 1; transform: none; }
}

.tools-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.tools-intro {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 520px;
}

.tools-category {
  --cat-accent: 16,163,127;
  margin-bottom: 56px;
}
#media { --cat-accent: 90,148,255; }
#post-production { --cat-accent: 16,163,127; }
#ai-music { --cat-accent: 199,130,255; }

.tools-category-label {
  border-bottom: 1px solid rgba(var(--cat-accent), 0.25);
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-transform: uppercase;
  transition: border-color 250ms ease;
}

.tools-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
}

.tool-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  display: block;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
  text-decoration: none;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 260ms cubic-bezier(0.16,1,0.3,1);
}
.tool-card:hover {
  background: rgba(var(--cat-accent), 0.09);
  border-color: rgba(var(--cat-accent), 0.45);
  box-shadow: 0 12px 30px -6px rgba(var(--cat-accent), 0.28);
  transform: translateY(-3px);
}

/* Cursor-tracked glow — a soft accent light follows the pointer across the
   card (position fed by scrollfx.js; sits at top-center on touch devices). */
.tool-card::after {
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--cat-accent), 0.13),
    transparent 65%
  );
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 350ms ease;
}
.tool-card:hover::after { opacity: 1; }

.tool-card-head,
.tool-card p { position: relative; z-index: 1; }

.tool-card-head {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tool-card h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  transition: color 250ms ease;
}
.tool-card:hover h4 { color: rgb(var(--cat-accent)); }

.tool-ai-badge {
  background: rgba(var(--cat-accent), 0.14);
  border: 1px solid rgba(var(--cat-accent), 0.3);
  border-radius: 99px;
  color: rgb(var(--cat-accent));
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  text-transform: uppercase;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
  white-space: nowrap;
}

.tool-card p {
  color: var(--white-dim);
  font-size: 13px;
  line-height: 1.55;
}

.tool-card-live {
  background: rgba(var(--cat-accent), 0.05);
  border-color: rgba(var(--cat-accent), 0.16);
}

/* ─── About section ─────────────────────────────────────────── */

.about-section {
  background: var(--dark-mid);
  border-top: 1px solid var(--dark-line);
  padding: 100px clamp(24px, 6vw, 80px);
}

.about-inner {
  display: grid;
  gap: 56px;
  grid-template-columns: 260px 1fr 1fr;
  margin: 0 auto;
  max-width: 1200px;
}

.about-photo {
  align-self: start;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(16,163,127,0.35),
    0 0 0 4px rgba(16,163,127,0.06),
    0 16px 48px rgba(0,0,0,0.55),
    0 0 80px rgba(16,163,127,0.09);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.88);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

/* Duotone: teal color wash over grayscale image */
.about-photo::before {
  background: rgba(16,163,127,0.9);
  content: "";
  inset: 0;
  mix-blend-mode: color;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* Scan lines + bottom fade */
.about-photo::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(15,15,15,0.94) 100%),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0,0,0,0.06) 2px,
      rgba(0,0,0,0.06) 3px
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.about-text .eyebrow {
  margin-bottom: 16px;
}

.about-text h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-link {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 150ms ease;
}
.about-link:hover { opacity: 0.75; }

.about-creds {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.about-cred-item {
  align-items: flex-start;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  padding: 20px 22px;
}

.about-cred-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

.about-cred-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-cred-item strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.about-cred-item span {
  color: var(--white-dim);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .about-photo {
    grid-column: 1 / -1;
    max-height: 340px;
  }
  .about-photo img {
    height: 340px;
    object-position: center 20%;
  }
}

@media (max-width: 540px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-photo {
    max-height: 280px;
  }
  .about-photo img {
    height: 280px;
  }
}

/* ─── Chat CTA section ───────────────────────────────────────── */

.chat-cta-section {
  padding: 100px clamp(24px,6vw,80px);
  text-align: center;
}

.chat-cta-inner {
  margin: 0 auto;
  max-width: 600px;
}

.chat-cta-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.chat-cta-inner p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--dark-mid);
  border-top: 1px solid var(--dark-line);
  padding: 40px clamp(24px,6vw,80px);
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1040px;
}

.footer-brand {
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 13px;
}

.footer-brand strong {
  color: var(--white);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

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

.footer-links a {
  border-radius: 6px;
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 13px;
  padding: 4px 10px;
  transition: color 150ms ease, background-color 200ms ease;
}
.footer-links a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.footer-legal {
  color: var(--white-dim);
  font-size: 12px;
  width: 100%;
}

/* ─── Clients strip ─────────────────────────────────────────── */

.clients-section {
  border-bottom: 1px solid var(--dark-line);
  border-top: 1px solid var(--dark-line);
  padding: 32px clamp(24px,6vw,80px);
}

.clients-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.clients-label {
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

.clients-strip span {
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity 200ms ease;
}

.clients-strip span:hover { opacity: 1; }

/* ─── Awards ─────────────────────────────────────────────────── */

.awards-section {
  background: var(--dark-mid);
  border-bottom: 1px solid var(--dark-line);
  padding: 56px clamp(24px,6vw,80px);
}

.awards-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.awards-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.award-item {
  align-items: flex-start;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.award-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.award-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.award-item strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

.award-item span {
  color: var(--white-dim);
  font-size: 12px;
  line-height: 1.4;
}

/* ─── Testimonial ────────────────────────────────────────────── */

.testimonial-section {
  background: var(--dark-mid);
  border-bottom: 1px solid var(--dark-line);
  border-top: 1px solid var(--dark-line);
  padding: 80px clamp(24px,6vw,80px);
  text-align: center;
}

.testimonial-inner {
  margin: 0 auto;
  max-width: 680px;
}

.testimonial-quote {
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(17px,2.2vw,22px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  margin: 0 0 28px;
  padding: 0;
}

.testimonial-quote::before { content: "\201C"; color: var(--green); }
.testimonial-quote::after  { content: "\201D"; color: var(--green); }

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.testimonial-company {
  color: var(--white-dim);
  font-size: 13px;
}

/* ─── Process / How I work ───────────────────────────────────── */

.process-section {
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  padding: 100px clamp(24px,6vw,80px);
}

.process-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.process-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.process-intro {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 520px;
}

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

.process-step {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.process-number {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--white-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Reel section ───────────────────────────────────────────── */

.reel-section {
  background: var(--dark);
  padding: 100px clamp(24px,6vw,80px);
}

.reel-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.reel-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.reel-intro {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}

.reel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  margin-bottom: 32px;
}

.reel-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  padding: 28px;
}

.reel-placeholder {
  border-style: dashed;
}

.reel-card-label {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.reel-card p {
  color: var(--white-dim);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.reel-request {
  background: rgba(16,163,127,0.1);
  border: 1px solid rgba(16,163,127,0.2);
  border-radius: 6px;
  color: var(--green);
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.reel-contact-note {
  color: var(--white-dim);
  font-size: 14px;
}

.reel-contact-note a {
  color: var(--green);
  font-weight: 500;
  transition: opacity 150ms ease;
}
.reel-contact-note a:hover { opacity: 0.75; }

/* ─── AI Lab section ─────────────────────────────────────────── */

.lab-section {
  /* --labv: section visibility, 0 offscreen → 1 filling the view (scrollfx.js).
     Drives the whole section's assemble/disassemble in both scroll directions. */
  --labv: 0;
  background: var(--dark-mid);
  border-top: 1px solid var(--dark-line);
  overflow: hidden;
  padding: 100px clamp(24px,6vw,80px);
  position: relative;
}

/* Ambient aurora — continues the identity, tinted for the lab's chat/roleplay/manga trio */
.lab-section::before,
.lab-section::after {
  border-radius: 50%;
  content: "";
  filter: blur(120px);
  opacity: var(--labv);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.lab-section::before {
  animation: aurora-drift-a 24s ease-in-out infinite;
  background: radial-gradient(circle, rgba(16,163,127,0.15) 0%, rgba(16,163,127,0) 70%);
  height: 42vw;
  left: 10%;
  top: -12%;
  width: 42vw;
}

.lab-section::after {
  animation: aurora-drift-b 30s ease-in-out infinite;
  background: radial-gradient(circle, rgba(199,130,255,0.14) 0%, rgba(199,130,255,0) 70%);
  bottom: -14%;
  height: 38vw;
  right: 4%;
  width: 38vw;
}


.lab-inner {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
  z-index: 1;
}

/* Text column slides in from the left, spec cards stagger in from the
   right — and both play in reverse as the section scrolls away, so the lab
   appears and disappears with the scroll in either direction. */
.lab-text {
  filter: blur(calc((1 - var(--labv)) * 5px));
  opacity: var(--labv);
  translate: calc((1 - var(--labv)) * -44px) 0;
  will-change: filter, opacity, translate;
}

.lab-spec-item {
  /* Per-card progress: each card starts once --labv passes its --li offset,
     giving a natural stagger that also reverses on the way out. */
  --lp: clamp(0, calc(var(--labv) * 1.6 - var(--li, 0)), 1);
  opacity: var(--lp);
  translate: calc((1 - var(--lp)) * 56px) 0;
  will-change: opacity, translate;
}
.lab-specs .lab-spec-item:nth-child(1) { --li: 0; }
.lab-specs .lab-spec-item:nth-child(2) { --li: 0.3; }
.lab-specs .lab-spec-item:nth-child(3) { --li: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .lab-section::before,
  .lab-section::after { opacity: 1; }
  .lab-text,
  .lab-spec-item {
    filter: none;
    opacity: 1;
    translate: none;
  }
}

.lab-text h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.lab-text p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 440px;
}

.lab-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.lab-spec-item {
  align-items: flex-start;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 300ms ease, transform 260ms cubic-bezier(0.16,1,0.3,1);
}

a.lab-spec-item:hover {
  background: rgba(16,163,127,0.08);
  border-color: rgba(16,163,127,0.4);
  box-shadow: 0 12px 30px -10px rgba(16,163,127,0.25);
  transform: translateY(-3px);
}

a.lab-spec-item:hover .lab-spec-icon {
  transform: scale(1.15);
}

.lab-spec-badge {
  background: rgba(16,163,127,0.14);
  border: 1px solid rgba(16,163,127,0.3);
  border-radius: 99px;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 8px;
  padding: 2px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.lab-spec-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1);
}

.lab-spec-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lab-spec-item strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

.lab-spec-item span {
  color: var(--white-dim);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 740px) {
  .lab-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ─── Games section ──────────────────────────────────────────── */

.games-section {
  /* Top blends from the lab's --dark-mid so the boundary dissolves */
  background: linear-gradient(180deg, var(--dark-mid) 0%, var(--dark) 180px);
  border-top: 1px solid var(--dark-line);
  overflow: hidden;
  padding: 120px clamp(24px,6vw,80px);
  position: relative;
  text-align: center;
}

/* Portal — a vivid, rotating burst that pops open once the section is reached.
   Deliberately louder than the rest of the site: this is the "fun" section. */
.games-portal {
  /* Spin lives on the `rotate` property and runs continuously, so toggling
     .open on every visit (portal.js) fades/scales smoothly with no rotation
     snap — the light turns off when you scroll away and back on when you
     return. Centering moved to the `translate` property so rotate/scale
     spin the blob in place around its own center. */
  animation: portal-spin 36s linear infinite;
  background: conic-gradient(
    from 0deg,
    rgba(90,148,255,0.4),
    rgba(16,163,127,0.35),
    rgba(199,130,255,0.4),
    rgba(255,110,160,0.32),
    rgba(90,148,255,0.4)
  );
  border-radius: 50%;
  filter: blur(80px);
  height: 60vw;
  left: 50%;
  max-height: 640px;
  max-width: 640px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: scale(0.25);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.16,1,0.3,1);
  translate: -50% -50%;
  width: 60vw;
  z-index: 0;
}

.games-portal.open {
  opacity: 1;
  transform: scale(1);
}

@keyframes portal-spin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .games-portal { animation: none; }
}


.games-inner {
  margin: 0 auto;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Glitch — a quick RGB-split flicker on entrance, then settles clean */
.games-glitch.glitching {
  animation: glitch-settle 650ms steps(2, end) 1;
}

@keyframes glitch-settle {
  0%   { opacity: 0.3; text-shadow: 3px 0 rgba(90,148,255,0.85), -3px 0 rgba(255,90,150,0.85); transform: translate(0,0); }
  20%  { text-shadow: -3px 0 rgba(90,148,255,0.85), 3px 0 rgba(255,90,150,0.85); transform: translate(-2px,1px); }
  40%  { text-shadow: 2px 0 rgba(199,130,255,0.7), -2px 0 rgba(16,163,127,0.7); transform: translate(2px,-1px); }
  60%  { opacity: 0.85; text-shadow: -1px 0 rgba(90,148,255,0.6), 1px 0 rgba(255,90,150,0.6); transform: translate(-1px,0); }
  80%  { text-shadow: 1px 0 rgba(199,130,255,0.4), -1px 0 rgba(16,163,127,0.4); transform: translate(1px,0); }
  100% { opacity: 1; text-shadow: none; transform: translate(0,0); }
}

@media (prefers-reduced-motion: reduce) {
  .games-glitch.glitching { animation: none; }
}

.games-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(26px,3vw,40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.games-inner p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ─── Builder teaser (homepage) ─────────────────────────────────── */

.about-teaser-section {
  /* Top blends from the games section's --dark so the boundary dissolves */
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 180px);
  border-top: 1px solid var(--dark-line);
  overflow: hidden;
  padding: 100px clamp(24px,6vw,80px);
  position: relative;
}

/* Ambient aurora — three slow-drifting blobs echoing the rest of the site */
.about-teaser-section::before,
.about-teaser-section::after,
.about-teaser-blob {
  border-radius: 50%;
  content: "";
  filter: blur(100px);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.about-teaser-section::before {
  animation: aurora-drift-a 26s ease-in-out infinite;
  background: radial-gradient(circle, rgba(16,163,127,0.18) 0%, rgba(16,163,127,0) 70%);
  height: 38vw;
  left: -6%;
  top: -14%;
  width: 38vw;
}

.about-teaser-section::after {
  animation: aurora-drift-b 32s ease-in-out infinite;
  background: radial-gradient(circle, rgba(90,148,255,0.16) 0%, rgba(90,148,255,0) 70%);
  bottom: -16%;
  height: 34vw;
  right: -4%;
  width: 34vw;
}

.about-teaser-blob {
  animation: aurora-drift-a 22s ease-in-out infinite reverse;
  background: radial-gradient(circle, rgba(199,130,255,0.15) 0%, rgba(199,130,255,0) 70%);
  height: 30vw;
  right: 18%;
  top: 30%;
  width: 30vw;
}


.about-teaser-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
  z-index: 1;
}

.about-teaser-card:hover {
  border-color: rgba(16,163,127,0.35);
  box-shadow: 0 24px 60px -20px rgba(16,163,127,0.28);
  transform: translateY(-3px);
}

/* Photo bleeds full-height off the left edge, no frame of its own — sized to its own
   intrinsic aspect ratio (not stretched to a fixed column) so the dissolve mask lands
   right on the real image edge instead of fading into empty letterbox space. */
.about-teaser-photo {
  -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 96%);
  filter: grayscale(1) sepia(0.6) hue-rotate(125deg) saturate(3) brightness(0.85) contrast(1.05);
  height: 100%;
  left: 0;
  mask-image: linear-gradient(to right, black 0%, black 55%, transparent 96%);
  position: absolute;
  top: 0;
  transition: filter 600ms ease;
  width: auto;
  z-index: 0;
}

/* Duotone photo brightens gently while the card is hovered */
.about-teaser-card:hover .about-teaser-photo {
  filter: grayscale(1) sepia(0.6) hue-rotate(125deg) saturate(3) brightness(0.94) contrast(1.05);
}

.about-teaser-text {
  margin-left: 27%;
  padding: 48px clamp(24px,4vw,56px) 48px 0;
  position: relative;
  z-index: 2;
}

.about-teaser-text .eyebrow {
  margin-bottom: 12px;
}

.about-teaser-text h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(22px,2.6vw,32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-teaser-text p {
  color: var(--white-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 480px;
}

.about-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.about-teaser-tags span {
  background: rgba(16,163,127,0.1);
  border: 1px solid rgba(16,163,127,0.25);
  border-radius: 99px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
}

@media (max-width: 700px) {
  .about-teaser-card {
    min-height: 460px;
  }
  .about-teaser-photo {
    -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 96%);
    height: 100%;
    mask-image: linear-gradient(to right, black 0%, black 55%, transparent 96%);
    object-fit: cover;
    object-position: 40% center;
    width: 30%;
  }
  .about-teaser-text {
    margin-left: 20%;
    padding: 28px 20px 32px 0;
  }
  .about-teaser-tags {
    justify-content: flex-start;
  }
}

/* ─── Contact section ────────────────────────────────────────── */

.contact-section {
  background: var(--dark-mid);
  border-top: 1px solid var(--dark-line);
  padding: 100px clamp(24px,6vw,80px);
  text-align: center;
}

.contact-inner {
  margin: 0 auto;
  max-width: 600px;
}

.contact-inner h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.contact-inner p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.contact-btn {
  display: inline-block;
  margin-bottom: 20px;
}

.contact-note {
  color: var(--white-dim);
  font-size: 13px;
  margin-bottom: 0 !important;
}

.contact-note a {
  color: var(--green);
  font-weight: 500;
  transition: opacity 150ms ease;
}
.contact-note a:hover { opacity: 0.75; }

.contact-alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.contact-alt-link {
  align-items: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  color: var(--white-dim);
  display: flex;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  padding: 10px 18px;
  transition: border-color 150ms ease, color 150ms ease;
}
.contact-alt-link:hover { border-color: rgba(16,163,127,0.4); color: var(--white); }

.contact-alt-whatsapp:hover { border-color: rgba(37,211,102,0.4); }

.contact-alt-icon { font-size: 16px; line-height: 1; }

/* ─── Contact form ───────────────────────────────────────────── */

.contact-form {
  margin: 0 auto 28px;
  max-width: 560px;
  text-align: left;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  padding: 12px 14px;
  transition: border-color 150ms ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(154,154,154,0.5);
}

.form-group select option {
  background: var(--dark-card);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(16,163,127,0.5);
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.form-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
}

.form-status.success { color: var(--green); }
.form-status.error   { color: #f87171; }

/* ─── Footer developer credit ────────────────────────────────── */

.footer-dev {
  color: var(--white-dim);
  font-size: 12px;
  width: 100%;
}

.footer-dev a {
  color: var(--white-dim);
  text-decoration: underline;
  transition: color 150ms ease;
}
.footer-dev a:hover { color: var(--white); }

/* ─── Tool pages (shared) ────────────────────────────────────── */

.tool-page {
  background: var(--navy);
  min-height: 100vh;
  padding: 96px clamp(16px,5vw,64px) 80px;
}

.tool-header {
  margin: 0 auto 40px;
  max-width: 800px;
}

.tool-header h1 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(26px,3.5vw,44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 14px;
}

.tool-header p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.6;
}

.back-link {
  color: var(--green);
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 150ms ease;
}
.back-link:hover { opacity: 0.7; }

/* ─── Pill button ────────────────────────────────────────────── */

.pill-button {
  background: var(--green);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  text-decoration: none;
  transition:
    filter 200ms ease,
    transform 220ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 260ms ease;
}
.pill-button:hover {
  box-shadow: 0 10px 26px -8px rgba(16,163,127,0.55);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.pill-button:active {
  box-shadow: 0 4px 12px -6px rgba(16,163,127,0.45);
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}
.pill-button:disabled {
  box-shadow: none;
  filter: none;
  transform: none;
}

/* ─── Section hairlines ──────────────────────────────────────────
   The 1px section dividers fade out toward the page edges instead of
   running hard into the viewport sides — same tone, softer seams. */

.lab-section,
.games-section,
.about-teaser-section,
.about-section,
.process-section,
.contact-section,
.testimonial-section,
.site-footer {
  border-image: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.09) 20%,
    rgba(255,255,255,0.09) 80%,
    rgba(255,255,255,0) 100%
  ) 1;
}

/* ─── Aurora glow — mobile tuning ────────────────────────────────
   The blobs are sized in vw and blurred by a fixed px radius. On a narrow
   phone viewport that combination shrinks them so much relative to the
   blur that they wash out to a near-invisible haze. Scale them up and
   soften the blur less so the drift stays visible on small screens. */
@media (max-width: 780px) {
  .hero-section::before,
  .hero-section::after,
  .tools-section::before,
  .tools-section::after,
  .lab-section::before,
  .lab-section::after,
  .about-teaser-section::before,
  .about-teaser-section::after,
  .about-teaser-blob {
    filter: blur(48px);
    height: 130vw;
    max-height: none;
    max-width: none;
    width: 130vw;
  }

  .games-portal {
    filter: blur(50px);
    height: 130vw;
    max-height: none;
    max-width: none;
    width: 130vw;
  }
}
