/* BeitSystems site styles. One stylesheet for the whole site. */

:root {
  --bg: #f7f3eb;
  --bg-soft: #f1ebdd;
  --bg-warmer: #efe6d3;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-quiet: #6d6d6d;
  --rule: rgba(26, 26, 26, 0.18);
  --rule-faint: rgba(26, 26, 26, 0.08);
  --accent: #b8723a;
  --serif: ti-serif, "Times New Roman", Times, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
p { overflow-wrap: break-word; word-wrap: break-word; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-faint);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
}
.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bs-mark {
  display: inline-block;
  flex-shrink: 0;
  color: var(--ink);
}
.bs-mark .bracket-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: miter;
}
.bs-mark .bowl-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bs-mark .pop-dot {
  fill: currentColor;
}

/* Animate the mark only on the home page */
body.home .bs-mark .bracket-stroke {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: bs-stroke-draw 600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
body.home .bs-mark .bracket-l { animation-delay: 0ms; }
body.home .bs-mark .bracket-r { animation-delay: 80ms; }
body.home .bs-mark .bowl-stroke {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: bs-stroke-draw 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 350ms forwards;
}
body.home .bs-mark .pop-dot {
  transform: scale(0);
  animation: bs-dot-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1) 900ms forwards;
}
@keyframes bs-stroke-draw { to { stroke-dashoffset: 0; } }
@keyframes bs-dot-pop { to { transform: scale(1); } }
.wordmark:hover .bs-mark .pop-dot {
  animation: bs-dot-pulse 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes bs-dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav ul li a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav ul li a:hover,
.nav ul li.active a {
  border-bottom-color: var(--ink);
  text-decoration: none;
  color: var(--ink);
}
.nav ul li.mobile-only { display: none; }
@media (max-width: 720px) {
  .nav ul li.mobile-only { display: block; }
}
.nav-cta {
  font-size: 14px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.nav-cta:hover {
  opacity: 0.8;
  text-decoration: none;
}
.nav-cta.active {
  background: transparent;
  color: var(--ink);
  cursor: default;
}
.nav-cta.active:hover { opacity: 1; }

.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 10px;
  transition: opacity 0.15s ease;
}
.nav-hamburger:hover { opacity: 0.7; }
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav.open .nav-hamburger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav.open .nav-hamburger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 64px;
}
.hero.tight { padding: 72px var(--gutter) 48px; }
.hero.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero.split h1 { margin-bottom: 0; }
.hero.split .lead { padding-bottom: 12px; }
@media (max-width: 900px) {
  .hero.split {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .hero.split .lead { padding-bottom: 0; }
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 28px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6.5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 980px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Default underline (all pages): static, native text-decoration */
h1 .under,
h1 .draw {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
  text-underline-offset: 6px;
  -webkit-text-decoration-thickness: 2px;
  -webkit-text-decoration-color: var(--ink);
}

/* Home page: animated draw-in underline, properly clipped per wrapped line */
body.home h1 {
  line-height: 1.28;
}
body.home h1 .draw {
  text-decoration: none;
  -webkit-text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: drawUnderline 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}
body.home h1 .under {
  text-decoration: none;
  -webkit-text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@keyframes drawUnderline {
  to { background-size: 100% 2px; }
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}

.lead {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.lead p { margin: 0 0 1em; }
.lead p:last-child { margin-bottom: 0; }

p { color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 500; }

/* ---------- Hero featured (homepage) ---------- */
.featured {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.featured-card {
  background: var(--bg-warmer);
  border-radius: 6px;
  padding: 64px 56px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 80% 110%, rgba(184, 114, 58, 0.18), transparent 55%),
    radial-gradient(700px circle at 10% 0%, rgba(214, 175, 121, 0.22), transparent 60%);
  pointer-events: none;
}
.featured-card > * { position: relative; z-index: 1; }
.featured-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 18px;
}
.featured-card h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.featured-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 420px;
}
.read-more {
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
}
.read-more:hover { text-decoration: none; opacity: 0.7; }

/* ---------- Latest releases ---------- */
.releases {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}
.releases h2.section-title {
  font-size: 32px;
  margin-bottom: 36px;
}
.release-list {
  display: grid;
  gap: 0;
}
.release {
  display: grid;
  grid-template-columns: 1fr 200px 140px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.release:last-child { border-bottom: 1px solid var(--rule); }
.release.release-soon { cursor: default; opacity: 0.72; }
.release.release-soon .release-title { color: var(--ink-soft); }
.release-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.release-desc {
  font-size: 14px;
  color: var(--ink-quiet);
  margin-top: 6px;
}
.release-meta {
  font-size: 13px;
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
}
.release-cta {
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}
.release-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.release-status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 8px;
}

/* ---------- Mission banner ---------- */
.mission {
  background: var(--bg-warmer);
  padding: 96px 0;
  margin: 0 0 0;
  position: relative;
  overflow: hidden;
}
.mission-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.mission p {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  max-width: 980px;
  letter-spacing: -0.01em;
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px circle at 85% 50%, rgba(184, 114, 58, 0.10), transparent 60%);
  pointer-events: none;
}

/* ---------- Tile grid (homepage entry points) ---------- */
.tiles {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter);
}
.tiles h2.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  max-width: 720px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tile {
  display: block;
  background: var(--bg-warmer);
  border-radius: 4px;
  padding: 32px 28px;
  min-height: 180px;
  position: relative;
  transition: background 0.15s ease;
}
.tile:hover {
  background: #ebe1ca;
  text-decoration: none;
}
.tile .tile-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 18px;
}
.tile h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  max-width: 280px;
}
.tile .tile-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 20px;
  color: var(--ink);
}

/* ---------- Tenet list (doctrine / practices) ---------- */
.tenet {
  border-top: 1px solid var(--rule);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.tenet-number {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
  padding-top: 4px;
}
.tenet-content { max-width: 720px; }
.tenet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  margin: 0 0 24px;
  max-width: 620px;
}
.tenet p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 1.65;
}
.tenet p:last-child { margin-bottom: 0; }

/* ---------- Two-column body (practices, industries, case studies) ---------- */
.section {
  border-top: 1px solid var(--rule);
  padding: 64px 0;
}
.section:first-of-type { border-top: none; }
.section-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.section-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  padding-top: 8px;
}
.section-body { max-width: 720px; }
.section-body p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 1em;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  margin: 0 0 24px;
}
.section-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.section-body ul li {
  padding: 14px 0;
  border-top: 1px solid var(--rule-faint);
  font-size: 16px;
  color: var(--ink-soft);
}
.section-body ul li:first-child { border-top: none; }

/* ---------- Card grid (practices, industries index, work index) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 24px 0 64px;
}
.card {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: block;
}
.card:hover { text-decoration: none; }
.card .card-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}
.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.card .card-arrow {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- Closing ---------- */
.closing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 120px;
  border-top: 1px solid var(--rule);
}
.closing-inner {
  max-width: 720px;
  margin-inline-start: 248px;
}
.closing p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  margin: 56px 0 40px;
  letter-spacing: -0.005em;
}
.closing .signoff {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 640px;
  margin-top: 32px;
}
.contact-form .field {
  margin-bottom: 24px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5 L6 7.5 L9 4.5' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 28px;
  cursor: pointer;
}
.contact-form select::-ms-expand { display: none; }
.contact-form select option {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-quiet);
  opacity: 1;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--ink);
}

/* Custom dropdown (replaces native <select>) */
.select { position: relative; }
.select-trigger {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.select-trigger:hover {
  border-color: var(--ink);
}
.select-trigger:focus,
.select.open .select-trigger {
  border-color: var(--ink);
}
.select.placeholder .select-label {
  color: var(--ink-quiet);
}
.select-chevron {
  color: var(--ink);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.18s ease;
}
.select.open .select-chevron {
  transform: rotate(180deg);
}
.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.08), 0 2px 6px rgba(26, 26, 26, 0.04);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 20;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.select.open .select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.select-menu { padding: 8px; }
.select-option {
  padding: 12px 20px;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  line-height: 1.4;
  transition: background 0.12s ease;
}
.select-option:hover {
  background: var(--bg-soft);
}
.select-option.selected {
  background: var(--bg-warmer);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-form button[type="submit"] {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.15s ease;
}
.contact-form button[type="submit"]:hover { opacity: 0.8; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule-faint);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
}
.footer-brand p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-quiet);
  line-height: 1.55;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-meta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-quiet);
  border-top: 1px solid var(--rule-faint);
}
.footer-meta .entity { max-width: 540px; }
.lang { display: flex; gap: 14px; }
.lang span.dim { color: rgba(26, 26, 26, 0.25); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-quiet);
  font-size: 13px;
  transition: color 0.15s ease;
}
.footer-social a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; gap: 32px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 8px; }
  .release-meta, .release-cta { text-align: left; }
}
@media (max-width: 720px) {
  .tenet, .section-inner { grid-template-columns: 1fr; gap: 16px; }
  .tenet-number, .section-label { padding-top: 0; }
  .closing-inner { margin-inline-start: 0; }
  .tile-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 64px var(--gutter) 40px; }

  /* Hamburger menu drawer */
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    margin: 0;
    padding: 8px var(--gutter) 24px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--rule-faint);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
    z-index: 9;
  }
  .nav.open ul { display: flex; }
  .nav ul li a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-faint);
  }
  .nav ul li:last-child a { border-bottom: none; }

  /* Footer stacks fully on mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px var(--gutter) 32px;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px var(--gutter) 32px;
  }
}
