/* Tallinnfilm Studios — site stylesheet
   Generated from the Claude Design project + Tallinnfilm Studios design system.
   Layout styles live inline in each page (as designed); this file holds
   fonts, tokens, base rules, design-system components and hover states. */

/* ---------- Fonts (self-hosted Hanken Grotesk, stand-in for Neue Haas Grotesk) ---------- */
/* latin-ext italic */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin italic */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-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;
}
/* latin-ext normal */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin normal */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  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;
}


/* ---------- Tokens ---------- */
/* Tallinnfilm Studios — Color tokens
   Palette digitised from TFS_cvi_1.0 (page 10 swatch board). */
:root {
  /* ---- Base neutrals ---- */
  --tfs-black: #000000;        /* primary brand dark, signage, type */
  --tfs-near-black: #141414;   /* dark surfaces / dark slides */
  --tfs-cream: #F0ECE9;        /* primary light background (off-white) */
  --tfs-white: #FFFFFF;

  /* ---- Brand palette (from CVI swatch board) ---- */
  --tfs-lime: #DFFF01;         /* signature accent / highlight */
  --tfs-navy: #162441;         /* deep ink blue */
  --tfs-peach: #FFAD81;        /* warm coral */
  --tfs-periwinkle: #97B8FF;   /* soft blue */
  --tfs-tan: #DAC6A1;          /* sand / khaki */
  --tfs-teal: #306750;         /* pine green */

  /* ---- Neutral ramp (derived) ---- */
  --tfs-grey-900: #1B1B1B;
  --tfs-grey-700: #3D3D3D;
  --tfs-grey-500: #6B6B6B;
  --tfs-grey-300: #B4B0AD;
  --tfs-grey-200: #D7D3D0;
  --tfs-grey-100: #E7E3E0;

  /* ---- Semantic aliases ---- */
  --color-bg: var(--tfs-cream);
  --color-bg-inverse: var(--tfs-black);
  --color-surface: var(--tfs-white);
  --color-surface-sunken: var(--tfs-grey-100);

  --color-text: var(--tfs-black);
  --color-text-muted: var(--tfs-grey-500);
  --color-text-inverse: var(--tfs-cream);

  --color-accent: var(--tfs-lime);        /* highlight fills */
  --color-on-accent: var(--tfs-black);    /* text/ink on accent */

  --color-border: rgba(0,0,0,0.12);
  --color-border-strong: var(--tfs-black);
  --color-focus: var(--tfs-navy);

  /* Extended brand aliases for layouts */
  --brand-navy: var(--tfs-navy);
  --brand-peach: var(--tfs-peach);
  --brand-periwinkle: var(--tfs-periwinkle);
  --brand-tan: var(--tfs-tan);
  --brand-teal: var(--tfs-teal);
}

/* Tallinnfilm Studios — Typography tokens
   Typeface: Neue Haas Grotesk → substitute Hanken Grotesk.
   Neo-grotesque, tight leading + negative tracking on display sizes. */
:root {
  --font-sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Weights (map to CVI: Roman = 400/500, Medium = 500/600, bold display = 700/800) */
  --fw-regular: 400; /* @kind other */
  --fw-medium: 500; /* @kind other */
  --fw-semibold: 600; /* @kind other */
  --fw-bold: 700; /* @kind other */
  --fw-black: 800; /* @kind other */

  /* Type scale (px) — display driven, generous jumps */
  --text-display-xl: 112px;   /* hero headlines, full-bleed */
  --text-display-l: 80px;
  --text-display-m: 56px;
  --text-h1: 44px;
  --text-h2: 34px;
  --text-h3: 26px;
  --text-h4: 21px;
  --text-body-lg: 19px;
  --text-body: 17px;
  --text-body-sm: 15px;
  --text-caption: 13px;
  --text-overline: 12px;

  /* Line heights */
  --lh-tight: 0.98;      /* @kind other */
  --lh-snug: 1.06;       /* @kind other */
  --lh-heading: 1.12;    /* @kind other */
  --lh-body: 1.5;        /* @kind other */
  --lh-relaxed: 1.6;     /* @kind other */

  /* Letter spacing */
  --ls-display: -0.03em;   /* @kind other */
  --ls-heading: -0.02em;   /* @kind other */
  --ls-body: -0.005em;     /* @kind other */
  --ls-overline: 0.08em;   /* @kind other */
}

/* Tallinnfilm Studios — Spacing tokens (4px base grid) */
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1280px;
  --gutter: 24px;
  --section-y: 96px;
}

/* Tallinnfilm Studios — Radius & elevation
   The brand skews sharp/geometric (signage boxes, panels are square).
   Rounding appears on stickers, social cards and pill CTAs only. */
:root {
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;    /* social cards, image frames */
  --radius-lg: 22px;    /* stickers, feature panels */
  --radius-pill: 999px;

  /* Shadows — used sparingly; brand favours flat colour blocks */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.16);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-med: 220ms; /* @kind other */
  --dur-slow: 400ms; /* @kind other */
}


/* ---------- Base ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  html, body { margin: 0; padding: 0; }
  body { background: var(--tfs-cream); color: var(--tfs-black); font-family: var(--font-sans); font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); overflow-x: hidden; }
  img, video { max-width: 100%; }
  a { color: var(--tfs-navy); text-decoration: none; }
  a:hover { color: var(--tfs-teal); }
  ::selection { background: var(--tfs-lime); color: #000; }
img, video { height: auto; }
@keyframes tfsCue { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.45; } }
@keyframes tfsPin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tfsPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes tfsRise { 0% { transform: translateY(6px); opacity: 0.5; } 50% { transform: translateY(-6px); opacity: 1; } 100% { transform: translateY(6px); opacity: 0.5; } }
@keyframes tfsRiseLoop { 0% { transform: translateY(100%); opacity: 0; } 12% { opacity: 0.9; } 78% { opacity: 0.9; } 100% { transform: translateY(-140%); opacity: 0; } }
@keyframes tfsSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tfs-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

:focus-visible { outline: 2px solid var(--tfs-lime); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tfs-lime); color: #000; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #000; }

/* ---------- Responsive nav (breakpoint 900px) ---------- */
@media (max-width: 899.98px) { .only-desktop { display: none !important; } }
@media (min-width: 900px) { .only-mobile, .mobile-menu { display: none !important; } }
.mobile-menu[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }
header[data-autohide].is-hidden { transform: translateY(-110%); }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  border-radius: var(--radius-xs); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard);
}
.btn:hover { filter: brightness(0.92); }
.btn:active { transform: scale(0.97); }
.btn--pill { border-radius: 999px; }
.btn--sm { font-size: 14px; padding: 9px 16px; gap: 8px; }
.btn--md { font-size: 16px; padding: 13px 22px; gap: 10px; }
.btn--lg { font-size: 19px; padding: 17px 30px; gap: 12px; }
.btn--primary, .btn--primary:hover { background: var(--tfs-lime); color: #000; border: 2px solid var(--tfs-lime); }
.btn--dark, .btn--dark:hover { background: var(--tfs-black); color: var(--tfs-cream); border: 2px solid var(--tfs-black); }
.btn--outline, .btn--outline:hover { background: transparent; color: var(--tfs-black); border: 2px solid var(--tfs-black); }
.btn--ghost, .btn--ghost:hover { background: transparent; color: var(--tfs-black); border: 2px solid transparent; }
.btn__dot { border-radius: 999px; flex: none; background: var(--tfs-lime); }
.btn--primary .btn__dot { background: #000; }
.btn--sm .btn__dot { width: 7px; height: 7px; }
.btn--md .btn__dot { width: 9px; height: 9px; }
.btn--lg .btn__dot { width: 11px; height: 11px; }
.btn__arrow { line-height: 1; transform: translateY(-1px); }
.btn--sm .btn__arrow { font-size: 15px; }
.btn--md .btn__arrow { font-size: 17px; }
.btn--lg .btn__arrow { font-size: 20px; }

/* ---------- Tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  border-radius: var(--radius-xs); white-space: nowrap; border: none;
  background: var(--tfs-black); color: var(--tfs-cream);
}
.tag--sm { font-size: 12px; padding: 4px 10px; }
.tag--md { font-size: 14px; padding: 6px 14px; }
.tag--lg { font-size: 18px; padding: 10px 20px; }
.tag--outline { background: transparent; color: var(--tfs-black); border: 1.5px solid var(--tfs-black); }
.tag--lime { background: var(--tfs-lime); color: #000; }
.tag--navy { background: var(--tfs-navy); color: #fff; }
.tag--peach { background: var(--tfs-peach); color: #000; }
.tag--periwinkle { background: var(--tfs-periwinkle); color: #000; }
.tag--teal { background: var(--tfs-teal); color: #fff; }
.tag--tan { background: var(--tfs-tan); color: #000; }
.tag__arrow { font-size: 1.1em; line-height: 1; }

/* ---------- Stat block ---------- */
.stat { border-radius: var(--radius-xs); padding: 24px 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; text-align: left; }
.stat--center { text-align: center; }
.stat__value { display: flex; align-items: baseline; gap: 8px; }
.stat--center .stat__value { justify-content: center; }
.stat__num { font-family: var(--font-sans); font-weight: 700; font-size: 56px; letter-spacing: -0.03em; line-height: 0.9; }
.stat__unit { font-family: var(--font-sans); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.stat__label { font-family: var(--font-sans); font-weight: 500; font-size: 15px; margin-top: 10px; opacity: 0.85; }
.stat--lime { background: var(--tfs-lime); color: #000; }
.stat--black { background: var(--tfs-black); color: var(--tfs-cream); }
.stat--navy { background: var(--tfs-navy); color: #fff; }
.stat--peach { background: var(--tfs-peach); color: #000; }
.stat--periwinkle { background: var(--tfs-periwinkle); color: #000; }
.stat--teal { background: var(--tfs-teal); color: #fff; }
.stat--tan { background: var(--tfs-tan); color: #000; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 11px 0; background: var(--tfs-black); }
.ticker__track { display: flex; width: max-content; animation: tfs-ticker 22s linear infinite; }
.ticker__run { display: flex; align-items: center; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; }
.ticker__dot { width: 9px; height: 9px; border-radius: 999px; flex: none; background: var(--tfs-lime); }
.ticker__text { font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--tfs-lime); }
.ticker--lime { background: var(--tfs-lime); }
.ticker--lime .ticker__dot { background: #000; }
.ticker--lime .ticker__text { color: #000; }
.ticker--navy { background: var(--tfs-navy); }
.ticker--navy .ticker__text { color: var(--tfs-cream); }

/* ---------- Hover states (from the design's hover styles) ---------- */
.h1:hover, .h1:focus-visible { color:var(--tfs-lime) !important }
.h2:hover, .h2:focus-visible { transform:translateY(-4px) !important }
.h3:hover, .h3:focus-visible { background:rgba(240,236,233,0.09) !important }
.h4:hover, .h4:focus-visible { background:rgba(240,236,233,0.11) !important }
.h5:hover, .h5:focus-visible { background:rgba(223,255,1,0.14) !important }
.h6:hover, .h6:focus-visible { transform:translateY(-4px) !important;border-color:var(--tfs-black) !important }
.h7:hover, .h7:focus-visible { background:var(--tfs-lime) !important;border-color:var(--tfs-black) !important }
.h8:hover, .h8:focus-visible { background:var(--tfs-lime) !important;color:#000 !important;border-color:var(--tfs-lime) !important }
.h9:hover, .h9:focus-visible { background:rgba(151,184,255,0.2) !important }
.h10:hover, .h10:focus-visible { background:rgba(255,173,129,0.18) !important }
.h11:hover, .h11:focus-visible { background:var(--tfs-cream) !important }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Hero overlay: light scrim, heavier only where the headline and buttons sit ---------- */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.08) 70%, rgba(0,0,0,0.3) 100%);
}
@media (max-width: 899.98px) {
  .hero-scrim { background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.14) 75%, rgba(0,0,0,0.34) 100%); }
}

/* ---------- Footer supporter logos (single colour on black) ---------- */
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.partner-logo { display: inline-flex; align-items: center; opacity: 0.86; transition: opacity var(--dur-med) var(--ease-standard); }
.partner-logo:hover, .partner-logo:focus-visible { opacity: 1; }
.partner-logo img { display: block; width: auto; max-width: 100%; }
.partner-logo--kulka img { height: clamp(52px, 5vw, 64px); }
.partner-logo--efi img { height: clamp(34px, 3.2vw, 40px); }
.partner-logo--fe img { height: clamp(38px, 3.6vw, 46px); }
