/* Portfolio: light navy-graphite ground, warm off-white text, one butter-yellow accent; two deeper navy bands for rhythm.
   Motion is purposeful (skills ticker, hover-to-play cards, size bars, reveals) and off under reduced motion.
   Breakpoints: 1100px (tablet), 700px (phone). */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Lilita One"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #2C3445; --bg-2: #3C4559; --card: #343D50; --line: rgba(242, 239, 232, 0.12); --line-2: rgba(242, 239, 232, 0.26);
  --ink: #F2EFE8; --text-2: #CDD2DC; --muted: #A7AEBB;   /* --ink is the main text colour (light on navy) */
  --accent: #F7D774;          /* butter yellow: buttons, highlights, large type */
  --accent-ink: #2B2208;      /* text on butter yellow */
  --frame: #161B26;           /* phone frames */
  --band: #222937; --band-text: #F2EFE8; --band-muted: #A7AEBB;
  --ok: #7FD69B;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --game: "Lilita One", var(--sans);   /* game titles only */
  --gutter: 48px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section, .sec { padding-top: 104px; padding-bottom: 104px; }
.rule { border-top: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sec-head .kicker::before, .ads-head .kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--accent); }
.small, .small-mono { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); }
.body-2 { color: var(--text-2); }
.h2 { font-size: 52px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.h2-big { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.h3-big { font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.mark, .accent { color: var(--accent); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.sec-head p:not(.kicker) { color: var(--text-2); font-size: 18px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; background: var(--card); transition: border-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px;
       background: var(--ink); color: var(--bg); border: 1px solid var(--ink); text-decoration: none; font: 600 16px/1 var(--sans); cursor: pointer; white-space: nowrap;
       transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 6px 0 -2px rgba(247, 215, 116, 0.3); }
.btn svg { flex-shrink: 0; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- phone-shaped media frame ---------- */
.phone { position: relative; border-radius: 26px; padding: 7px; background: var(--frame); aspect-ratio: 9 / 16; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; }
.phone--sm { border-radius: 18px; padding: 5px; }
.phone--sm > img, .phone--sm > video { border-radius: 13px; }
.play-over { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0;
             background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- in-app browser hint ---------- */
.inapp { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--ink); color: var(--bg); font-size: 14px; }
.inapp__close { background: none; border: 0; color: inherit; font-size: 18px; min-width: 44px; min-height: 44px; cursor: pointer; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(44, 52, 69, 0.95); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-grow: 1; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { position: relative; text-decoration: none; color: var(--text-2); padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang button { min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font: 500 13px/1 var(--mono); letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- hero ---------- */
.hero { display: flex; gap: 80px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-family: var(--mono); font-size: 13.5px; color: var(--text-2); }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 76px; line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.h1-hi { display: block; margin-bottom: 0.35em; font-size: 0.45em; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.h1-accent { display: block; color: var(--accent); }
.reel { position: relative; isolation: isolate; flex: 0 0 300px; display: flex; flex-direction: column; gap: 14px; }
.reel::before { content: ""; position: absolute; z-index: -1; left: -28px; right: -28px; top: 48px; bottom: 60px; border-radius: 28px; background: var(--accent); transform: rotate(-2.5deg); }
.reel .phone { transition: transform 0.4s var(--ease); }
.reel:hover .phone { transform: rotate(1.5deg) translateY(-4px); }
.reel figcaption { text-align: center; }

/* ---------- skills ticker (band) ---------- */
.ticker { background: var(--band); color: var(--band-text); overflow: hidden; border-block: 1px solid var(--band); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 18px 0; }
.ticker li { padding-right: 28px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.ticker li::after { content: ""; display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin: 0 0 3px 28px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- projects ---------- */
.glance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card .phone { border-radius: 20px; padding: 5px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.card .phone > img { border-radius: 15px; }
/* hover-to-play: js/motion.js adds the gameplay clip over the poster */
.card .phone > video { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; border-radius: 15px; opacity: 0; transition: opacity 0.25s; }
.card.is-playing .phone > video { opacity: 1; }
.card:hover .phone { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.55); }
.card__t { font-family: var(--game); font-size: 26px; line-height: 1.05; }
.card:hover .card__t { color: var(--accent); }
.card__k { font-size: 15px; color: var(--text-2); line-height: 1.35; }

.proj { display: flex; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.proj--rev { flex-direction: row-reverse; }
.proj__media { flex: 1.15 1 0; min-width: 0; display: flex; gap: 16px; align-items: flex-end; }
.shot { flex: 1 1 0; min-width: 0; margin: 0; transition: transform 0.5s var(--ease); }
.shot--main { flex-grow: 1.3; }
.shot .still { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.55); }
.proj:hover .shot--main { transform: translateY(-6px); }
.proj:hover .shot:first-child:not(.shot--main) { transform: translateY(4px) rotate(-1.5deg); }
.proj:hover .shot:last-child:not(.shot--main) { transform: translateY(4px) rotate(1.5deg); }
.proj__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.proj__title { font-family: var(--game); font-weight: 400; font-size: 84px; line-height: 0.92; }
.pixel { image-rendering: pixelated; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 2px; background: var(--accent); }
.meta-line { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

.ads-head { display: flex; flex-direction: column; gap: 12px; padding-top: 56px; margin-bottom: 32px; border-top: 1px solid var(--line); }
.ads-head > * { max-width: 680px; }
.ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ad { display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
      transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.ad:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.55); }
.ad__top { display: flex; gap: 18px; align-items: center; }
.ad .phone { width: 124px; flex-shrink: 0; }
.ad__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ad h4 { font-family: var(--game); font-weight: 400; font-size: 27px; line-height: 1; white-space: nowrap; }
.size-key { margin-top: 14px; }
.ad__meta p { font-size: 15px; color: var(--text-2); line-height: 1.4; }
.size__row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.size__row b { color: var(--ink); font-weight: 500; }
.size__bar { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--bg-2); }
.size__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); width: calc(var(--mb) / 2.5 * 100%); transform-origin: left; transition: transform 1.2s var(--ease); }
.size__limit { position: absolute; right: 20%; top: -4px; bottom: -4px; width: 2px; background: var(--accent); }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- how I work ---------- */
.focus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.focus > div { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; transition: border-color 0.3s; }
.focus > div::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.focus > div:hover { border-color: var(--line-2); }
.focus > div:hover::before { transform: scaleX(1); }
.focus h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.focus p { font-size: 16px; color: var(--text-2); }

/* ---------- skills ---------- */
.skills { border-top: 1px solid var(--line); }
.skills > div { display: flex; gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.skills dt { flex: 0 0 220px; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skills dd { flex: 1 1 0; }
.note-line { margin-top: 24px; color: var(--text-2); }

/* used by credits.html */
.subbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 11px 12px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs thead th { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-weight: 500; border-top: 0; }

/* ---------- contact (band) + footer ---------- */
.contact-band { background: var(--band); color: var(--band-text); }
.contact { padding-top: 96px; padding-bottom: 96px; display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; }
.contact a { color: var(--band-text); }
.contact .btn--accent { color: var(--accent-ink); }
.contact h2 { font-size: 88px; line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; }
.contact h2 span { color: var(--accent); }
.contact p { color: var(--band-muted); font-size: 18px; max-width: 540px; margin-top: 18px; }
.contact .mail { display: inline-block; margin-top: 24px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--accent); word-break: break-word; }
.contact .btns { flex-shrink: 0; flex-direction: column; align-items: stretch; min-width: 200px; }
.contact .btn--ghost { color: var(--band-text); border-color: rgba(242, 239, 232, 0.35); }
.contact .btn--ghost:hover { border-color: var(--band-text); }
.contact :focus-visible { outline-color: var(--band-text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 16px 40px; margin-top: 36px; }
.facts dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); }
.facts dd { font-size: 16px; }
.foot-band { background: var(--band); color: var(--band-muted); }
.foot { display: flex; gap: 12px 40px; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; font-family: var(--mono); font-size: 13.5px; border-top: 1px solid rgba(242, 239, 232, 0.14); }
.foot a { color: var(--band-text); }

/* ---------- reveal on scroll (added by js/motion.js, so no-JS pages stay visible) ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .size__fill { transform: scaleX(0); }
.js-motion .is-in .size__fill { transform: scaleX(1); }

/* ---------- game player (overlay) ---------- */
.player { position: fixed; inset: 0; z-index: 50; background: rgba(20, 21, 24, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.player__bar { display: flex; gap: 8px; }
.player__bar .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.player__frame { height: min(86vh, 860px); height: min(86dvh, 860px); aspect-ratio: 9 / 16; max-width: 100%; border: 0; border-radius: 18px; background: #000; }
@media (max-width: 899px), (pointer: coarse) {
  .player { padding: 0; gap: 0; background: #000; justify-content: flex-start; }
  /* top-left, small and translucent: the ads keep their hook text at the top centre */
  .player__bar { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; z-index: 2; }
  .player__bar .btn { min-height: 40px; padding: 0 12px; background: rgba(20, 21, 24, 0.6); color: #fff; border-color: transparent; }
  .player__bar .btn--restart { display: none; }
  .player__frame { width: 100%; height: 100%; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg);
         padding: 12px 18px; border-radius: 6px; font-size: 15px; max-width: calc(100vw - 32px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 56px; }
  .focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj, .proj--rev { flex-direction: column; align-items: stretch; gap: 32px; }
  .glance { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .card__t { font-size: 22px; }
  .proj__media { max-width: 600px; }
  .proj__title { font-size: 68px; }
  .ads { grid-template-columns: 1fr; max-width: 640px; }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact h2 { font-size: 68px; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 64px; }
  body { font-size: 16px; }
  .section, .sec { padding-top: 64px; padding-bottom: 64px; }
  .top__in { min-height: 56px; gap: 12px; }
  .nav, .brand span:last-child { display: none; }
  /* gameplay on the first screen: the reel slots in right under the headline */
  .hero { flex-direction: column; align-items: stretch; gap: 22px; padding-top: 28px; padding-bottom: 64px; }
  .hero__text { display: contents; }
  .status { order: 1; }
  .hero h1 { order: 2; font-size: min(42px, 9.6vw); }
  .reel { order: 3; }
  .hero .lead { order: 4; }
  .hero .btns { order: 5; }
  .h1-hi { font-size: 0.5em; }
  .hero .btns .btn, .proj .btns .btn { flex: 1 1 100%; }
  .lead { font-size: 18px; }
  .h2 { font-size: 36px; }
  .h2-big { font-size: 40px; }
  .h3-big { font-size: 28px; }
  .sec-head { margin-bottom: 32px; }
  .reel { flex-basis: auto; width: min(200px, 52vw); align-self: center; margin: 8px 0 4px; }
  .reel::before { left: -20px; right: -20px; }
  .ticker li { font-size: 16px; }
  .proj { padding: 40px 0; }
  .glance { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory;
            margin-right: -16px; padding: 8px 16px 12px 0; }
  .glance .card { scroll-snap-align: start; }
  .proj__title { font-size: 56px; }
  .proj__media { gap: 8px; }
  .ads-head { padding-top: 40px; }
  .ads { grid-template-columns: 1fr; }
  .ad .phone { width: 116px; }
  .focus { grid-template-columns: 1fr; gap: 12px; }
  .skills > div { flex-direction: column; }
  .skills dt { flex-basis: auto; }
  .contact { padding-top: 64px; padding-bottom: 64px; }
  .contact h2 { font-size: 40px; }
  .contact .mail { font-size: 21px; }
  .contact .btns { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker__track { width: auto; }
  .ticker ul { flex-wrap: wrap; justify-content: center; gap: 8px 0; padding: 16px var(--gutter); }
  .ticker ul[aria-hidden="true"] { display: none; }
}
