/* ============================================================
   FLAMEOWL STUDIO — homepage styles
   ============================================================ */

:root {
  /* Flame palette — matched to the logo */
  --flame: #FF751A;          /* primary orange (logo) */
  --ember: #E2540D;          /* deeper orange for shadow/extrusion */
  --gold:  #FFA62E;          /* warm amber */
  --accent: var(--flame);    /* tweakable */
  --accent-2: var(--gold);

  /* Warm neutrals */
  --cream:  #FBF5EC;         /* page bg */
  --cream-2:#F3E9DA;         /* card bg / alt */
  --ink:    #1C1714;         /* text */
  --ink-soft:#5A5048;        /* secondary text */
  --line:   rgba(28,23,20,0.12);

  /* Dark band */
  --night:  #14100E;
  --night-2:#1F1814;
  --night-line: rgba(255,255,255,0.10);
  --cream-on-night: #F3E9DA;
  --soft-on-night: #B6A99A;

  --maxw: 1280px;
  --pad: clamp(24px, 5vw, 64px);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.mono { font-family: var(--font-mono); }

/* Kicker / eyebrow */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.kicker.on-night { color: var(--gold); }
.kicker.on-night::before { background: var(--gold); }

/* Display headings */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(38px, 6vw, 76px);
  text-wrap: balance;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 0 0 color-mix(in oklab, var(--accent), #000 32%);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 11px 0 0 color-mix(in oklab, var(--accent), #000 32%); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 0 color-mix(in oklab, var(--accent), #000 32%); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn-ghost.on-night { color: var(--cream-on-night); border-color: var(--cream-on-night); }
.btn-ghost.on-night:hover { background: var(--cream-on-night); color: var(--night); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

body.reduce-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--cream), transparent 8%);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.lang-toggle button { padding: 6px 11px; color: var(--ink-soft); transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--ink); color: var(--cream); }

.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden; }
.hero-ember-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none;
}
.hero-blob.b1 { width: 460px; height: 460px; background: var(--accent); top: -120px; right: -60px; opacity: .28; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--gold); bottom: -120px; left: -80px; opacity: .25; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }

/* Centered hero variant — owl as the centerpiece */
.hero-inner.centered { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.hero-inner.centered .kicker { margin-bottom: 22px; }
.hero-inner.centered h1 { font-size: clamp(40px, 7vw, 96px); margin: 0; max-width: 17ch; }
.hero-inner.centered .hero-sub { margin: 24px auto 0; }
.hero-inner.centered .hero-owl { margin: 14px 0 6px; }
.hero-inner.centered .hero-cta { justify-content: center; margin-top: 30px; }
.hero-inner.centered .hero-stats { justify-content: center; gap: 48px; }

.hero h1 {
  font-size: clamp(48px, 8.5vw, 116px);
  margin: 22px 0 0;
}
.hero h1 .em { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 .em svg { position: absolute; left: -2%; bottom: -8%; width: 104%; height: auto; }
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 46ch; margin-top: 28px; line-height: 1.5; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.hero-stat .l { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-top: 6px; letter-spacing: .04em; }

/* Hero owl visual */
.hero-owl { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.hero-owl-disc {
  position: absolute; width: min(74%, 380px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFE6BC 0%, #FFC877 40%, rgba(255,180,80,0) 72%);
  animation: floaty 7s ease-in-out infinite;
  filter: blur(8px);
  opacity: .92;
}
.hero-owl-ring {
  position: absolute; width: min(96%, 470px); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(28,23,20,0.16); animation: spin 40s linear infinite;
}

/* Animated mascot */
.owl3d-wrap { position: relative; z-index: 2; width: 520px; max-width: 86vw; aspect-ratio: 26 / 23; }
.owl3d-viewer { display: block; width: 100%; height: 100%; background: transparent; opacity: 0; transition: opacity .18s ease; --poster-color: transparent; }
.owl3d-viewer.is-loaded { opacity: 1; }
.owl3d-viewer::part(default-progress-bar) { display: none; }
.owl3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity .18s ease; }
.owl3d-poster.is-hidden { opacity: 0; }
body.reduce-motion .owl3d-viewer, body.reduce-motion .owl3d-poster { transition: none; }
.hero-owl-ring, .hero-owl-disc { pointer-events: none; }
body.reduce-motion .hero-owl-disc, body.reduce-motion .hero-owl-ring { animation: none; }

.brand-owl { width: auto; display: block; }
.brand-logo { height: 44px; width: auto; display: block; transition: height .3s; }
.nav.scrolled .brand-logo { height: 36px; }
.footer-logo { height: 52px; }

@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* ============================================================
   CHATBOT — "Flame"
   ============================================================ */
.chat-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 10px 20px 10px 10px;
  box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--accent), #000 20%);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-launch:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px color-mix(in oklab, var(--accent), #000 20%); }
.chat-launch-icon { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.chat-launch-icon img { width: 26px; height: auto; display: block; }
.chat-launch-label { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.chat-dot { position: absolute; top: 6px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: #2BBF6A; border: 2px solid #fff; }
.chat.open .chat-launch { opacity: 0; pointer-events: none; transform: scale(0.6); }

.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 121;
  width: 374px; max-width: calc(100vw - 32px); height: min(76vh, 600px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 80px -24px rgba(28,23,20,0.45);
  opacity: 0; transform: translateY(20px) scale(0.97); transform-origin: bottom right;
  pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; background: var(--accent); color: #fff; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.chat-avatar img { width: 30px; height: auto; }
.chat-id { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.chat-id strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.chat-id span { font-size: 11.5px; opacity: .9; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: #7CF0A8; display: inline-block; }
.chat-head-actions { display: flex; align-items: center; gap: 4px; }
.chat-reset, .chat-close { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.chat-reset:hover, .chat-close:hover { background: rgba(255,255,255,0.18); }

.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg-av { width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.chat-msg-av img { width: 18px; height: auto; }
.chat-bubble {
  font-size: 14.5px; line-height: 1.5; padding: 11px 14px; border-radius: 16px; max-width: 80%;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-wrap: pretty;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.bot .chat-bubble { border-bottom-left-radius: 5px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }

.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); opacity: .5; animation: chatdot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatdot { 0%,60%,100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: .9; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-quick button {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 90%); border: 1px solid color-mix(in oklab, var(--accent), transparent 70%);
  padding: 8px 13px; border-radius: 999px; transition: background .2s, transform .2s;
}
.chat-quick button:hover { background: color-mix(in oklab, var(--accent), transparent 82%); transform: translateY(-1px); }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--line); background: var(--cream); }
.chat-input input {
  flex: 1; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; outline: none;
  transition: border-color .2s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input button {
  width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, opacity .2s;
}
.chat-input button:hover:not(:disabled) { transform: scale(1.06); }
.chat-input button:disabled { opacity: .4; cursor: default; }
.chat-foot { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); text-align: center; padding: 2px 16px 12px; background: var(--cream); }

@media (max-width: 600px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 86vh; border-radius: 22px 22px 0 0; }
  .chat-launch-label { display: none; }
  .chat-launch { padding: 10px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--accent); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
body.reduce-motion .marquee-track { animation: none; }
.marquee-item { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 38px); color: #fff; padding: 16px 0; display: inline-flex; align-items: center; }
.marquee-item .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; margin: 0 28px; display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
[id] { scroll-margin-top: 80px; }
.section-pad { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head .lead { max-width: 720px; }
.section-head h2 { margin-top: 18px; }
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 50ch; margin-top: 16px; line-height: 1.5; }

/* ============================================================
   GAMES (dark band)
   ============================================================ */
.games { background: var(--night); color: var(--cream-on-night); }
.games .section-head h2 { color: #fff; }
.games .section-head p { color: var(--soft-on-night); }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.game-card {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--night-2);
  border: 1px solid var(--night-line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  transform-style: preserve-3d; will-change: transform;
}
.game-card:hover { border-color: color-mix(in oklab, var(--accent), transparent 40%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.game-art { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.game-art .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0.0) 12px 24px),
    linear-gradient(160deg, var(--c1, #3a2418), var(--c2, #1a1310));
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
.game-card:hover .game-art .ph { transform: scale(1.05); }
.game-art .ph span { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: .05em; padding: 6px 12px; border: 1px dashed rgba(255,255,255,0.25); border-radius: 6px; }
.game-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .6s var(--ease); }
.game-card:hover .game-img { transform: scale(1.05); }
.game-status { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; z-index: 2; }
.game-status.out { background: #2BBF6A; }
.game-status.dev { background: var(--gold); color: var(--night); }
.game-body { padding: 24px 26px 28px; }
.game-body h3 { font-size: 30px; color: #fff; }
.game-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.game-meta .tag { font-family: var(--font-mono); font-size: 12px; color: var(--soft-on-night); border: 1px solid var(--night-line); padding: 5px 11px; border-radius: 999px; }
.game-desc { color: var(--soft-on-night); margin-top: 16px; line-height: 1.5; font-size: 15px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--cream); }
.svc {
  padding: 40px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  position: relative; transition: background .3s; overflow: hidden;
}
.svc:nth-child(2n) { border-right: none; }
.svc:nth-child(n+3) { border-bottom: none; }
.svc:hover { background: var(--accent); color: #fff; }
.svc:hover .svc-num, .svc:hover .svc-tags .t { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.4); }
.svc-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.svc h3 { font-size: 30px; margin: 18px 0 12px; }
.svc p { color: var(--ink-soft); line-height: 1.5; transition: color .3s; }
.svc:hover p { color: rgba(255,255,255,0.92); }
.svc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.svc-tags .t { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 3px solid var(--ink); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 24px; margin: 14px 0 10px; }
.step p { color: var(--ink-soft); line-height: 1.5; font-size: 15px; }

/* ============================================================
   STUDIO / CONTACT
   ============================================================ */
.cta-band { background: var(--ink); color: var(--cream); border-radius: 32px; padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(40px, 6vw, 80px); color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(243,233,218,0.7); font-size: 18px; margin-top: 22px; max-width: 46ch; line-height: 1.5; }
.cta-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 36px; }
.cta-chip { font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(243,233,218,0.25); color: var(--cream); transition: background .2s, color .2s; }
.cta-chip:hover, .cta-chip.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-contact { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(243,233,218,0.18); }
.cta-contact .item .l { font-family: var(--font-mono); font-size: 12px; color: rgba(243,233,218,0.55); letter-spacing: .06em; }
.cta-contact .item .v { font-size: 18px; margin-top: 6px; font-weight: 500; }
.cta-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .35; right: -80px; top: -120px; pointer-events: none; }

/* ============================================================
   CLIENTS / PORTFOLIO
   ============================================================ */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.client-card {
  display: block; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--cream);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; color: inherit;
}
.client-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(28,23,20,.4); border-color: color-mix(in oklab, var(--accent), transparent 55%); }
.client-shot {
  position: relative; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--cream-2) 0 14px, #ece0cf 14px 28px);
  border-bottom: 1.5px solid var(--line); overflow: hidden;
}
.client-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s var(--ease); }
.client-card:hover .client-img { transform: scale(1.04); }
.client-shot.contain { background: radial-gradient(circle at 50% 45%, #ffffff, #f3e9da); }
.client-shot.contain .client-img { object-fit: contain; object-position: center; padding: 30px; transform: none; }
.client-card:hover .client-shot.contain .client-img { transform: scale(1.06); }
.client-shot .ph-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em;
  padding: 6px 12px; border: 1px dashed rgba(28,23,20,0.28); border-radius: 6px;
  background: color-mix(in oklab, var(--cream), transparent 15%);
}
.client-type {
  position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.client-body { padding: 22px 24px 26px; }
.client-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.client-meta strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.client-meta span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.client-body p { color: var(--ink-soft); line-height: 1.55; font-size: 15px; margin-top: 12px; text-wrap: pretty; }
.client-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent);
}
.client-arrow { transition: transform .25s var(--ease); display: inline-block; }
.client-card:hover .client-arrow { transform: translate(2px, -2px); }

/* ============================================================
   SIDE NAV (scroll-spy)
   ============================================================ */
.sidenav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 2px;
}
.sidenav-item { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 7px 0; }
.sidenav-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s, color .2s;
  white-space: nowrap; pointer-events: none;
}
.sidenav-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 2px solid color-mix(in oklab, var(--ink), transparent 64%); background: transparent;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.sidenav-item:hover .sidenav-label { opacity: 1; transform: none; color: var(--ink); }
.sidenav-item:hover .sidenav-dot { border-color: var(--accent); transform: scale(1.1); }
.sidenav-item.active .sidenav-label { opacity: 1; transform: none; color: var(--ink); font-weight: 600; }
.sidenav-item.active .sidenav-dot {
  background: var(--accent); border-color: var(--accent); transform: scale(1.1);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 82%);
}
/* dark-section variant */
.sidenav.on-dark .sidenav-dot { border-color: rgba(255,255,255,0.45); }
.sidenav.on-dark .sidenav-label { color: rgba(255,255,255,0.7); }
.sidenav.on-dark .sidenav-item:hover .sidenav-label,
.sidenav.on-dark .sidenav-item.active .sidenav-label { color: #fff; }
.sidenav.on-dark .sidenav-item:hover .sidenav-dot { border-color: var(--gold); }
.sidenav.on-dark .sidenav-item.active .sidenav-dot {
  background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,177,46,0.22);
}
@media (max-width: 1180px) { .sidenav { display: none; } }

/* ============================================================
   STUDIO / ABOUT
   ============================================================ */
.studio-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 64px; align-items: center; }
.studio-copy .kicker { margin-bottom: 18px; }
.studio-copy h2 { margin: 16px 0 26px; max-width: 16ch; }
.studio-lead { font-size: 20px; color: var(--ink); line-height: 1.5; margin-bottom: 18px; font-weight: 500; text-wrap: pretty; }
.studio-body { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 30px; max-width: 54ch; text-wrap: pretty; }
.studio-points { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.sp { border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 18px; }
.sp .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sp .v { font-weight: 600; margin-top: 5px; font-size: 15px; }
.studio-photos { display: grid; gap: 18px; }
.studio-photos .ph {
  margin: 0; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--line);
  background: var(--night);
}
.studio-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.studio-photos .ph:hover img { transform: scale(1.04); }
.studio-photos .ph1 { aspect-ratio: 16/11; }
.studio-photos .ph2 { aspect-ratio: 16/9; margin-left: 40px; }
.studio-photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
}
.cap-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0; }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ============================================================
   NEWS
   ============================================================ */
.nav-links a.active::after { width: 100%; }

.news-page { padding: clamp(130px, 14vw, 180px) 0 clamp(60px, 8vw, 110px); }
.news-page h1.section-title { margin-top: 18px; }
.news-empty { color: var(--ink-soft); font-size: 18px; padding: 40px 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 0 var(--ink); }
.news-cover { aspect-ratio: 16/10; background: var(--cream-2); overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--ink); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.news-cover img.news-cover-owl { width: 34%; height: auto; object-fit: contain; opacity: .85; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-body h3 { font-size: 24px; line-height: 1.1; }
.news-card-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); }
a.news-cat:hover { background: var(--accent); }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 34px; }
.news-filters button { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; transition: background .15s, color .15s; }
.news-filters button.on { background: var(--ink); color: var(--cream); }
.news-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.news-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; }
.news-link .arrow { display: inline-block; transition: transform .25s var(--ease); }
.news-card:hover .news-link .arrow { transform: translateX(4px); }

.news-article { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.news-back { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.news-back:hover { color: var(--accent); }
.news-title { font-size: clamp(36px, 5.5vw, 64px); text-wrap: balance; }
.news-lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.5; }
.news-hero-img { width: 100%; border-radius: 22px; border: 2px solid var(--ink); margin-top: 14px; display: block; }
.news-body { margin-top: 18px; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.news-body > * + * { margin-top: 1em; }
.news-body h1, .news-body h2, .news-body h3 { line-height: 1.15; margin-top: 1.6em; }
.news-body h1 { font-size: 34px; }
.news-body h2 { font-size: 28px; }
.news-body h3 { font-size: 22px; }
.news-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.news-body ul, .news-body ol { padding-left: 1.4em; }
.news-body li + li { margin-top: .35em; }
.news-body blockquote { border-left: 4px solid var(--accent); padding-left: 18px; color: var(--ink-soft); }
.news-body pre, .news-body code { font-family: var(--font-mono); font-size: 15px; background: var(--cream-2); border-radius: 8px; }
.news-body pre { padding: 14px 16px; overflow-x: auto; }
.news-body img { max-width: 100%; height: auto; border-radius: 14px; }
.news-more { margin-top: clamp(70px, 9vw, 120px); }
.news-more h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 30px; }

/* ============================================================
   SUBSCRIBE
   ============================================================ */
.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; }

.subscribe {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 26px;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 36px;
}
.subscribe h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 14px; text-wrap: balance; }
.subscribe-copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin-top: 12px; max-width: 46ch; }
.subscribe-cta { display: flex; flex-direction: column; align-items: flex-start; }
.subscribe-cta .subscribe-note { padding-left: 4px; }
.subscribe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.subscribe-note.err { color: #C9361B; }

/* Sign-up dialog. Padding lives on the inner block so a click on the <dialog>
   element itself can only be a click on the backdrop. */
.subscribe-dialog {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 2px solid var(--ink); border-radius: 26px; background: var(--cream); color: var(--ink);
  box-shadow: 0 10px 0 0 var(--ink); overflow-y: auto;
}
.subscribe-dialog::backdrop { background: rgba(28,23,20,.55); backdrop-filter: blur(3px); }
.subscribe-dialog[open] { animation: sd-in .3s var(--ease); }
@keyframes sd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
body.reduce-motion .subscribe-dialog[open] { animation: none; }
.subscribe-dialog-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s;
}
.subscribe-dialog-x:hover { background: var(--cream-2); }
.subscribe-form, .subscribe-done { padding: clamp(24px, 4vw, 38px); }
.subscribe-form h2, .subscribe-done h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 12px; padding-right: 36px; }
.subscribe-dialog-sub { color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; margin-top: 10px; }

.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 24px; }
.sf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-field > span { font-weight: 600; font-size: 14px; }
.sf-field > span small { font-weight: 400; color: var(--ink-soft); }
.sf-field input {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; min-width: 0;
  border: 2px solid var(--ink); border-radius: 14px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sf-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 80%); }
.sf-field input[aria-invalid="true"] { border-color: #C9361B; }

.sf-field small { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.sf-field em, .sf-error { font-style: normal; font-size: 13px; color: #C9361B; }
.sf-hint, .sf-error { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; }
.sf-hint { color: var(--ink-soft); }

/* Topic chips (sign-up, manage) and account summary */
.sf-wide { grid-column: 1 / -1; }
.sf-block { margin-top: 18px; }
.sf-topics { border: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-topics legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; float: left; width: 100%; }
.sf-topics em { width: 100%; font-style: normal; font-size: 13px; color: #C9361B; }
.sf-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.sf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-chip.on { background: var(--ink); color: var(--cream); }
.sf-chip:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 75%); }
.sf-code { font-family: var(--font-mono); font-size: 24px !important; letter-spacing: .4em; text-align: center; max-width: 240px; }
.sf-account { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--cream-2); border-radius: 14px; }
.sf-account dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sf-account dd { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.sf-account dd small { font-weight: 400; color: var(--ink-soft); }
.sf-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.sf-status.active { background: #D8F3E2; color: #17693A; }
.sf-status.pending { background: #FFE9C7; color: #8A5300; }
.sf-status.unsubscribed { background: #ECE6E0; color: var(--ink-soft); }
.sf-ok { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; color: #1E8F4E; }
.sf-danger { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sf-danger p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; }
.sf-danger form .sf-block { margin-top: 0; margin-bottom: 14px; }
.btn-danger { background: #C9361B; color: #fff; box-shadow: 0 5px 0 0 #7E200F; }
.btn-danger:hover { transform: translateY(-2px); }
.btn-danger:disabled { opacity: .7; cursor: default; transform: none; }
.link-btn { font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-btn:hover { color: var(--accent); }
.link-btn.danger { color: #C9361B; }
.link-btn:disabled { opacity: .5; cursor: default; }

.sf-actions { margin-top: 24px; }
.sf-actions .btn { box-shadow: 0 5px 0 0 color-mix(in oklab, var(--accent), #000 32%); }
.sf-actions .btn:disabled { opacity: .7; cursor: default; transform: none; }
.sf-consent { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

.subscribe-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.subscribe-done h2 { padding-right: 0; }
.subscribe-done p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.subscribe-done .btn { margin-top: 8px; }

.subscription-card { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.subscription-owl { width: 110px; height: auto; }
.subscription-card h1 { font-size: clamp(32px, 5vw, 52px); text-wrap: balance; }
.subscription-card p { color: var(--ink-soft); font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.subscription-card p strong { color: var(--ink); }
.subscription-card .subscribe-note { padding-left: 0; }
.sf-consent + .sf-consent { margin-top: 6px; }

.subscription-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-owl { min-height: 300px; }
  .owl3d-wrap { max-width: 86vw; }
  .games-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-photos .ph2 { margin-left: 0; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .subscribe { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  /* The emphasised phrase is one unbreakable line so the swash can be drawn across
     it. On a phone that line is wider than the screen: the headline ran under both
     edges and the swash past them. Let it wrap instead, and trade the swash for an
     underline that survives the line break — better than shrinking the headline
     until the longest phrase happens to fit. */
  .hero h1 .em {
    white-space: normal;
    text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--accent), transparent 55%);
    text-decoration-thickness: .09em;
    text-underline-offset: .08em;
  }
  .hero h1 .em svg { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: none !important; }
  .svc:nth-child(n+1) { border-bottom: 2px solid var(--ink); }
  .svc:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .sf-grid, .sf-account { grid-template-columns: 1fr; }
  .sf-actions .btn { width: 100%; justify-content: center; }
}
