/* ==========================================================================
   NORIK BESS — norik-bess.eu
   Static single page. No frameworks, no third-party requests, no tracking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS — five self-hosted static files. See PUBLISHING.md step 1.
   Static rather than variable: Transfonter flattens variable axes on export.
   If the files are absent the fallback stacks take over and the page still
   renders correctly — nothing breaks.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  --base-deep:   #2E3440;
  --base-line:   #434C5E;
  --footer:      #21262E;
  --green:       #7BBE94;   /* dark grounds only — 2.0:1 on white, never body text there */
  --green-hover: #9BD1AF;
  --green-deep:  #2F7A52;   /* light grounds — 5.0:1 */
  --n100:        #F5F6F7;
  --n300:        #C7CDD4;
  --n500:        #8A94A1;   /* large text / chrome only */
  --n600:        #6B7480;
  --n700:        #4C5563;
  --n900:        #21262E;
  --white:       #FFFFFF;

  --font-heading: Archivo, 'Arial Black', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', Menlo, Consolas, monospace;

  --gutter:      120px;
  --section-pad: 120px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--n900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }

img { max-width: 100%; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--n900); }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

::selection { background: var(--green); color: var(--n900); }

.container { max-width: 1200px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--base-deep);
  border-bottom: 1px solid var(--base-line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 88px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: content-box;
}

.header-logo { display: block; line-height: 0; }
.header-logo img { display: block; width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 40px; }

.site-nav a {
  font-size: 15px;
  color: var(--n300);
}
.site-nav a:hover { color: var(--n100); }

.site-nav .nav-email {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}
.site-nav .nav-email:hover { color: var(--green-hover); border-color: var(--green-hover); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--n100); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  background: var(--base-deep);
  padding: 132px var(--gutter) 120px;
}

.hero-logo { display: block; width: 340px; height: auto; margin-bottom: 56px; }

.hero h1 {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--n100);
  margin-bottom: 28px;
  max-width: 16ch;
}

.lead-invert {
  font-size: 21px;
  line-height: 1.6;
  color: var(--n300);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section { padding: var(--section-pad) var(--gutter); }
.section--tint { background: var(--n100); }
.section--dark { background: var(--base-deep); }

.kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.kicker--invert { color: var(--green); }

.rule { height: 2px; background: var(--n900); margin-bottom: 56px; }
.rule--accent { background: var(--green); }

.lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--n900);
  max-width: 68ch;
  margin-bottom: 72px;
}

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

.grid-3 h3 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--n900);
  margin-bottom: 18px;
}
.grid-3 p { color: var(--n700); }

/* --------------------------------------------------------------------------
   LIFECYCLE STAGES
   -------------------------------------------------------------------------- */
.stages { list-style: none; margin: 0; padding: 0; }

.stages li {
  display: grid;
  grid-template-columns: 88px 300px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--n300);
}
.stages li:last-child { border-bottom: 1px solid var(--n300); }

.stage-num { font-family: var(--font-mono); font-size: 15px; color: var(--n600); }

.stages h4 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--n900);
}
.stages p { color: var(--n700); }

/* --------------------------------------------------------------------------
   PANEL (why storage)
   -------------------------------------------------------------------------- */
.panel { margin-top: 80px; background: var(--base-deep); padding: 64px; }

.panel-title {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--n100);
  margin-bottom: 20px;
}

.panel-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--n300);
  max-width: 70ch;
  margin-bottom: 44px;
}

.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }

.panel-grid > div { border-top: 1px solid var(--n700); padding-top: 20px; }

.panel-grid h5 {
  font-weight: 700;
  font-size: 17px;
  color: var(--n100);
  margin-bottom: 10px;
}
.panel-grid p { font-size: 15px; line-height: 1.65; color: var(--n300); }

/* --------------------------------------------------------------------------
   TEAM
   -------------------------------------------------------------------------- */
.team { gap: 48px; }

.team img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  background: #E4E7EA;
  margin-bottom: 24px;
}

.team h3 {
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  color: var(--n900);
  margin-bottom: 4px;
}

.team .role { font-size: 15px; color: var(--green-deep); margin-bottom: 18px; }

.team p { font-size: 15px; color: var(--n700); }

.team a.link-dark {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  color: var(--n900);
  border-bottom: 1px solid var(--n500);
  padding-bottom: 2px;
}
.team a.link-dark:hover { border-color: var(--n900); }

/* --------------------------------------------------------------------------
   COMPANY FACTS
   -------------------------------------------------------------------------- */
.entity-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--n100);
  max-width: 24ch;
  margin-bottom: 12px;
}

.entity-label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n300);
  margin-bottom: 64px;
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

.fact { border-top: 2px solid var(--base-line); padding-top: 20px; }
.fact--accent { border-top-color: var(--green); }

.fact-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n300);
  margin-bottom: 12px;
}

.fact-value { font-size: 17px; line-height: 1.55; color: var(--n100); }
.fact-value--mono { font-family: var(--font-mono); font-size: 19px; }

.fact-value a {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}
.fact-value a:hover { color: var(--green-hover); border-color: var(--green-hover); }

/* Some browsers auto-link long digit runs as tel: links. The registration and VAT
   numbers are statutory reference data, not phone numbers — keep any injected
   anchor inert and inheriting, so it can neither be dialled nor break contrast. */
.fact-value--mono a,
.footer-detail a {
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer); padding: 56px var(--gutter); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-entity { font-size: 14px; line-height: 1.6; color: var(--n300); }
.footer-detail { font-size: 14px; line-height: 1.6; color: var(--n500); }
.footer-copy  { font-size: 14px; color: var(--n500); white-space: nowrap; }

/* --------------------------------------------------------------------------
   MOTION — enhancement only. The hidden state is added by JS (.js-fade),
   so with JS off or reduced-motion on, everything is visible by default.
   -------------------------------------------------------------------------- */
.reveal.js-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.js-fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal.js-fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --------------------------------------------------------------------------
   TABLET  768–1199
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  :root { --gutter: 40px; --section-pad: 80px; }

  .hero { padding: 96px var(--gutter) 80px; }
  .hero h1 { font-size: 46px; }

  .grid-3 { gap: 40px; }
  .stages li { grid-template-columns: 64px 1fr; }
  .stages li h4 { grid-column: 2; }
  .stages li p { grid-column: 2; }
  .panel { padding: 48px; }
}

/* --------------------------------------------------------------------------
   MOBILE  < 768
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --gutter: 24px; --section-pad: 64px; }

  .header-inner { height: 64px; }
  .header-logo img { width: 124px; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--base-deep);
    border-bottom: 1px solid var(--base-line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .site-header { position: relative; }

  .hero { padding: 56px var(--gutter) 64px; }
  .hero-logo { width: 200px; margin-bottom: 36px; }
  .hero h1 { font-size: 34px; line-height: 1.12; max-width: none; }
  .lead-invert { font-size: 17px; }

  .kicker { font-size: 12px; }
  .rule { margin-bottom: 36px; }
  .lead { font-size: 18px; margin-bottom: 40px; }

  .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 h3 { font-size: 22px; margin-bottom: 12px; }

  .stages li { grid-template-columns: 1fr; gap: 0; padding: 26px 0; }
  .stage-num { font-size: 13px; margin-bottom: 8px; }
  .stages h4 { font-size: 19px; margin-bottom: 12px; }
  .stages p { font-size: 15px; }

  .panel { margin-top: 48px; padding: 36px 24px; }
  .panel-title { font-size: 24px; margin-bottom: 14px; }
  .panel-lead { font-size: 16px; margin-bottom: 32px; }
  .panel-grid { grid-template-columns: 1fr; gap: 26px; }
  .panel-grid > div { padding-top: 16px; }
  .panel-grid h5 { font-size: 16px; margin-bottom: 8px; }
  .panel-grid p { font-size: 14.5px; }

  .team { gap: 44px; }
  .team img { margin-bottom: 18px; }
  .team h3 { font-size: 21px; }
  .team .role { margin-bottom: 14px; }
  .team a.link-dark { margin-top: 14px; }

  .entity-name { font-size: 24px; line-height: 1.22; max-width: none; margin-bottom: 10px; }
  .entity-label { font-size: 12px; margin-bottom: 40px; }

  .facts { grid-template-columns: 1fr; gap: 28px; }
  .fact { padding-top: 16px; }
  .fact-label { font-size: 12px; margin-bottom: 8px; }
  .fact-value { font-size: 16px; }
  .fact-value--mono { font-size: 17px; }

  .site-footer { padding: 36px var(--gutter); }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-entity, .footer-detail, .footer-copy { font-size: 13px; }
}
