/* ==========================================================================
   SEDDIR — Base: reset, typography, shared primitives
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;               /* stack hover may push cards past the edge */
}
/* Scroll lock while menu / drawer / dialog is open */
html.is-locked, html.is-locked body { overflow: hidden; }

[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-black); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--c-black); color: var(--c-paper); font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; opacity: 1; pointer-events: auto; }

/* ---- Brand SVGs (inline, recoloured through currentColor) ---------------- */
.wordmark { width: 100%; height: auto; fill: currentColor; }
.mark     { height: 100%; width: auto; fill: currentColor; }

/* ---- Type helpers ----------------------------------------------------------- */
.display {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: var(--wdth-wide);
  text-transform: uppercase;
  letter-spacing: normal;
}
.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  line-height: .95;
  font-weight: 800;
  font-stretch: var(--wdth-wide);
  letter-spacing: -.01em;
}
.text-link {
  flex: none; white-space: nowrap;
  font-family: var(--ff-body);
  font-size: var(--fs-link);
  line-height: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 2px;
  transition: color var(--dur-fast);
}
.text-link:hover { color: var(--accent); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1.05em 1.7em;
  font-family: var(--ff-body);
  font-size: var(--fs-btn);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur) var(--ease-bounce);
}
.btn:active { transform: scale(.97); }
.btn--light   { background: var(--c-paper); color: var(--c-black); }
.btn--light:hover { background: var(--c-yellow); }
.btn--solid   { background: var(--c-navy); color: var(--c-paper); }
.btn--solid:hover { background: var(--c-red); }
.btn--outline { border-color: var(--c-navy); color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: var(--c-paper); }
.btn--block { width: 100%; }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; position: relative; }
.icon-btn svg { width: 26px; height: 26px; }

/* ---- Custom cursor (pointer devices only, enabled by cursor.js) ------------ */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
html.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor);
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: var(--c-yellow); color: var(--c-navy);
  border: 2px solid var(--c-black);
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);   /* off-screen until the first pointermove */
  transition: width var(--dur-fast) var(--ease-bounce), height var(--dur-fast) var(--ease-bounce),
              margin var(--dur-fast) var(--ease-bounce), background-color var(--dur-fast), opacity var(--dur-fast);
  will-change: transform;
}
.cursor .mark { height: 52%; }
html.has-cursor .cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--c-red); color: var(--c-yellow); }
html.has-cursor .cursor.is-down  { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
html.has-cursor .cursor.is-hidden { opacity: 0; }
html.has-cursor .cursor.is-cushion {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: var(--f); border: 11px solid var(--p); box-shadow: 0 6px 16px rgb(0 0 0 / .25);
}
.cursor.is-cushion .mark { opacity: 0; }
.cursor .mark { transition: opacity var(--dur-fast); }

/* ---- Scroll reveal (reveal.js adds .is-in) ------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-io), transform .9s var(--ease-spring);
}

main { display: block; isolation: isolate; }   /* in-page z-indexes (hovered cards…) stay below the fixed header */
