/* ==========================================================================
   CodeRiver Information Technologies — site stylesheet
   Static HTML5 + CSS only. No JavaScript.
   Palette derived from the WordGallery game: forest & emerald greens,
   mint "revealed" tiles, tangerine & sun-yellow puzzle tiles, warm paper.
   ========================================================================== */

:root {
  --forest-950: #04221d;
  --forest-900: #072d27;
  --forest-800: #0b3a32;
  --forest-700: #0f4c41;
  --emerald-600: #077a62;
  --emerald-500: #0f9572;
  --mint-400: #4fca97;
  --mint-300: #86ddb7;
  --mint-200: #bfeed8;
  --mint-100: #e2f7ec;
  --paper: #fbf6ea;
  --paper-2: #f4ecd9;
  --paper-3: #e9dfc6;
  --ink: #10221e;
  --ink-2: #33463f;
  --ink-3: #5b6c65;
  --tangerine: #f5781e;
  --tangerine-700: #c95a0c;
  --sun: #f9c84e;
  --sun-700: #d9a425;
  --plum: #6c4bb4;
  --white: #ffffff;

  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;
  --shadow-soft: 0 1px 2px rgba(7, 45, 39, .06), 0 12px 32px -12px rgba(7, 45, 39, .22);
  --shadow-deep: 0 30px 60px -20px rgba(4, 34, 29, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest-900); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-600);
  margin: 0 0 1.1rem;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--mint-300); }
.display-xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.display-l { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.display-m { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 750; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.on-dark .lead { color: var(--mint-100); }
.muted { color: var(--ink-3); }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
.hl-mint { background: linear-gradient(transparent 62%, var(--mint-300) 62%, var(--mint-300) 92%, transparent 92%); padding: 0 .08em; }
.italic-accent { font-style: italic; font-weight: 500; color: var(--emerald-600); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--forest-900); --b-fg: var(--paper); --b-sh: var(--forest-950);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  padding: .85em 1.35em; border-radius: 14px; text-decoration: none;
  background: var(--b-bg); color: var(--b-fg);
  box-shadow: 0 4px 0 var(--b-sh);
  transform: translateY(0);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
}
.btn:hover { color: var(--b-fg); transform: translateY(2px); box-shadow: 0 2px 0 var(--b-sh); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--b-sh); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-tangerine { --b-bg: var(--tangerine); --b-fg: #fff; --b-sh: var(--tangerine-700); }
.btn-mint { --b-bg: var(--mint-400); --b-fg: var(--forest-950); --b-sh: #2f9f71; }
.btn-paper { --b-bg: var(--paper); --b-fg: var(--forest-900); --b-sh: var(--paper-3); }
.btn-ghost {
  background: transparent; color: var(--forest-900); box-shadow: inset 0 0 0 2px var(--forest-900);
}
.btn-ghost:hover { background: var(--forest-900); color: var(--paper); box-shadow: inset 0 0 0 2px var(--forest-900); transform: none; }
.on-dark .btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(251, 246, 234, .55); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--forest-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Letter tiles (the WordGallery motif) ---------- */
.tile {
  --t-bg: var(--mint-200); --t-fg: var(--forest-900); --t-sh: #8fcfb1;
  display: inline-grid; place-items: center;
  width: var(--tsize, 52px); height: var(--tsize, 52px);
  border-radius: calc(var(--tsize, 52px) * .2);
  background: var(--t-bg); color: var(--t-fg);
  box-shadow: 0 calc(var(--tsize, 52px) * .08) 0 var(--t-sh), inset 0 1px 0 rgba(255, 255, 255, .45);
  font-family: var(--font-display); font-weight: 800;
  font-size: calc(var(--tsize, 52px) * .52); line-height: 1; text-transform: uppercase;
  user-select: none;
}
.t-mint { --t-bg: #6fd4a7; --t-fg: #fff; --t-sh: #3a9f74; }
.t-pale { --t-bg: var(--mint-200); --t-fg: var(--forest-900); --t-sh: #8fcfb1; }
.t-orange { --t-bg: var(--tangerine); --t-fg: #fff; --t-sh: var(--tangerine-700); }
.t-sun { --t-bg: var(--sun); --t-fg: var(--forest-950); --t-sh: var(--sun-700); }
.t-ink { --t-bg: #13201d; --t-fg: #fff; --t-sh: #000; }
.t-paper { --t-bg: var(--paper); --t-fg: var(--forest-900); --t-sh: var(--paper-3); }
.t-plum { --t-bg: var(--plum); --t-fg: #fff; --t-sh: #4a2f87; }
.tile-word { display: inline-flex; gap: calc(var(--tsize, 52px) * .12); flex-wrap: wrap; vertical-align: middle; }
.tile-word.sm { --tsize: 34px; }
.tile-word.xs { --tsize: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 234, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(11, 58, 50, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { width: 158px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none;
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--paper-2); color: var(--forest-900); }
.site-nav a[aria-current="page"] { background: var(--forest-900); color: var(--paper); }
.site-nav .nav-game a { background: var(--mint-100); color: var(--forest-900); box-shadow: inset 0 0 0 1.5px var(--mint-300); }
.site-nav .nav-game a:hover { background: var(--mint-200); }
.site-nav .nav-game a[aria-current="page"] { background: var(--emerald-600); color: #fff; box-shadow: none; }
.site-nav .nav-game img { width: 22px; height: 22px; border-radius: 6px; }
.site-nav .nav-cta a { background: var(--tangerine); color: #fff; box-shadow: 0 3px 0 var(--tangerine-700); margin-left: 6px; }
.site-nav .nav-cta a:hover { background: #ff8a33; color: #fff; }
.site-nav .nav-cta a[aria-current="page"] { background: var(--forest-900); box-shadow: 0 3px 0 var(--forest-950); }

@media (max-width: 960px) {
  .nav-burger {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-weight: 700; font-size: .95rem; padding: 10px 14px; border-radius: 12px;
    background: var(--forest-900); color: var(--paper);
  }
  .nav-burger .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
  .nav-burger .bars::before, .nav-burger .bars::after, .nav-burger .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-burger .bars::before { top: 0; }
  .nav-burger .bars span { top: 5px; }
  .nav-burger .bars::after { top: 10px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--tangerine); outline-offset: 3px; }
  .nav-toggle:checked + .nav-burger .bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger .bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-toggle:checked + .nav-burger .bars span { opacity: 0; }
  .site-nav { display: none; width: 100%; padding: 4px 0 18px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-nav a { padding: 13px 16px; font-size: 1.05rem; }
  .site-nav .nav-cta a { margin-left: 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(52px, 7vw, 88px) 0; }
.on-dark { background: var(--forest-900); color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark a:not(.btn) { color: var(--mint-300); }
.bg-paper-2 { background: var(--paper-2); }
.bg-white { background: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Game-board background (echoes the in-game green felt with letter ghosts) */
.board {
  background-color: var(--emerald-500);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(134, 221, 183, .45), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(4, 34, 29, .55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, #0c8a69 0%, #0a7c60 45%, #2fae80 100%);
  color: #fff;
}
.board h1, .board h2, .board h3 { color: #fff; }
.board .lead { color: #effcf5; }
.board .eyebrow { color: var(--sun); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero h1 .accent-g { color: var(--emerald-600); }
.hero h1 .accent-o { color: var(--tangerine); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px dashed rgba(11, 58, 50, .25); font-size: .95rem; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--mint-400); }
.hero-meta .dot.o { background: var(--tangerine); }
.hero-meta .dot.y { background: var(--sun); }

/* Puzzle panel */
.puzzle {
  position: relative; border-radius: var(--radius-xl); padding: clamp(22px, 3.2vw, 38px);
  box-shadow: var(--shadow-deep);
  isolation: isolate;
}
.puzzle-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; padding-left: 72px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(4, 34, 29, .35); color: #eafff4; border: 1px solid rgba(255, 255, 255, .18);
}
.chip.sun { background: var(--sun); color: var(--forest-950); border-color: transparent; }
.cross {
  --tsize: clamp(26px, 4.2vw, 48px);
  display: grid; grid-template-columns: repeat(9, var(--tsize)); grid-template-rows: repeat(7, var(--tsize));
  gap: calc(var(--tsize) * .14); justify-content: center;
}
.cross .tile { animation: tile-in .55s var(--ease) both; }
.x1 { grid-column: 1; } .x2 { grid-column: 2; } .x3 { grid-column: 3; } .x4 { grid-column: 4; } .x5 { grid-column: 5; }
.x6 { grid-column: 6; } .x7 { grid-column: 7; } .x8 { grid-column: 8; } .x9 { grid-column: 9; }
.y1 { grid-row: 1; } .y2 { grid-row: 2; } .y3 { grid-row: 3; } .y4 { grid-row: 4; } .y5 { grid-row: 5; } .y6 { grid-row: 6; } .y7 { grid-row: 7; }
.cross .tile:nth-child(1) { animation-delay: .05s } .cross .tile:nth-child(2) { animation-delay: .1s }
.cross .tile:nth-child(3) { animation-delay: .15s } .cross .tile:nth-child(4) { animation-delay: .2s }
.cross .tile:nth-child(5) { animation-delay: .25s } .cross .tile:nth-child(6) { animation-delay: .3s }
.cross .tile:nth-child(7) { animation-delay: .35s } .cross .tile:nth-child(8) { animation-delay: .4s }
.cross .tile:nth-child(9) { animation-delay: .45s } .cross .tile:nth-child(10) { animation-delay: .6s }
.cross .tile:nth-child(11) { animation-delay: .68s } .cross .tile:nth-child(12) { animation-delay: .76s }
.cross .tile:nth-child(13) { animation-delay: .9s } .cross .tile:nth-child(14) { animation-delay: .98s }
.cross .tile:nth-child(15) { animation-delay: 1.06s } .cross .tile:nth-child(16) { animation-delay: 1.2s }
.cross .tile:nth-child(17) { animation-delay: 1.28s } .cross .tile:nth-child(18) { animation-delay: 1.36s }
@keyframes tile-in {
  0% { opacity: 0; transform: translateY(14px) scale(.6) rotate(-8deg); }
  70% { opacity: 1; transform: translateY(-3px) scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
.cross .ghost { border-radius: calc(var(--tsize) * .2); background: rgba(4, 34, 29, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.puzzle-keys { display: flex; justify-content: center; gap: 8px; margin-top: 22px; --tsize: clamp(30px, 3.6vw, 42px); }
.puzzle-keys .tile { animation: key-bob 3.2s ease-in-out infinite; }
.puzzle-keys .tile:nth-child(2) { animation-delay: .2s } .puzzle-keys .tile:nth-child(3) { animation-delay: .4s } .puzzle-keys .tile:nth-child(4) { animation-delay: .6s }
@keyframes key-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.puzzle-caption { text-align: center; margin: 16px 0 0; padding-right: 22%; font-size: .85rem; color: var(--mint-100); opacity: .9; }
.phone.hero-phone { position: absolute; right: -26px; bottom: -44px; width: clamp(110px, 13vw, 170px); transform: rotate(7deg); z-index: 2; }
.hero-sticker {
  position: absolute; left: -22px; top: -22px; z-index: 3; width: 92px; height: 92px; border-radius: 22px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transform: rotate(-9deg);
}

/* ---------- Phone frame ---------- */
.phone {
  margin: 0; position: relative; aspect-ratio: 640 / 1305;
  border-radius: 13% / 6.4%; padding: 3.2%;
  background: linear-gradient(145deg, #1e2b28, #050c0a);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset, var(--shadow-deep);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10.5% / 5.1%; }
.phone::before {
  content: ""; position: absolute; top: 4.6%; left: 50%; width: 30%; height: 2.6%;
  transform: translateX(-50%); background: #050c0a; border-radius: 99px; z-index: 2; opacity: .0;
}

/* ---------- Marquee ---------- */
.marquee { background: var(--forest-900); color: var(--paper); overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .06); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track ul { list-style: none; margin: 0; padding: 18px 0; display: flex; align-items: center; }
.marquee-track li { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; letter-spacing: -.01em; }
.marquee-track li::after { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--tangerine); transform: rotate(45deg); }
.marquee-track li:nth-child(3n+2)::after { background: var(--sun); }
.marquee-track li:nth-child(3n)::after { background: var(--mint-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Two currents (home) ---------- */
.currents { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); }
.current { padding: clamp(32px, 5vw, 64px); position: relative; }
.current-eng { background: #fff; }
.current-play { color: #fff; }
.current h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.current .kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 10px; }
.current-eng .kicker { color: var(--emerald-600); }
.current-play .kicker { color: var(--sun); }
.current p { color: var(--ink-2); }
.current-play p { color: #effcf5; }
.current ul.ticks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: var(--mint-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230b3a32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 2px 0 #8fcfb1;
}
.current-play .ticks li::before { background-color: var(--sun); box-shadow: 0 2px 0 var(--sun-700); }
.current-play .mode-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 1.6rem 0 1.8rem; }
.mode-strip img { border-radius: 14px; box-shadow: 0 6px 0 rgba(4, 34, 29, .35); aspect-ratio: 1 / .82; object-fit: cover; width: 100%; }

/* ---------- Editorial service list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--forest-900); }
.svc-item { display: grid; grid-template-columns: 110px 1.1fr 1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid rgba(11, 58, 50, .18); align-items: start; transition: background .25s; }
.svc-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--forest-800); letter-spacing: -.04em; }
.svc-item:hover .svc-num { color: var(--tangerine); -webkit-text-stroke-color: var(--tangerine); }
.svc-item h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .35em; }
.svc-item p { color: var(--ink-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 7px 13px; border-radius: 10px; background: var(--paper-2); font-size: .9rem; font-weight: 600; color: var(--forest-800); border: 1px solid rgba(11, 58, 50, .1); }
.on-dark .tags li { background: rgba(255, 255, 255, .07); color: var(--mint-100); border-color: rgba(255, 255, 255, .12); }

/* ---------- WordGallery feature band ---------- */
.wg-band { overflow: hidden; }
.wg-band-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.wg-title { display: flex; align-items: center; gap: 18px; margin-bottom: 1rem; }
.wg-title img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.wg-band .lead { color: #f2fff8; }
.phones { position: relative; height: clamp(420px, 46vw, 600px); }
.phones .phone { position: absolute; width: clamp(150px, 17vw, 236px); }
.phones .p1 { left: 2%; top: 12%; transform: rotate(-9deg); }
.phones .p2 { left: 33%; top: 0; z-index: 2; width: clamp(170px, 19vw, 262px); }
.phones .p3 { right: 0; top: 14%; transform: rotate(8deg); }
.float-tiles { position: absolute; z-index: 3; display: flex; gap: 6px; --tsize: 40px; }
.float-tiles.ft1 { left: 0; bottom: 4%; transform: rotate(-6deg); }
.float-tiles.ft2 { right: 6%; top: 0; transform: rotate(7deg); --tsize: 34px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2rem 0; }
.stat { background: rgba(4, 34, 29, .28); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--sun); letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: #e3fbef; }

/* ---------- Values / principles ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(11, 58, 50, .14); border-radius: var(--radius-l); overflow: hidden; }
.value { background: #fff; padding: clamp(24px, 3vw, 36px); }
.value .tile { --tsize: 46px; margin-bottom: 22px; }
.value h3 { font-size: 1.3rem; margin-bottom: .4em; }
.value p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Team note ---------- */
.team-note { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.team-note .tile-word { --tsize: clamp(40px, 6vw, 70px); }
.team-note p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 600; margin: 0; }

/* ---------- CTA block ---------- */
.cta {
  border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 14em; }
.cta .contact-lines { display: grid; gap: 14px; justify-items: start; }
.cta .contact-lines a.mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--sun); text-decoration: none; border-bottom: 2px solid rgba(249, 200, 78, .5); }
.cta .contact-lines a.mail:hover { border-bottom-color: var(--sun); }
.cta address { font-style: normal; color: var(--mint-100); line-height: 1.5; }
.cta-tiles { position: absolute; right: 40px; top: 30px; display: flex; gap: 8px; transform: rotate(-6deg); opacity: .95; --tsize: 54px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { margin-top: 1rem; }
.crumb { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-3); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--emerald-600); text-decoration: underline; }
.on-dark .crumb, .board .crumb { color: var(--mint-200); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.hero-word { justify-self: end; display: grid; gap: 10px; --tsize: clamp(38px, 5vw, 62px); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-wide { grid-template-columns: .8fr 1.2fr; }
.prose { max-width: 42em; }
.prose p { color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.on-dark .prose p { color: var(--mint-100); }
.mv { border-radius: var(--radius-l); padding: clamp(28px, 4vw, 48px); height: 100%; }
.mv h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); display: flex; align-items: center; gap: 14px; }
.mv h2 .tile { --tsize: 40px; }
.mv-mission { background: #fff; box-shadow: var(--shadow-soft); }
.mv-vision { background: var(--forest-900); color: var(--paper); }
.mv-vision h2 { color: var(--paper); }
.mv-vision p { color: var(--mint-100); }
.mv-vision .ticks li::before { background-color: var(--mint-400); box-shadow: 0 2px 0 #2f9f71; }
.mv-vision ul.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin: 1.2rem 0 1.4rem; }

.do-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.do { background: #fff; border-radius: var(--radius-l); padding: clamp(26px, 3.4vw, 40px); position: relative; border: 1px solid rgba(11, 58, 50, .1); }
.do .num { position: absolute; right: 26px; top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--paper-2); letter-spacing: -.04em; }
.do h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); padding-right: 70px; }
.do p { color: var(--ink-2); }
.do ul { color: var(--ink-2); }
.do.do-game { background: var(--emerald-500); color: #fff; border: 0; }
.do.do-game h3 { color: #fff; }
.do.do-game p { color: #effcf5; }
.do.do-game .num { color: rgba(255, 255, 255, .16); }
.do.do-game a { color: var(--sun); font-weight: 700; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: why; }
.why li { counter-increment: why; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 22px 22px 22px 70px; position: relative; font-weight: 600; font-size: 1.08rem; color: var(--paper); }
.why li::before { content: counter(why); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sun); color: var(--forest-950); font-family: var(--font-display); font-weight: 800; box-shadow: 0 3px 0 var(--sun-700); }
.closing { margin-top: clamp(40px, 6vw, 72px); font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.closing p { margin: 0; color: var(--mint-200); font-weight: 500; }
.closing p + p { color: var(--paper); font-weight: 800; }

/* ---------- IT services page ---------- */
.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid rgba(11, 58, 50, .15); }
.service:first-of-type { border-top: 0; }
.service-aside { position: sticky; top: 110px; align-self: start; }
.service-index { display: flex; align-items: baseline; gap: 14px; margin-bottom: 1rem; }
.service-index .tile { --tsize: 48px; }
.service h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.service-body .intro { font-size: 1.15rem; color: var(--ink-2); }
.offer { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer li { background: #fff; border-radius: 16px; padding: 18px 20px 18px 54px; position: relative; font-weight: 600; color: var(--forest-900); border: 1px solid rgba(11, 58, 50, .1); line-height: 1.4; }
.offer li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 6px; background: var(--mint-400); box-shadow: 0 3px 0 #2f9f71; }
.service:nth-of-type(2) .offer li::before { background: var(--sun); box-shadow: 0 3px 0 var(--sun-700); }
.service:nth-of-type(3) .offer li::before { background: var(--plum); box-shadow: 0 3px 0 #4a2f87; }
.service:nth-of-type(4) .offer li::before { background: var(--tangerine); box-shadow: 0 3px 0 var(--tangerine-700); }
.service-body .outro { font-weight: 600; color: var(--forest-800); border-left: 4px solid var(--mint-400); padding: 4px 0 4px 18px; margin: 0; }
.service-body .outro a { font-weight: 700; }

/* ---------- WordGallery page ---------- */
.wg-hero { padding: clamp(48px, 7vw, 100px) 0 0; overflow: hidden; position: relative; }
.wg-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.wg-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.035em; margin-bottom: .3em; }
.wg-hero h1 small { display: block; font-size: .42em; font-weight: 700; letter-spacing: -.01em; color: var(--sun); margin-top: .5em; line-height: 1.2; }
.wg-hero .lead { color: #f2fff8; }
.wg-hero .lead strong { color: #fff; }
.wg-hero-copy { padding-bottom: clamp(48px, 7vw, 100px); }
.wg-hero-icon { width: clamp(84px, 9vw, 112px); height: auto; border-radius: 26px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); margin-bottom: 26px; }
.wg-hero-phones { position: relative; height: clamp(380px, 44vw, 560px); align-self: end; }
.wg-hero-phones .phone { position: absolute; bottom: -18%; width: clamp(170px, 20vw, 270px); }
.wg-hero-phones .ph-a { left: 4%; transform: rotate(-6deg); }
.wg-hero-phones .ph-b { right: 4%; bottom: -26%; transform: rotate(5deg); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px;
  border-radius: 14px; background: var(--forest-950); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
}
.badge-soon svg { width: 26px; height: 26px; flex: 0 0 auto; }
.badge-soon span { display: grid; line-height: 1.15; font-weight: 700; font-size: 1.05rem; }
.badge-soon small { font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mint-200); }

.modes { display: grid; gap: clamp(20px, 3vw, 28px); }
.mode {
  display: grid; grid-template-columns: 200px 1fr 220px; gap: clamp(20px, 3.4vw, 48px); align-items: center;
  border-radius: var(--radius-xl); padding: clamp(22px, 3.4vw, 40px); background: #fff; border: 1px solid rgba(11, 58, 50, .1);
  box-shadow: var(--shadow-soft);
}
.mode-art img { width: 100%; border-radius: 22px; aspect-ratio: 1 / .82; object-fit: cover; box-shadow: 0 8px 0 var(--paper-3); }
.mode h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.mode .mode-no { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tangerine); font-weight: 700; display: block; margin-bottom: .6rem; }
.mode p { color: var(--ink-2); }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mode li { position: relative; padding-left: 26px; color: var(--ink-2); }
.mode li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--sun); box-shadow: 0 2px 0 var(--sun-700); }
.mode .phone { width: 100%; max-width: 220px; justify-self: center; }
.mode:nth-child(2) li::before { background: var(--mint-400); box-shadow: 0 2px 0 #2f9f71; }
.mode:nth-child(3) li::before { background: var(--plum); box-shadow: 0 2px 0 #4a2f87; }
.mode:nth-child(4) li::before { background: var(--tangerine); box-shadow: 0 2px 0 var(--tangerine-700); }

.tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0 0 2rem; }
.tool { background: rgba(4, 34, 29, .3); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 22px 20px; }
.tool .tile { --tsize: 44px; margin-bottom: 16px; font-size: 1.15rem; }
.tool strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; color: #fff; }
.tool span:not(.tile) { color: #e6fbf0; font-size: .97rem; line-height: 1.45; display: block; }

.anywhere { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.anywhere ul.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.footnote { font-size: .9rem; color: var(--ink-3); }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 460px; justify-self: center; width: 100%; }
.shot-pair .phone:nth-child(2) { transform: translateY(36px); }

.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.howto-card { background: #fff; border-radius: var(--radius-l); padding: clamp(24px, 3vw, 34px); border: 1px solid rgba(11, 58, 50, .1); }
.howto-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.howto-card h3 .tile { --tsize: 34px; font-size: 1rem; }
.howto-card ol, .howto-card ul { padding-left: 1.2em; margin: 0; color: var(--ink-2); display: grid; gap: 8px; }
.howto-card li::marker { color: var(--tangerine); font-weight: 800; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid rgba(11, 58, 50, .12); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 64px 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  background: var(--sun); color: var(--forest-950); font-weight: 800; font-size: 1.2rem; box-shadow: 0 3px 0 var(--sun-700);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--mint-400); box-shadow: 0 3px 0 #2f9f71; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--ink-2); }

.download { text-align: center; }
.download .tile-word { --tsize: clamp(36px, 5vw, 58px); justify-content: center; margin-bottom: 28px; }
.download h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.download p { max-width: 38em; margin-left: auto; margin-right: auto; color: #f2fff8; }
.download .badges { justify-content: center; }

.legal-links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.legal-links li { flex: 1 1 0; min-width: 0; }
@media (max-width: 1100px) { .legal-links li { flex: 1 1 calc(33.333% - 8px); } }
@media (max-width: 640px) { .legal-links li { flex: 1 1 100%; } }
.legal-links a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(11, 58, 50, .12); text-decoration: none; color: var(--forest-900);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.legal-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); color: var(--forest-900); }
.legal-links b { font-family: var(--font-display); font-size: 1.12rem; }
.legal-links small { color: var(--ink-3); font-size: .88rem; line-height: 1.4; }
.legal-links .read { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; color: var(--emerald-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.contact-card { border-radius: var(--radius-xl); padding: clamp(28px, 4.4vw, 56px); }
.contact-card h2 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.contact-card address { font-style: normal; font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.25; letter-spacing: -.015em; }
.contact-card address strong { display: block; margin-bottom: .3em; }
.contact-mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -.02em; text-decoration: none; color: var(--forest-900); border-bottom: 4px solid var(--sun); line-height: 1.2; word-break: break-word; }
.contact-mail:hover { color: var(--emerald-600); border-bottom-color: var(--mint-400); }
.contact-card.light { background: #fff; box-shadow: var(--shadow-soft); }
.contact-card.dark { background: var(--forest-900); color: var(--paper); }
.contact-card.dark h2 { color: var(--mint-300); }
.contact-card .note { margin-top: 1.4rem; color: var(--ink-3); font-size: 1rem; }
.contact-card.dark .note { color: var(--mint-100); }
.contact-topics { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 10px; }
.contact-topics a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--paper); text-decoration: none; font-weight: 600; }
.contact-topics a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.contact-topics a::after { content: "→"; color: var(--sun); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.legal-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.legal-hero .meta img { width: 44px; height: 44px; border-radius: 12px; }
.legal-hero .meta b { font-family: var(--font-display); font-size: 1.15rem; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.legal-nav { position: sticky; top: 100px; }
.legal-nav p { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.legal-nav ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.legal-nav a:hover { background: var(--paper-2); }
.legal-nav a[aria-current="page"] { background: var(--forest-900); color: var(--paper); }
.legal-nav .help { font-size: .92rem; color: var(--ink-3); background: var(--paper-2); border-radius: 14px; padding: 14px 16px; }
.legal-nav .help a { display: inline; padding: 0; color: var(--emerald-600); }
.legal-banner {
  border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); margin-bottom: 18px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em;
}
.legal-banner h1 { font-size: inherit; margin: 0; color: #fff; }
.legal-doc {
  background: #fff; border-radius: var(--radius-l); border: 1px solid rgba(11, 58, 50, .1);
  padding: clamp(24px, 5vw, 64px); box-shadow: var(--shadow-soft);
  font-size: 1.03rem; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere;
}
.legal-doc h1 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--forest-900); margin: 2.2em 0 .7em; padding-top: 1.4em; border-top: 1px solid rgba(11, 58, 50, .12); letter-spacing: -.015em; }
.legal-doc h1:first-child { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 0; padding-top: 0; border-top: 0; letter-spacing: -.03em; }
.legal-doc h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--forest-800); margin: 1.8em 0 .6em; }
.legal-doc h3 { font-size: 1.1rem; color: var(--forest-800); margin: 1.6em 0 .5em; }
.legal-doc strong { color: var(--ink); }
.legal-doc ul { padding-left: 1.3em; }
.legal-doc li { margin-bottom: .35em; }
.legal-doc li::marker { color: var(--emerald-500); }
.legal-doc .wsw-31 { color: var(--forest-800); }
.legal-doc p:has(> .wsw-31) { background: var(--mint-100); border-left: 4px solid var(--mint-400); padding: 12px 18px; border-radius: 0 12px 12px 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .tile-word { --tsize: clamp(48px, 9vw, 86px); justify-content: center; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: var(--mint-100); padding: clamp(56px, 8vw, 96px) 0 32px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { color: #a9d9c3; font-size: .98rem; max-width: 24em; }
.site-footer h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--mint-300); text-decoration: underline; }
.site-footer address { font-style: normal; color: #cdeedd; line-height: 1.6; }
.footer-bottom { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: #8fbfaa; }
.footer-word { position: absolute; right: -10px; bottom: -34px; display: flex; gap: 8px; opacity: .06; --tsize: 90px; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .mode { grid-template-columns: 170px 1fr; }
  .mode .phone { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .wg-band-grid, .page-hero-grid, .wg-hero-grid, .split, .split-wide, .anywhere, .contact-grid, .cta { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .currents { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 80px 1fr; }
  .svc-item .tags { grid-column: 2; }
  .service { grid-template-columns: 1fr; gap: 18px; }
  .service-aside { position: static; }
  .hero-word { justify-self: start; }
  .why { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: 2; }
  .legal-nav ul { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .wg-hero-phones { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .wg-hero-copy { padding-bottom: 20px; }
  .cta-tiles { display: none; }
  .phones { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 136px; }
  .header-inner { min-height: 66px; }
  .phone.hero-phone { right: -10px; bottom: -36px; width: 96px; }
  .puzzle-top { padding-left: 46px; }
  .hero-sticker { width: 64px; height: 64px; left: -8px; top: -14px; border-radius: 16px; }
  .current-play .mode-strip { grid-template-columns: repeat(2, 1fr); }
  .svc-item { grid-template-columns: 1fr; gap: 10px; }
  .svc-item .tags { grid-column: auto; }
  .stat-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .team-note { grid-template-columns: 1fr; }
  .do-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .mode { grid-template-columns: 1fr; }
  .mode-art { max-width: 240px; }
  .footer-top { grid-template-columns: 1fr; }
  .phones { height: 400px; }
  .phones .phone { width: 150px; }
  .phones .p2 { width: 166px; left: 28%; }
  .phones .p1 { left: -2%; }
  .phones .p3 { right: -2%; }
  .float-tiles { --tsize: 30px; }
  .float-tiles.ft2 { --tsize: 26px; }
  .wg-hero-phones { height: 360px; }
  .wg-hero-phones .phone { width: 160px; }
  .shot-pair .phone:nth-child(2) { transform: translateY(20px); }
  .legal-doc { padding: 22px 18px; }
  .faq summary { font-size: 1.04rem; padding: 18px 60px 18px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .contact-card { padding: 26px 20px; }
}
@media (max-width: 380px) {
  .tools { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .legal-nav, .marquee, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-doc { box-shadow: none; border: 0; padding: 0; }
  a { color: #000; }
}

/* ---------- Small utilities ---------- */
.contact-card h2.spaced { margin-top: 2.4rem; }
.notfound .lead { margin: 0 auto 1.6rem; }
.notfound .btn-row { justify-content: center; }
.legal-banner .h-claim { margin: 0; color: #fff; font-weight: 800; }
.legal-banner .h-claim strong { font-weight: 800; }
.puzzle-keys .tile-word { gap: 8px; }

/* ---------- Weekly Challenges (WordGallery) ---------- */
.board .ticks li { color: #effcf5; }
.board .ticks li::before { background-color: var(--sun); box-shadow: 0 2px 0 var(--sun-700); }
.weekly ul.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.weekly .tile-word { display: flex; margin-bottom: 18px; }
.weekly-shot { display: flex; justify-content: center; }
.weekly-shot .phone { width: min(280px, 70%); transform: rotate(3deg); }

/* ---------- Robust phone frames (height follows the screenshot; avoids aspect-ratio quirks in Safari/Firefox) ---------- */
.phone { aspect-ratio: auto; height: auto; line-height: 0; }
.phone img { height: auto; aspect-ratio: 640 / 1305; }
.mode { overflow: hidden; }
.mode > * { min-width: 0; }
.mode .phone { width: 100%; max-width: 200px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset, 0 18px 36px -18px rgba(4, 34, 29, .5); }

/* Home WordGallery stats: 3 x 2 grid, 2 columns on small screens */
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } }
