/*
Theme Name: Zeb McKinnon BJJ
Theme URI: https://zebmckinnonbjj.com/
Author: Zeb McKinnon BJJ
Author URI: https://zebmckinnonbjj.com/
Description: A focused, accessible WordPress theme for Zeb McKinnon BJJ in Reykjavik.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: zeb-mckinnon-bjj
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --zmbjj-ink: #101411;
  --zmbjj-ink-soft: #1b211d;
  --zmbjj-paper: #f4f1e8;
  --zmbjj-paper-deep: #e6e1d5;
  --zmbjj-white: #fffef9;
  --zmbjj-accent: #c9f84d;
  --zmbjj-accent-dark: #526a12;
  --zmbjj-ice: #b9d9d2;
  --zmbjj-muted: #5e665f;
  --zmbjj-line: rgba(16, 20, 17, 0.16);
  --zmbjj-line-dark: rgba(255, 254, 249, 0.18);
  --zmbjj-shadow: 0 22px 60px rgba(16, 20, 17, 0.13);
  --zmbjj-radius: 1.4rem;
  --zmbjj-radius-small: 0.8rem;
  --zmbjj-content: 76rem;
  --zmbjj-narrow: 48rem;
  --zmbjj-gutter: clamp(1.1rem, 3vw, 2.6rem);
  --zmbjj-display: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --zmbjj-body: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--zmbjj-paper);
  color: var(--zmbjj-ink);
  font-family: var(--zmbjj-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

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

:focus-visible {
  outline: 3px solid var(--zmbjj-accent-dark);
  outline-offset: 4px;
}

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

.screen-reader-text,
.honeypot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.8rem;
  left: 0.8rem;
  width: auto !important;
  height: auto !important;
  padding: 0.8rem 1rem !important;
  margin: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  background: var(--zmbjj-white);
  color: var(--zmbjj-ink);
  border-radius: 0.35rem;
  font-weight: 800;
}

.site-shell {
  width: min(100%, calc(var(--zmbjj-content) + (var(--zmbjj-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--zmbjj-gutter);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(244, 241, 232, 0.92);
  border-bottom: 1px solid var(--zmbjj-line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  background: var(--zmbjj-ink);
  color: var(--zmbjj-accent);
  border-radius: 0.45rem;
  font-family: var(--zmbjj-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: rotate(-3deg);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-text span {
  margin-top: 0.28rem;
  color: var(--zmbjj-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0.3rem;
}

.primary-navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  background: var(--zmbjj-white);
}

.header-cta {
  margin-left: 0.45rem;
}

.menu-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  margin-left: auto;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid var(--zmbjj-line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle-lines::before {
  transform: translateY(-0.35rem);
}

.menu-toggle-lines::after {
  transform: translateY(0.23rem);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-2px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.76rem 1.05rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--zmbjj-accent);
  color: var(--zmbjj-ink);
  border: 1px solid var(--zmbjj-accent);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: #d7ff73;
  border-color: #d7ff73;
  text-decoration: none;
  transform: translateY(-2px);
}

.button-dark {
  background: var(--zmbjj-ink);
  color: var(--zmbjj-white);
  border-color: var(--zmbjj-ink);
}

.button-dark:hover {
  background: #2a302c;
  border-color: #2a302c;
}

.button-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.button-outline:hover {
  background: var(--zmbjj-white);
  color: var(--zmbjj-ink);
  border-color: var(--zmbjj-white);
}

.button-arrow {
  font-size: 1.15em;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--zmbjj-muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.45rem;
  height: 0.35rem;
  background: var(--zmbjj-accent);
  border-radius: 99px;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.2rem, 8vw, 7.6rem) clamp(4rem, 8vw, 7rem);
}

.hero::before {
  position: absolute;
  inset: auto -10rem -15rem auto;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(185, 217, 210, 0.62), transparent 66%);
  pointer-events: none;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(20rem, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy h1 {
  max-width: 8.6ch;
  margin: 1rem 0 1.25rem;
  font-family: var(--zmbjj-display);
  font-size: clamp(4rem, 9vw, 8.2rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--zmbjj-ink);
}

.hero-lead {
  max-width: 38rem;
  margin: 0;
  color: #374039;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  display: flex;
  max-width: 38rem;
  margin: 1.4rem 0 0;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--zmbjj-muted);
  font-size: 0.82rem;
}

.hero-note::before {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.38rem;
  background: var(--zmbjj-accent-dark);
  border-radius: 50%;
  content: "";
}

.hero-stage {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    var(--zmbjj-ink);
  background-size: 3.4rem 3.4rem;
  color: var(--zmbjj-white);
  border-radius: var(--zmbjj-radius);
  box-shadow: var(--zmbjj-shadow);
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  z-index: -1;
  inset: 8% auto auto 9%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 248, 77, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(201, 248, 77, 0.04), 0 0 0 6rem rgba(201, 248, 77, 0.025);
  content: "";
}

.stage-code {
  position: absolute;
  top: 1.7rem;
  left: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-code::before {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--zmbjj-accent);
  border-radius: 50%;
  content: "";
}

.stage-number {
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  color: rgba(255, 254, 249, 0.09);
  font-family: var(--zmbjj-display);
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 1;
}

.stage-statement {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 10%;
  max-width: 7ch;
  margin: 0;
  font-family: var(--zmbjj-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.93;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.stage-statement span {
  color: var(--zmbjj-accent);
}

.stage-label {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(15rem, calc(100% - 2.4rem));
  padding: 1rem 1.1rem;
  background: var(--zmbjj-white);
  color: var(--zmbjj-ink);
  border-radius: 0.8rem;
}

.stage-label small,
.stage-label strong {
  display: block;
}

.stage-label small {
  color: var(--zmbjj-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-label strong {
  margin-top: 0.25rem;
  font-size: 0.93rem;
}

.fact-bar {
  position: relative;
  z-index: 2;
  margin-top: clamp(-1.8rem, -3vw, -3rem);
}

.fact-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--zmbjj-white);
  border: 1px solid var(--zmbjj-line);
  border-radius: var(--zmbjj-radius-small);
  box-shadow: 0 12px 40px rgba(16, 20, 17, 0.08);
}

.fact-item {
  min-width: 0;
  padding: 1.2rem 1.4rem;
}

.fact-item + .fact-item {
  border-left: 1px solid var(--zmbjj-line);
}

.fact-item span,
.fact-item strong {
  display: block;
}

.fact-item span {
  color: var(--zmbjj-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-item strong {
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section-tight {
  padding-block: clamp(3.8rem, 7vw, 6rem);
}

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

.section-ice {
  background: var(--zmbjj-ice);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.section-heading h2,
.inner-hero h1,
.contact-intro h1,
.not-found h1 {
  margin: 0;
  font-family: var(--zmbjj-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-heading-copy > p:first-child {
  margin-top: 0;
}

.section-heading-copy p {
  max-width: 41rem;
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-dark .eyebrow,
.section-dark .section-heading-copy p {
  color: rgba(255, 254, 249, 0.74);
}

.principles-grid {
  display: grid;
  margin-top: clamp(2.8rem, 6vw, 5rem);
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle-card {
  min-height: 22rem;
  padding: 1.6rem;
  background: var(--zmbjj-white);
  border: 1px solid var(--zmbjj-line);
  border-radius: var(--zmbjj-radius-small);
}

.principle-card:nth-child(2) {
  background: var(--zmbjj-accent);
}

.principle-card:nth-child(3) {
  background: var(--zmbjj-ink-soft);
  color: var(--zmbjj-white);
  border-color: var(--zmbjj-line-dark);
}

.principle-number {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 850;
}

.principle-card h3 {
  margin: 5.6rem 0 0.8rem;
  font-family: var(--zmbjj-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.principle-card p {
  margin: 0;
  color: inherit;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: 8rem;
}

.split-sticky h2 {
  max-width: 9ch;
  margin: 1rem 0 0;
  font-family: var(--zmbjj-display);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: uppercase;
}

.content-stack {
  display: grid;
  gap: 1.1rem;
}

.info-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 254, 249, 0.5);
  border: 1px solid rgba(16, 20, 17, 0.18);
  border-radius: var(--zmbjj-radius-small);
}

.info-panel h3 {
  margin: 0 0 0.55rem;
  font-family: var(--zmbjj-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

.info-panel p:last-child,
.info-panel ul:last-child {
  margin-bottom: 0;
}

.confirm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirm-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid rgba(16, 20, 17, 0.15);
}

.confirm-list li:last-child {
  border-bottom: 0;
}

.confirm-list li::before {
  position: absolute;
  top: 1.38rem;
  left: 0.2rem;
  width: 0.85rem;
  height: 0.42rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.visit-card {
  display: grid;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  background: var(--zmbjj-ink);
  color: var(--zmbjj-white);
  border-radius: var(--zmbjj-radius);
}

.visit-card h2 {
  max-width: 12ch;
  margin: 0.7rem 0 1rem;
  font-family: var(--zmbjj-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.visit-card p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(255, 254, 249, 0.74);
}

.visit-card address {
  font-style: normal;
}

.contact-band {
  overflow: hidden;
  background: var(--zmbjj-accent);
}

.contact-band-inner {
  display: grid;
  min-height: 21rem;
  padding-block: clamp(2.8rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  align-items: center;
  gap: 3rem;
}

.contact-band h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--zmbjj-display);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.87;
  text-transform: uppercase;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
}

.contact-links a {
  display: flex;
  min-height: 4.1rem;
  padding: 1rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--zmbjj-white);
  border: 1px solid var(--zmbjj-ink);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-links a:hover {
  background: var(--zmbjj-ink);
  color: var(--zmbjj-white);
}

.inner-hero,
.contact-intro {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem);
}

.inner-hero .eyebrow,
.contact-intro .eyebrow {
  margin-bottom: 1.3rem;
}

.inner-hero h1,
.contact-intro h1 {
  max-width: 12ch;
}

.inner-hero p,
.contact-intro > p {
  max-width: 43rem;
  margin: 1.3rem 0 0;
  color: var(--zmbjj-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contact-layout {
  display: grid;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.contact-card {
  align-self: start;
  padding: 1.5rem;
  background: var(--zmbjj-ink);
  color: var(--zmbjj-white);
  border-radius: var(--zmbjj-radius-small);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-family: var(--zmbjj-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.contact-card address {
  color: rgba(255, 254, 249, 0.76);
  font-style: normal;
}

.contact-card a {
  color: var(--zmbjj-accent);
  overflow-wrap: anywhere;
}

.contact-card hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--zmbjj-line-dark);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.enquiry-form {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--zmbjj-white);
  border: 1px solid var(--zmbjj-line);
  border-radius: var(--zmbjj-radius-small);
}

.enquiry-form h2 {
  margin: 0 0 0.4rem;
  font-family: var(--zmbjj-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.form-intro {
  margin: 0 0 1.7rem;
  color: var(--zmbjj-muted);
}

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

.field {
  margin-bottom: 1rem;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.field label span {
  color: var(--zmbjj-muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--zmbjj-paper);
  border: 1px solid #a8afa8;
  border-radius: 0.45rem;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--zmbjj-white);
  border-color: var(--zmbjj-ink);
  outline: 3px solid rgba(140, 171, 37, 0.28);
  outline-offset: 1px;
}

.consent-field {
  display: grid;
  margin: 0.5rem 0 1.1rem;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.consent-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--zmbjj-ink);
}

.form-helper {
  color: var(--zmbjj-muted);
  font-size: 0.78rem;
}

.form-status {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}

.form-status-success {
  background: #e5f4cf;
  border: 1px solid #76943d;
}

.form-status-error {
  background: #f8dfd9;
  border: 1px solid #a85646;
}

.legal-layout {
  display: grid;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 8rem;
  padding: 1.1rem;
  background: var(--zmbjj-white);
  border: 1px solid var(--zmbjj-line);
  border-radius: var(--zmbjj-radius-small);
}

.legal-nav strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--zmbjj-muted);
  font-size: 0.84rem;
}

.legal-content {
  width: min(100%, var(--zmbjj-narrow));
}

.legal-content h2 {
  margin: 2.6rem 0 0.7rem;
  font-family: var(--zmbjj-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: #353d37;
}

.legal-content a {
  font-weight: 700;
}

.page-content {
  width: min(100%, var(--zmbjj-narrow));
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.page-content > *:first-child {
  margin-top: 0;
}

.not-found {
  display: grid;
  min-height: 64vh;
  padding-block: 5rem;
  place-items: center;
  text-align: center;
}

.not-found .error-code {
  display: block;
  color: var(--zmbjj-accent-dark);
  font-family: var(--zmbjj-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.not-found h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.not-found p {
  max-width: 34rem;
  margin: 1rem auto 1.5rem;
  color: var(--zmbjj-muted);
}

.site-footer {
  background: var(--zmbjj-ink);
  color: var(--zmbjj-white);
}

.footer-main {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(10rem, 0.4fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-brand .brand {
  color: var(--zmbjj-white);
}

.footer-brand .brand-mark {
  background: var(--zmbjj-accent);
  color: var(--zmbjj-ink);
}

.footer-brand .brand-text span {
  color: rgba(255, 254, 249, 0.55);
}

.footer-brand p {
  max-width: 28rem;
  color: rgba(255, 254, 249, 0.62);
}

.footer-column h2 {
  margin: 0 0 0.9rem;
  color: rgba(255, 254, 249, 0.5);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 0.45rem;
}

.footer-column a {
  color: var(--zmbjj-white);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  padding-block: 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--zmbjj-line-dark);
  color: rgba(255, 254, 249, 0.52);
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 0.9rem var(--zmbjj-gutter) 1.2rem;
    align-items: stretch;
    background: var(--zmbjj-paper);
    border-bottom: 1px solid var(--zmbjj-line);
    box-shadow: 0 18px 30px rgba(16, 20, 17, 0.08);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
  }

  .primary-navigation a {
    width: 100%;
    min-height: 3.1rem;
    padding-inline: 0.75rem;
    border-radius: 0.45rem;
  }

  .header-cta {
    margin: 0.6rem 0 0;
  }

  .header-cta .button {
    width: 100%;
  }

  .hero-grid,
  .section-heading,
  .split-layout,
  .contact-band-inner,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 29rem;
  }

  .section-heading {
    gap: 1.7rem;
  }

  .split-sticky,
  .legal-nav {
    position: static;
  }

  .split-sticky h2 {
    max-width: 13ch;
  }

  .contact-band-inner {
    gap: 2rem;
  }

  .legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
  }

  .legal-nav strong {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 5.7rem;
  }

  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    min-height: 4.7rem;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 19vw, 5.6rem);
  }

  .hero-copy h1 span {
    -webkit-text-stroke-width: 1px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 24rem;
  }

  .stage-statement {
    font-size: 2.8rem;
  }

  .stage-number {
    font-size: 13rem;
  }

  .fact-bar {
    margin-top: -1rem;
  }

  .fact-bar-inner,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .fact-item + .fact-item {
    border-top: 1px solid var(--zmbjj-line);
    border-left: 0;
  }

  .principle-card {
    min-height: 17rem;
  }

  .principle-card h3 {
    margin-top: 3.4rem;
  }

  .visit-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .visit-card .button {
    width: 100%;
  }

  .field-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-stage,
  .contact-band,
  .button,
  .legal-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a {
    text-decoration: underline;
  }

  .inner-hero,
  .contact-intro,
  .section {
    padding-block: 1.5rem;
  }
}
