@font-face {
  font-family: 'Fraunces Display';
  src: url('fonts/Fraunces72pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader Display';
  src: url('fonts/Newsreader36pt-w800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --plate: #fbfaf6;
  --ink: #0b1012;
  --muted: #515955;
  --faint: #777f7b;
  --black: #101315;
  --cream: #eceae1;
  --quiet-cream: #b3b7b1;
  --line: rgb(11 16 18 / 12%);
  --line-strong: rgb(11 16 18 / 22%);
  --focus: var(--ink);
  --foil-light: #e8e4d5;
  --foil: linear-gradient(108deg, #dfe8da 0%, #cfe2e0 34%, #e5dce0 68%, #ebe6d5 100%);
  --foil-edge: linear-gradient(108deg, #c6dcc5, #b8d7da 36%, #ddd0d7 70%, #e4dfc9);
  --foil-highlight: linear-gradient(108deg, transparent 42%, rgb(255 255 255 / 42%) 50%, transparent 58%);
  --card-serif: 'Fraunces Display', 'Newsreader Display', Georgia, serif;
  --display: 'Fraunces Display', 'Newsreader Display', Georgia, serif;
  --reading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: 56px;
  --frame-inset: 22px;
  --frame-clearance: 48px;
  --frame-inner-offset: 7.5px;
  --cover-gutter: max(var(--gutter), calc(12px + var(--frame-clearance)));
  --cover-width: min(1160px, calc(100% - 2 * var(--cover-gutter)));
  --nav-height: 74px;
  --cover-nav-height: 44px;
  --cover-nav-top: calc(var(--frame-inset) + var(--frame-inner-offset) + 28px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: calc(var(--nav-height) + 12px) 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.58 var(--reading);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, figure, ul, dl, dd { margin: 0; }
p { max-width: 54ch; }
h1, h2 {
  font-family: var(--card-serif);
  font-weight: 700;
  letter-spacing: -.024em;
  line-height: 1.04;
}
h3 { line-height: 1.22; letter-spacing: -.018em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { touch-action: manipulation; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
a.icon-link { text-decoration: none; }
.link-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.icon-link:hover .link-label { text-decoration-thickness: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 16px; font-weight: 560; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.site-width {
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--plate);
  color: var(--ink);
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }

.directional-club {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  vertical-align: -.12em;
  background-color: currentColor;
  mask: url('directional-club.svg') center / contain no-repeat;
}

.black-stock {
  --muted: var(--quiet-cream);
  --line: rgb(236 234 225 / 18%);
  --focus: var(--foil-light);
  color: var(--cream);
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgb(16 19 21 / 52%), rgb(16 19 21 / 62%)),
    url('black-paper-tile.webp') 0 0 / 620px repeat,
    var(--black);
}
.header.is-black {
  background:
    linear-gradient(rgb(16 19 21 / 88%), rgb(16 19 21 / 88%)),
    url('black-paper-tile.webp') 0 0 / 620px repeat,
    var(--black);
  backdrop-filter: blur(10px);
}

.cream-pages {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}
.cream-pages::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('black-paper-tile.webp') 0 0 / 480px repeat;
  filter: grayscale(1) brightness(6.8);
  opacity: .035;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.header {
  --nav-divider: rgb(236 234 225 / 20%);
  --nav-plate: var(--black);
  --muted: var(--quiet-cream);
  --focus: var(--foil-light);
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  color: var(--cream);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.header.is-black { border-bottom: 1px solid var(--nav-divider); }
.header.is-paper {
  --nav-divider: var(--line);
  --nav-plate: var(--plate);
  --muted: #515955;
  --focus: var(--ink);
  background: rgb(244 241 234 / 90%);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-height);
}
.header:not(.is-paper, .is-black) .header-inner {
  width: var(--cover-width);
  min-height: 0;
  padding-top: var(--cover-nav-top);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.15;
  text-decoration: none;
}
.brand-mark {
  border-right: 1px solid var(--nav-divider);
  padding-right: 12px;
  font: 700 26px/.9 var(--card-serif);
  letter-spacing: -.06em;
}
.brand-sub { display: block; font-size: 13px; font-weight: 450; color: var(--muted); letter-spacing: .01em; }
.header nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-size: 15.5px; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header nav a:hover { text-decoration: underline; }
.header nav a[aria-current="location"], .header nav a[aria-current="location"] .link-label {
  text-decoration: underline 2px;
  text-underline-offset: .24em;
}
.nav-cta {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--nav-divider);
  font-weight: 560;
}
.header.is-paper .nav-cta {
  background: var(--ink);
  color: var(--plate);
  border-color: var(--ink);
}
.header.is-paper .nav-cta .link-label,
.nav-cta .link-label { text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Signature Hero (Restrained Copy + Interactive 3D Foil Card) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block-start: calc(var(--cover-nav-top) + var(--cover-nav-height) + 46px);
  padding-block-end: calc(var(--frame-inset) + var(--frame-inner-offset) + 52px);
}
.hero-card-stage .card-surface::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 186%;
  aspect-ratio: 1586 / 992;
  transform: translate(-76.6%, -50.2%);
  background: url('hero-paper-desktop.webp') center / contain no-repeat;
  opacity: .56;
  -webkit-mask-image: radial-gradient(ellipse 25% 40% at 76.6% 50.2%, #000 50%, transparent 80%);
  mask-image: radial-gradient(ellipse 25% 40% at 76.6% 50.2%, #000 50%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  width: var(--cover-width);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 315px);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.hero-copy { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--foil-light);
}
.hero-eyebrow::before {
  content: '♣';
  font-size: 13px;
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.08;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 22px;
  max-width: 42ch;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.52;
  color: rgb(236 234 225 / 90%);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
}
.primary-action {
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 3px;
  background: var(--foil);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  box-shadow: 0 10px 28px rgb(0 0 0 / 34%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgb(0 0 0 / 44%);
}
.primary-action .link-label { text-decoration: none; }
.work-link { color: var(--cream); font-size: 16px; }

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgb(236 234 225 / 14%);
  font-size: 15px;
  color: var(--quiet-cream);
}
.hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--cream);
  text-decoration-color: rgb(236 234 225 / 38%);
}
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-weight: 500;
}
.availability-dot {
  position: relative;
  display: inline-block;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #3fe68f;
  box-shadow: 0 0 8px rgb(63 230 143 / 75%);
  flex-shrink: 0;
}
@keyframes beacon-flash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgb(63 230 143 / 85%), 0 0 0 0 rgb(63 230 143 / 55%);
  }
  50% {
    opacity: .38;
    transform: scale(.92);
    box-shadow: 0 0 3px rgb(63 230 143 / 35%), 0 0 0 7px rgb(63 230 143 / 0%);
  }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .availability-dot {
    animation: beacon-flash 1.85s ease-in-out infinite;
  }
}

/* ---------- Foil Text & Frame ---------- */
.foil-type {
  display: inline-block;
  padding-bottom: .14em;
  margin-bottom: -.1em;
  color: var(--cream);
}
@supports (background-clip: text) {
  .foil-type {
    background: var(--foil);
    background-clip: text;
    color: transparent;
  }
  .hero .foil-type {
    background-image: var(--foil-highlight), var(--foil);
    background-size: 200% 100%, 100% 100%;
    background-position: -25% 0, 0 0;
    filter: drop-shadow(0 1px 0 rgb(0 0 0 / 45%));
  }
}
@keyframes foil-pass {
  from { background-position: 125% 0, 0 0; }
  to { background-position: -25% 0, 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .foil-type { animation: foil-pass 1.3s ease-out 1 both; }
}

.foil-frame {
  position: absolute;
  inset: var(--frame-inset) auto auto 50%;
  width: calc(var(--cover-width) + 2 * var(--frame-clearance));
  height: calc(100% - 2 * var(--frame-inset));
  transform: translateX(-50%);
  pointer-events: none;
}

/* ---------- Interactive 3D Playing Card (Hero & Contact/Modal) ---------- */
.hero-card-stage {
  position: relative;
  width: 100%;
  max-width: 306px;
  justify-self: end;
}
.hero-card-stage::before {
  content: '';
  position: absolute;
  inset: -14% -16%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgb(214 228 223 / 15%) 0%, transparent 68%);
  pointer-events: none;
}
.card-surface {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  padding: 0;
  border: 0;
  border-radius: 10% / 7.143%;
  background: transparent;
  perspective: 1200px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.card-surface.is-interactive { cursor: grab; }
.card-surface.is-turning { cursor: grabbing; }
.card-object {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(calc(var(--turn, 0deg) + var(--tilt-y, 0deg)));
  transform-style: preserve-3d;
  box-shadow:
    0 26px 56px rgb(0 0 0 / 62%),
    0 0 0 1px rgb(228 232 224 / 16%);
  transition: box-shadow 260ms ease;
  pointer-events: none;
}
.card-surface:hover .card-object {
  box-shadow:
    0 32px 68px rgb(0 0 0 / 72%),
    0 0 0 1px rgb(228 232 224 / 30%);
}
.card-surface.is-settling .card-object {
  transition: transform 420ms cubic-bezier(.2, .76, .22, 1), box-shadow 260ms ease;
}
.card-object img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgb(214 220 212 / 34%);
  border-radius: inherit;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.card-front { transform: translateZ(1px); }
.card-back { transform: rotateY(180deg) translateZ(1px); }

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 32%) var(--glare-y, 24%),
    rgb(235 245 242 / 22%) 0%,
    rgb(230 222 232 / 8%) 34%,
    transparent 66%
  );
  mix-blend-mode: screen;
  opacity: var(--glare-o, .45);
  transition: opacity 240ms ease;
  pointer-events: none;
  transform: translateZ(1.5px);
}

.hero-card-stage figcaption,
.contact-card figcaption,
.card-exhibit figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--cream);
}
.card-hint { display: block; font-size: 13px; color: var(--quiet-cream); letter-spacing: .01em; }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 2px;
  font-size: 14.5px;
}
.card-turn, .card-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0;
  border: 0;
  font: inherit;
  color: var(--cream);
  background: none;
  text-decoration: underline;
  text-decoration-color: rgb(236 234 225 / 45%);
  text-underline-offset: .24em;
  cursor: pointer;
}
.card-turn:hover, .card-actions a:hover { text-decoration-color: var(--cream); text-decoration-thickness: 2px; }
.card-turn[hidden], .card-hint[hidden], .card-fallback[hidden] { display: none; }

/* ---------- Closing Contact Bookend ---------- */
.contact {
  position: relative;
  padding-block: 86px;
  --cover-width: min(1060px, calc(100% - 2 * var(--cover-gutter)));
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 232px);
  align-items: center;
  gap: clamp(40px, 8vw, 112px);
  width: var(--cover-width);
}
.contact-copy { min-width: 0; }
.contact-club { display: block; color: var(--foil-light); font-size: 24px; margin-bottom: 14px; }
.contact h2 { font-size: clamp(36px, 4.4vw, 56px); width: fit-content; }
.contact-copy > p { margin-top: 16px; max-width: 43ch; color: rgb(236 234 225 / 86%); font-size: 17px; }
.contact-methods { display: grid; justify-items: start; gap: 4px; margin-top: 22px; }
.contact-methods a {
  display: inline-block;
  min-height: 44px;
  max-width: 100%;
  color: var(--cream);
  font-family: var(--card-serif);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-decoration: none;
  background: var(--foil-edge) left bottom 3px / 100% 1px no-repeat;
  overflow-wrap: anywhere;
}
.contact-methods a:hover { background-size: 100% 2px; }
.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--quiet-cream);
}
.contact-card { width: 100%; max-width: 232px; justify-self: center; }

/* ---------- Footer & Mobile Sticky Bar ---------- */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-block: 12px 30px;
  font-size: 14px;
  color: var(--quiet-cream);
}
.footer-inner a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0 22px; }
.mobile-contact, .mobile-contact[hidden] { display: none; }

/* ---------- Lightbox & Card Modal ---------- */
.card-dialog {
  width: min(1080px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--plate);
  color: var(--ink);
  overscroll-behavior: contain;
}
.card-dialog:not([open]) { display: none; }
.card-dialog::backdrop { background: rgb(8 11 13 / 78%); backdrop-filter: blur(4px); }
.card-dialog-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--plate);
}
.card-dialog-heading h2 { font-size: 26px; }
.card-dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.card-dialog-close:hover { background: rgb(11 16 18 / 6%); }
.card-dialog-body { padding: 26px; }
.work-viewer figure {
  display: grid;
  justify-items: center;
  padding: clamp(12px, 3vw, 28px);
}
.work-viewer img { width: auto; max-height: 70dvh; object-fit: contain; border-radius: 4px; }
.work-viewer figcaption { margin-block-start: 10px; }
.work-viewer figcaption a { display: inline-flex; align-items: center; min-height: 40px; }
#card-preview { max-width: 620px; }
.card-exhibit .card-surface {
  width: min(100%, 360px, 44dvh);
  margin-inline: auto;
}
.card-exhibit figcaption { color: var(--ink); }
.card-exhibit .card-hint { color: var(--muted); }
.card-exhibit .card-turn, .card-exhibit .card-actions a {
  color: var(--ink);
  text-decoration-color: rgb(11 16 18 / 38%);
}
.card-text { margin-top: 16px; border-top: 1px solid var(--line); }
.card-text summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 15.5px; font-weight: 550; }
.card-text h3 { margin-block: 14px 8px; font-size: 20px; font-weight: 650; }
.card-text p + p { margin-top: 12px; }
.card-text ul { columns: 2; max-width: 560px; padding-left: 20px; margin-top: 8px; }
.card-text li { break-inside: avoid; padding-right: 12px; margin-bottom: 4px; }
.card-text-contact { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 6px; }
.card-text-contact a, .card-qr-link a { display: inline-flex; align-items: center; min-height: 40px; }
.card-qr-link { margin-top: 10px; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card-surface.is-settling .card-object { transition: none; }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1020px) {
  :root { --gutter: 40px; }
  .hero-content { grid-template-columns: minmax(0, 1.1fr) minmax(220px, 270px); gap: 36px; }
}
@media (max-width: 820px) {
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    padding: 10px 16px;
    border: 1px solid var(--nav-divider);
    border-radius: 6px;
    background: var(--nav-plate);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header nav.open { display: flex; }
  .nav-cta { border: 0; padding: 0; border-radius: 0; background: none !important; color: inherit !important; }
  .menu-toggle {
    display: block;
    min-width: 64px;
    min-height: 42px;
    padding: 5px 12px;
    border: 1px solid var(--nav-divider);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 14.5px;
    cursor: pointer;
  }
}
@media (max-width: 740px) {
  :root {
    --gutter: 24px;
    --frame-inset: 11px;
    --frame-clearance: calc(var(--frame-inner-offset) + 18px);
    --nav-height: 62px;
    --cover-nav-top: calc(var(--frame-inset) + var(--frame-inner-offset) + 16px);
  }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .brand { gap: 9px; font-size: 15.5px; }
  .brand-mark { padding-right: 9px; font-size: 22px; }
  .hero {
    padding-block-start: calc(var(--cover-nav-top) + var(--cover-nav-height) + 24px);
    padding-block-end: calc(var(--frame-inset) + var(--frame-inner-offset) + 32px);
  }
  .hero::before { inset: 74% auto auto 50%; width: 92%; opacity: .3; }
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .hero-eyebrow { margin-bottom: 12px; font-size: 11.5px; letter-spacing: .18em; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 52px); }
  .hero-lead { margin-top: 14px; font-size: 17px; }
  .hero-actions { margin-top: 20px; gap: 8px 20px; }
  .hero-meta { margin-top: 18px; padding-top: 14px; font-size: 14px; gap: 2px 16px; }
  .hero-card-stage {
    max-width: 236px;
    justify-self: center;
  }
  .contact { padding-block: 60px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-methods a { font-size: clamp(21px, 6.2vw, 28px); }
  .contact-card { max-width: 210px; }
  .footer-inner { display: grid; gap: 8px; padding-block: 8px calc(84px + env(safe-area-inset-bottom)); }
  .mobile-contact {
    position: fixed;
    z-index: 25;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 9px max(18px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgb(16 19 21 / 94%);
    backdrop-filter: blur(10px);
  }
  .mobile-contact a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-contact a:first-child {
    background: var(--foil);
    color: var(--ink);
    border-color: transparent;
  }
  .card-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .card-dialog-body { padding: 18px; }
  .card-text ul { columns: 1; }
}
@media (forced-colors: active) {
  .foil-type { color: CanvasText; background: none; filter: none; }
  .primary-action, .mobile-contact a, .menu-toggle { border: 1px solid ButtonText; }
  .contact-methods a { text-decoration: underline; }
}
