/* KL Enterprises Group — site styles */
:root {
  --ink: #000000;        /* black: text and dark bands */
  --ink-2: #1c1c1c;      /* panels on black */
  --orange: #ffffff;     /* accent slot: white on black */
  --orange-dark: #000000;
  --sky: #f1f1ef;        /* light grey band */
  --line: #d6d6d3;       /* dividers */
  --muted: #55554f;      /* secondary text */
  --soft: #c9c9c5;       /* secondary text on black */
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7a7a7a;
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; max-width: 64ch; }
p + p { margin-top: 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  background: #000;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand img { width: 46px; height: 46px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 11px;
  border-radius: 6px;
}
.nav a:hover { background: #222; }
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.nav a.nav-cta {
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: none;
  margin-left: 6px;
  padding: 9px 16px;
}
.nav a.nav-cta:hover { background: #dcdcd8; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #dcdcd8; }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero (home) */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero h1 { max-width: 17ch; }
.hero .lede {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--soft);
  max-width: 56ch;
}

/* The introduction diagram: the one signature element */
.intro-diagram {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.node {
  background: var(--ink-2);
  padding: 24px 22px 28px;
  border-radius: 14px 14px 0 0;
  min-width: 0;
}
.node.kle { background: #fff; color: #000; }
.node .who {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}
.node p { margin-top: 8px; font-size: 0.97rem; color: var(--soft); }
.node.kle p { color: #3a3a36; }
.link {
  width: 72px;
  align-self: center;
  height: 3px;
  background: #fff;
  transform-origin: left center;
  animation: draw 0.9s ease-out 0.25s both;
}
.link.second { animation-delay: 0.9s; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: var(--white); padding: 64px 0 60px; }
.page-hero .kicker { color: var(--soft); font-weight: 600; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero .lede { margin-top: 20px; font-size: 1.15rem; color: var(--soft); max-width: 58ch; }

/* Sections */
.section { padding: 80px 0; }
.section.sky { background: var(--sky); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark p { color: var(--soft); }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.section.dark .section-head p { color: var(--soft); }

/* Plain-terms rows */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.row p { color: var(--muted); }
.section.dark .rows { border-top-color: #fff; }
.section.dark .row { border-bottom-color: rgba(255,255,255,0.18); }

/* Steps: a real sequence, so numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: 14px 14px 14px 0;
  padding: 24px 22px 26px;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #000;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }

/* Two sides */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.side {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 30px 28px 32px;
  min-width: 0;
}
.side.filled { background: var(--ink); color: var(--white); }
.side.filled p, .side.filled li { color: var(--soft); }
.side h3 { font-size: 1.5rem; }
.side p { margin-top: 12px; color: var(--muted); }
.side ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.side li + li { margin-top: 6px; }
.side .btn { margin-top: 24px; }

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.97rem;
}
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.split h3 { margin-bottom: 16px; }

/* Terms table */
.terms { width: 100%; border-collapse: collapse; }
.terms th, .terms td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.terms th { width: 30%; padding-right: 20px; font-family: var(--display); font-weight: 600; }
.terms td { color: var(--muted); }
.terms tr:first-child th, .terms tr:first-child td { border-top: 2px solid var(--ink); }

/* Pull statement */
.statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.statement-band { border-left: 6px solid currentColor; padding-left: 24px; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.person { background: var(--white); border-radius: 16px 16px 16px 0; padding: 30px 28px; min-width: 0; }
.person .role { color: var(--muted); font-weight: 700; margin-top: 4px; }
.person p + p { margin-top: 12px; }
.person .bio { margin-top: 16px; color: var(--muted); }

/* Timeline (heritage) */
.timeline { border-left: 3px solid #000; padding-left: 26px; display: grid; gap: 30px; }
.timeline .year { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #000; line-height: 1; }
.timeline p { margin-top: 8px; color: var(--muted); }

/* CTA band */
.cta-band { background: #fff; color: #000; padding: 64px 0; border-top: 6px solid #000; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin-top: 10px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; color: var(--muted); font-size: 0.92rem; }
.contact-list a, .contact-list .value { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
form.enquiry { background: var(--sky); border-radius: 16px; padding: 30px 28px; display: grid; gap: 16px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9d9d98;
  border-radius: 8px;
  padding: 12px 13px;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.92rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--soft); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.6fr; gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer .motto { margin-top: 14px; color: #fff; font-weight: 600; }
.site-footer .blurb { margin-top: 10px; font-size: 0.95rem; max-width: 38ch; }
.site-footer h4 { font-family: var(--display); color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 7px; }
.site-footer a { color: var(--soft); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.legal { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #000;
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .intro-diagram { grid-template-columns: 1fr; gap: 0; }
  .node { border-radius: 14px; }
  .link { width: 3px; height: 34px; justify-self: center; transform-origin: center top; background: #fff; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .hero { padding-bottom: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sides, .split, .people, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .terms th, .terms td { display: block; width: 100%; }
  .terms th { border-bottom: 0; padding-bottom: 2px; }
  .terms td { padding-top: 2px; }
  .terms tr:first-child td { border-top: 0; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link { animation: none; }
}

/* Hero: the logo sits beside the headline; threads weave into it, it lights up once more, then rests */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-weave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hw-threads path { fill: none; stroke: #fff; stroke-opacity: 0.3; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-logo { overflow: visible; }
.hero-logo .ld-ring { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-logo .ld-line { fill: none; stroke: #fff; stroke-width: 0.9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-logo .ld-fill { fill: #fff; opacity: 0; }
.hero-logo-m { display: none; }

/* While the opening sequence is still playing, the hero logo waits out of sight */
html:not(.no-intro):not(.intro-done) .hero-logo { opacity: 0; }

/* Arriving from the opening sequence: the logo has just glided into place, already complete.
   Threads weave into it, it lights up again, dims, and nothing moves after that. */
html.intro-done .hw-threads path { animation: thread 2.2s ease-out forwards; }
html.intro-done .hw-threads path:nth-child(2n) { animation-delay: 0.25s; }
html.intro-done .hw-threads path:nth-child(3n) { animation-delay: 0.5s; }
html.intro-done .hero-logo .ld-ring, html.intro-done .hero-logo .ld-line { stroke-dashoffset: 0; }
html.intro-done .hero-logo .ld-fill { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,0.3)); animation: glow-pulse 2s ease 2.3s both; }
@keyframes glow-pulse {
  0%   { filter: drop-shadow(0 0 6px rgba(255,255,255,0.3)); }
  45%  { filter: drop-shadow(0 0 24px rgba(255,255,255,1)); }
  100% { filter: drop-shadow(0 0 6px rgba(255,255,255,0.3)); }
}

/* Later page loads in the same visit (no opening sequence): threads weave in, the logo draws itself, lights up, rests */
html.no-intro .hw-threads path { animation: thread 2.2s ease-out forwards; }
html.no-intro .hw-threads path:nth-child(2n) { animation-delay: 0.25s; }
html.no-intro .hw-threads path:nth-child(3n) { animation-delay: 0.5s; }
html.no-intro .hero-logo .ld-ring { animation: thread 1s ease 1.2s forwards; }
html.no-intro .hero-logo .ld-line { animation: thread 1.1s ease forwards; animation-delay: calc(1.5s + var(--i) * 30ms); }
html.no-intro .hero-logo .ld-fill { animation: light-up 1.3s ease 3.2s forwards; }

/* Moving strip of sectors */
.ticker { background: #fff; color: #000; border-bottom: 2px solid #000; overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; padding: 0 22px; }
.ticker span.dot { padding: 0; color: #9d9d98; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Opening sequence (home page only): threads weave in, the logo draws itself line by line, then lights up */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
}
#intro .threads { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .threads path { fill: none; stroke: #fff; stroke-linecap: round; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: thread 1.5s cubic-bezier(.6,.1,.2,1) forwards, thread-fade 0.8s ease 1.9s forwards; }
#intro .threads path:nth-of-type(2n) { animation-delay: 0.12s, 1.9s; }
#intro .threads path:nth-of-type(3n) { animation-delay: 0.24s, 1.9s; }
.logo-draw { position: relative; width: min(66vw, 360px); height: auto; overflow: visible; }
.logo-draw .ld-ring { fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: thread 1s ease 1.1s forwards; }
.logo-draw .ld-line { fill: none; stroke: #fff; stroke-width: 0.9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: thread 1.1s ease forwards; animation-delay: calc(1.3s + var(--i) * 32ms); }
.logo-draw .ld-fill { fill: #fff; opacity: 0; animation: light-up 1.3s ease 3.1s forwards; }
#intro button {
  position: absolute; bottom: max(24px, env(safe-area-inset-bottom, 0px)); right: 24px;
  background: none; border: 1px solid #666; color: #c9c9c5; border-radius: 6px;
  font: inherit; font-size: 0.9rem; padding: 8px 14px; cursor: pointer;
}
@keyframes thread { to { stroke-dashoffset: 0; } }
@keyframes thread-fade { to { opacity: 0; } }
@keyframes light-up {
  0%   { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  55%  { opacity: 1; filter: drop-shadow(0 0 22px rgba(255,255,255,0.95)); }
  100% { opacity: 1; filter: drop-shadow(0 0 7px rgba(255,255,255,0.35)); }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
html.no-intro #intro { display: none; }

/* Page change: a black curtain with the logo lifts away on arrival and drops in on leaving */
.page-veil {
  position: fixed; inset: 0; z-index: 90;
  background: #000;
  display: grid; place-items: center;
  border-bottom: 2px solid #fff;
  transform: translateY(-101%);
  animation: veil-lift 0.6s cubic-bezier(.7,0,.2,1) both;
  pointer-events: none;
}
.page-veil img { width: 96px; height: 96px; }
html.leaving .page-veil { animation: veil-drop 0.42s cubic-bezier(.7,0,.2,1) both; }
@keyframes veil-lift { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes veil-drop { from { transform: translateY(101%); } to { transform: translateY(0); } }

/* Line illustrations */
.figure { background: #000; color: #fff; border-radius: 16px 16px 16px 0; padding: 18px; }
.figure.light { background: transparent; color: #000; padding: 0; margin-top: 28px; max-width: 420px; }
.art { display: block; width: 100%; height: auto; }
.art * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.art .lit { fill: currentColor; stroke: none; }
.art .move { stroke-width: 2.4; stroke-dasharray: 5 6; }
.section.dark .figure { border: 1px solid #333; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pic-card { display: block; text-decoration: none; color: inherit; min-width: 0; }
.pic-card h3 { margin-top: 18px; }
.pic-card p { margin-top: 8px; color: var(--muted); }
.pic-card p.small { font-size: 0.93rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
a.pic-card .figure { transition: transform 0.25s ease; }
a.pic-card:hover .figure { transform: translateY(-6px); }

/* Questions */
.faq { border-top: 2px solid #000; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Founder, centred */
.founder { max-width: 720px; margin: 0 auto; text-align: center; }
.founder p { margin-left: auto; margin-right: auto; }
.founder .role { color: var(--muted); font-weight: 700; margin-top: 6px; margin-bottom: 22px; }
.founder p + p { margin-top: 1em; }
.portrait {
  width: 190px; height: 190px; margin: 0 auto 26px;
  border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; overflow: hidden; position: relative;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px #000;
}
.portrait span { font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.03em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.btn-row.center { justify-content: center; }
.btn-outline { border-color: #000; color: #000; background: transparent; }
.btn-outline:hover { background: #000; color: #fff; }

main ul { max-width: 64ch; }
main li + li { margin-top: 6px; }

@media (max-width: 900px) {
  .cards3 { grid-template-columns: 1fr; }
  .figure.light { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #intro, .page-veil { display: none; }
  .hw-threads path, .hero-logo .ld-ring, .hero-logo .ld-line { animation: none !important; stroke-dashoffset: 0 !important; }
  .hero-logo { opacity: 1 !important; }
  .hero-logo .ld-fill { animation: none !important; opacity: 1 !important; }
  .ticker-track { animation: none; }
  a.pic-card .figure { transition: none; }
}

/* Phones: the threads sit off-screen, so the logo forms above the headline instead */
@media (max-width: 900px) {
  .hero-weave { display: none; }
  .hero-logo-m { display: block; width: 150px; margin: 0 0 28px; }
  .hero-logo-m .hero-logo { display: block; width: 100%; height: auto; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hero h1 { max-width: 13ch; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 8px 7px; font-size: 0.88rem; white-space: nowrap; }
  .brand { font-size: 1rem; white-space: nowrap; }
}
