/* ==========================================================================
   KENTIE.DEV: NEO-BRUTALIST LAYOUT, BLOCKY STICKY NAV & STRUCTURED FOOTER
   ========================================================================== */

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

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: radial-gradient(
    color-mix(in oklab, var(--ink) 16%, transparent) 1.15px,
    transparent 1.15px
  );
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--tint-butter);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: top 140ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Neo-Brutalist Geometric Background Plates */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 2px solid var(--stroke);
  box-shadow: 6px 6px 0px var(--shadow-ink);
  opacity: 0.42;
}

.aurora-blob.is-one {
  width: clamp(220px, 28vw, 390px);
  height: clamp(180px, 22vw, 310px);
  top: -4%;
  left: -4%;
  background: var(--tint-sky);
  transform: rotate(-5deg);
}

.aurora-blob.is-two {
  width: clamp(200px, 25vw, 360px);
  height: clamp(180px, 22vw, 300px);
  top: 14%;
  right: -5%;
  background: var(--tint-sage);
  transform: rotate(6deg);
}

.aurora-blob.is-three {
  width: clamp(190px, 24vw, 320px);
  height: clamp(160px, 19vw, 250px);
  bottom: -4%;
  left: 24%;
  background: var(--tint-clay);
  transform: rotate(3deg);
}

@media (prefers-reduced-motion: no-preference) {
  .aurora-blob.is-one {
    animation: brutal-drift 16s ease-in-out infinite alternate;
  }

  .aurora-blob.is-two {
    animation: brutal-drift 20s ease-in-out infinite alternate-reverse;
  }
}

/* Container & Architectural Frame */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 3vw, 2.25rem);
}

.page-frame {
  max-width: 1280px;
  margin-inline: auto;
  min-height: calc(100dvh - 120px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Neo-Brutalist Sticky Navigation Bar */
.masthead {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding-inline: clamp(0.85rem, 2.5vw, 2rem);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.nav-pill-bar {
  max-width: 1180px;
  margin-inline: auto;
  height: var(--masthead-h);
  padding-inline: 1rem;
  border: var(--stroke-w-heavy) solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition:
    max-width 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
    height 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
    padding-inline 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.masthead.is-scrolled .nav-pill-bar {
  max-width: 1040px;
  height: 54px;
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes compact-nav {
      to {
        max-width: 1040px;
        box-shadow: var(--shadow-hover);
      }
    }

    .nav-pill-bar {
      animation: compact-nav linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 140px;
    }
  }
}

.masthead-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 2px solid var(--stroke);
  background: var(--accent-warm);
  flex-shrink: 0;
}

.mono-clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  padding: 0.4rem 0.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.nav-link sup {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-subtle);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--stroke);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--tint-butter);
  border-color: var(--stroke);
  box-shadow: 2px 2px 0px var(--shadow-ink);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* Bilingual Language Switcher (NL / EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 2px 2px 0px var(--shadow-ink);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 28px;
  min-inline-size: 32px;
  padding: 0.22rem 0.5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

@media (pointer: coarse) {
  .lang-btn {
    min-block-size: 36px;
    min-inline-size: 38px;
  }
}

/* Mobile Navigation Button */
.menu-btn {
  display: none;
  height: 36px;
  padding-inline: 0.85rem;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--tint-butter);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-press);
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
  }
}

/* Section Rhythm & Neo-Brutalist Section Titles (Zero Section Dividers) */
.band {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}

.band-hero {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.25rem, 4.5vw, 3.5rem);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.72rem;
  border: 2px solid var(--stroke);
  border-radius: 4px;
  background: var(--tint-butter);
  color: var(--ink);
  box-shadow: 3px 3px 0px var(--shadow-ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.sec-title {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sec-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--tint-sky);
  color: var(--ink);
  padding: 0 0.2em;
  border: 2px solid var(--stroke);
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sec-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Neo-Brutalist Island Footer */
.footer-wrap {
  max-width: 1240px;
  margin: 1rem auto 2.5rem;
  padding-inline: clamp(1.15rem, 3vw, 2.25rem);
}

.site-footer {
  border: var(--stroke-w-heavy) solid var(--stroke);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 7px 7px 0px var(--shadow-ink);
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
}

.footer-lead {
  grid-column: span 6;
}

.footer-title {
  margin: 0 0 1rem;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 30ch;
}

.footer-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.footer-cols {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.footer-link:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .footer-lead,
  .footer-cols {
    grid-column: 1 / -1;
  }
}
