/* ============================================================
   KALVANO — refined luxe system
   Display: Schibsted Grotesk · Body: Hanken Grotesk · Accent: Newsreader (italic serif)
   ============================================================ */

/* ---------- self-hosted variable fonts ----------
   Subset per unicode-range; browsers download only what the page uses
   (latin, for this site). All files are variable fonts, hence the
   font-weight ranges. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-cyrillic.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-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: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

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

:root {
  /* --- warm ink neutrals --- */
  --ink:        #0A0A0B;   /* base canvas */
  --ink-raised: #111113;   /* lifted surfaces */
  --ink-2:      #17171A;   /* cards / panels */
  --ink-3:      #1F1F23;   /* hover lift */

  --paper:      #F1EEE7;   /* primary text, warm off-white */
  --paper-dim:  #C9C6BE;
  --muted:      #908D85;   /* secondary text */
  --faint:      #62605B;   /* tertiary / captions */

  --line:       rgba(241,238,231,0.09);
  --line-soft:  rgba(241,238,231,0.05);

  /* --- restrained signal accent --- */
  --accent:      #C9ED6A;  /* signal lime, used sparingly */
  --accent-deep: #97BC3E;
  --accent-glow: rgba(201,237,106,0.10);
  --accent-tint: rgba(201,237,106,0.06);

  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* fluid horizontal gutter */
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --maxw: 1320px;
}

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }

/* ---------- skip link (keyboard users) ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 200;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- shared layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }

section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* display headline base */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.display .ser {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.display .dim { color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  padding: 0.95rem 1.6rem;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  color: var(--paper-dim);
  padding: 0.95rem 1.4rem;
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { color: var(--paper); border-color: var(--paper-dim); }

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--gutter);
  transition: background .45s var(--ease), backdrop-filter .45s, border-color .45s, padding .45s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
}
.brand b { font-weight: 700; }
.brand .mk { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.brand-logo { display: block; height: 20px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  background: var(--paper);
  color: var(--ink) !important;
  padding: 0.6rem 1.15rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background .25s, transform .25s var(--ease) !important;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem,6vw,5rem) var(--gutter) 3rem;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .brand { font-size: 26px; margin-bottom: 1rem; }
.footer-brand .brand-logo { height: 30px; }
.footer-tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a {
  font-size: 15px;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--faint); letter-spacing: 0.01em; }
.footer-meta { font-size: 13px; color: var(--faint); }

/* ---------- reveal animation ----------
   Safe by default: visible. Entrance only opts in when JS confirms a live
   timeline (adds .motion to <html>), so frozen-timeline / no-JS always shows. */
.reveal { opacity: 1; transform: none; }
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.visible { opacity: 1; transform: translateY(0); }
.motion .reveal.d1 { transition-delay: .08s; }
.motion .reveal.d2 { transition-delay: .16s; }
.motion .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- responsive base ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  /* keep the nav CTA on mobile; hide only the section links */
  .nav-links { gap: 0; }
  .nav-links li:not(:last-child) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
