/* cordium.eu – one stylesheet, no inline styles (CSP style-src 'self') */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/outfit-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;
}

:root {
  --forest: #1F3D2B;
  --leaf: #3E8E5A;
  --heart: #E07A1F;
  --gold: #E0A100;
  --cream: #FAF8F2;
  --ink: #1c2420;
  --muted: #56655c;
  --line: #e8e4d8;
  --radius: 28px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Language switch ---------- */
.langs { display: flex; gap: .25rem; font-size: .85rem; letter-spacing: .08em; }
.langs a { text-decoration: none; padding: .3rem .55rem; border-radius: 999px; opacity: .75; }
.langs a:hover { opacity: 1; }
.langs a[aria-current="page"] { opacity: 1; font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; }
.hero .langs { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; color: var(--cream); }
footer .langs { justify-content: center; margin-top: 1rem; color: var(--forest); }

/* ---------- Hero with parallax layers ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 8rem;
  background:
    radial-gradient(1200px 600px at 80% -10%, #2b5a3e 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 110%, #2a4d37 0%, transparent 60%),
    var(--forest);
  color: var(--cream);
}
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer svg { position: absolute; }
.star-1 { width: 22px; left: 12%; top: 18%; }
.star-2 { width: 14px; left: 82%; top: 26%; animation-delay: 1s; }
.star-3 { width: 18px; left: 70%; top: 72%; animation-delay: 2s; }
.star-4 { width: 12px; left: 24%; top: 78%; animation-delay: .5s; }
.heart-1 { width: 260px; left: -60px; top: 55%; opacity: .07; }
.heart-2 { width: 180px; right: -30px; top: 8%; opacity: .06; }
.hero-inner { position: relative; text-align: center; max-width: 920px; will-change: transform; }
.logo-plate {
  display: inline-block;
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) .15s both;
}
.logo-plate svg { width: min(78vw, 640px); height: auto; display: block; }
h1.tagline {
  margin-top: 2.2rem;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.4;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) .55s both;
}
.tagline em { font-style: normal; color: var(--gold); font-weight: 500; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75;
  text-decoration: none; text-align: center;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 42px; margin: .6rem auto 0;
  background: linear-gradient(var(--cream), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drip { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); } }
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.twinkle { animation: twinkle 3.5s ease-in-out infinite; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 10vw, 8rem) 1.5rem; }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--forest); margin: .6rem 0 1.4rem; letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 660px; }

.what { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.word { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: 0 20px 60px rgba(31,61,43,.08); }
.word .term { font-size: 2.6rem; font-weight: 700; color: var(--forest); letter-spacing: -.02em; line-height: 1.2; }
.word .term span { color: var(--heart); }
.word dl { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; color: var(--muted); }
.word dt { font-weight: 600; color: var(--ink); }
.word dd { margin: 0; }
.word .story { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* People */
.people { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--cream); padding: 390px 2.2rem 2.2rem; min-height: 600px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(31,61,43,.15); }
.card .art { position: absolute; inset: -30px 0 auto 0; height: 470px; width: 100%; z-index: -1;
             object-fit: cover; object-position: center 12%; will-change: transform; }
.card .art-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 300px, var(--cream) 420px); }
.card .role { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.card h3 { font-size: 1.9rem; line-height: 1.15; color: var(--forest); margin: .3rem 0 .6rem; letter-spacing: -.01em; }
.card p { color: var(--muted); }
.links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--forest); color: var(--cream); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background .3s, transform .3s;
}
.pill:hover { background: var(--leaf); transform: translateX(3px); }
.pill.ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.pill.ghost:hover { background: var(--forest); color: var(--cream); }

/* Mail note */
.mail { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
        display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.mail .at { font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; color: var(--gold); font-weight: 700; }
.mail h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--cream); margin: 0 0 .4rem; letter-spacing: 0; }
.mail p { opacity: .88; }
.mail a { color: var(--gold); }

/* Footer + legal */
footer { padding: 3rem 1.5rem 4rem; text-align: center; color: var(--muted); font-size: .9rem; }
.legal { max-width: 760px; margin: 1.6rem auto 0; text-align: left; }
.legal details { border-top: 1px solid var(--line); padding: .9rem 0; }
.legal details:last-child { border-bottom: 1px solid var(--line); }
.legal summary { cursor: pointer; font-weight: 600; color: var(--forest); list-style-position: inside; }
.legal .body { margin-top: .8rem; color: var(--muted); }
.legal .body p + p { margin-top: .7rem; }

/* Reveal on scroll: only elements below the fold get hidden (by site.js), so no-JS shows everything */
.reveal { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.pending { opacity: 0; transform: translateY(40px); }
.reveal.d1 { transition-delay: .12s; }

@media (max-width: 760px) {
  .what, .cards { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 1fr; text-align: center; }
  .card { min-height: 0; padding-top: 360px; }
  .hero .langs { top: .8rem; right: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* 404 page */
.hero .notfound-links { position: static; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* og.png source (site/og.html) */
.hero.og { min-height: 630px; height: 630px; padding: 0; }
.hero.og .logo-plate, .hero.og .tagline { animation: none; }
.hero.og .logo-plate img { display: block; width: 640px; height: auto; }
.hero.og .tagline { margin-top: 1.8rem; font-size: 2.2rem; }
