/* ══════════════════════════════════════════════
   BASE v9 — Paper field · Type first
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100%;
}

body.is-loading {
  overflow: hidden;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  html, body, a, button, summary, label, [data-pin] { cursor: none; }
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.52;
  contain: strict;
}

nav, main, footer, header { position: relative; z-index: 1; }
.loader { z-index: 9000; }
.cursor { z-index: 9999; }

.container {
  width: min(100% - (var(--page-x) * 2), var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-9);
  position: relative;
  overflow: visible;
}

.section--center .container,
.section-head {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dark-section {
  background: var(--dark-bg);
  color: var(--white);
}

.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: var(--sp-5);
}

.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-label--light { color: rgba(250, 249, 246, 0.42); }

.giant-h2 {
  font-size: var(--fs-display);
  font-weight: 450;
  line-height: var(--lh-tight);
  letter-spacing: -0.038em;
  color: var(--ink);
  text-wrap: balance;
}

.giant-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-50);
}

.giant-h2--light { color: var(--white); }
.giant-h2--light em { color: rgba(250, 249, 246, 0.5); }

.kw-fe, .kw-be, .kw-seo {
  font-style: italic;
  font-weight: 500;
}

/* ── Internal phrase links: orange, italic, thin, no underline ─── */
a.ilink {
  color: var(--orange-deep);
  font-style: italic;
  font-weight: 300;
  text-decoration: none !important;
  border: 0;
  background: none;
  transition: opacity 0.2s;
}
a.ilink:hover,
a.ilink:focus-visible {
  opacity: 0.7;
  text-decoration: none !important;
}
.dark-section a.ilink { color: #ff864d; }

/* ── Hoverable/clickable cards ───────────────────────────────────── */
.card-hover {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.kw-fe { color: var(--orange-deep); }
.kw-be { color: var(--orange); }
.kw-seo { color: var(--orange-light); }

.dark-section .kw-fe { color: #ff6a33; }
.dark-section .kw-be { color: #ff864d; }
.dark-section .kw-seo { color: #ffc07a; }

.section-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: var(--sp-5);
  width: 100%;
}

.section-tag--light { color: rgba(250, 249, 246, 0.38); }

.tag-line {
  display: block;
  flex: 0 1 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-desc {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--ink-50);
  line-height: 1.65;
  max-width: 44ch;
  margin-top: var(--sp-4);
  text-wrap: pretty;
}

.section-desc--light { color: rgba(250, 249, 246, 0.48); }
.section-desc--center { margin-inline: 0; text-align: left; }

.inline-link {
  color: var(--ink);
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 1px;
  font-weight: 500;
  transition: border-color var(--dur-sm);
}
.inline-link:hover { border-color: var(--ink); }

.dark-section .inline-link {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.dark-section .inline-link:hover { border-bottom-color: var(--white); }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.dark-section :focus-visible { outline-color: rgba(255, 255, 255, 0.7); }

.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;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 9998;
  pointer-events: none;
}

.scroll-prog__fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.08s linear;
}
