/* Voyager Studio — site styles
   Layout: white pages with full-width navy bands for featured content; red is the
   one accent (buttons, the compass needle). Suez One for headings, Rubik for text. */
:root {
  --red: #ea3e36;
  --red-strong: #c9302a;   /* red used behind white text (AA contrast) */
  --navy: #272443;
  --navy-deep: #1b1931;
  --ink: #1d1b2e;
  --muted: #5d5a70;
  --paper: #ffffff;
  --sand: #f6f4f0;
  --line: #e4e0d8;
  --on-navy: #f3f1fa;
  --on-navy-muted: #b9b5d0;

  --font-display: "Suez One", Georgia, "Times New Roman", serif;
  --font-body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.5rem);
  --step-4: clamp(2.4rem, 6vw, 3.6rem);

  --radius: 14px;
  --max: 1160px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--step-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.mt-lg { margin-top: 32px; }
.section-head.flush { margin: 0; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-strong); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { background: var(--red-strong); color: #fff; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; line-height: 1.2; font-size: var(--step-0); font-family: inherit; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red-strong); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-navy .btn-ghost { border-color: var(--on-navy); color: var(--on-navy); }
.on-navy .btn-ghost:hover { background: var(--on-navy); color: var(--navy); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.band-sand { background: var(--sand); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy .eyebrow { color: #ff8a80; }
.on-navy .lede, .on-navy .muted { color: var(--on-navy-muted); }
.on-navy a:not(.btn) { color: #fff; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 .accent { color: var(--red); }
.hero-copy { display: grid; gap: 20px; justify-items: start; max-width: 640px; }
.hero-art { margin-top: 8px; }
.hero-art img { width: 100%; max-width: 1000px; margin: 0 auto; }
.page-hero { padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 40px); }
.page-hero .wrap { display: grid; gap: 14px; }

/* Featured game */
.game-feature { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .game-feature { grid-template-columns: 1fr 1.1fr; } }
.game-id { display: flex; gap: 18px; align-items: center; }
.game-id img { width: 88px; height: 88px; border-radius: 20px; flex: 0 0 auto; }
.game-copy { display: grid; gap: 20px; min-width: 0; }
.modes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modes li { border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 14px; font-size: var(--step--1); }
.band-sand .modes li, .modes.light li { border-color: var(--line); background: var(--paper); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; min-width: 0; }
.shots img { border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); width: 100%; }
.shots.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .shots.four { grid-template-columns: repeat(2, 1fr); } }

/* Cards grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(39,36,67,0.12); color: var(--ink); }
.card-media { aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.card-body p { color: var(--muted); font-size: 0.95rem; }

/* Services detail */
.service { display: grid; gap: 28px; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
@media (min-width: 820px) { .service { grid-template-columns: 1fr 1fr; gap: 48px; } .service:nth-of-type(even) .service-media { order: 2; } }
.service-media img, .service-media video { border-radius: var(--radius); width: 100%; max-height: 420px; object-fit: contain; background: var(--sand); }
.service-copy { display: grid; gap: 14px; min-width: 0; }
.service-copy .links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 500; }

/* Values / team */
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.value .num { font-family: var(--font-display); color: var(--red); font-size: var(--step-2); line-height: 1; }
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.member { display: grid; gap: 6px; text-align: center; }
.member img { width: 100%; max-width: 300px; margin: 0 auto 8px; border-radius: 50%; background: var(--sand); aspect-ratio: 1; object-fit: cover; }
.member .role { color: var(--muted); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filter { font: inherit; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.work { padding-top: 48px; scroll-margin-top: 90px; }
.work-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 72ch; }
.credit { font-size: var(--step--1); color: var(--muted); }
.credit b { color: var(--ink); font-weight: 600; }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: var(--sand); position: relative; }
.gallery button.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button.zoom:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.gallery img, .gallery video { width: 100%; }
.gallery figcaption { font-size: var(--step--1); padding: 8px 12px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.subhead { font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); margin: 18px 0 10px; color: var(--ink); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(20, 18, 36, 0.88); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog.lightbox p { color: #fff; text-align: center; margin-top: 8px; font-size: var(--step--1); }
dialog.lightbox .close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); font: inherit; font-weight: 600; background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* Contact form */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
form.contact { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #c9c4ba; border-radius: 10px; padding: 11px 14px; width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(234, 62, 54, 0.35); border-color: var(--red-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: #1f7a3a; }
.form-status.err { color: var(--red-strong); }
.contact-aside { display: grid; gap: 20px; align-content: start; }
.contact-aside .box { background: var(--sand); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 8px; }
.email { font-weight: 600; font-size: var(--step-1); word-break: break-all; user-select: all; }
.copy { justify-self: start; font: inherit; font-size: var(--step--1); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }

/* CTA band */
.cta { display: grid; gap: 20px; justify-items: start; }
@media (min-width: 820px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 56px 32px; font-size: 0.95rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { width: 160px; margin-bottom: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--step--1); }

/* Policy pages */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px 28px; margin: 12px 0 0; }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.policy h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); margin-top: 1.6em; }
.summary { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 20px 22px; }
.summary h2 { margin-top: 0; font-size: var(--step-1); }
.summary > * + * { margin-top: 0.8em; }
.policy .table-wrap { max-width: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--sand); white-space: nowrap; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* 404 */
.not-found { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 96px; }
.not-found .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--red); line-height: 1; }
