/* ==========================================================================
   skalm.css — SKALM GmbH, handcrafted 2026 (replaces Bootstrap/animate/flexslider)
   Style DNA: Work Sans thin · wide-tracked uppercase · hero photo · calm rhythm
   ========================================================================== */

/* ---- Fonts (self-hosted, variable 100–900) ---- */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/work-sans-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: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/work-sans-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;
}

/* ---- Design tokens ---- */
:root {
  --ink: #353535;
  --body: #5f6870;          /* was #8c9398 — darkened for AA contrast */
  --paper: #ffffff;
  --mist: #f3f5f8;
  --night: #242830;
  --night-2: #1c2026;
  --bronze: #b7896d;        /* historic active-link color, promoted to accent */
  --teatrix: #d5007e;
  --shadow: 0 3px 0 0 #f0f2f4;
  --measure: 70ch;
  --pad-section: clamp(64px, 10vw, 100px);
}

/* ---- Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { border: 0; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color 0.3s; }
a:hover, a:focus { color: #000; }
a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: var(--pad-section) 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--night); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Typography ---- */
p { color: var(--body); font-size: 1.15rem; line-height: 1.75; }
h2.arrow {
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 4px;
  background: url('../img/h1-bg.png') no-repeat center bottom;
  padding-bottom: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* ---- Hero ---- */
.hero {
  background-image:
    linear-gradient(rgba(20, 24, 30, 0.42), rgba(20, 24, 30, 0.12) 55%),
    image-set(url('../img/hero-01.webp') type('image/webp'), url('../img/hero-01.jpg') type('image/jpeg'));
  background-image:
    linear-gradient(rgba(20, 24, 30, 0.42), rgba(20, 24, 30, 0.12) 55%),
    -webkit-image-set(url('../img/hero-01.webp') 1x, url('../img/hero-01.jpg') 1x);
  background-color: #6c7787;
  background-size: cover;
  background-position: center;
  padding: clamp(90px, 16vh, 170px) 0 clamp(200px, 28vh, 300px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: clamp(2px, 1vw, 8px);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(10, 12, 16, 0.75), 2px 2px 8px rgba(10, 12, 16, 0.6);
  margin: clamp(30px, 6vh, 60px) 0 clamp(40px, 8vh, 70px);
}
.main-logo { width: 200px; filter: drop-shadow(2px 2px 3px rgba(20, 20, 20, 0.35)); }

.lang-navigation { position: fixed; top: 0; right: 0; display: flex; font-size: 1rem; font-weight: 500; z-index: 1000; }
.lang-navigation a { color: #fff; background: rgba(0, 0, 0, 0.7); padding: 4px 10px 3px 8px; }
.lang-navigation a[aria-current="true"], .lang-navigation a.active { color: var(--bronze); }

.footnote { color: #fff; background: #000; padding: 5px 10px; font-size: 0.85rem; }
.footnote a { color: #fff; text-decoration: underline; }
.footnote a:hover, .footnote a:focus { color: #bbb; text-decoration: none; }

/* ---- Legal page ---- */
.hero--compact { padding: clamp(60px, 10vh, 90px) 0; }
.legal .container { max-width: 860px; text-align: left; }
.legal h1.arrow {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--ink);
  background: url('../img/h1-bg.png') no-repeat center bottom;
  padding-bottom: 30px;
  font-weight: 700;
  margin: 0 0 40px;
}
.legal h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: 1px; margin: 2.2em 0 0.6em; }
.legal h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0.5px; margin: 1.8em 0 0.5em; }
.legal p { font-size: 1.02rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Saga / intro ---- */
.intro { background: var(--mist); }
.intro .illustration img { width: 100px; height: 100px; margin-bottom: 30px; }
.intro p { max-width: var(--measure); margin: 50px auto 0; }
.intro strong { color: var(--ink); }

/* ---- Brand cards ---- */
.features-wrapper {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 40px 28px 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card:hover, .card:focus-within { transform: translateY(-10px); box-shadow: 0 3px 0 0 var(--night); }
.features { background: var(--paper); }
.features .card { background: var(--mist); box-shadow: 0 3px 0 0 #e6e9ee; }
.features .card:hover, .features .card:focus-within { box-shadow: 0 3px 0 0 var(--night); }
.card .logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card .logo img { width: 200px; transition: transform 0.25s; }
.card:hover .logo img, .card .logo a:focus img { transform: scale(1.08); }
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0.6em 0 0.4em; }
/* brand-card titles: top-aligned, fixed two-line height, so all body texts start at the same pixel */
.features .card h3 { line-height: 1.35; height: 2.7em; display: flex; align-items: flex-start; justify-content: center; }
.card p { font-size: 1.02rem; margin: 0.6em 0 0; }
.card-btn {
  display: inline-block;
  margin-top: auto;
  padding: 9px 22px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.card-btn:hover, .card-btn:focus { background: var(--ink); color: var(--paper); }
.features .card p { margin-bottom: 26px; }

/* ---- WILDSPACE lead band ---- */
.lead-band { background: var(--night); padding: clamp(48px, 8vw, 70px) 0; }
.lead-band p {
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 28px;
}
.lead-btn {
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  padding: 16px 36px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}
.lead-btn:hover, .lead-btn:focus { background: #fff; color: var(--night); }

/* ---- Contact ---- */
.dark-bg { background: var(--mist); }
.contact-wrap { position: relative; }
.up-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  font-size: 18px; line-height: 50px; text-align: center;
  position: absolute; top: -26px; left: 0; right: 0; margin: 0 auto;
  transition: background 0.3s;
}
.up-btn:hover, .up-btn:focus { background: #000; color: #fff; }
.up-btn svg { vertical-align: middle; }
.contact-details {
  margin: 70px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.contact-details .card { min-height: 235px; justify-content: flex-start; }
.contact-details h2 { font-size: 20px; margin: 10px 0; }
.contact-details h2 .icon { display: block; margin: 0 auto 12px; color: var(--ink); }
.contact-details h2 span.label {
  display: block; color: #000; text-transform: uppercase;
  letter-spacing: 1px; font-size: 14px; font-weight: 700; margin-top: 8px;
}
.contact-details p { font-size: 1rem; line-height: 1.7; margin: 0.5em 0; }

/* ---- Footer ---- */
footer { background: var(--night); padding: 40px 0 30px; }
footer a { color: #a1a9b0; }
footer a:hover, footer a:focus { color: #fff; }
ul.legals { list-style: none; color: #fff; margin: 0; padding: 0; text-align: center; line-height: 2; }
ul.legals li { display: inline-block; }
ul.legals li::after { content: " | "; color: #5a626c; }
ul.legals li:last-child::after { content: ""; }

/* ---- Scroll reveal (replaces waypoints + animate.css) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d2 { transition-delay: 0.15s; }
.reveal.d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* hero entrance */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .tagline { animation: fadeInDown 0.9s ease both; }
.hero .main-logo { animation: fadeInUp 0.9s ease 0.35s both; }

/* ---- Dark scheme (quiet, follows the visitor) ---- */
/* Dark mode deactivated on request (2026-07-25) — remove this comment wrapper to re-enable.
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #d7dade;
    --body: #9aa2ab;
    --paper: #14171c;
    --mist: #1b1f26;
    --night: #0e1115;
    --shadow: 0 3px 0 0 #0c0e12;
  }
  .features .card { background: var(--mist); box-shadow: 0 3px 0 0 #10131a; }
  .features .card:hover, .features .card:focus-within,
  .card:hover, .card:focus-within { box-shadow: 0 3px 0 0 var(--bronze); }
  h2.arrow { filter: invert(0.85); color: #333; }
  .contact-details h2 span.label { color: var(--ink); }
  a { color: var(--ink); }
  a:hover, a:focus { color: #fff; }
  .card .logo img { filter: brightness(0.95); }
  .intro .illustration img { filter: invert(0.85); }
}
*/

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-wrapper, .contact-details { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .features-wrapper { margin-top: 50px; }
  .contact-details { margin-top: 50px; }
  .contact-details .card { min-height: 0; }
}
