/* Fonts are served from this site (Latin subset of the variable fonts, SIL Open Font License,
   see assets/fonts/OFL-*.txt), so pages make no third-party requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter Tight"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/inter-tight-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; }

/* Kretivco — shared system
   Based on the ORYZO "darkroom product editorial" reference:
   warm near-black canvas, cream type, uppercase display, dashed hairlines.
   Kretivco gold + pink are the only colours. */

:root {
  --bg: #100904;          /* walnut shadow — page canvas */
  --bg-2: #170e08;        /* one step up, for bands */
  --bark: #2a1a0f;        /* elevated surfaces */
  --cork: #40372e;        /* dashed hairlines */
  --drift: #6c5f51;       /* muted structure */
  --cream: #ffedd7;       /* all text */
  --cream-2: rgba(255, 237, 215, .66);
  --cream-3: rgba(255, 237, 215, 0.49);   /* ≥4.5:1 for 12px labels */
  --gold: #FCB03C;        /* Kretivco gold — accent + primary action */
  --pink: #D51C5C;        /* Kretivco pink — small accents only */
  --paper: #f3e7d8;       /* light product cards */
  --ink: #100904;         /* fixed dark text (on gold buttons, paper cards) */
  --accent: var(--gold);  /* accent text: gold on dark, pink on white */
  --accent-line: rgba(252, 176, 60, .5);
  --line-2: rgba(255, 237, 215, .35);
  --hover: rgba(255, 237, 215, .06);
  --grid: rgba(255, 237, 215, .055);
  --glass: rgba(16, 9, 4, .8);
  --gold-hover: #ffedd7;
  --k-shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* White theme — same system, inverted neutrals; pink takes over as the accent text colour */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f3ee;
  --bark: #f1ebe3;
  --cork: #ddd3c7;
  --drift: #b3a698;
  --cream: #1a120c;
  --cream-2: rgba(26, 18, 12, .68);
  --cream-3: rgba(26, 18, 12, 0.6);
  --accent: var(--pink);
  --accent-line: rgba(213, 28, 92, .45);
  --line-2: rgba(26, 18, 12, .24);
  --hover: rgba(26, 18, 12, .05);
  --grid: rgba(26, 18, 12, .07);
  --glass: rgba(255, 255, 255, .82);
  --gold-hover: #ffc766;
  --k-shadow: rgba(80, 20, 30, .25);
  color-scheme: light;
}
/* Each image that sits on the page background has a dark and a light version */
:root[data-theme="light"] .img-dark, :root:not([data-theme="light"]) .img-light { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); touch-action: manipulation; /* no accidental double-tap zoom; pinch-zoom still works */ }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  transition: background-color .4s, color .4s;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 30px; font: 500 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .label, .btn, .nav__links a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 500;
}
.display { font-size: clamp(2.9rem, 7.4vw, 7.6rem); line-height: .9; letter-spacing: -.01em; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: .92; letter-spacing: -.005em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: .95; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.05; }
.label { font-size: 12px; letter-spacing: .08em; line-height: 1.2; color: var(--cream-2); }
.label--gold { color: var(--accent); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.32; color: var(--cream-2); max-width: 30em; }
.lead strong { color: var(--cream); font-weight: 500; }
.body { color: var(--cream-2); max-width: 36em; }
.gold { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: 14px 24px;
  border-radius: 36px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: .06em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: var(--hover); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 500;
  font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--accent);
  padding: 6px 0; border-bottom: 1px dashed var(--accent-line);
}
.link:hover { border-bottom-style: solid; }
/* a taller tap area without moving the dashed underline */
.link { position: relative; }
.link::before { content: ""; position: absolute; inset: -9px -4px; }

.rule { border: 0; border-top: 1px dashed var(--cork); margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, border-color .3s, transform .35s var(--ease);
  border-bottom: 1px dashed transparent;
}
.nav.is-solid { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--cork); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 0; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.brand small { font: inherit; font-weight: 500; opacity: .72; }
/* small phones: MEDIAWORKS drops under KRETIVCO so the nav never overflows */
@media (max-width: 480px) {
  .brand span { line-height: 1; }
  .brand small { display: block; font-size: 11px; letter-spacing: .22em; margin-top: 3px; opacity: .8; }
}
.nav__links { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a:not(.btn) { text-transform: none; font-size: 14px; letter-spacing: .01em; text-decoration: none; color: var(--cream-2); padding: 8px 0; position: relative; transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--cream); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; border-bottom: 1px dashed var(--gold); }
.nav__links .btn { min-height: 40px; padding: 10px 18px; font-size: 12px; }
.nav__toggle { display: none; order: 3; }
.theme-toggle {
  order: 2; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--line-2); color: var(--cream);
  transition: border-color .2s, background .2s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--cream); background: var(--hover); }
.theme-toggle:active { transform: rotate(40deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .moon, :root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

@media (max-width: 860px) {
  .nav__inner { gap: 10px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    background: none; border: 1px solid var(--line-2); color: var(--cream);
    border-radius: 36px; height: 44px; padding: 0 16px; cursor: pointer;
    font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: 12px; letter-spacing: .08em;
  }
  .nav__toggle i { display: grid; gap: 4px; }
  .nav__toggle i::before, .nav__toggle i::after { content: ""; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle i::before { transform: translateY(2.75px) rotate(45deg); }
  .nav.is-open .nav__toggle i::after { transform: translateY(-2.75px) rotate(-45deg); }
  .nav__links {
    /* absolute, not fixed: the nav's backdrop-filter would otherwise trap a fixed child */
    position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 1;
    height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { background: var(--bg); border-color: var(--cork); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav__links a:not(.btn) { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: 0; color: var(--cream); padding: 14px 0; border-bottom: 1px dashed var(--cork); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent); }
  .nav__links .btn { margin-top: 28px; justify-content: center; min-height: 54px; font-size: 14px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px dashed var(--cork); padding: 72px 0 28px; color: var(--cream-2); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer__mantra { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: 22px; line-height: 1; color: var(--cream); max-width: 11em; }
.footer h4 { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--cream-3); margin-bottom: 16px; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer address { font-style: normal; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px dashed var(--cork); font-size: 12px; color: var(--cream-3); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
/* phones: footer links tall enough to tap */
@media (max-width: 860px) { .footer li + li { margin-top: 0; } .footer li a, .footer__bottom a { display: inline-block; padding: 11px 0; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 10vw, 128px)) 0 clamp(48px, 7vw, 88px); }
.page-head .label { display: block; margin-bottom: 22px; }
.page-head .lead { margin-top: 28px; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
@media (min-width: 861px) and (max-height: 820px) { .section { padding-block: clamp(56px, 6.5vw, 96px); } }
.section--band { background: var(--bg-2); border-block: 1px dashed var(--cork); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .label { display: block; margin-bottom: 18px; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* Dashed list rows */
.rows { border-top: 1px dashed var(--cork); }
.rows li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px dashed var(--cork); align-items: baseline; }
.rows .n { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.rows h3 { margin-bottom: 6px; }
.rows p { color: var(--cream-2); }

/* CTA band */
.cta { text-align: center; }
.cta .display { max-width: 12em; margin: 22px auto 0; }
.cta .lead { margin: 26px auto 0; }
.cta .btns { justify-content: center; margin-top: 40px; }
.cta__meta { margin-top: 28px; font-size: 14px; color: var(--cream-3); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.section--tight { padding-top: 0; }
.legal { max-width: 44em; font-size: clamp(16px, 1.15vw, 17px); line-height: 1.62; }
.legal__meta { color: var(--cream-3); font-size: 14px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 22px; margin: 18px 0 8px; }
.legal h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; color: var(--cream); margin: 40px 0 14px; padding-top: 22px; border-top: 1px dashed var(--cork); }
.legal p, .legal li { color: var(--cream-2); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { display: grid; gap: 9px; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--accent); }
.legal p a:not(.link) { color: var(--accent); }
.legal__lang { margin-top: 88px; }
.legal .legal__title { border-top: 0; padding-top: 0; margin-top: 14px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: .95; }
.footer__legal a { color: inherit; }

/* AI-made photos carry a small tag until real ones replace them */
.frame--ill { position: relative; }
.ill-tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 30px; background: rgba(16, 9, 4, .72); color: rgba(255, 237, 215, .82); font: 500 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.frame--ill:has(figcaption) .ill-tag { bottom: auto; top: 12px; }
