/* Shared editorial portfolio theme. */
:root {
  --editorial-ink: #e4f5fb;
  --editorial-muted: #8ba3b5;
  --editorial-line: rgba(0, 240, 255, .2);
  --editorial-surface: rgba(13, 20, 34, .84);
  --editorial-accent: #00f0ff;
  --editorial-soft-accent: rgba(112, 0, 255, .12);
  --editorial-input: #080d17;
}

.editorial {
  --ink: var(--editorial-ink); --muted: var(--editorial-muted); --line: var(--editorial-line);
  --bg: #070b12; --panel: var(--editorial-surface); --acid: var(--editorial-accent);
  --blue: #71917a; --orange: #a46337; user-select: text;
}
.editorial::before, .editorial .hero::after, .editorial .project::before { display: none; }
.editorial .wrap { width: min(1240px, calc(100% - 64px)); }
.editorial section { scroll-margin-top: 25px; }
.editorial h1 { font-size: clamp(46px, 5.4vw, 74px); letter-spacing: -.065em; line-height: 1.04; }
.editorial h1 em { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.editorial .back-link { display: inline-block; font-size: 12px; margin-bottom: 45px; }

/* First-visit cookie notice */
.cookie-notice {
  position: fixed;
  z-index: 20;
  right: clamp(16px, 3vw, 32px);
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(590px, calc(100vw - 32px));
  padding: 19px 21px;
  border: 1px solid rgba(0,240,255,.28);
  background: rgba(7,11,18,.96);
  box-shadow: 0 14px 44px rgba(0,0,0,.4), 0 0 22px rgba(0,240,255,.08);
  color: var(--ink, #e4f5fb);
  backdrop-filter: blur(14px);
}
.cookie-notice-title { color: var(--acid, #00f0ff); font-size: 10px; letter-spacing: .13em; }
.cookie-notice-copy p { margin: 8px 0 0; color: var(--muted, #8ba3b5); font-size: 12px; line-height: 1.55; }
.cookie-notice-copy a { display: inline-block; margin-top: 9px; color: var(--acid, #00f0ff); font: 10px 'DM Mono', monospace; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(0,240,255,.38);
  background: rgba(0,240,255,.08);
  color: var(--acid, #00f0ff);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
  touch-action: manipulation;
}
.cookie-notice-button:hover { background: rgba(0,240,255,.16); }
.cookie-notice-button:focus-visible { outline: 2px solid var(--acid, #00f0ff); outline-offset: 3px; }
@media (max-width: 560px) {
  .cookie-notice { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 13px; width: calc(100vw - 24px); padding: 16px; }
  .cookie-notice-button { width: 100%; }
}

/* Navigation and shared controls */
.editorial nav { border-bottom: 1px solid var(--line); padding: 25px 0; }
.editorial .brand-mark { border-radius: 50%; transform: none; }
.editorial .nav-links { gap: 22px; }
.editorial .nav-links [aria-current] { color: var(--acid); text-decoration: underline; text-underline-offset: 6px; }
.editorial .button { border-radius: 4px; font-size: 12px; }
.editorial .button:hover { background: #204d39; color: #fff; }
.editorial .button.alt { background: transparent; border-color: var(--line); color: var(--ink); }
.editorial .button.alt:hover { background: #e0e5d8; }

/* Home */
.editorial .hero { align-items: center; display: grid; gap: 60px; grid-template-columns: 1.1fr 1fr; min-height: 650px; overflow: visible; padding: 70px 0; }
.editorial .hero-copy { max-width: 440px; }
.editorial .hero-actions { flex-wrap: wrap; gap: 12px; }
.hero-location { color: var(--muted); font-size: 10px; letter-spacing: .04em; line-height: 1.8; margin-top: 32px; }
.hero-feature { background: var(--editorial-soft-accent); border: 1px solid #cad3bf; border-radius: 8px; display: block; padding: 18px; transform: rotate(2deg); transition: transform .2s; }
.hero-feature:hover { transform: rotate(0); }
.hero-feature img { aspect-ratio: 1.15; border-radius: 3px; display: block; object-fit: cover; width: 100%; }
.feature-label { display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .1em; margin: 3px 0 17px; }
.feature-caption { align-items: center; display: flex; gap: 15px; justify-content: space-between; padding: 22px 0 4px; }
.feature-caption .mono { color: var(--muted); font-size: 10px; }
.feature-caption h2 { font-size: 24px; letter-spacing: -.04em; margin: 8px 0 0; }
.feature-arrow { font-size: 28px; }
.discipline-strip { border-block: 1px solid var(--line); display: flex; font-size: 12px; gap: 15px; justify-content: space-between; letter-spacing: .12em; padding: 22px 0; }
.editorial .project { background: transparent; border-radius: 8px; padding: 22px; }
.editorial .project-visual { border-radius: 4px; }
.editorial .project h3 { letter-spacing: -.04em; }
.editorial .project-link { transition: color .2s ease; }
.editorial .project-link:hover { color: #a46337; }
.editorial .news-card, .editorial .skill-panel, .editorial .video-card { background: var(--panel); border-radius: 8px; }
.editorial .tag { background: #e2e7da; color: #3b5342; }
.editorial .contact { background: var(--editorial-soft-accent); border-radius: 8px; margin-bottom: 55px; padding: 48px; }
.editorial .contact h2 { font-size: clamp(30px, 4vw, 52px); }

/* Home footer */
.home-footer { border-top: 1px solid var(--line); color: var(--ink); display: block; font-family: 'Space Grotesk', sans-serif; margin-top: 12px; padding: 48px 0 26px; }
.home-footer-top { align-items: start; display: flex; justify-content: space-between; gap: 56px; padding-bottom: 52px; }
.home-footer-brand { display: inline-flex; align-items: flex-start; color: var(--ink); font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.075em; line-height: .83; }
.home-footer-brand span { align-items: center; background: var(--acid); border-radius: 50%; color: var(--bg); display: inline-flex; font-size: 17px; height: 30px; justify-content: center; letter-spacing: 0; line-height: 1; margin: 3px 12px 0 0; width: 30px; }
.home-footer p { color: var(--muted); margin: 20px 0 0; max-width: 260px; }
.home-footer-links { display: grid; gap: 55px; grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.home-footer-links > div { display: grid; align-content: start; gap: 11px; }
.home-footer-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-bottom: 8px; }
.home-footer-links a { font-size: 15px; transition: color .2s ease, transform .2s ease; }
.home-footer-links a:hover { color: var(--acid); transform: translateX(3px); }
.home-footer-bottom { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; gap: 20px; justify-content: space-between; letter-spacing: .08em; padding-top: 20px; }
.home-footer-bottom .footer-legal { display: flex; gap: 18px; }

/* Videos and licenses */
.video-intro { border-bottom: 1px solid var(--line); padding: 65px 0 40px; }
.video-intro p, .watch-more p { color: var(--muted); line-height: 1.7; }
.editorial .video-intro p,
.editorial .video-grid p,
.editorial .watch-more p,
.editorial #videos .section-note { hyphens: auto; text-align: justify; }
.watch-more { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 55px; padding: 45px 20px; text-align: center; }
.editorial .license-page { padding-bottom: 70px; }
.editorial .license-hero { align-items: flex-start; border-bottom: 1px solid var(--line); min-height: 440px; padding: 55px 0; }
.editorial .license-hero .back-link { margin-bottom: 32px; }
.editorial .license-collection { border-top: 0; padding: 55px 0 0; }
.editorial .certificate-grid { grid-template-columns: 1fr; }
.editorial .certificate-card { background: var(--panel); border: 1px dashed #b4c3ad; border-radius: 8px; padding: 40px; }
.editorial .certificate-empty { gap: 30px; justify-content: center; min-height: 240px; }
.editorial .certificate-empty > div:last-child { max-width: 470px; }
.editorial .certificate-icon { background: var(--editorial-soft-accent); border: 1px solid #cad3bf; border-radius: 50%; font-size: 36px; height: 86px; width: 86px; }
.editorial .certificate-card .mono { color: var(--acid); }

/* Article, legal pages, and privacy form */
.editorial .article-page, .editorial .legal-page, .editorial .privacy-request-page { margin: 0 auto; max-width: 900px; padding: 62px 0 80px; }
.editorial .article-header, .editorial .legal-header { border-bottom: 1px solid var(--line); padding: 0 0 45px; }
.editorial .article-header .back-link, .editorial .legal-header .back-link { margin-bottom: 42px; }
.editorial .article-header h1 { margin: 18px 0 22px; max-width: 760px; }
.editorial .article-lead { font-size: 20px; line-height: 1.55; max-width: 630px; }
.editorial .article-meta, .editorial .legal-summary, .editorial .privacy-request > p { color: var(--muted); }
.editorial .article-body, .editorial .legal-body, .editorial .privacy-request { margin: 0 auto; max-width: 740px; }
.editorial .article-body { font-size: 17px; line-height: 1.8; padding-top: 52px; }
.editorial .article-body p, .editorial .article-body li { hyphens: auto; text-align: justify; }
.editorial .design-case-card { color: inherit; display: block; height: 100%; text-decoration: none; }
.editorial .design-case-card:focus-visible { outline: 3px solid var(--acid); outline-offset: 5px; }
.editorial .design-case-card:hover h3, .editorial .design-case-card:hover .project-link { color: var(--acid); }
.editorial .legal-body { font-size: 16px; line-height: 1.8; padding-top: 44px; }
.editorial .article-body h2, .editorial .legal-body h2, .editorial .privacy-request h2 { letter-spacing: -.045em; }
.editorial .article-body h2 { font-size: 30px; margin-top: 48px; }
.editorial .legal-body h2 { font-size: 27px; margin-top: 43px; }
.editorial .article-body a:not(.button), .editorial .legal-body a { color: var(--acid); }
.editorial .article-body a:not(.button) { text-decoration-color: #9aac96; }
.editorial .article-callout { background: var(--editorial-soft-accent); border-left: 4px solid var(--acid); border-radius: 0 7px 7px 0; padding: 24px 26px; }
.editorial .article-sources { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 25px 28px; }
.editorial .article-sources ul { padding-left: 20px; }
.editorial .legal-header h1 { margin: 18px 0 20px; }
.editorial .legal-summary { font-size: 17px; line-height: 1.7; max-width: 680px; }
.editorial .legal-summary,
.editorial .legal-body p,
.editorial .legal-body li,
.editorial .privacy-request > p { hyphens: auto; text-align: justify; }
.editorial .privacy-request { padding-top: 48px; }
.editorial .privacy-request h2 { font-size: 30px; }
.editorial .privacy-request > p { line-height: 1.7; }
.editorial .privacy-request-form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.editorial .privacy-request-form input, .editorial .privacy-request-form textarea, .editorial .custom-select-trigger { background: var(--editorial-input); border-color: #c8d0c3; color: var(--ink); }
.editorial .custom-select-options { background: var(--editorial-input); border-color: #c8d0c3; }
.editorial .custom-select-options button { color: var(--ink); }
.editorial .custom-select.is-open .custom-select-trigger { border-color: #b87b52; box-shadow: 0 0 0 3px rgba(184, 123, 82, .12); }
.editorial .custom-select-options { border-color: #d4bca9; box-shadow: 0 16px 34px rgba(51, 42, 34, .16); }
.editorial .custom-select-options button { border-radius: 3px; }
.editorial .custom-select-options button:hover,
.editorial .custom-select-options button[aria-selected='true'] { background: #f0e3d5; color: var(--ink); }

@media (min-width: 701px) and (max-width: 1050px) {
  .editorial .nav-cta { display: none; }
  .editorial .hero { gap: 30px; }
}

@media (max-width: 700px) {
  .editorial .wrap { width: calc(100% - 36px); }
  .editorial .nav-links { background: var(--bg); }
  .editorial h1 { font-size: clamp(42px, 9vw, 64px); }
  .editorial .back-link { margin-bottom: 30px; }
  .editorial .hero { gap: 40px; grid-template-columns: 1fr; min-height: auto; padding: 45px 0; }
  .hero-feature { transform: none; }
  .hero-feature img { aspect-ratio: 1.5; }
  .feature-caption h2 { font-size: 22px; }
  .discipline-strip { font-size: 9px; gap: 8px; letter-spacing: 0; }
  .editorial .contact { padding: 28px 20px; }
  .home-footer { padding: 36px 0 22px; }
  .home-footer-top { flex-direction: column; gap: 38px; padding-bottom: 35px; }
  .home-footer-links { gap: 38px; width: 100%; }
  .home-footer-bottom { align-items: flex-start; flex-direction: column; gap: 13px; }
  .home-footer-bottom .footer-legal { flex-wrap: wrap; gap: 12px 18px; }
  .editorial .license-hero { min-height: auto; padding: 36px 0 40px; }
  .editorial .license-collection { padding-top: 36px; }
  .editorial .certificate-empty { align-items: flex-start; flex-direction: column; gap: 22px; padding: 28px 22px; }
  .editorial .certificate-card h3 { font-size: 23px; }
  .editorial .article-page, .editorial .legal-page, .editorial .privacy-request-page { padding: 38px 0 58px; }
  .editorial .article-header, .editorial .legal-header { padding-bottom: 34px; }
  .editorial .article-lead, .editorial .legal-summary { font-size: 16px; }
  .editorial .article-body { font-size: 16px; line-height: 1.75; padding-top: 35px; }
  .editorial .legal-body { font-size: 15px; line-height: 1.75; padding-top: 30px; }
  .editorial .article-body h2 { font-size: 26px; margin-top: 36px; }
  .editorial .legal-body h2 { font-size: 25px; margin-top: 34px; }
  .editorial .article-callout { padding: 20px; }
  .editorial .project { min-height: 0; padding: 20px; }
  .editorial .project-top { align-items: flex-start; flex-wrap: wrap; gap: 7px 12px; font-size: 10px; }
  .editorial .project-visual { aspect-ratio: 16 / 8; margin: 18px 0; }
  .editorial .project-icon { font-size: 28px; }
  .editorial .tags { gap: 6px; margin-top: 16px; }
  .editorial .tag { font-size: 10px; padding: 5px 7px; }
  .editorial .project-link { margin-top: 16px; }
  .editorial .article-header .article-meta { font-size: 10px; overflow-wrap: anywhere; }
  .editorial .article-callout { overflow-x: auto; }
  .editorial .article-callout code { font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
  .editorial .article-body ul { padding-left: 22px; }
  .editorial .article-body li { margin-bottom: 12px; }
  .editorial .privacy-request { padding-top: 35px; }
  .editorial .privacy-request-form { padding: 22px; }
}

@media (max-width: 380px) {
  .editorial .project { padding: 17px; }
  .editorial .project-top { font-size: 9px; }
  .editorial .project h3 { font-size: 20px; }
  .editorial .article-header h1 { font-size: 40px; }
  .editorial .article-callout { font-size: 14px; padding: 17px; }
}

@media (prefers-reduced-motion: reduce) { .hero-feature { transition: none; } }

/* Cyberpunk portfolio theme, adapted to Andrew GameLab's existing content. */
.editorial {
  --ink: #e4f5fb; --muted: #8ba3b5; --line: rgba(0,240,255,.2);
  --bg: #070b12; --panel: rgba(13,20,34,.84); --acid: #00f0ff;
  --blue: #8b5cf6; --orange: #ff3e9d; color-scheme: dark; background-color: var(--bg);
}
.editorial::before {
  display: block; z-index: 0; opacity: .38;
  background-image: linear-gradient(rgba(0,240,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(0,240,255,.055) 1px,transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom,black,transparent 92%);
}
.editorial::after {
  content: ''; position: fixed; z-index: 3; top: 0; left: 0; width: 100%; height: 2px;
  pointer-events: none; opacity: .42; background: rgba(0,240,255,.45);
  box-shadow: 0 0 12px rgba(0,240,255,.55); animation: cyber-scan 9s linear infinite;
}
@keyframes cyber-scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }
.editorial .wrap { position: relative; z-index: 1; }
.editorial nav { border-color: var(--line); }
.editorial .brand-mark { color: #050508; background: var(--acid); box-shadow: 0 0 16px rgba(0,240,255,.45); }
.editorial .brand, .editorial h1, .editorial h2, .editorial h3 { color: #f3fbff; }
.editorial .nav-links a:hover, .editorial .nav-links [aria-current], .editorial .section-kicker,
.editorial .feature-arrow, .editorial .hero em { color: var(--acid); }
.editorial .hero em { text-shadow: 0 0 18px rgba(0,240,255,.35); }
.editorial .eyebrow #cyber-typing { width: auto; height: auto; background: transparent; }
.editorial .eyebrow #cyber-typing::after { content: '|'; margin-left: 3px; animation: cyber-cursor 1s steps(2,end) infinite; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes cyber-cursor { 50% { opacity: 0; } }
.editorial .button { border: 1px solid var(--acid); color: #031015; background: var(--acid); box-shadow: 0 0 18px rgba(0,240,255,.23); }
.editorial .button:hover { color: #050508; background: #7df8ff; box-shadow: 0 0 24px rgba(0,240,255,.4); }
.editorial .button.alt { color: var(--acid); background: rgba(0,240,255,.04); border-color: rgba(0,240,255,.45); }
.editorial .button.alt:hover { color: var(--acid); background: rgba(0,240,255,.12); }
.editorial .scroll-top:hover { color: #050508; background: #7df8ff; box-shadow: 0 0 22px rgba(0,240,255,.48); }
.editorial .hero-feature {
  background: linear-gradient(145deg,rgba(13,20,34,.95),rgba(27,13,47,.9));
  border-color: rgba(0,240,255,.35); box-shadow: 0 0 34px rgba(0,240,255,.1);
}
.editorial .hero-feature img { border: 1px solid rgba(0,240,255,.2); }
.editorial .feature-label, .editorial .feature-caption .mono { color: var(--muted); }
.editorial .discipline-strip { border-color: var(--line); color: var(--acid); }
.editorial .skill-panel, .editorial .news-card, .editorial .video-card, .editorial .project,
.editorial .article-callout, .editorial .article-sources, .editorial .privacy-request-form,
.editorial .certificate-card {
  color: var(--ink); background: linear-gradient(145deg,rgba(16,24,40,.94),rgba(10,14,25,.92));
  border-color: rgba(0,240,255,.2); box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.editorial .project:hover, .editorial .skill-panel:hover, .editorial .news-card:hover,
.editorial .video-card:hover, .editorial .certificate-card:hover {
  border-color: rgba(0,240,255,.55); box-shadow: 0 0 24px rgba(0,240,255,.12);
}
.editorial .tag { color: #a7f7ff; background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.18); }
.editorial .contact {
  color: var(--ink); background: linear-gradient(120deg,rgba(0,240,255,.09),rgba(112,0,255,.14));
  border: 1px solid rgba(0,240,255,.3); box-shadow: inset 0 0 40px rgba(112,0,255,.08);
}
.editorial .socials a:hover, .editorial .home-footer-links a:hover,
.editorial .article-body a:not(.button), .editorial .legal-body a { color: var(--acid); }
.editorial .home-footer { color: var(--ink); border-color: var(--line); }
.editorial .home-footer-brand { color: var(--ink); }
.editorial .home-footer-brand span { color: #050508; }
.editorial .home-footer-bottom { border-color: var(--line); }
.editorial input, .editorial textarea, .editorial select, .editorial .custom-select-trigger,
.editorial .custom-select-options { color: var(--ink); background: #080d17; border-color: rgba(0,240,255,.25); }
.editorial .custom-select-options button { color: var(--ink); }
.editorial .custom-select-options button:hover, .editorial .custom-select-options button[aria-selected='true'] { color: #050508; background: var(--acid); }
.editorial #cyber-canvas { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .3; }
.editorial .page-loader { background: #070b12; }
.editorial .page-loader-mark { color: #050508; box-shadow: 0 0 22px rgba(0,240,255,.4); }

/* Temporarily hide these destinations from site navigation and home shortcuts. */
.editorial .nav-links a[href$='software.html'],
.editorial .nav-links a[href$='articles.html'],
.editorial .nav-links a[href$='videos.html'],
.editorial .nav-links a[href$='game-design.html'],
.editorial .home-footer-links a[href$='software.html'],
.editorial .home-footer-links a[href$='articles.html'],
.editorial .home-footer-links a[href$='videos.html'],
.editorial .home-footer-links a[href$='game-design.html'],
.editorial.home-page .hero-actions a[href$='videos.html'] { display: none !important; }

/* Recompose the home hero as a centered command deck above the featured game. */
.editorial.home-page .hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 46px;
  min-height: auto;
  padding: 78px 0 48px;
}
.editorial.home-page .hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.editorial.home-page .hero .eyebrow { justify-content: center; }
.editorial.home-page .hero h1 {
  margin: 25px auto 22px;
  font-size: clamp(54px, 7.5vw, 96px);
  line-height: .98;
}
.editorial.home-page .hero-copy { margin-inline: auto; }
.editorial.home-page .hero-actions { justify-content: center; }
.editorial.home-page .hero-location { margin-top: 25px; }
.editorial.home-page .hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  grid-template-rows: auto 1fr;
  gap: 0 25px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px;
  transform: none;
}
.editorial.home-page .hero-feature:hover { transform: translateY(-4px); }
.editorial.home-page .feature-label { grid-column: 1 / -1; }
.editorial.home-page .hero-feature img {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}
.editorial.home-page .feature-caption {
  grid-column: 2;
  grid-row: 2;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(0,240,255,.25);
  padding: 30px;
}
.editorial.home-page .feature-caption h2 { font-size: clamp(24px, 3vw, 36px); }
.editorial.home-page .feature-arrow { align-self: flex-end; margin-top: auto; }
.editorial.home-page .discipline-strip { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .editorial::after { animation: none; }
  .editorial #cyber-canvas { display: none; }
  .editorial .eyebrow #cyber-typing::after { animation: none; }
}
@media (max-width: 700px) {
  .editorial.home-page .hero { gap: 32px; padding: 54px 0 36px; }
  .editorial.home-page .hero h1 { font-size: clamp(46px, 11vw, 70px); }
  .editorial.home-page .hero-feature { grid-template-columns: 1fr; gap: 0; padding: 14px; }
  .editorial.home-page .feature-label { grid-column: 1; }
  .editorial.home-page .hero-feature img { grid-column: 1; grid-row: 2; min-height: 0; }
  .editorial.home-page .feature-caption {
    grid-column: 1; grid-row: 3; min-height: 150px;
    border-left: 0; border-top: 1px solid rgba(0,240,255,.25); padding: 20px 5px 5px;
  }
}

/* Game-launcher composition: control panel beside a full-height game viewport. */
.editorial.home-page .hero {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(780px, calc(100svh - 110px));
  padding: 48px 0 58px;
}
.editorial.home-page .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
  margin: 0;
  padding: 28px 0 28px clamp(0px, 2vw, 26px);
  text-align: left;
}
.editorial.home-page .hero .eyebrow { justify-content: flex-start; }
.editorial.home-page .hero h1 {
  margin: 26px 0 24px;
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: .98;
}
.editorial.home-page .hero-line { display: block; }
.editorial.home-page .hero-copy { margin: 0; }
.editorial.home-page .hero-actions { justify-content: flex-start; }
.editorial.home-page .hero-location { margin-top: 34px; }
.editorial.home-page .hero-feature {
  position: relative;
  display: block;
  align-self: stretch;
  width: 100%;
  min-height: 540px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(0,240,255,.38);
  transform: none;
  box-shadow: 0 0 45px rgba(0,240,255,.12), 0 28px 75px rgba(0,0,0,.38);
}
.editorial.home-page .hero-feature::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,8,16,.42), transparent 34%, rgba(4,8,16,.05) 48%, rgba(4,8,16,.96) 100%);
}
.editorial.home-page .hero-feature:hover { transform: translateY(-3px); }
.editorial.home-page .feature-label {
  position: absolute;
  z-index: 2;
  inset: 22px 24px auto;
  display: flex;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,240,255,.38);
  color: #e4f5fb;
  text-shadow: 0 1px 12px #050508;
}
.editorial.home-page .hero-feature img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  filter: brightness(.74) saturate(.82);
  transition: transform .65s ease, filter .4s ease;
}
.editorial.home-page .hero-feature:hover img { transform: scale(1.035); filter: brightness(.86) saturate(1); }
.editorial.home-page .feature-caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  min-height: 210px;
  border: 0;
  padding: 35px 30px 30px;
}
.editorial.home-page .feature-caption .mono { color: #a4c5d5; }
.editorial.home-page .feature-caption h2 { margin-top: 10px; font-size: clamp(26px, 3.2vw, 42px); }
.editorial.home-page .feature-arrow { margin: 0 0 3px; }
.editorial.home-page .discipline-strip { justify-content: space-around; }
@media (max-width: 900px) {
  .editorial.home-page .hero { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .editorial.home-page .hero h1 { font-size: clamp(48px, 6.6vw, 68px); }
  .editorial.home-page .hero-feature { min-height: 500px; }
  .editorial.home-page .feature-caption { padding: 25px 22px 24px; }
}
@media (max-width: 700px) {
  .editorial.home-page .hero {
    display: flex;
    gap: 30px;
    min-height: auto;
    padding: 45px 0 35px;
  }
  .editorial.home-page .hero-content { padding: 8px 0; }
  .editorial.home-page .hero h1 { font-size: clamp(48px, 12vw, 74px); }
  .editorial.home-page .hero-feature { min-height: min(76svh, 620px); }
  .editorial.home-page .feature-caption { min-height: 170px; padding: 24px 20px 20px; }
}

/* About section: one clear introduction followed by three short profile notes. */
.editorial.home-page #about { padding-top: 88px; }
.editorial.home-page #about .section-head {
  align-items: end;
  margin-bottom: 30px;
}
.editorial.home-page #about .section-head h2 {
  margin-top: 10px;
  font-size: clamp(38px, 5vw, 58px);
}
.editorial.home-page #about .section-note {
  max-width: 330px;
  margin-bottom: 5px;
  text-align: left;
}
.editorial.home-page .about-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.editorial.home-page .about-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  text-align-last: left;
  hyphens: none;
}
.editorial.home-page .about-story p { margin: 0; }
.editorial.home-page .about-story .about-text {
  grid-column: 1 / -1;
  position: relative;
  margin: 0 0 4px;
  padding: 28px 32px 30px 36px;
  border: 1px solid rgba(0,240,255,.25);
  border-left: 3px solid var(--acid);
  background: linear-gradient(110deg,rgba(0,240,255,.09),rgba(112,0,255,.08) 65%,rgba(12,18,30,.8));
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -.04em;
  box-shadow: 0 12px 34px rgba(0,0,0,.17);
}
.editorial.home-page .about-story .about-text strong { color: var(--acid); font-weight: 600; }
.editorial.home-page .about-story p:not(.about-text) {
  position: relative;
  overflow: hidden;
  min-height: 195px;
  padding: 22px 21px;
  border: 1px solid rgba(0,240,255,.16);
  background: linear-gradient(145deg,rgba(16,24,40,.9),rgba(10,14,25,.88));
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.editorial.home-page .about-story p:not(.about-text)::before {
  display: block;
  margin: 0 42px 15px 0;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(0,240,255,.16);
  color: var(--acid);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .12em;
}
.editorial.home-page .about-story p:not(.about-text)::after {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(0,240,255,.28);
  border-radius: 50%;
  background: rgba(0,240,255,.06);
  color: var(--acid);
  font: 12px 'DM Mono', monospace;
  text-shadow: 0 0 10px rgba(0,240,255,.45);
}
.editorial.home-page .about-story p:nth-child(2)::before { content: 'GAME DEVELOPMENT'; }
.editorial.home-page .about-story p:nth-child(3)::before { content: 'FOUNDATION'; }
.editorial.home-page .about-story p:nth-child(4)::before { content: 'COLLABORATION'; }
.editorial.home-page .about-story p:nth-child(2)::after { content: '</>'; }
.editorial.home-page .about-story p:nth-child(3)::after { content: '◇'; }
.editorial.home-page .about-story p:nth-child(4)::after { content: '↗'; }
.editorial.home-page .skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.editorial.home-page .skill-panel,
.editorial.home-page .skill-panel-wide {
  grid-column: auto;
  min-height: 0;
  padding: 23px;
  border-radius: 3px;
}
.editorial.home-page .skill-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(0,240,255,.2);
  color: var(--acid);
  font-size: 10px;
  letter-spacing: .12em;
}
.editorial.home-page .skill-panel-icon {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.editorial.home-page .skill-panel ul { gap: 0; margin-top: 9px; }
.editorial.home-page .skill-panel li { align-items: baseline; padding: 11px 0; }
.editorial.home-page .skill-panel .compact-list { grid-template-columns: 1fr; }
.editorial.home-page .skill-panel:hover { transform: translateY(-3px); transition: transform .2s ease, box-shadow .2s ease; }
@media (max-width: 900px) {
  .editorial.home-page .about-story { grid-template-columns: 1fr 1fr; }
  .editorial.home-page .about-story p:nth-child(4) { grid-column: 1 / -1; min-height: 0; }
  .editorial.home-page .skills-grid { grid-template-columns: 1fr 1fr; }
  .editorial.home-page .skill-panel-wide { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .editorial.home-page #about { padding-top: 60px; }
  .editorial.home-page #about .section-head { display: block; }
  .editorial.home-page #about .section-note { max-width: 440px; margin: 15px 0 0; }
  .editorial.home-page .about-story { grid-template-columns: 1fr; gap: 10px; }
  .editorial.home-page .about-story .about-text { padding: 23px 20px; }
  .editorial.home-page .about-story p:not(.about-text) { min-height: 0; padding: 20px; }
  .editorial.home-page .about-story p:nth-child(4) { grid-column: auto; }
  .editorial.home-page .skills-grid { grid-template-columns: 1fr; gap: 10px; }
  .editorial.home-page .skill-panel-wide { grid-column: auto; }
}

/* Keep the home hero balanced while its featured-game showcase is disabled. */
.editorial.home-page .hero.hero-without-feature { grid-template-columns: minmax(0, 1fr); }
.editorial.home-page .hero.hero-without-feature .hero-feature[hidden] { display: none !important; }
.editorial.home-page .hero.hero-without-feature .hero-content {
  align-items: flex-start;
  max-width: 680px;
  margin: 0;
  text-align: left;
}
.editorial.home-page .hero.hero-without-feature .eyebrow { justify-content: flex-start; }
.editorial.home-page .hero.hero-without-feature .hero-copy { margin: 0; }
.editorial.home-page .hero.hero-without-feature .hero-actions { justify-content: flex-start; }

/* Footer command terminal */
.editorial.home-page .home-footer {
  position: relative;
  overflow: hidden;
  margin: 34px 0 0;
  padding: 34px clamp(20px, 4vw, 48px) 24px;
  border: 1px solid rgba(0,240,255,.24);
  border-top: 2px solid var(--acid);
  background: linear-gradient(135deg,rgba(11,18,31,.98),rgba(8,12,22,.98) 62%,rgba(28,12,43,.94));
  box-shadow: 0 -12px 40px rgba(0,240,255,.045), 0 18px 50px rgba(0,0,0,.2);
}
.editorial.home-page .home-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(0,240,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(0,240,255,.07) 1px,transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(125deg,black,transparent 74%);
}
.editorial.home-page .home-footer-top,
.editorial.home-page .home-footer-bottom { position: relative; z-index: 1; }
.editorial.home-page .home-footer-top {
  display: grid;
  grid-template-columns: minmax(220px,.9fr) minmax(0,1.1fr);
  gap: clamp(28px,6vw,80px);
  padding-bottom: 34px;
}
.editorial.home-page .home-footer-top > div:first-child::before {
  content: 'SYSTEM / ANDREW GAMELAB';
  display: block;
  margin-bottom: 22px;
  color: var(--acid);
  font: 10px 'DM Mono',monospace;
  letter-spacing: .13em;
}
.editorial.home-page .home-footer-brand {
  font-size: clamp(34px,5vw,58px);
  line-height: .88;
}
.editorial.home-page .home-footer-brand span {
  width: 36px;
  height: 36px;
  margin-right: 13px;
  color: #050508;
  box-shadow: 0 0 20px rgba(0,240,255,.4);
}
.editorial.home-page .home-footer-top > div:first-child p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.65;
}
.editorial.home-page .home-footer-links {
  gap: 12px;
}
.editorial.home-page .home-footer-links > div {
  gap: 12px;
  align-content: start;
  padding: 20px 21px;
  border: 1px solid rgba(0,240,255,.16);
  background: rgba(3,9,17,.5);
}
.editorial.home-page .home-footer-label {
  margin-bottom: 5px;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: .16em;
}
.editorial.home-page .home-footer-links a {
  width: fit-content;
  color: #b8cbd7;
  font-size: 13px;
}
.editorial.home-page .home-footer-links a:hover { color: var(--acid); }
.editorial.home-page .home-footer-bottom {
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 24px;
  padding-top: 18px;
  border-color: rgba(0,240,255,.2);
  color: #8195a5;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .09em;
}
.editorial.home-page .home-footer-bottom .footer-legal { gap: 16px; }
.editorial.home-page .home-footer-bottom .footer-legal a { color: #91a9b8; }
@media (max-width: 700px) {
  .editorial.home-page .home-footer { margin-top: 22px; padding: 27px 17px 20px; }
  .editorial.home-page .home-footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 27px; }
  .editorial.home-page .home-footer-links { grid-template-columns: 1fr 1fr; gap: 9px; }
  .editorial.home-page .home-footer-links > div { padding: 16px 13px; }
  .editorial.home-page .home-footer-bottom { align-items: flex-start; flex-direction: column; }
  .editorial.home-page .home-footer-bottom .footer-legal { flex-wrap: wrap; gap: 10px 15px; }
}
.editorial.home-page .footer-clock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 5px 14px;
  max-width: 330px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(0,240,255,.2);
  border-left: 2px solid var(--acid);
  background: rgba(3,9,17,.58);
}
.editorial.home-page .footer-clock-label { grid-column: 1 / -1; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.editorial.home-page .footer-clock time:first-of-type { color: var(--acid); font: 600 22px 'DM Mono',monospace; text-shadow: 0 0 14px rgba(0,240,255,.25); }
.editorial.home-page .footer-clock time:last-of-type { color: #a2b7c4; font: 11px 'DM Mono',monospace; text-align: right; }
@media (max-width: 700px) {
  .editorial.home-page .footer-clock { width: 100%; max-width: 360px; }
}

/* Motion details and touch-sized controls for phones, including Android. */
@keyframes cyber-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial.home-page .about-story p:not(.about-text):hover {
    transform: translateY(-4px);
    border-color: rgba(0,240,255,.42);
    box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 0 18px rgba(0,240,255,.08);
  }
  .editorial.home-page .hero-content > .eyebrow,
  .editorial.home-page .hero-copy,
  .editorial.home-page .hero-actions,
  .editorial.home-page .hero-location {
    animation: cyber-enter .65s cubic-bezier(.2,.7,.25,1) both;
  }
  .editorial.home-page .hero-content > .eyebrow { animation-delay: .05s; }
  .editorial.home-page .hero-line {
    display: block;
    animation: cyber-enter .72s cubic-bezier(.2,.7,.25,1) both;
  }
  .editorial.home-page .hero-line:nth-child(1) { animation-delay: .12s; }
  .editorial.home-page .hero-line:nth-child(2) { animation-delay: .25s; }
  .editorial.home-page .hero-line:nth-child(3) { animation-delay: .38s; }
  .editorial.home-page .hero-copy { animation-delay: .52s; }
  .editorial.home-page .hero-actions { animation-delay: .64s; }
  .editorial.home-page .hero-location { animation-delay: .76s; }
  .editorial.home-page #about .about-text,
  .editorial.home-page #about .about-story p:not(.about-text),
  .editorial.home-page #about .skill-panel {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .editorial.home-page #about.is-visible .about-text,
  .editorial.home-page #about.is-visible .about-story p:not(.about-text),
  .editorial.home-page #about.is-visible .skill-panel { opacity: 1; transform: none; }
  .editorial.home-page #about.is-visible .about-story p:nth-child(2) { transition-delay: .08s; }
  .editorial.home-page #about.is-visible .about-story p:nth-child(3) { transition-delay: .16s; }
  .editorial.home-page #about.is-visible .about-story p:nth-child(4) { transition-delay: .24s; }
  .editorial.home-page #about.is-visible .skill-panel:nth-child(1) { transition-delay: .08s; }
  .editorial.home-page #about.is-visible .skill-panel:nth-child(2) { transition-delay: .16s; }
  .editorial.home-page #about.is-visible .skill-panel:nth-child(3) { transition-delay: .24s; }
  .editorial.home-page .home-footer { animation: cyber-enter .6s ease both; }
}
.editorial.home-page .button,
.editorial.home-page .menu-toggle,
.editorial.home-page .scroll-top,
.editorial.home-page .nav-links a { touch-action: manipulation; }
.editorial.home-page .button,
.editorial.home-page .menu-toggle,
.editorial.home-page .scroll-top { min-height: 48px; }
.editorial.home-page a:focus-visible,
.editorial.home-page button:focus-visible { outline-color: var(--acid); outline-offset: 4px; }
@media (hover: none) and (pointer: coarse) {
  .editorial.home-page .home-footer-links a,
  .editorial.home-page .button,
  .editorial.home-page .nav-links a { transition-duration: .12s; }
  .editorial.home-page .home-footer-links a:active,
  .editorial.home-page .nav-links a:active { color: var(--acid); }
  .editorial.home-page .skill-panel:hover { transform: none; }
}
@media (max-width: 700px) {
  .editorial.home-page .wrap { width: calc(100% - 32px); }
  .editorial.home-page nav { gap: 6px; padding-block: 12px; }
  .editorial.home-page .menu-toggle { flex: 0 0 48px; width: 48px; height: 48px; margin-inline: auto 3px; }
  .editorial.home-page .nav-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .editorial.home-page .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .editorial.home-page .hero.hero-without-feature {
    min-height: min(680px, calc(100vh - 90px));
    min-height: min(680px, calc(100svh - 90px));
    padding-block: clamp(38px, 8vh, 64px) 38px;
  }
  .editorial.home-page .hero.hero-without-feature h1 { font-size: clamp(38px, 11.4vw, 68px); }
  .editorial.home-page .hero-location { font-size: 9px; }
  .editorial.home-page .about-story p:not(.about-text) {
    min-height: 0;
    padding: 20px 18px;
    text-align: left;
  }
  .editorial.home-page .skill-panel li { flex-wrap: wrap; }
  .editorial.home-page .contact-form input,
  .editorial.home-page .contact-form textarea { font-size: 16px; }
  .editorial.home-page .home-footer-links a { min-height: 34px; display: inline-flex; align-items: center; }
}
@media (max-width: 380px) {
  .editorial.home-page .wrap { width: calc(100% - 28px); }
  .editorial.home-page nav { flex-wrap: wrap; }
  .editorial.home-page .brand { font-size: 11px; }
  .editorial.home-page .nav-cta { font-size: 9px; padding-inline: 8px; }
  .editorial.home-page .hero.hero-without-feature h1 { font-size: clamp(36px, 11.2vw, 44px); }
  .editorial.home-page .hero-actions .button { padding-inline: 14px; }
  .editorial.home-page .home-footer-links { grid-template-columns: 1fr; }
  .editorial.home-page .home-footer-links > div { padding: 14px; }
}

.editorial.home-page .contact {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: start;
  gap: clamp(24px,5vw,56px);
}
.editorial.home-page .contact .socials { display: none; }
.editorial.home-page .contact-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: clamp(20px,3vw,30px);
  border: 1px solid rgba(0,240,255,.25);
  background: linear-gradient(145deg,rgba(8,14,25,.9),rgba(12,10,25,.88));
  box-shadow: 0 12px 38px rgba(0,0,0,.22);
}
.editorial.home-page .contact-form label {
  margin-top: 5px;
  color: var(--acid);
  font: 10px 'DM Mono',monospace;
  letter-spacing: .1em;
}
.editorial.home-page .contact-form input,
.editorial.home-page .contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(0,240,255,.22);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: #080d17;
  font: 14px 'Space Grotesk',sans-serif;
}
.editorial.home-page .contact-form textarea { min-height: 130px; resize: vertical; }
.editorial.home-page .contact-form input:focus,
.editorial.home-page .contact-form textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(0,240,255,.1);
}
.editorial.home-page .contact-form input::placeholder,
.editorial.home-page .contact-form textarea::placeholder { color: #738798; }
.editorial.home-page .contact-form .button { width: 100%; margin-top: 8px; cursor: pointer; }
.editorial.home-page .contact-form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.editorial .privacy-request-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) {
  .editorial.home-page .contact { grid-template-columns: minmax(0,1fr); }
  .editorial.home-page .contact-form { padding: 20px; }
}
.editorial.home-page .about-story .about-text {
  display: grid;
  grid-template-columns: minmax(210px,.7fr) minmax(0,1.3fr);
  align-items: center;
  gap: clamp(20px,3vw,38px);
  padding: 25px clamp(22px,3vw,34px);
  font-family: Inter, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}
.editorial.home-page .about-intro {
  color: #b8cbd7;
  font-size: clamp(18px,1.6vw,22px);
  line-height: 1.35;
}
.editorial.home-page .about-intro strong {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(29px,2.6vw,35px);
  line-height: 1.18;
  letter-spacing: -.045em;
}
.editorial.home-page .about-summary {
  max-width: 620px;
  color: #c4d4df;
  font-size: clamp(14px,1.2vw,16px);
  line-height: 1.8;
  letter-spacing: .045em;
  text-transform: uppercase;
}
@keyframes about-summary-arrive {
  0% { opacity: 0; transform: translateY(8px); letter-spacing: .11em; text-shadow: 0 0 0 rgba(0,240,255,0); }
  55% { opacity: 1; text-shadow: 0 0 15px rgba(0,240,255,.28); }
  100% { opacity: 1; transform: translateY(0); letter-spacing: .045em; text-shadow: 0 0 0 rgba(0,240,255,0); }
}
.editorial.home-page #about.is-visible .about-summary { animation: about-summary-arrive .9s cubic-bezier(.2,.75,.25,1) .12s both; }
@media (max-width: 700px) {
  .editorial.home-page .about-story .about-text { grid-template-columns: 1fr; gap: 10px; padding: 21px 20px; }
  .editorial.home-page .about-intro { font-size: 18px; }
  .editorial.home-page .about-intro strong { font-size: 30px; }
  .editorial.home-page .about-summary { font-size: 16px; line-height: 1.65; }
}

/* Show legal-link hover only when the device has a real hover pointer. */
@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: var(--acid); }
  .editorial.home-page .home-footer-bottom .footer-legal a:hover { color: var(--acid); }
}

/* Touch browsers can retain hover/focus after a tap; keep footer links neutral. */
@media (hover: none), (pointer: coarse) {
  .editorial footer .footer-legal a:hover,
  .editorial footer .footer-legal a:active,
  .editorial footer .footer-legal a:focus:not(:focus-visible),
  .editorial footer .footer-socials a:hover,
  .editorial footer .footer-socials a:active,
  .editorial footer .footer-socials a:focus:not(:focus-visible),
  .editorial footer .socials a:hover,
  .editorial footer .socials a:active,
  .editorial footer .socials a:focus:not(:focus-visible) { color: var(--muted); }
  .editorial.home-page footer .footer-legal a:hover,
  .editorial.home-page footer .footer-legal a:active,
  .editorial.home-page footer .footer-legal a:focus:not(:focus-visible) { color: #91a9b8; }

  .editorial .legal-page + footer .footer-legal a,
  .editorial .legal-page + footer .footer-legal a:hover,
  .editorial .legal-page + footer .footer-legal a:focus:not(:focus-visible),
  .editorial .privacy-request-page + footer .footer-legal a,
  .editorial .privacy-request-page + footer .footer-legal a:hover,
  .editorial .privacy-request-page + footer .footer-legal a:focus:not(:focus-visible) { color: var(--muted); }

  .editorial .legal-page + footer .footer-legal a:active,
  .editorial .privacy-request-page + footer .footer-legal a:active { color: var(--acid); }
}

/* Projects page: keep the empty archive clear and comfortable on small screens. */
.editorial.projects-page .projects-empty-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.28);
}
.editorial.projects-page .projects-empty-card .mono {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: .14em;
}
.editorial.projects-page .projects-empty-card p { margin: 0; line-height: 1.6; }
@media (max-width: 700px) {
  .editorial.projects-page main { min-width: 0; }
  .editorial.projects-page .video-intro { padding: 42px 0 30px; }
  .editorial.projects-page .video-intro h1 { font-size: clamp(40px, 11vw, 58px); overflow-wrap: anywhere; }
  .editorial.projects-page .projects-empty { padding: 48px 0 58px; }
  .editorial.projects-page .projects-empty .section-head { margin-bottom: 24px; }
  .editorial.projects-page .projects-empty .section-head h2 { font-size: clamp(30px, 8vw, 42px); line-height: 1.05; }
  .editorial.projects-page .projects-empty .section-note { max-width: 36ch; margin-top: 12px; }
  .editorial.projects-page .projects-empty-card { min-height: 126px; padding: 21px; }
  .editorial.projects-page .menu-toggle { width: 46px; height: 46px; margin-right: 6px; }
}
@media (max-width: 380px) {
  .editorial.projects-page .wrap { width: calc(100% - 28px); }
  .editorial.projects-page .video-intro h1 { font-size: 39px; }
  .editorial.projects-page .projects-empty .section-head h2 { font-size: 29px; }
}

/* QA Game Tester page */
.editorial.qa-page .qa-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: end; gap: clamp(42px, 8vw, 110px); padding: 58px 0 64px; }
.editorial.qa-page .qa-intro-copy { min-width: 0; }
.editorial.qa-page .qa-intro .back-link { margin-bottom: 38px; }
.editorial.qa-page .qa-intro h1 { margin: 18px 0 20px; }
.editorial.qa-page .qa-intro p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.75; text-align: left; }
.editorial.qa-page .qa-cta { margin-top: 26px; }
.editorial.qa-page .qa-overview { padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13,20,34,.95), rgba(8,13,23,.72)); }
.editorial.qa-page .qa-overview-label { color: var(--acid); font-size: 10px; letter-spacing: .14em; }
.editorial.qa-page .qa-overview h2 { margin: 18px 0 8px; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.045em; }
.editorial.qa-page .qa-overview > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.editorial.qa-page .qa-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.editorial.qa-page .qa-overview-stats > div { display: grid; gap: 5px; }
.editorial.qa-page .qa-overview-stats strong { font-size: 25px; letter-spacing: -.05em; }
.editorial.qa-page .qa-overview-stats strong span { color: var(--muted); font-size: 13px; }
.editorial.qa-page .qa-overview-stats > div > span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.editorial.qa-page .qa-section { padding: 72px 0; border-top: 1px solid var(--line); }
.editorial.qa-page .qa-section .section-head { align-items: end; margin-bottom: 30px; }
.editorial.qa-page .qa-section .section-note { max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: left; }
.editorial.qa-page .qa-section .section-head h2 { max-width: 680px; }
.editorial.qa-page .qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.editorial.qa-page .qa-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.editorial.qa-page .qa-index { color: var(--orange); font-size: 10px; letter-spacing: .12em; }
.editorial.qa-page .qa-card h3, .editorial.qa-page .qa-steps h3 { margin: 18px 0 9px; font-size: 21px; line-height: 1.2; }
.editorial.qa-page .qa-card p, .editorial.qa-page .qa-steps p, .editorial.qa-page .qa-contact p { margin: 0; color: var(--muted); line-height: 1.7; }
.editorial.qa-page .qa-process { border-top: 1px solid var(--line); }
.editorial.qa-page .qa-report { border-top: 1px solid var(--line); }
.editorial.qa-page .severity-high { color: #ef765f; }
.editorial.qa-page .severity-medium { color: #e4ad54; }
.editorial.qa-page .severity-low { color: #82b99c; }
.editorial.qa-page .qa-case-card .tags { margin-top: 18px; }
.editorial.qa-page .qa-case-card .project-link { margin-top: 16px; }
.editorial.qa-page .qa-environment strong { color: var(--ink); }
.editorial.qa-page .qa-environment { margin-top: 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial.qa-page .qa-environment > span { color: var(--orange); font-size: 10px; letter-spacing: .12em; }
.editorial.qa-page .qa-environment dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 16px 0 0; }
.editorial.qa-page .qa-environment dl > div { min-width: 0; }
.editorial.qa-page .qa-environment dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.editorial.qa-page .qa-environment dd { margin: 0; line-height: 1.5; }
.editorial.qa-page .qa-environment .qa-device-checked { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.editorial.qa-page .qa-environment .qa-device-checked time { color: var(--ink); }
.editorial.qa-page .qa-game-projects { grid-template-columns: minmax(0, 1fr); }
.editorial.qa-page .qa-game-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 320px; padding: 0; border-color: rgba(0,240,255,.25); background: linear-gradient(135deg, rgba(13,20,34,.96), rgba(8,13,23,.9)); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.editorial.qa-page .qa-game-card:hover { transform: translateY(-3px); border-color: rgba(0,240,255,.58); background: #0d1422; }
.editorial.qa-page .qa-game-card:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.editorial.qa-page .qa-game-card:hover h3, .editorial.qa-page .qa-game-card:hover .project-link { color: var(--acid); }
.editorial.qa-page .qa-game-cover { position: relative; min-height: 100%; overflow: hidden; background: #0d121c; }
.editorial.qa-page .qa-game-cover::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(7,11,18,.78), transparent); content: ''; pointer-events: none; }
.editorial.qa-page .qa-game-cover img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.editorial.qa-page .qa-cover-label { position: absolute; z-index: 1; bottom: 18px; left: 20px; padding: 8px 10px; border: 1px solid rgba(228,245,251,.32); background: rgba(7,11,18,.76); color: var(--ink); font-size: 9px; letter-spacing: .12em; }
.editorial.qa-page .qa-game-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4vw, 54px); }
.editorial.qa-page .qa-game-content .project-top { width: 100%; gap: 12px; font-size: 10px; letter-spacing: .08em; }
.editorial.qa-page .qa-game-content h3 { margin: 28px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.055em; }
.editorial.qa-page .qa-game-content p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.editorial.qa-page .qa-game-content .tags { margin-top: 24px; }
.editorial.qa-page .qa-game-card .tag { background: rgba(0,240,255,.06); color: var(--ink); border-color: var(--line); }
.editorial.qa-page .qa-game-card .project-link { width: 100%; margin-top: auto; padding-top: 20px; }
.editorial.qa-review-page .qa-review-stats { display: flex; gap: 42px; margin-top: 34px; }
.editorial.qa-review-page .qa-review-stats > div { display: grid; gap: 5px; }
.editorial.qa-review-page .qa-review-stats strong { font-size: 26px; }
.editorial.qa-review-page .qa-review-stats span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.editorial.qa-review-page .qa-finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.editorial.qa-review-page .qa-finding-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.editorial.qa-review-page .qa-finding-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.editorial.qa-review-page .qa-finding-card .qa-index { font-size: 10px; }
.editorial.qa-review-page .qa-finding-card h3 { margin: 18px 0 9px; font-size: 21px; line-height: 1.2; }
.editorial.qa-review-page .qa-finding-card h4 { margin: 17px 0 8px; font-size: 13px; }
.editorial.qa-review-page .qa-finding-card p, .editorial.qa-review-page .qa-finding-card li { color: var(--muted); font-size: 14px; line-height: 1.6; }
.editorial.qa-review-page .qa-finding-card .qa-finding-summary { min-height: 4.8em; margin: 0; }
.editorial.qa-review-page .qa-finding-card ol { margin: 0; padding-left: 20px; }
.editorial.qa-review-page .qa-finding-card li + li { margin-top: 4px; }
.editorial.qa-review-page .qa-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.editorial.qa-review-page .qa-result-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--line); }
.editorial.qa-review-page .qa-result-grid h4 { margin: 0 0 6px; color: var(--ink); font-size: 11px; }
.editorial.qa-review-page .qa-result-grid p { margin: 0; font-size: 12px; }
.editorial.qa-page .qa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.editorial.qa-page .qa-steps li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.editorial.qa-page .qa-steps li > span { flex: 0 0 auto; color: var(--orange); font-size: 12px; }
.editorial.qa-page .qa-steps h3 { margin-top: 0; }
.editorial.qa-page .qa-contact { padding: 70px 0 90px; border-top: 1px solid var(--line); }
.editorial.qa-page .qa-contact > div { max-width: 700px; }
.editorial.qa-page .qa-contact h2 { margin: 14px 0 18px; }
.editorial.qa-page .qa-contact p { max-width: 560px; margin-bottom: 24px; }
@media (max-width: 800px) {
  .editorial.qa-page .qa-intro { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 32px; }
  .editorial.qa-page .qa-overview { padding: 22px; }
  .editorial.qa-page .qa-grid { grid-template-columns: 1fr; }
  .editorial.qa-review-page .qa-finding-grid { grid-template-columns: 1fr; }
  .editorial.qa-page .qa-steps { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 700px) {
  .editorial.qa-page .wrap { width: calc(100% - 36px); }
  .editorial.qa-page .qa-intro { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 40px; }
  .editorial.qa-page .qa-intro .back-link { margin-bottom: 32px; }
  .editorial.qa-page .qa-intro h1 { font-size: clamp(42px, 12vw, 62px); }
  .editorial.qa-page .qa-overview { padding: 21px; }
  .editorial.qa-page .qa-section { padding: 48px 0; }
  .editorial.qa-page .qa-section .section-head { margin-bottom: 24px; }
  .editorial.qa-page .qa-section .section-head h2 { font-size: clamp(29px, 8vw, 40px); line-height: 1.08; }
  .editorial.qa-page .qa-section .section-head { display: block; }
  .editorial.qa-page .qa-section .section-note { margin-top: 12px; }
  .editorial.qa-page .qa-card { padding: 20px; }
  .editorial.qa-page .qa-game-projects { grid-template-columns: 1fr; }
  .editorial.qa-page .qa-game-card { grid-template-columns: 1fr; min-height: 0; }
  .editorial.qa-page .qa-game-cover { width: 100%; min-height: 0; aspect-ratio: 460 / 218; }
  .editorial.qa-page .qa-game-cover img { min-height: 0; }
  .editorial.qa-page .qa-cover-label { bottom: 12px; left: 12px; }
  .editorial.qa-page .qa-game-content { padding: 24px 21px; }
  .editorial.qa-page .qa-game-content h3 { margin: 22px 0 10px; font-size: 32px; }
  .editorial.qa-page .qa-game-content .tags { margin-top: 18px; }
  .editorial.qa-page .qa-game-card .project-link { margin-top: 24px; }
  .editorial.qa-page .qa-environment dl { grid-template-columns: 1fr; gap: 12px; }
  .editorial.qa-page .qa-steps li { gap: 12px; }
  .editorial.qa-page .qa-contact { padding: 48px 0 64px; }
  .editorial.qa-page .qa-contact h2 { font-size: clamp(32px, 9vw, 46px); }
.editorial.qa-page .qa-contact .button { min-height: 48px; justify-content: center; }
}

@media (max-width: 380px) {
  .editorial.qa-page .wrap { width: calc(100% - 28px); }
  .editorial.qa-page .qa-overview-stats { gap: 6px; }
  .editorial.qa-page .qa-overview-stats strong { font-size: 22px; }
  .editorial.qa-page .qa-game-content { padding: 21px 17px; }
  .editorial.qa-page .qa-card { padding: 17px; }
  .editorial.qa-page .qa-card h3 { font-size: 19px; }
  .editorial.qa-page .qa-bug-title { font-size: 18px; }
  .editorial.qa-review-page .qa-finding-card { padding: 17px; }
  .editorial.qa-review-page .qa-finding-card h3 { font-size: 19px; }
  .editorial.qa-review-page .qa-finding-card .qa-finding-summary { min-height: 0; }
  .editorial.qa-review-page .qa-result-grid { grid-template-columns: 1fr; }
}

/* Give the expanded portfolio navigation room on tablet widths. */
@media (min-width: 701px) and (max-width: 1000px) {
  .editorial nav { flex-wrap: wrap; row-gap: 16px; }
  .editorial nav .nav-cta { display: none; }
  .editorial .nav-links { order: 3; flex: 1 0 100%; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
}
