/* Driment Studio website. Colours and type from the studio logo (Docs/Brand/README.md): the icon's navy plate,
   the mark's facet blues as the only accent, DRIMENT / STUDIO greys for text, Chakra Petch for headings. */

:root {
  --bg: #0a1224;
  --plate: #0f1b33;
  --plate-2: #13223f;
  --line: #1f2f52;
  --fg: #f3f2ef;
  --muted: #9aa1ac;
  --cyan: #66d4ec;
  --sky: #49c2e6;
  --blue: #2b86d0;
  --deep: #263c8f;
  --facet: linear-gradient(135deg, #66d4ec 0%, #3fb4e2 35%, #2b86d0 65%, #263c8f 100%);
  --head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #a5e6f5; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--plate); padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 18, 36, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav a { font: 600 .82rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--cyan); }

/* Labels, buttons, chips */
.label { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.label::before { content: ""; width: 26px; height: 3px; background: var(--facet); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 .86rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 14px 20px; border: 1px solid var(--blue); color: var(--fg); background: transparent; transition: background .15s, color .15s; }
.btn:hover { background: var(--plate-2); color: var(--fg); }
.btn.primary { background: var(--facet); border-color: transparent; color: #08101f; }
.btn.primary:hover { filter: brightness(1.08); color: #08101f; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip { font: 600 .74rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; background: var(--plate-2); border: 1px solid var(--line); color: var(--fg); }
.muted { color: var(--muted); }

/* Hero (home) */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; background: var(--plate) url("img/hero-facets.jpg?v=1d741e91") center / cover no-repeat; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(10, 18, 36, .1), rgba(10, 18, 36, .75)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d9dce1; max-width: 40ch; }

/* Sections */
section.block { padding: clamp(56px, 9vw, 104px) 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: 0; }
.intro { max-width: 62ch; color: #d9dce1; }

/* Game cards */
.games { display: grid; gap: 34px; margin-top: 28px; }
.game { background: var(--plate); border: 1px solid var(--line); overflow: hidden; }
.game > a.art { display: block; overflow: hidden; }
.game > a.art img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; transition: transform .4s ease; }
.game > a.art:hover img { transform: scale(1.02); }
.game .body { padding: 22px 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: end; }
.game h3 { font-size: 1.6rem; margin: 0 0 6px; }
.game p { margin: 0; color: #d9dce1; }
.game .btns { margin-top: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 26px; }
.card { background: var(--plate); border: 1px solid var(--line); padding: 22px 22px 18px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--facet); }
.card p { color: #cfd3d9; margin: 0; font-size: .96rem; }

/* Contact */
.mail { font: 700 clamp(1.3rem, 3.4vw, 2.2rem)/1.2 var(--head); color: var(--fg); text-decoration: none; border-bottom: 3px solid var(--blue); word-break: break-all; }
.mail:hover { color: var(--cyan); }

/* Game page */
.game-hero img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-head { padding: 38px 0 10px; }
.tagline { font: 600 clamp(1.1rem, 2.4vw, 1.5rem)/1.3 var(--head); color: var(--cyan); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0 6px; }
.facts div { background: var(--plate); padding: 14px 16px; }
.facts dt { font: 600 .72rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .96rem; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.ticks li { position: relative; padding-left: 22px; margin-bottom: .45em; color: #d9dce1; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--facet); transform: rotate(45deg); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.video button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button span.play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--facet); clip-path: polygon(30% 20%, 30% 80%, 80% 50%); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
/* Five screenshots: the first big over two columns and two rows, four small beside it. */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.shots a { display: block; border: 1px solid var(--line); overflow: hidden; }
.shots a:first-child { grid-column: span 2; grid-row: span 2; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.shots a:first-child img { height: 100%; aspect-ratio: auto; }
.shots a:hover img { transform: scale(1.03); }

/* Text pages (privacy) */
.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0 1em; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #08101f; padding: 30px 0 34px; font-size: .9rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; justify-content: space-between; }
.foot .who { display: flex; align-items: center; gap: 12px; }
.foot .who img { width: 22px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--fg); text-decoration: none; }
.foot a:hover { color: var(--cyan); }
.foot .fine { margin: 14px 0 0; font-size: .8rem; }

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .game .body { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots a:first-child { grid-row: span 1; }
  .shots a:first-child img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .bar { height: auto; padding: 12px 0; flex-direction: column; gap: 10px; }
  .top { position: static; }
  .brand img { height: 28px; }
}
