/* ─── FONTS ──────────────────────────────────────────────────── */
/* Jost (variable, 300-500) is hosted on this site: no requests to Google */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/Jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/Jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Gealova';
  src: url('fonts/Gealova.otf') format('opentype');
  font-weight: 400 700;
}

@font-face {
  font-family: 'Departure Mono';
  src: url('fonts/DepartureMono-Regular.otf') format('opentype');
  font-weight: 400;
}

/* ─── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #d9d7d4;
  --ink: #1C1C1C;
  --ink-mid: #666666;
  --ink-light: #666666;
  --line: #dddddd;
  --white: #fff;
  --accent: #aaaaaa;
  --accent-ink: #1C1C1C;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --page-max: min(1400px, calc(1080px + 2 * var(--gutter)));   /* the content boxes (header, footer, screens...): the TEXT inside (box minus the 6vw side padding) is never wider than 1080px (about 2160px in a retina screenshot). It was 1000px, before that 1200px, and 1400px originally (which gave about 1148px on a 2100px window). */
  --gutter: 6vw;
  --header-h: 67px;

  --font-display: 'Gealova', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Departure Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  cursor: url('images/ui/cursor2.svg') 1 1, url('images/ui/cursor2.png') 1 1, auto;
  background: var(--bg) url('images/ui/background.png') center / cover no-repeat fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ─── HEADER (sticky on every page) ───────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--page-max);
  padding: 15.5px var(--gutter);   /* was 12px: makes the header bar 68px high (36px logo + 2 x 15.5px + the 1px line), the same as the footer */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.logo { position: relative; }
/* Invisible, larger clickable area around the logo (12px above / below, 24px left / right). */
.logo::before { content: ''; position: absolute; inset: -12px -24px; }

.logo:hover { transform: scale(0.90); }

.logo img { height: 36px; width: auto; display: block; animation: title-fade-in 1.1s ease both; }

.logo-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

nav.nav-links { display: flex; align-items: center; gap: 90px; }   /* was 120px */

nav.nav-links a {
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 18px;
  margin: -12px -18px;
  transition: transform 0.25s ease, color 0.2s ease;
  cursor: pointer;
}

nav.nav-links a:hover,
nav.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

nav.nav-links a:hover { transform: scale(0.90); }

.nav-buy {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 100px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-buy:hover { opacity: 0.85; transform: scale(0.97); text-decoration: none !important; }

@keyframes title-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO (index.html) ──────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gutter);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 1s var(--ease) 0.15s forwards;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
  margin-top: 20px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroReveal 1s var(--ease) 0.4s forwards;
}

.hero-hint {
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: heroFade 1s var(--ease) 1s forwards;
  transition: color 0.2s ease;
}

.hero-hint:hover { color: var(--ink); }

@keyframes heroFade { to { opacity: 1; } }

.hero-arrow { display: block; }   /* no up-and-down bounce any more (was: animation: bounce-y 1.4s ease-in-out infinite) */

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── HOME: OVERVIEW SECTION ─────────────────────────────────── */
.overview {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 80px var(--gutter);
  border-top: 1px solid var(--line);
}

.overview-lede {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 760px;
  color: var(--ink);
  margin-bottom: 56px;
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.highlight {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.highlight.visible { opacity: 1; transform: translateY(0); }

.highlight h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
}

.highlight p {
  font-size: 14.8px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 14px;
}

.highlight a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.highlight a:hover { opacity: 0.7; }

/* ─── HOME: CTA BAND ─────────────────────────────────────────── */
.cta-band {
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 24px;
}

.cta-band .buy-btn { display: inline-flex; }

/* ─── SHARED PAGE HEAD (Features / Support / Buy / legal pages) ─ */
.page-head {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--line);
}

.page-head-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 16px;
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 67px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  animation: title-fade-in 4.8s ease 0.35s both;
  color: var(--ink);
  overflow: hidden;
  padding-top: 0.15em;
  padding-bottom: 0.2em; /* room for descenders (g, y, p) */
}

.page-lede {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  font-size: 15.6px;
  letter-spacing: 0.03em;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 640px;
}

.content-wrap-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 90px;
}

/* ─── FEATURES PAGE ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  background: var(--bg);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.feature-card.visible { opacity: 1; transform: translateY(0); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}

.feature-card p {
  font-size: 14.8px;
  line-height: 1.65;
  color: var(--ink-mid);
}

.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.12s; }
.feature-card:nth-child(3) { transition-delay: 0.19s; }
.feature-card:nth-child(4) { transition-delay: 0.26s; }
.feature-card:nth-child(5) { transition-delay: 0.33s; }
.feature-card:nth-child(6) { transition-delay: 0.40s; }

/* ─── SUPPORT PAGE ───────────────────────────────────────────── */
.support-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.support-info h3 {
  font-family: var(--font-display);
  font-size: 26.4px;
  font-weight: 400;
  margin-bottom: 20px;
}

.support-info > p {
  font-size: 16.2px;
  letter-spacing: 0.03em;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 500px;
}

.faq-list { list-style: none; max-width: 520px; }

.faq-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-list li:first-child { border-top: 1px solid var(--line); }

.faq-list strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.faq-list span {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.contact-detail { margin-top: 28px; }

.contact-detail span.label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 2px;
}

.contact-detail a {
  font-size: 16.8px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.contact-detail a:hover { border-color: var(--ink); }

.support-form { display: flex; flex-direction: column; gap: 28px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 16.8px;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-light); }

.send-btn {
  align-self: flex-start;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14.4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.send-btn:hover { opacity: 0.75; }

/* ─── BUY PAGE ───────────────────────────────────────────────── */
.buy-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.buy-info h3 {
  font-family: var(--font-display);
  font-size: 26.4px;
  font-weight: 400;
  margin-bottom: 20px;
  max-width: 480px;
}

.buy-info p {
  font-size: 16.2px;
  letter-spacing: 0.03em;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 480px;
}

.buy-included { list-style: none; margin-top: 24px; max-width: 480px; }

.buy-included li {
  font-size: 14.8px;
  color: var(--ink-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.buy-included li:first-child { border-top: 1px solid var(--line); }
.buy-included li::before { content: '—'; color: var(--ink-light); }

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card .price-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.price-card .price-amount {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--ink);
  margin: 6px 0 4px;
}

.price-card .price-note {
  font-size: 13.5px;
  color: var(--ink-mid);
  margin-bottom: 24px;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 16px 24px;
  border-radius: 100px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.buy-btn:hover { opacity: 0.88; transform: scale(0.98); }

.buy-req {
  font-size: 12.5px;
  color: var(--ink-light);
  margin-top: 18px;
  text-align: center;
}

/* ─── LEGAL PAGES ────────────────────────────────────────────── */
.legal-content { max-width: 680px; }

.legal-content p {
  font-size: 16.2px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 14px;
}

.legal-content h2:first-of-type { margin-top: 32px; }

.legal-content ul { list-style: none; margin: 0 0 20px; }

.legal-content ul li {
  font-size: 16.2px;
  line-height: 1.75;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content ul li:first-child { border-top: 1px solid var(--line); }
.legal-content ul li strong { font-weight: 600; }

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

.legal-content a:hover { opacity: 0.55; }

/* ─── FOOTER (static, end of document flow on every page) ─────── */
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--page-max);
  padding: 24px var(--gutter);
}

footer .foot-left { font-size: 12px; color: var(--ink-light); letter-spacing: 0.06em; }

footer .foot-right { display: flex; gap: 20px; }

footer .foot-right a {
  padding: 14px 12px;      /* bigger click box; the negative margin keeps the layout unchanged */
  margin: -14px -12px;
  font-size: 12px;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

footer .foot-right a:hover { color: var(--ink); }
footer .foot-right .foot-dot { font-size: 12px; color: var(--ink-light); }

/* Social icons (YouTube, Instagram, LinkedIn): in the middle of the footer, as on the old site */
.foot-inner { position: relative; }

/* HEADER and FOOTER content spread to 5vw from each window edge (the same line as Prev / Next / Exit on the project pages), instead of staying inside the 1080px column.
   Phones (700px and below) keep the old padding. */
@media (min-width: 701px) {
  .header-inner, .foot-inner { max-width: none; padding-left: 5vw; padding-right: 5vw; }
}
.foot-marks { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; }
.foot-marks a { color: var(--ink); opacity: 0.7; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; text-decoration: none; padding: 8px 6px; transition: opacity 0.2s ease; }
.foot-marks a:hover { opacity: 1; }
.foot-marks a[aria-label="LinkedIn"] { font-size: 30px; }   /* the lowercase "in" looked smaller than the other two symbols (was 22px like them) */
.foot-marks a[aria-label="YouTube"] { transform: translateY(1px); }    /* optical alignment: the three symbols are drawn with different heights, so they are nudged until their visual centres match (measured: ▶ was 0.9px high, "in" 2px low) */
.foot-marks a[aria-label="LinkedIn"] { transform: translateY(-2px); }
@media (max-width: 700px) {   /* too narrow to sit between the text and the links: own row below them, centred */
  .foot-inner { flex-wrap: wrap; row-gap: 8px; }
  .foot-marks { position: static; transform: none; order: 3; width: 100%; justify-content: center; }
}

/* ─── COOKIE CONSENT BANNER ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  z-index: 300;
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: 15.6px;
  color: var(--ink);
  margin: 0;
}

.cookie-banner p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner-actions { display: flex; gap: 10px; }

.cookie-banner-actions button {
  font-family: var(--font-body);
  font-size: 14.4px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.cookie-banner-actions .cookie-accept { background: var(--ink); color: var(--bg); }
.cookie-banner-actions button:hover { opacity: 0.75; }

@media (max-width: 500px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

/* ─── SIDEBAR BRAND ──────────────────────────────────────────── */
.sidebar-brand {
  position: fixed;
  left: -36px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-mono);
  font-size: 10.8px;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
}

/* The vertical label sits in the left margin (about 41px). When the page gutter (6vw) gets that small it would touch or cover the content, so it disappears. */
@media (max-width: 900px) { .sidebar-brand { display: none; } }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .support-body, .buy-body { grid-template-columns: 1fr; }
  .highlight-row { grid-template-columns: 1fr; gap: 32px; }
  nav.nav-links { gap: 28px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-buy { display: none; }
  .page-head-inner { padding: 0 24px 12px; }
  .content-wrap-inner { padding: 32px 24px 60px; }
  .page-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-meta { text-align: left; }
  .overview, .cta-band { padding: 56px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-tagline, .hero-hint { animation: none; opacity: 1; transform: none; }
  .hero-arrow { animation: none; }
  .feature-card, .highlight { transition: none; opacity: 1; transform: none; }
}

/* ─── HOME: SNAPPING PANELS ──────────────────────────────────── */
html.snap-root {
  --panel-pad: calc(max(0px, (100vw - var(--page-max)) / 2) + var(--gutter));
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body.home header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--panel-pad) 60px;
  border-top: 1px solid var(--line);
}

.panel.hero { border-top: none; align-items: center; }

.panel-inner { max-width: 820px; margin: 0 auto; text-align: center; }


.panel-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.panel-text {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.panel-text strong { color: var(--ink); font-weight: 600; }

.panel-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.panel-inner > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.panel.visible .panel-inner > * { opacity: 1; transform: none; }
.panel.visible .panel-inner > :nth-child(2) { transition-delay: 0.08s; }
.panel.visible .panel-inner > :nth-child(3) { transition-delay: 0.16s; }
.panel.visible .panel-inner > :nth-child(4) { transition-delay: 0.24s; }

.panel-last { padding-bottom: 0; }
.panel-last .panel-inner { margin-top: auto; }
.panel-last footer { margin-top: auto; margin-left: calc(-1 * var(--panel-pad)); margin-right: calc(-1 * var(--panel-pad)); }
.panel-last .buy-btn { display: inline-flex; padding: 16px 40px; }

body.home header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home header.scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }

/* scroll-dot nav */
.dot-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 90;
}

.dot-nav a {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-nav a::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-light);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.dot-nav a.active::after { opacity: 1; background: var(--ink); transform: scale(1.75); }

/* Same breakpoint as the vertical label; must come after the .dot-nav rule above. */
@media (max-width: 900px) { .dot-nav { display: none; } }

@media (max-width: 600px) {
  .dot-nav { right: 6px; }
  html.snap-root { --panel-pad: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html.snap-root { scroll-snap-type: none; }
  .panel-inner > * { opacity: 1; transform: none; transition: none; }
}

/* ─── NAV DROPDOWN ───────────────────────────────────────────── */
nav.nav-links .has-sub { position: relative; display: flex; align-items: center; }

nav.nav-links .sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 190px;
  padding: 10px 0;
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* bridge the gap so the menu doesn't close on the way down */
nav.nav-links .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

nav.nav-links .has-sub:hover .sub,
nav.nav-links .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

nav.nav-links .sub a { margin: 0; padding: 10px 20px; }
nav.nav-links .sub a:hover { transform: none; background: var(--line); text-decoration: none; }

/* ─── FEATURES: FORMAT SECTIONS ──────────────────────────────── */
.format-section { padding: 0 0 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.format-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.format-section p { color: var(--ink-mid); max-width: 640px; }
.features-grid { margin-top: 24px; }

/* ─── EDITIONS: COMPARISON CHART ─────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.compare th, .compare td { padding: 10px 24px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare th:first-child, .compare td:first-child { text-align: left; width: 50%; }
.compare thead th { font-family: var(--font-display); font-weight: 400; font-size: 20px; background: #faf8f4; }
.compare td { color: var(--ink-mid); }
.compare .price-row td { font-weight: 600; color: var(--ink); border-bottom: none; }

@media (max-width: 900px) { nav.nav-links { gap: 20px; } nav.nav-links a { font-size: 13.5px; } }
@media (max-width: 700px) { nav.nav-links .sub { display: none; } nav.nav-links { gap: 14px; } .logo-word { display: none; } }

.format-link { text-decoration: none; color: inherit; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.2s; }
.format-link:hover { background: #faf8f4; }
.features-grid:has(.format-link) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .features-grid:has(.format-link) { grid-template-columns: 1fr; } }

/* ─── FEATURES: DETAIL SECTIONS ──────────────────────────────── */
.feature-details { margin-top: 90px; max-width: 760px; }
.feature-detail { padding: 40px 0; border-top: 1px solid var(--line); }
.feature-detail h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin-bottom: 16px; }
.feature-detail p { font-size: 16.8px; line-height: 1.75; color: var(--ink-mid); }
.format-links { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.format-links .label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); }
.format-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); font-size: 14px; letter-spacing: 0.04em; }
.features-grid:has(.format-link) { grid-template-columns: repeat(3, 1fr); }

.feature-detail p + p { margin-top: 16px; }
.page-lede code, .feature-detail code { font-family: var(--font-mono); font-size: 0.9em; background: #faf8f4; border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* ─── LEDE: align with page title ────────────────────────────── */
:root { --page-pad: calc(max(0px, (100vw - var(--page-max)) / 2) + var(--gutter)); }
.page-lede {
  max-width: calc(640px + var(--page-pad));
  margin: 0;
  padding-left: var(--page-pad);
  padding-right: 24px;
}

/* ─── LEDE: same type as section headings ────────────────────── */
.page-lede {
  max-width: calc(820px + var(--page-pad));
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.25;
  letter-spacing: normal;
  color: var(--ink);
  padding-top: 36px;
}

.download-upgrade { margin-top: 28px; font-size: 14.8px; color: var(--ink-mid); }
.download-upgrade a { color: var(--ink); text-underline-offset: 3px; }

/* ─── EDITIONS: CALL-TO-ACTION ROW ───────────────────────────── */
.compare tfoot td { border-bottom: none; padding: 20px 24px; }
.compare tfoot .buy-btn { padding: 11px 20px; white-space: nowrap; }
.buy-btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
@media (max-width: 600px) { .compare th, .compare td { padding: 14px 10px; font-size: 14px; } .compare tfoot .buy-btn { padding: 12px 10px; font-size: 13px; } }

/* ─── 404 ────────────────────────────────────────────────────── */
.notfound {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 120px var(--page-pad) 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.notfound-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-light); }
.notfound p { font-size: 17px; color: var(--ink-mid); }
.notfound .buy-btn { padding: 16px 36px; margin-top: 8px; }

/* ─── HOME: NEXT-SECTION ARROWS ──────────────────────────────── */
.panel { position: relative; }

.panel-next {
  align-self: center;
  margin-top: 56px;
  color: var(--ink-light);
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.3s, color 0.2s ease;
}
.panel.visible .panel-next { opacity: 1; }
.panel-next:hover { color: var(--ink); }
.panel-next svg { display: block; }   /* no up-and-down bounce any more (was: animation: bounce-y 1.4s ease-in-out infinite) */

@media (prefers-reduced-motion: reduce) {
  .panel-next { opacity: 1; transition: none; }
  .panel-next svg { animation: none; }
}

/* ─── EXTENSIONS GRID (5 × 4) ────────────────────────────────── */
.features-grid.ext-grid { grid-template-columns: repeat(5, 1fr); margin-top: 0; }
.ext-grid .feature-card { min-height: 105px; padding: 18px 20px; justify-content: space-between; }
.ext-grid .feature-card h3 { font-size: 20px; line-height: 1.2; }
.ext-grid .ext-empty { pointer-events: none; }
.ext-grid .feature-card:nth-child(n) { transition-delay: 0s; }

@media (max-width: 1000px) {
  .features-grid.ext-grid { grid-template-columns: repeat(3, 1fr); }
  .ext-grid .ext-empty { display: none; }
}
@media (max-width: 600px) {
  .features-grid.ext-grid { grid-template-columns: repeat(2, 1fr); }
  .ext-grid .feature-card { min-height: 90px; padding: 14px 16px; }
  .ext-grid .feature-card h3 { font-size: 17px; }
}

/* ─── EXTENSION PAGES: DOWNLOAD BUTTON ───────────────────────── */
.ext-download { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin: 0 0 8px; }
.ext-download .buy-btn { display: inline-flex; padding: 16px 32px; }
.ext-download-note { font-size: 13.5px; color: var(--ink-light); }

.ext-preview { display: block; width: 70%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 28px; }
@media (max-width: 700px) { .ext-preview { width: 100%; } }

.page-head-row:has(.page-next) { align-items: baseline; }
.page-meta.page-next {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1.7vw, 21px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding-bottom: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.page-meta.page-next:hover { opacity: 0.6; }

.ext-preview ~ .feature-details { margin-top: 28px; }

/* Extensions grid: title top left, number bottom right */
.ext-grid .feature-card h3 { order: 1; }
.ext-grid .feature-card .feature-num { order: 2; align-self: flex-end; }


/* ─── HOME: closing contact panel (copied from the old site's contact page) ─── */
.panel-inner.contact-inner { max-width: 1100px; width: 100%; text-align: left; margin-top: auto; }   /* windows 800px wide and narrower: the original flow layout (the lift `top` rules that used to be here are gone: in a tall one-column layout they pushed the title above the top of the screen) */
.panel-last.media-ok { color: #fff; border-top: none; --ink: #fff; --ink-mid: rgba(255,255,255,.82); --ink-light: rgba(255,255,255,.7); position: relative; overflow: hidden; background: #000; }
.panel-last { position: relative; overflow: hidden; }
#get.panel-last.media-ok { background: #050505; }   /* the Contacts screen: a solid 98% black (15 Nov 2026; it was the picture images/ui/contacts-1.png on black, which is still in the folder, unused) */
/* everything on the Contacts screen stays ABOVE that dark layer (it used to dim the title, its underline, the text, the form and the footer) */
.panel-last .panel-title, .panel-last .contact-content, .panel-last .panel-inner > *, .panel-last footer { position: relative; z-index: 2; }
@media (min-width: 801px) { .panel-last .panel-title, .panel-last .contact-content { position: absolute; z-index: 2; } }
.panel-last.media-ok .submit-btn:hover { color: #1C1C1C; }
.panel-last .panel-title { text-align: left; font-size: 82.8px; }   /* the Contacts title is as large as the About and Works titles (it was the normal title size, clamp(40px, 7vw, 92px)) */
.panel-last .contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.panel-last .contact-tagline { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; color: var(--ink); margin-bottom: 18px; line-height: 1.2; }
.panel-last .contact-intro { font-size: clamp(14px, 1.25vw, 16px); font-weight: 300; color: var(--ink-mid); line-height: 1.65; margin-bottom: 40px; max-width: 34ch; }
.panel-last .contact-detail { margin: 0 0 22px; }
.panel-last .contact-detail-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 4px; }
.panel-last .contact-detail-value { display: block; font-size: clamp(14px, 1.25vw, 16px); font-weight: 300; color: var(--ink); }
.panel-last .contact-social { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.7em; }   /* YOUTUBE / INSTAGRAM / LINKEDIN on one line under the Social label */
.panel-last .contact-sep { font-size: clamp(14px, 1.25vw, 16px); font-weight: 300; color: var(--ink); }
.panel-last .contact-social a.contact-detail-value:hover { text-decoration-thickness: 1px; }   /* thin underline on hover */
.panel-last a.contact-detail-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-last .contact-detail a, .panel-last .contact-detail a:hover { border-bottom-color: transparent; }   /* no line under the email address (the 1px stays so nothing moves) */
.panel-last form.contact-form { max-width: 520px; }
.panel-last .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.panel-last .field { display: block; }
.panel-last .field label { display: block; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-mid); margin-bottom: 10px; }
.panel-last .field input, .panel-last .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--ink); color: var(--ink); font-family: var(--font-body); font-size: 15px; padding: 6px 0; outline: none; }
.panel-last .field input:focus, .panel-last .field textarea:focus { border-bottom-color: var(--accent); }
.panel-last .field.message { margin-bottom: 34px; }
.panel-last .field textarea { resize: none; height: 60px; }
.panel-last .submit-btn { background: transparent; border: 1px solid var(--ink); color: var(--ink); font-family: var(--font-body); font-size: 15px; padding: 14px 34px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.panel-last .submit-btn:hover { background: var(--ink); color: var(--bg); }
/* Contact screen on a normal window: the "Contacts" title stays up at the top, and the text on the left and the form on the right are centred vertically on the screen (each one centred on the middle line). The grid fills the panel, centres its one row, and does not catch clicks meant for the footer. */
@media (min-width: 801px) {
  .panel-inner.contact-inner { position: static; top: auto; margin-top: 0; }
  /* the Contacts title sits at the top left, like the About and Works titles (rule in index.html, "TITLES AT THE TOP LEFT") */
  .panel-last .contact-content { position: absolute; left: 0; right: 0; margin: 0 auto; width: min(1100px, calc(100% - 2 * var(--panel-pad))); top: max(0px, calc(2 * ((max(var(--header-h) + 24px, 17vh) + 50px) + 76px + 28px + 186px) - 100%)); bottom: 0; align-content: center; align-items: start; pointer-events: none; }
  .panel-last .contact-info, .panel-last .contact-form { pointer-events: auto; }
  /* Email / Location / Social sit at the bottom of the text column, so the last link lines up with the Submit button (the column is as tall as the form; the last block's negative margin puts the links' baseline on the button's bottom edge) */
  .panel-last .contact-info { align-self: stretch; display: flex; flex-direction: column; }
  .panel-last .contact-info > .contact-detail:first-of-type { margin-top: auto; }
  .panel-last .contact-info > .contact-detail:last-child { margin-bottom: calc(-0.59 * clamp(14px, 1.25vw, 16px)); }   /* the BASELINE of the social links sits on the bottom edge of the Submit button (measured: 0.59 x the font size) */
}
@media (max-width: 800px) {
  .panel-last .contact-content { grid-template-columns: 1fr; gap: 36px; }
  .panel-last .form-row { grid-template-columns: 1fr; gap: 26px; }
}

/* Legal pages (Privacy / Cookie): black line under the title */
body:has(.legal-content) .page-head { border-bottom-color: var(--ink); }

/* Contact form: confirmation / error lines */
.panel-last .form-thanks { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--ink); max-width: 520px; }
.panel-last .form-error { margin-top: 16px; font-size: 14px; color: var(--ink); max-width: 520px; }

/* Legal pages: ENG / ITA switch (replaces the "LEGAL" tag) */
[hidden] { display: none !important; }
.lang-switch { background: none; border: 0; padding: 6px 0 6px 12px; margin-bottom: -6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #000; cursor: pointer; white-space: nowrap; }
.lang-switch span { opacity: 0.45; transition: opacity 0.2s; }
.lang-switch span.on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lang-switch:hover span { opacity: 1; }


/* ─── MOBILE MENU (hamburger + full-screen overlay, 700px and below) ───────── */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .logo { position: relative; z-index: 101; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
    position: relative; z-index: 101;
  }
  .menu-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s ease; }
  header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  header.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  header.menu-open .menu-toggle { color: var(--ink) !important; }
  header.menu-open .logo img { filter: none !important; }
  header.menu-open, header.menu-closing { backdrop-filter: none; -webkit-backdrop-filter: none; }

  nav.nav-links {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: rgba(217, 215, 212, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);   /* see-through cream with a blur (was a solid cream picture) */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  header.menu-open nav.nav-links { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s ease, visibility 0s; }
  nav.nav-links a { font-family: var(--font-display); font-size: 40px; letter-spacing: 0; padding: 8px 0; margin: 0; color: var(--ink); }
  header.menu-open nav.nav-links a { color: var(--ink) !important; }   /* dark links on the cream overlay, also on the home page */
  html.menu-lock { overflow: hidden; }
}

/* Home / project screen titles reveal 3x slower than the other text on the screen (2.1s instead of 0.7s) */
.panel-inner > .panel-title { transition: opacity 1.2s ease, transform 1.2s ease; }   /* plain "ease": the site's own curve front-loads almost all the movement, which would make 1.2s feel much shorter (was 2.1s) */
@media (prefers-reduced-motion: reduce) { .panel-inner > .panel-title { transition: none; } }

/* Vianello text: a line break written as a new line in the text (kept when the language is switched). */
[data-i18n="p4.text"], [data-i18n="p5.text"], [data-i18n="p7.text"], [data-i18n="p8.text"], [data-i18n="p6.text"], [data-i18n="p9.text"], [data-i18n="amedei.text"], [data-i18n="gabetti.text"] { white-space: pre-line; }

/* No flash between pages: the browser keeps the old page on screen until the new one is ready to paint, then cross-fades (cross-document view transition; Chrome / Edge / Vivaldi / Safari 18.2+; other browsers just ignore it). Applies to every page, since all of them load this file. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
