/* eris.one — studio landing page.
   System fonts only (SF Pro on Apple devices), no external requests.
   Light and dark follow the system setting. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --fg: #111114;
  --muted: #5e5e66;
  --line: rgba(17, 17, 20, .09);
  --accent: #5a5af0;
  --accent-soft: rgba(90, 90, 240, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .07);

  --radius: 22px;
  --max: 1040px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0d0d10;
    --card: #1a1a1f;
    --fg: #f5f5f7;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, .1);
    --accent: #8b8bff;
    --accent-soft: rgba(139, 139, 255, .14);
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
html { scroll-padding-top: 60px; }   /* anchors stop below the sticky header */
/* Dark smoked glass in both themes, so it reads the same over the dark bands and the light contact */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 14, 18, .62);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 550; }
.nav a { color: rgba(255, 255, 255, .75); }
.nav a:has(.nav-icon) { display: inline-flex; align-items: center; gap: .4em; }
/* App glyphs as masks, so they take the link colour (white, brighter on hover) */
.nav-icon { width: 1.05em; height: 1.05em; flex: none; background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.nav-icon--ares { --glyph: url(/assets/img/nav-ares.png); }
.nav-icon--mapspin { --glyph: url(/assets/img/nav-mapspin.svg); }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .lang { border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }

/* Hero: full-screen sunrise video (assets/js/hero.js), always dark */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  margin-top: -60px; padding: 0;
  background: #010102 center / cover no-repeat;
  --focus: 50% 50%;
  color: #fff; text-align: center;
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--focus); }
.hero.is-still { background-image: url(/assets/img/eris-rise.jpg); background-position: var(--focus); }
.hero.is-still .hero-video { display: none; }
/* Portrait screens: keep the Sun in view */
@media (max-aspect-ratio: 1/1) { .hero { --focus: 74% 50%; } }
.hero-content { position: relative; z-index: 1; padding-top: max(28vh, 140px); opacity: calc(0.22 + 0.78 * var(--lit, 1)); }
.hero h1 {
  font: 700 clamp(38px, 7vw, 68px)/1.04 var(--font-display);
  letter-spacing: -.035em;
  margin: 0 auto 20px; max-width: 18ch;
  /* light grey brightening to white towards the Sun (upper right), diagonally so both lines get the same range;
     drop-shadow instead of text-shadow, which would show through the clipped text */
  background: linear-gradient(60deg, #b3b7c1 0%, #fff 65%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, .45));
}
.hero-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; }
.hero-apps a {
  display: inline-flex; align-items: center; gap: .45em; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  font-size: 16px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s;
}
.hero-apps a:hover { text-decoration: none; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }

.hero-scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Intro: text waits for the sunrise (only when JS runs; see hero.js) */
.hero.is-intro .hero-content > *, .hero.is-intro .hero-scroll { opacity: 0; transform: translateY(14px); }
.hero.is-intro .hero-scroll { transform: translate(-50%, 14px); }
.hero.is-risen .hero-content > *, .hero.is-risen .hero-scroll { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero.is-risen .hero-scroll { transform: translateX(-50%); transition-delay: 4s; }
.hero.is-risen .hero-content > :nth-child(2) { transition-delay: .1s; }
.hero.is-risen .hero-content > :nth-child(3) { transition-delay: .2s; }
.hero.is-risen .hero-content > :nth-child(4) { transition-delay: .3s; }

/* Header at the very top of the page: transparent, only eris.one and the language.
   The smoked glass and the menu links come in together once the page is scrolled (assets/js/hero.js) */
.site-header { transition: background-color .35s, border-color .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s; }
.site-header.at-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .nav a:not(.lang) { transition: opacity .35s, visibility .35s, transform .35s; }
.site-header.at-top .nav a:not(.lang) { opacity: 0; visibility: hidden; transform: translateY(-4px); }

/* Sections */
section { padding: 56px 0; }
.section-title { font: 700 clamp(28px, 4vw, 36px)/1.15 var(--font-display); letter-spacing: -.025em; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* Apps: one full-width row per app */
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.app-links .badge img { height: 44px; width: auto; }
.app-links .more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: 15px; }
.app-links .more svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* App row: a full-width band in the style of the app's own site (Ares), always dark – the title on the left,
   the whole 16:9 clip on the right, its edges blending into black (assets/js/reel.js) */
/* App name above its row, on the page background */
/* Each app is a full-width band with its own background, its name on top */
.apps-section { padding: 0; }
.app-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 88px 0 56px; }
.app-band--ares { --ares-orange: #eb5b00; --ares-red: #e4003a; background: #000; }
.app-title { display: flex; align-items: center; justify-content: center; gap: .32em; min-height: 1.15em; margin: 0 0 32px; font: 700 clamp(40px, 6vw, 64px)/1 var(--font-display); letter-spacing: -.035em; }
.app-subtitle { margin: -16px 0 32px; text-align: center; text-wrap: balance; font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--ares-orange); }
.app-title img { width: 1.15em; height: 1.15em; border-radius: 22.5%; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.app-row {
  display: grid; grid-template-columns: 32% 10% 1fr; align-items: center;
}
.app-row-frame {
  grid-column: 2 / 4; grid-row: 1; justify-self: end; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; width: min(100%, 85svh * 16 / 9);
}
.app-row-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-row-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, .72) 6%, rgba(0, 0, 0, .38) 12%, rgba(0, 0, 0, .14) 18%, transparent 25%),
    linear-gradient(to bottom, #000 0%, transparent 8%, transparent 92%, #000 100%);
}
.app-row-text {
  grid-column: 1 / 3; grid-row: 1; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 520px;
  padding: 48px 0 48px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  box-sizing: content-box;
}
.app-row p { margin: 0; }
.app-row .tagline { font: 400 clamp(30px, 3.6vw, 46px)/1.08 var(--font-display); letter-spacing: -.025em; }
.app-row .tagline strong {
  font-weight: 500;
  background: linear-gradient(135deg, var(--ares-orange) 0%, var(--ares-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-row :is(.tagline, .lead) { text-shadow: 0 0 18px #000, 0 0 36px rgba(0, 0, 0, .8); }
.app-row .tagline strong { text-shadow: none; }   /* gradient text: a shadow would show through it */
.app-row .lead { color: #a3a3ab; font-size: 16px; max-width: 30em; }
.app-row .more { color: #ff7a33; }
.app-row .badge img { height: 44px; width: auto; }


/* MapsPin band: the look of mapspin.eris.one – blue gradient with a faint street grid, bold white title,
   the Mac and iPhone mock-up (rendered from that site) sliding in from the right edge */
.app-band--mapspin {
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(10, 200, 255, .55), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0, 58, 120, .6), transparent 60%),
    linear-gradient(170deg, #006aff 0%, #0088ff 55%, #0ac8ff 100%);
}
.app-band--mapspin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: linear-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .9) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
/* the live demo from mapspin.eris.one (demo/mapspin/), drawn at 918×818 and scaled to the frame */
.app-row-stage { position: absolute; right: 0; bottom: 7%; height: 86%; width: auto; aspect-ratio: 918 / 818; border: 0; color-scheme: light; background: transparent; }
.app-band--mapspin .app-row-frame::after { display: none; }   /* no fade to black on the blue */
.app-band--mapspin .app-subtitle { color: rgba(255, 255, 255, .78); }
.app-band--mapspin .tagline { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-shadow: none; }
.app-band--mapspin .tagline em { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, #fff, #d6f3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-band--mapspin .lead { color: #fff; opacity: .92; text-shadow: none; }
.app-band--mapspin .more { color: #fff; }

/* About band: the look of christophorlovski.com – dark navy with a slowly moving aurora, serif title,
   accent pill, the photo in a rounded square, LinkedIn as a ghost button */
@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.app-band--me { --me-accent: #7ea4d1; --me-muted: #9ba3b4; background: #0b0d12; color: #eceef4; }
.app-band--me .app-row-frame::after { display: none; }
.app-row-photo {
  position: absolute; top: 50%; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  height: 78%; width: auto; aspect-ratio: 1; object-fit: cover; transform: translateY(-50%);
  border-radius: 32px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
}
/* on desktop text and photo share the content width side by side, so the photo never grows over the text */
@media (min-width: 901px) {
  .app-band--me .app-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
  .app-band--me .app-row-text { grid-column: 1; max-width: none; padding: 48px 0; }
  .app-band--me .app-row-frame { grid-column: 2; aspect-ratio: auto; width: 100%; display: flex; justify-content: flex-end; overflow: visible; }
  .app-band--me .app-row-photo { position: static; transform: none; display: block; width: min(100%, 70svh); height: auto; }
}
.app-band--me .app-subtitle { color: var(--me-accent); }
.app-band--me .tagline { font: 600 clamp(32px, 3.8vw, 50px)/1.05 "Source Serif 4 Variable", Georgia, "Times New Roman", serif; letter-spacing: -.02em; text-shadow: none; text-wrap: balance; }
.app-band--me .lead { color: var(--me-muted); text-shadow: none; }
.app-band--me .more { color: var(--me-accent); }
.li-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 18px;
  background: #12151d; border: 1px solid #242a37; color: var(--me-muted); font-size: 16px; font-weight: 560;
}
.li-btn:hover { background: #181c26; border-color: var(--me-muted); color: #eceef4; text-decoration: none; }
.li-btn img { height: 19px; width: auto; }

.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; animation: aurora-a 6s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { top: -220px; left: -12%; width: 72%; height: 520px; rotate: -8deg; background: radial-gradient(closest-side, rgba(126, 164, 209, .22), transparent); }
.aurora span:nth-child(2) { top: -160px; right: -14%; width: 64%; height: 460px; rotate: 10deg; background: radial-gradient(closest-side, rgba(46, 197, 255, .2), transparent); animation-name: aurora-b; animation-duration: 8s; }
.aurora span:nth-child(3) { top: 40px; left: 22%; width: 52%; height: 360px; rotate: -4deg; background: radial-gradient(closest-side, rgba(139, 92, 246, .13), transparent); animation-name: aurora-c; animation-duration: 9s; }
.aurora span:nth-child(4) { top: 120px; right: 2%; width: 34%; height: 300px; background: radial-gradient(closest-side, rgba(255, 122, 89, .09), transparent); animation-name: aurora-b; animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes aurora-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(28%, 140px, 0) scale(1.28); } 100% { transform: translate3d(-20%, -50px, 0) scale(.86); } }
@keyframes aurora-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-30%, 150px, 0) scale(1.3); } 100% { transform: translate3d(18%, -40px, 0) scale(.84); } }
@keyframes aurora-c { 0% { transform: translate3d(0, 0, 0) scaleX(1); } 50% { transform: translate3d(36%, -100px, 0) scaleX(1.5); } 100% { transform: translate3d(-30%, 90px, 0) scaleX(.75); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr; }
  .app-row-frame { grid-column: 1; width: 100%; }
  .app-row-frame::after { background: linear-gradient(to bottom, transparent 70%, #000 100%); }
  .app-row-text { grid-column: 1; grid-row: 2; align-items: center; text-align: center; max-width: none; padding: 8px var(--gutter) 40px; box-sizing: border-box; }
  .app-row .app-links { justify-content: center; }
  .app-band--mapspin .app-row-frame { aspect-ratio: auto; padding: 32px 0 0 var(--gutter); }
  .app-row-stage { position: static; display: block; width: 100%; height: auto; }
  .app-band--me .app-row-frame { aspect-ratio: auto; display: flex; justify-content: center; padding-top: 8px; }
  .app-row-photo { position: static; transform: none; width: 200px; height: auto; border-radius: 28px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 34em) auto; justify-content: center; align-items: center; gap: 20px 40px; }
.contact .section-lead { margin: 0; }
@media (max-width: 600px) { .contact { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.button {
  display: inline-block; background: var(--fg); color: var(--bg);
  font-weight: 600; padding: 12px 24px; border-radius: 999px;
}
.button:hover { text-decoration: none; opacity: .88; }

/* Footer, laid out as on mapspin.eris.one: on wide screens the links centred on the page; below them
   the signature (mark, eris.one · © year author) on the left and the language button on the right; then the legal note */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.footer-head { color: var(--fg); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.footer-rule { width: 1px; height: 16px; background: var(--line); }   /* small vertical separator between Apps and Privacy */
@media (max-width: 600px) { .footer-rule { display: none; } }
@media (min-width: 961px) {
  .site-footer .wrap { display: grid; grid-template-columns: 1fr auto; }
  .footer-nav { grid-column: 1 / -1; justify-content: center; margin-bottom: 16px; }
  .footer-sign { grid-column: 1; grid-row: 2; margin: 0; }
  .footer-lang { grid-column: 2; grid-row: 2; }
  .site-footer .legal { grid-column: 1 / -1; }
}
.footer-sign { width: 100%; margin: 8px 0 0; }
.footer-logo { color: var(--fg); font-weight: 650; white-space: nowrap; }
.footer-logo .brand-mark { width: 1.1em; height: 1.1em; margin-right: .3em; vertical-align: -.2em; }
.footer-dot { margin: 0 .7em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
/* Author link as on ares.eris.one: underlined, with an external-link arrow after the name */
.site-footer .footer-author {
  white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: color .15s, text-decoration-color .15s;
}
.site-footer .footer-author:hover { text-decoration-color: currentColor; }
.site-footer .footer-author::after {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-left: .2em; vertical-align: -.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Language: a pill with a globe, like the language button on mapspin.eris.one */
.footer-lang {
  display: inline-flex; align-items: center; gap: .45em; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 500; white-space: nowrap;
}
.footer-lang svg { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-lang:hover { color: var(--fg); text-decoration: none; }
.site-footer .legal { width: 100%; margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; }

/* Footer "Cookie settings": a button that looks like the other footer links */
.footer-cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.footer-cookies:hover { color: var(--fg); }

/* Cookie consent (assets/js/consent.js): small dark-glass card in the corner, like the menu */
.consent {
  position: fixed; z-index: 20; left: 16px; bottom: 16px; max-width: 380px; padding: 16px 18px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(14, 14, 18, .82); color: #eceef4; font-size: 14px; line-height: 1.5;
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s;
}
.consent.is-shown { opacity: 1; transform: none; }
.consent p { margin: 0 0 12px; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.consent-actions { display: flex; gap: 8px; }
.consent button {
  flex: 1; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .3);
}
.consent button:hover { border-color: #fff; }
.consent button.is-primary { background: #fff; color: #111114; border-color: #fff; }
.consent button.is-primary:hover { opacity: .9; }

/* Privacy policy pages (/privacy/, /pl/privacy/) */
.policy { max-width: 720px; margin: 0 auto; padding: 56px 0 24px; }
.policy h1 { font: 700 clamp(32px, 5vw, 44px)/1.1 var(--font-display); letter-spacing: -.03em; margin: 0 0 8px; }
.policy .updated { color: var(--muted); margin: 0 0 32px; }
.policy h2 { font: 650 20px/1.3 var(--font-display); letter-spacing: -.01em; margin: 36px 0 10px; }
.policy p, .policy li { line-height: 1.65; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 1.2em; }
.policy li { margin: 4px 0; }
.policy a, .policy .link-button { color: var(--accent); }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .consent { right: 16px; max-width: none; }
  .nav a:not(.lang) { display: none; }
  .hero-content { padding-top: max(39svh, 270px); }   /* below the Sun, which sits at about a third of the height on phones */
  section { padding: 40px 0; }
  .app-band { padding: 56px 0 40px; }
  .app-title { margin-bottom: 24px; }
  .app-subtitle { margin: -12px 0 24px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
}
