:root {
    --ground: #f5f6f8;
    --surface: #ffffff;
    --ink: #111318;
    --muted: #5a606b;
    --line: #e2e5ea;
    --mark: #f2c230;
    --mark-ink: #1d1600;
    --band: #111318;
    --band-ink: #f2f3f5;
    --band-muted: #a3a9b4;
    --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ground: #0e1013;
      --surface: #171a1f;
      --ink: #eceef2;
      --muted: #9aa1ad;
      --line: #262a31;
      --band: #1c2027;
      --band-ink: #f2f3f5;
      --band-muted: #a3a9b4;
      color-scheme: dark;
    }
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  a:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 6px; }
  .wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 24px; }
  @media (max-width: 480px) { .wrap { padding-inline: 18px; } }
  h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
  p { margin: 0; }
  .label { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

  /* Header */
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
  .wordmark { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; text-decoration: none; }
  .wordmark i { width: 0.32em; height: 0.32em; background: var(--mark); display: inline-block; border-radius: 2px; }
  .top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
  .top nav a { text-decoration: none; color: var(--muted); }
  .top nav a:hover { color: var(--ink); }
  @media (max-width: 560px) { .top nav { gap: 12px; font-size: 14px; } .wordmark { font-size: 22px; } }
  @media (max-width: 370px) { .top nav a[href="#contact"] { display: none; } }

  /* Hero */
  .hero { padding-block: clamp(56px, 10vw, 112px) clamp(40px, 7vw, 72px); display: grid; gap: 28px; }
  .hero h1 { font-size: clamp(38px, 7.4vw, 84px); line-height: 0.98; font-weight: 800; max-width: 15ch; }
  .hero h1 em { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -0.01em; background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 90%, transparent 90%); padding-inline: 0.04em; }
  @media (prefers-color-scheme: dark) { .hero h1 em { background: none; color: var(--mark); } }
  .hero p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; }
  .areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
  .areas a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; font-size: 15px; }
  .areas a:hover { border-color: var(--ink); }
  .areas img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

  /* Sections */
  section { padding-block: clamp(48px, 8vw, 88px); }
  .section-head { display: grid; gap: 10px; margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.05; }
  .section-head p { color: var(--muted); max-width: 60ch; }
  .rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

  /* App cards */
  .apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  @media (max-width: 920px) { .apps { grid-template-columns: 1fr; } }
  .app { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 18px; grid-template-rows: auto auto 1fr auto; }
  .app-head { display: flex; align-items: center; gap: 16px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 18px -8px rgba(0,0,0,.25); }
  .app-icon img { width: 100%; height: 100%; object-fit: cover; }
  .app-icon.eps { background: #0e0d13; }
  .app-icon.eps img { width: 165%; max-width: none; height: auto; object-fit: contain; }
  .app-icon.pett { background: #fdf0eb; }
  .app-icon.pett img { width: 86%; height: 86%; object-fit: contain; }
  .app h3 { font-size: 26px; font-weight: 800; line-height: 1.1; }
  .app .area { font-size: 14px; font-weight: 600; color: var(--accent); }
  .app .tagline { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.25; }
  .app .desc { color: var(--muted); font-size: 16px; }
  .facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
  .facts li { font-size: 13px; font-weight: 500; padding: 4px 9px; border-radius: 6px; background: var(--ground); color: var(--muted); }
  .get { display: flex; flex-wrap: wrap; gap: 8px; }
  .btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
  .btn:hover { border-color: var(--ink); }
  .btn.primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
  .btn.primary:hover { opacity: .88; }
  .btn svg { width: 16px; height: 16px; flex: none; }
  .soon { font-size: 14px; color: var(--muted); align-self: center; }
  .app.pinions { --accent: #d6402e; }
  .app.pett { --accent: #d0512f; }
  .app.eps { --accent: #b9831a; }
  @media (prefers-color-scheme: dark) {
    .app.pinions { --accent: #ff7a68; }
    .app.pett { --accent: #ff8a6a; }
    .app.eps { --accent: #f0b642; }
  }

  /* Games */
  .games-band { background: var(--band); color: var(--band-ink); }
  .games-band .label, .games-band .section-head p { color: var(--band-muted); }
  .addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
  .addon { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: border-color .15s, background .15s; }
  .addon:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
  .addon img { width: 56px; height: 56px; border-radius: 12px; }
  .addon h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
  .addon p { font-size: 14px; color: var(--band-muted); line-height: 1.45; margin-top: 3px; }
  .games-foot { margin-top: 22px; font-size: 15px; color: var(--band-muted); }
  .games-foot a { color: var(--band-ink); }

  /* Watch */
  .watch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 5vw, 48px); }
  @media (max-width: 820px) { .watch { grid-template-columns: 1fr; } }
  .watch h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.05; }
  .watch p { color: var(--muted); margin-top: 12px; max-width: 48ch; }
  .watch .get { margin-top: 22px; }

  /* About + contact */
  .about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  @media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
  .about h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.05; }
  .about .lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; margin-top: 14px; }
  .about .body { color: var(--muted); margin-top: 14px; max-width: 54ch; }
  .contact { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
  .contact div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  @media (max-width: 480px) { .contact div { grid-template-columns: 1fr; gap: 2px; } }
  .contact dt { font-weight: 600; }
  .contact dd { margin: 0; color: var(--muted); }
  .contact dd a { color: var(--ink); }

  footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
  footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  footer a { color: var(--muted); }

/* ---- Multi-page additions ---- */
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 560px) { .top nav a[href="/#contact"] { display: none; } }

/* Departments on the home page */
.departments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .departments { grid-template-columns: 1fr; } }
.dept { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 260px; padding: clamp(24px, 3.4vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.dept:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .dept:hover { transform: translateY(-2px); } }
.dept .glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--dept-soft); color: var(--dept); }
.dept .glyph svg { width: 28px; height: 28px; }
.dept h3 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.dept p { color: var(--muted); margin-top: 10px; max-width: 42ch; }
.dept .more { font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.dept .more::after { content: "\2192"; transition: transform .15s; }
.dept:hover .more::after { transform: translateX(3px); }
.tone-apps { --dept: #d6402e; --dept-soft: #fbe6e2; }
.tone-addons { --dept: #3f5bd9; --dept-soft: #e3e8fb; }
.tone-videos { --dept: #1f8a5b; --dept-soft: #dcf2e6; }
@media (prefers-color-scheme: dark) {
  .tone-apps { --dept: #ff7a68; --dept-soft: #3a1b17; }
  .tone-addons { --dept: #93a6ff; --dept-soft: #1d2448; }
  .tone-videos { --dept: #5fd39b; --dept-soft: #133024; }
}

/* Department page header */
.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 48px); display: grid; gap: 18px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero h1 em { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--dept, var(--ink)); letter-spacing: -0.01em; }
.page-hero p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; }
.page-hero .glyph { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--dept-soft); color: var(--dept); }
.page-hero .glyph svg { width: 30px; height: 30px; }

/* Product rows on department pages */
.products { display: grid; gap: 20px; }
.product { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.4vw, 34px); }
@media (max-width: 860px) { .product { grid-template-columns: 80px minmax(0, 1fr); } .product .side { grid-column: 1 / -1; } }
@media (max-width: 480px) { .product { grid-template-columns: 1fr; gap: 18px; } }
.product .app-icon { width: 112px; height: 112px; border-radius: 26px; }
@media (max-width: 860px) { .product .app-icon { width: 80px; height: 80px; border-radius: 19px; } }
.product h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.product .tagline { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.25; margin-top: 6px; color: var(--accent, var(--ink)); }
.product .desc { color: var(--muted); margin-top: 14px; max-width: 58ch; }
.product .points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.product .points li { padding-left: 20px; position: relative; }
.product .points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent, var(--mark)); }
.product .side { display: grid; gap: 14px; align-content: start; }
.product .side .get { flex-direction: column; align-items: stretch; }
.product .side .btn { justify-content: center; }
.product.pinions { --accent: #d6402e; }
.product.pett { --accent: #d0512f; }
.product.eps { --accent: #b9831a; }
@media (prefers-color-scheme: dark) {
  .product.pinions { --accent: #ff7a68; }
  .product.pett { --accent: #ff8a6a; }
  .product.eps { --accent: #f0b642; }
}

/* Other areas strip at the bottom of department pages */
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .others { grid-template-columns: 1fr; } }
.others a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 700; font-size: 18px; }
.others a:hover { border-color: var(--ink); }
.others a span { font-weight: 500; font-size: 14px; color: var(--muted); }

/* YouTube channel block */
.channel { display: flex; align-items: center; gap: 14px; }
.channel img { width: 64px; height: 64px; border-radius: 50%; }
.channel h2 { margin-top: 2px; }
.player { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0c0f; max-width: 100%; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
