/*
Theme Name: GRKN Digital
Theme URI: https://grkndigital.co.uk
Author: GRKN Studios Management LTD
Author URI: https://www.grknstudios.co.uk
Description: A dark, premium single-page landing theme for GRKN Digital — the digital arm of GRKN Studios. Web design, mobile apps and social media.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grkn-digital
Tags: one-column, custom-colors, custom-logo, full-width-template, portfolio
*/

/* ===============================================================
   1. Design tokens
   Every colour pair below is checked against WCAG AA (4.5:1 for
   normal text, 3:1 for control boundaries) on the --ink canvas.
   =============================================================== */
:root {
  /* -- Surfaces --------------------------------------------- */
  --ink:          #05080b;
  --ink-2:        #0a1015;
  --ink-3:        #101a21;

  /* -- Text (contrast vs --ink) ------------------------------ */
  --text:         #eef4f7;  /* 18.1:1 */
  --muted:        #8ea3af;  /*  7.7:1 */
  --muted-2:      #8797a2;  /*  6.7:1 — small labels, still AA  */

  /* -- Brand ------------------------------------------------- */
  --cyan:         #45c8e0;  /* 10.1:1 */
  --cyan-soft:    #7fdcee;
  --cyan-deep:    #1d97b4;
  --on-cyan:      #04222b;  /*  8.4:1 on --cyan                 */

  /* -- Lines ------------------------------------------------- */
  --line:         rgba(255, 255, 255, 0.09);  /* decorative     */
  --line-soft:    rgba(255, 255, 255, 0.05);
  --line-strong:  rgba(255, 255, 255, 0.36);  /* 3.1:1 controls */

  /* -- Spacing: 4px rhythm ----------------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-18: 72px;
  --sp-24: 96px;
  --sp-30: 120px;

  /* -- Radii ------------------------------------------------- */
  --radius-sm:   12px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 100px;

  /* -- Elevation --------------------------------------------- */
  --shadow-2: 0 14px 34px -14px rgba(69, 200, 224, 0.75);
  --shadow-3: 0 20px 44px -14px rgba(69, 200, 224, 0.9);

  /* -- Motion ------------------------------------------------ */
  --dur-fast:    160ms;   /* press feedback                     */
  --dur:         220ms;   /* hover micro-interactions           */
  --dur-slow:    480ms;   /* scroll reveals                     */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

  /* -- Layering ---------------------------------------------- */
  --z-raised:  10;
  --z-overlay: 100;
  --z-header:  110;  /* above the overlay: the close button must stay visible */
  --z-skip:    1000;

  /* -- Layout ------------------------------------------------ */
  --maxw:      1180px;
  --gutter:    24px;
  --header-h:  76px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ===============================================================
   2. Reset / base
   =============================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.grkn {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.grkn.is-locked { overflow: hidden; }

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

a, button {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation; /* removes the 300ms tap delay */
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Anchor targets must clear the fixed header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-6)); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: var(--z-skip);
  background: var(--cyan);
  color: var(--on-cyan);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

/* ===============================================================
   3. Shared atoms
   =============================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;          /* comfortable touch target */
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
/* Press feedback that never reflows surrounding content. */
.btn:active { transform: translateY(0) scale(0.98); transition-duration: var(--dur-fast); }

.btn-primary {
  background: var(--cyan);
  color: var(--on-cyan);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover {
  background: var(--cyan-soft);
  box-shadow: var(--shadow-3);
}

.btn-ghost {
  border-color: var(--line-strong);   /* 3:1 — the boundary is the affordance */
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(69, 200, 224, 0.09);
  color: #fff;
}

.arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow,
.contact-row:hover .arrow { transform: translate(3px, -3px); }

.section {
  padding: var(--sp-30) 0;
  position: relative;
}
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-14);
}
.section-head h2 {
  font-size: clamp(30px, 4.1vw, 46px);
  margin-top: var(--sp-4);
  max-width: 15ch;
}
.section-head p {
  color: var(--muted);
  max-width: 38ch;
  font-size: 16px;
}

/* --- Scroll reveal ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Children of a .stagger group enter 60ms apart. */
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .stagger > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===============================================================
   4. Header
   =============================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.site-header.is-stuck {
  padding: var(--sp-3) 0;
  background: rgba(5, 8, 11, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.brand { display: flex; align-items: center; }
.brand img {
  height: 40px;
  width: auto;
  transition: height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.site-header.is-stuck .brand img { height: 34px; }
.brand:hover img { opacity: 0.82; }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;          /* WCAG 2.2 target size (24px min) */
  padding-inline: var(--sp-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: 2px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

/* Scrollspy: the section currently in view is marked, not just coloured. */
.nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
.header-cta .btn { min-height: 44px; padding: var(--sp-2) var(--sp-5); font-size: 14px; }

/* --- Mobile menu toggle -------------------------------------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(69, 200, 224, 0.09); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* --- Mobile menu panel --------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(5, 8, 11, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: calc(var(--header-h) + var(--sp-8)) var(--gutter) var(--sp-10);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-1);
}
.mobile-menu ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--sp-3) 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease-out);
}
.mobile-menu ul a:hover,
.mobile-menu ul a[aria-current="true"] { color: var(--cyan); }
.mobile-menu ul a svg { width: 16px; height: 16px; color: var(--muted-2); }

.mobile-menu .menu-actions {
  margin-top: var(--sp-8);
  display: grid;
  gap: var(--sp-3);
}
.mobile-menu .menu-actions .btn { width: 100%; }

.mobile-menu .menu-meta {
  margin-top: var(--sp-10);
  display: grid;
  gap: var(--sp-2);
  font-size: 15px;
  color: var(--muted);
}
.mobile-menu .menu-meta a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-menu .menu-meta a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 520px) {
  .header-cta .btn .btn-label { display: none; }
  .header-cta .btn { padding-inline: var(--sp-4); }
}

/* ===============================================================
   5. Hero — full viewport, oversized display type
   =============================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;          /* survives mobile browser chrome */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-14)) 0 var(--sp-24);
  overflow: hidden;
  isolation: isolate;
}

/* --- Background layers ---------------------------------------
   Two pre-blurred colour fields drift on transform only (never on
   width/filter), a static grid sits on top, and a fine grain hides
   the banding a gradient this large would otherwise show.
   --------------------------------------------------------------- */
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

.hero-bg .aurora-1,
.hero-bg .aurora-2 {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-bg .aurora-1 {
  top: -38%;
  left: 44%;
  width: min(1250px, 145vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(69, 200, 224, 0.44) 0%,
    rgba(69, 200, 224, 0.15) 36%,
    transparent 68%);
  filter: blur(22px);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.hero-bg .aurora-2 {
  bottom: -46%;
  left: -14%;
  width: min(900px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(29, 151, 180, 0.26) 0%,
    rgba(29, 151, 180, 0.09) 40%,
    transparent 70%);
  filter: blur(26px);
  animation: drift-2 34s ease-in-out infinite alternate;
}
@keyframes drift-1 {
  from { transform: translate3d(-52%, 0, 0) scale(1); }
  to   { transform: translate3d(-44%, 5%, 0) scale(1.12); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(14%, -7%, 0) scale(1.16); }
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 10%, transparent 76%);
}

/* Film grain — an inline SVG turbulence, so no extra request. */
.hero-bg .grain {
  position: absolute;
  inset: -50%;
  opacity: 0.16;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
}

/* --- Hero content --------------------------------------------- */
.hero-inner { position: relative; width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge b { color: var(--text); font-weight: 600; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc8b;
  box-shadow: 0 0 0 0 rgba(61, 220, 139, 0.65);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 139, 0); }
}

.hero h1 {
  margin: var(--sp-6) 0 0;
  font-size: clamp(40px, 10.4vw, 132px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: initial;          /* balancing fights a deliberate line break */
  overflow-wrap: break-word;
}
.hero h1 .line { display: block; }
.hero h1 .grad {
  background: linear-gradient(102deg, var(--cyan-soft) 4%, var(--cyan) 42%, var(--cyan-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The full stop picks up the accent so the headline resolves on brand. */
.hero h1 .stop { color: var(--cyan); }

.hero-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}
.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 13.5px;
  color: var(--muted-2);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 32px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur) var(--ease-out);
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-cue svg { width: 15px; height: 15px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (max-width: 900px) {
  .hero { padding-bottom: var(--sp-30); }
  .hero-lead { align-items: flex-start; }
  .hero-foot { font-size: 13px; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + var(--sp-10)); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-foot .meta { display: none; }  /* repeated verbatim in the footer */
}

/* ===============================================================
   5b. Capability strip + stats
   =============================================================== */
.hero-strip { position: relative; padding-bottom: var(--sp-24); }

.marquee {
  position: relative;
  border-block: 1px solid var(--line-soft);
  padding: var(--sp-4) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--sp-12);
  width: max-content;
  animation: slide 34s linear infinite;
}
/* Auto-rotating content must be stoppable (WCAG 2.2 / WAI). */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  font-weight: 500;
}
.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
}
@keyframes slide { to { transform: translateX(-50%); } }

.marquee-pause {
  position: absolute;
  right: var(--sp-2);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 8, 11, 0.8);
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.marquee:hover .marquee-pause,
.marquee.is-paused .marquee-pause,
.marquee-pause:focus-visible { opacity: 1; }
.marquee-pause:hover { color: var(--cyan); }
.marquee-pause svg { width: 12px; height: 12px; }
.marquee-pause .ic-play { display: none; }
.marquee.is-paused .marquee-pause .ic-play { display: block; }
.marquee.is-paused .marquee-pause .ic-pause { display: none; }

/* ===============================================================
   6. Stats
   =============================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-14);
}
.stat {
  background: var(--ink);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: background var(--dur) var(--ease-out);
}
.stat:hover { background: var(--ink-2); }
.stat b {
  display: block;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;  /* no width jitter while counting */
  background: linear-gradient(180deg, #fff 30%, #9fd9e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat small {
  display: block;
  margin-top: var(--sp-3);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===============================================================
   7. Service cards
   =============================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(69, 200, 224, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(69, 200, 224, 0.4); }
.card:hover::after { opacity: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(69, 200, 224, 0.11);
  border: 1px solid rgba(69, 200, 224, 0.28);
  color: var(--cyan);
  margin-bottom: var(--sp-5);
}
.card-icon svg { width: 21px; height: 21px; }

.card h3 { font-size: 20px; letter-spacing: -0.025em; }
.card p {
  margin-top: var(--sp-3);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}
.card ul {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;   /* wrap the collection before shrinking labels */
  gap: var(--sp-2);
}
.card li {
  font-size: 13px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
}

/* ===============================================================
   8. Process
   =============================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-out);
}
.step:hover { border-top-color: var(--cyan); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; }
.step p {
  margin-top: var(--sp-2);
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ===============================================================
   9. Studios spotlight
   =============================================================== */
.spotlight {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-14);
  background:
    radial-gradient(720px circle at 88% 0%, rgba(69, 200, 224, 0.17), transparent 60%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.spotlight::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(69, 200, 224, 0.16);
  box-shadow: 0 0 0 40px rgba(69, 200, 224, 0.035);
  pointer-events: none;
}
.spotlight h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: var(--sp-4); }
.spotlight p {
  margin-top: var(--sp-5);
  color: var(--muted);
  max-width: 52ch;
  font-size: 16px;
}
.spotlight-actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.spot-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 11, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-6);
}
.spot-panel img { height: 42px; width: auto; margin-bottom: var(--sp-5); }
.spot-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-3); }
.spot-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 15.5px;
  color: var(--muted);
}
.spot-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 4px;
  color: var(--cyan);
}

@media (max-width: 920px) {
  .spotlight { grid-template-columns: 1fr; padding: var(--sp-10) var(--sp-6); }
}

/* ===============================================================
   10. Contact
   =============================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-14);
  align-items: start;
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: var(--sp-10); } }

.contact h2 { font-size: clamp(30px, 4.2vw, 46px); margin-top: var(--sp-4); }
.contact > div > p { margin-top: var(--sp-5); color: var(--muted); max-width: 44ch; }

.contact-list {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 72px;
  padding: var(--sp-5) var(--sp-6);
  background: var(--ink);
  transition: background var(--dur) var(--ease-out);
}
a.contact-row:hover { background: var(--ink-2); }
.contact-row .ic {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(69, 200, 224, 0.1);
  border: 1px solid rgba(69, 200, 224, 0.26);
  color: var(--cyan);
}
.contact-row .ic svg { width: 17px; height: 17px; }
.contact-row .txt { min-width: 0; }  /* lets long values shrink and wrap */
.contact-row small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.contact-row strong {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;   /* emails and URLs reflow instead of overflowing */
}
.contact-row .arrow { margin-left: auto; flex: 0 0 auto; color: var(--muted-2); }

/* ===============================================================
   11. Footer
   =============================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--sp-14) 0 var(--sp-10);
  background: linear-gradient(180deg, transparent, rgba(69, 200, 224, 0.035));
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line-soft);
}
.footer-top img { height: 38px; width: auto; }
.socials { display: flex; gap: var(--sp-2); }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(69, 200, 224, 0.08);
  transform: translateY(-2px);
}
.socials a:active { transform: translateY(0) scale(0.95); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--muted-2);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--cyan); }
.footer-bottom .sep { opacity: 0.5; margin-inline: var(--sp-2); }

/* ===============================================================
   12. Back to top
   =============================================================== */
.to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-raised);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 21, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out),
              visibility var(--dur),
              transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.to-top svg { width: 18px; height: 18px; }

/* ===============================================================
   13. Fallback page / post content
   =============================================================== */
.page-shell { padding: calc(var(--header-h) + var(--sp-18)) 0 var(--sp-14); }
.page-shell h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: var(--sp-6); }
.entry { max-width: 70ch; color: var(--muted); }
.entry h2, .entry h3 { color: var(--text); margin-top: var(--sp-8); }
.entry p, .entry ul, .entry ol { margin-top: var(--sp-4); }
.entry a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: var(--radius); margin-top: var(--sp-5); }

/* ===============================================================
   14. Small-screen polish
   Body copy stays >= 16px so iOS does not auto-zoom on focus.
   =============================================================== */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: var(--sp-18) 0; }
  .section-head { margin-bottom: var(--sp-10); }
  .hero-strip { padding-bottom: var(--sp-18); }
  .stats { margin-top: var(--sp-10); }
  .stat { padding: var(--sp-6) var(--sp-4); }
  .card { padding: var(--sp-6); }
  .card p, .step p, .spot-list li { font-size: 16px; }
  .spotlight-actions .btn { width: 100%; }
  .contact-row { padding: var(--sp-4); }
  .site-footer { padding: var(--sp-10) 0 var(--sp-8); }
  .to-top { right: var(--sp-4); bottom: var(--sp-4); }
}
