/* ==========================================================================
   dialog.css: sticky action bar · contact chooser (approval title block) · footer title block
   ========================================================================== */

/* ---------- sticky action bar (phones / tablets, after the hero) ---------- */
.abar { display: none; }
@media (max-width: 899.98px) {
  :root { --abar: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .abar {
    position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.35fr; height: var(--abar);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--bg); border-top: 1px solid var(--line-2);
    transform: translateY(102%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .abar.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .abar__btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
    font: 650 .8125rem/1 var(--font-display); font-stretch: 92%; letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
    transition: background-color .2s;
  }
  /* always on screen, so in dark it is a quiet slab with a gold rule; solid gold stays with the in-page buttons */
  .abar__btn--pri { background: var(--bar-pri-bg); color: var(--bar-pri-fg); box-shadow: inset 0 2px 0 var(--bar-pri-rule); }
  .abar__btn:active { background: var(--bg-2); }
  .abar__btn--pri:active { background: var(--pri-hover-bg); color: var(--pri-hover-fg); }
  .abar__btn:focus-visible { outline-offset: -5px; }
  .abar__btn--pri:focus-visible { outline-color: var(--bar-pri-fg); }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .abar { grid-template-columns: repeat(2, minmax(0, 210px)); justify-content: center; }
  .abar__btn { border-left: 1px solid var(--line); }
  .abar__btn--pri { border-right: 1px solid var(--line); }
}

/* ---------- contact chooser ---------- */
.cd { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.cd__backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.cd__panel {
  position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-top: 1px solid var(--ink); color: var(--ink);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.cd__panel:focus { outline: none; }
.cd__panel::before { content: ""; display: block; width: 44px; height: 3px; margin: 9px auto 8px; background: var(--line-2); }   /* grab handle of the bottom sheet */
.cd.is-open .cd__backdrop { opacity: 1; }
.cd.is-open .cd__panel { transform: none; }
.cd__strip { height: 46px; border-top: 1px solid var(--line); border-bottom-color: var(--line-2); }
.cd__strip::before, .cd__strip::after { display: none; }
.cd__strip .strip__code { color: var(--bg-2); }
.cd__close { display: grid; place-items: center; width: 52px; border-left: 1px solid var(--line); color: var(--ink); transition: background-color .3s, color .3s; }
.cd__close svg { width: 15px; height: 15px; }
.cd__close:focus-visible { outline-offset: -4px; }
.cd__close:active { background: var(--ink); color: var(--bg-2); }
.cd__head { display: grid; gap: 6px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.cd__title { font: 800 clamp(1.625rem, 7vw, 3rem)/1 var(--font-display); font-stretch: 85%; text-transform: uppercase; }
.cd__lead { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

/* the number: the largest thing on the sheet */
.cd__tel { position: relative; border-bottom: 1px solid var(--line-2); }
.cd__num {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px 14px;
  padding: 14px 16px 16px; transition: color .35s var(--ease);
}
.cd__ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); transition: border-color .35s; }
.cd__ico .ico { width: 22px; height: 22px; }
.cd__k { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-ann)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .35s; }
.cd__i { font: 500 var(--fs-ann)/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-3); transition: color .35s; }
.cd__digits { grid-column: 1 / -1; font: 500 clamp(2rem, 9.6vw, 3.25rem)/1 var(--font-mono); letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd__digits small { margin-right: .55em; font-size: .4em; letter-spacing: 0; color: var(--ink-2); vertical-align: 1.05em; transition: color .35s; }
.cd__copy {
  position: absolute; right: 14px; top: 16px; padding: 3px; border: 1.5px solid var(--gold-text); color: var(--gold-text); background: var(--bg-2);
  font: 500 var(--fs-ann)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg);
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.cd__copy > span { display: block; padding: 10px 10px 9px; border: 1px solid currentColor; white-space: nowrap; }
.cd__copy:active { transform: rotate(-3deg) scale(.95); }
.cd__copy.is-copied { background: var(--gold); border-color: var(--gold); color: var(--green-900); transform: rotate(-3deg) scale(.95); }
/* "COPIED" is stamped across the number */
.cd__stamp {
  position: absolute; left: 50%; bottom: 8px; padding: 4px; border: 2px solid var(--gold-text); background: var(--bg-2); color: var(--gold-text);
  font: 750 1.0625rem/1 var(--font-display); font-stretch: 90%; letter-spacing: .16em; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(1.5);
}
.cd__stamp > span { display: block; padding: 8px 14px 7px; border: 1px solid currentColor; }
.cd__tel.is-stamped .cd__stamp { opacity: 1; transform: translateX(-50%) rotate(-6deg); transition: opacity .15s, transform .32s cubic-bezier(.3, 1.4, .5, 1); }

/* channels: icon cell · label · index · arrow */
.cd__grid > li { border-bottom: 1px solid var(--line); }
.cd__ch {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  min-height: 66px; padding: 10px 16px; transition: color .35s var(--ease);
}
.cd__ch::before, .cd__num::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.cd__l { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.cd__l small { display: block; margin-top: 3px; font: 400 .75rem/1.3 var(--font-mono); letter-spacing: .02em; color: var(--ink-2); overflow-wrap: anywhere; transition: color .35s; }
.cd__ch .btn__arr { width: 20px; }
.cd__ch .btn__arr--out { width: 11px; height: 11px; }
.cd__ch:focus-visible, .cd__num:focus-visible { outline-offset: -4px; }
.cd__ch:active, .cd__num:active { color: var(--bg-2); }
.cd__ch:active::before, .cd__num:active::before { clip-path: inset(0); transition-duration: .12s; }
:is(.cd__ch, .cd__num):active :is(.cd__i, .cd__k, small) { color: inherit; }
:is(.cd__ch, .cd__num):active .cd__ico { border-color: currentColor; }
@media (hover: hover) {
  .cd__ch:hover, .cd__num:hover { color: var(--bg-2); }
  .cd__ch:hover::before, .cd__num:hover::before { clip-path: inset(0); }
  :is(.cd__ch, .cd__num):hover :is(.cd__i, .cd__k, small) { color: inherit; }
  :is(.cd__ch, .cd__num):hover .cd__ico { border-color: currentColor; }
  .cd__close:hover { background: var(--ink); color: var(--bg-2); }
}

.cd__foot { padding-bottom: env(safe-area-inset-bottom, 0px); }
.cd__facts { display: grid; }
.cd__facts > div { display: grid; align-content: start; gap: 5px; padding: 10px 16px 12px; }
.cd__facts > div + div { border-top: 1px solid var(--line); }
.cd__facts dt { font: 500 var(--fs-ann)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cd__facts dd { font-size: .875rem; line-height: 1.35; font-weight: 500; }
.cd__facts dd span { white-space: nowrap; }
.cd__sealcell { display: none; }
.seal { width: 88px; height: 88px; transform: rotate(-9deg); }
.seal circle { fill: none; stroke: var(--gold-text); stroke-width: 1; }
.seal text { font: 500 8.2px/1 var(--font-mono); letter-spacing: .13em; fill: var(--gold-text); }
.seal__mark path { fill: var(--gold); stroke: var(--gold-line); stroke-width: 2; paint-order: stroke; }
@keyframes seal-in { from { opacity: 0; transform: rotate(-9deg) scale(1.45); } }

/* landscape phones: everything a size smaller, two channels per row */
@media (max-height: 520px) and (max-width: 899.98px) {
  .cd__panel { max-height: 100vh; max-height: 100dvh; }
  .cd__panel::before { display: none; }
  .cd__head { display: none; }                      /* the strip already names the sheet; the number and all channels fit */
  .cd__num { padding-block: 8px 10px; row-gap: 6px; }
  .cd__digits { font-size: 2rem; }
  .cd__copy { top: 8px; }
  .cd__grid { display: grid; grid-template-columns: 1fr 1fr; }
  .cd__grid > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .cd__ch { min-height: 56px; padding-block: 6px; }
  .cd__facts > div { padding-block: 8px 10px; }
}

@media (min-width: 680px) {
  .cd { place-items: center; padding: 24px; }
  .cd__panel {
    width: min(100%, 780px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border: 1px solid var(--ink);
    box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-2), 0 30px 80px -20px var(--scrim);
    transform: translateY(26px); opacity: 0; transition: transform .5s var(--ease), opacity .28s;
  }
  .cd__panel::before { display: none; }
  .cd.is-open .cd__panel { opacity: 1; }
  .cd__strip { height: 46px; border-top: 0; }
  .cd__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 28px 28px 22px; }
  .cd__lead { max-width: 22ch; text-align: right; }
  .cd__tel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .cd__num { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 18px; padding: 20px 28px 22px; }
  .cd__num .cd__ico { grid-row: 1 / span 2; width: 56px; height: 56px; }
  .cd__num .cd__ico .ico { width: 26px; height: 26px; }
  .cd__digits { grid-column: auto; font-size: clamp(2.25rem, 5vw, 3rem); }
  .cd__copy { position: static; margin: 0 28px 0 12px; }
  .cd__stamp { left: 52%; bottom: 12px; font-size: 1.25rem; }
  .cd__grid { display: grid; grid-template-columns: 1fr 1fr; }
  .cd__grid > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .cd__ch { min-height: 76px; padding: 12px 24px 12px 28px; }
  .cd__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cd__facts { grid-template-columns: 1fr 1fr; }
  .cd__facts > div { align-content: center; gap: 6px; padding: 16px 28px 18px; }
  .cd__facts > div + div { border-top: 0; border-left: 1px solid var(--line); }
  /* the seal: stamped in the bottom-right corner of the block, where approvals go */
  .cd__sealcell { display: grid; place-items: center; padding: 10px 26px; border-left: 1px solid var(--line); }
  .cd.is-open .seal { animation: seal-in .24s cubic-bezier(.3, 1.5, .5, 1) .34s both; }
}

/* ---------- footer: the title block of the whole drawing set ---------- */
.ftr {
  --bg: var(--inv-bg); --ink: var(--inv-fg); --ink-2: var(--inv-fg-2); --line: var(--inv-line); --line-2: rgba(237, 229, 219, .36);
  --hl: var(--gold); --gold-text: var(--gold); --gold-line: var(--gold); --focus: var(--gold); --slab-shadow: rgba(3, 14, 9, .55);
  position: relative; background: var(--bg); color: var(--ink);
}
.ftr__in { border-inline: 0 !important; padding-block: clamp(40px, 6vw, 88px) calc(var(--abar) + 28px); }
.tb { display: grid; border: 1px solid var(--line-2); }
.tb__brand { display: grid; align-items: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.tb__logo { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.tb__mark { flex: none; width: clamp(54px, 9vw, 118px); height: auto; overflow: visible; }
.tb__word { width: min(100%, 520px); height: auto; color: var(--ink); }
.tb__cells { display: grid; grid-template-columns: 1fr 1fr; }
.tb__c { position: relative; display: grid; align-content: start; gap: 7px; padding: 14px 16px 15px; border-bottom: 1px solid var(--line); min-width: 0; }
.tb__c:nth-child(odd) { border-right: 1px solid var(--line); }
.tb__c--w { grid-column: 1 / -1; border-right: 0 !important; }
.tb__c dt, .tb__soc-k { font: 500 var(--fs-ann)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tb__c dd { font-size: .9375rem; line-height: 1.3; font-weight: 500; }
.tb__c dd.mono { font-size: .8125rem; }
.tb__tel { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-family: var(--font-mono); letter-spacing: .02em; }
.tb__tel::after { content: ""; position: absolute; inset: 0; }   /* the whole cell is the call link */
.tb__c--link { transition: background-color .3s, color .3s; }
.tb__c--link:has(.tb__tel:active) { background: var(--ink); color: var(--bg); }
.tb__c--link:has(.tb__tel:focus-visible) { outline: 2px solid var(--focus); outline-offset: -4px; }
.tb__tel:focus-visible { outline: none; }

/* social channels: three cells, set like a revision table */
.tb__soc { border-bottom: 1px solid var(--line); }
.tb__soc-k { padding: 14px 16px 10px; }
.tb__soc ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tb__soc li + li { border-left: 1px solid var(--line); }
.tb__s {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico . arr" "name name name"; align-items: start; row-gap: 14px;
  min-height: 86px; padding: 12px 12px 11px; transition: background-color .3s, color .3s;
}
.tb__s .ico { grid-area: ico; width: 24px; height: 24px; }
.tb__s .btn__arr--out { grid-area: arr; width: 11px; height: 11px; margin-top: 2px; }
.tb__sn { grid-area: name; align-self: end; font: 600 .75rem/1.1 var(--font-display); font-stretch: 92%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tb__s:focus-visible { outline-offset: -4px; }
.tb__s:active { background: var(--ink); color: var(--bg); }

.tb__nav ul { display: grid; grid-template-columns: 1fr 1fr; }
.tb__nav li { border-bottom: 1px solid var(--line); }
.tb__nav li:nth-child(odd) { border-right: 1px solid var(--line); }
.tb__nav li:last-child { grid-column: 1 / -1; border: 0; }
.tb__nav a, .tb__contact {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 16px;
  font: 600 .75rem/1.1 var(--font-display); font-stretch: 92%; letter-spacing: .08em; text-transform: uppercase; transition: background-color .3s, color .3s;
}
.tb__code { flex: none; white-space: nowrap; font: 500 var(--fs-ann)/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-2); transition: color .3s; }
.tb__contact { justify-content: space-between; background: var(--gold); color: var(--green-950); }
.tb__nav a:focus-visible, .tb__contact:focus-visible { outline-offset: -4px; }
.tb__contact:focus-visible { outline-color: var(--green-950); }
.tb__nav a:active { background: var(--ink); color: var(--bg); }
.tb__nav a:active .tb__code { color: inherit; }
.tb__contact:active { background: var(--ink); }
@media (hover: hover) {
  .tb__nav a:hover, .tb__s:hover, .tb__c--link:hover { background: var(--ink); color: var(--bg); }
  .tb__nav a:hover .tb__code, .tb__c--link:hover dt { color: inherit; }
  .tb__contact:hover { background: var(--ink); }
  .tb__contact:hover .btn__arr { transform: translateX(5px); }
}
.ftr__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: .8125rem; color: var(--ink-2); }
.ftr__top { flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font: 600 .75rem/1 var(--font-display); font-stretch: 92%; letter-spacing: .08em; text-transform: uppercase; }
.ftr__top svg { flex: none; width: 10px; height: 22px; transition: transform .4s var(--ease); }
@media (hover: hover) { .ftr__top:hover svg { transform: translateY(-4px); } }

@media (min-width: 900px) {
  .ftr__in { padding-bottom: 28px; }
  .tb { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tb__brand { grid-row: 1 / span 2; border-bottom: 0; border-right: 1px solid var(--line); }
  .tb__soc { border-bottom: 0; }
  .tb__nav { grid-column: 1 / -1; border-top: 1px solid var(--line-2); }
  .tb__nav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tb__nav li { border-right: 1px solid var(--line) !important; }
  .tb__nav li:nth-child(n+5) { border-bottom: 0; }
  .tb__nav li:nth-child(4), .tb__nav li:last-child { border-right: 0 !important; }
  .tb__nav li:last-child { grid-column: span 2; }
  .tb__nav a, .tb__contact { min-height: 60px; padding: 8px 20px; }
  .tb__contact { padding-inline: 28px; gap: 16px; }
}
@media (min-width: 1200px) {
  .tb__s { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico name arr"; align-items: center; column-gap: 12px; min-height: 60px; padding: 8px 16px; }
  .tb__s .btn__arr--out { margin-top: 0; }
  .tb__sn { align-self: center; }
  .tb__nav ul { display: flex; }
  .tb__nav li { flex: 1 1 auto; border-bottom: 0; }
  .tb__nav li:nth-child(4) { border-right: 1px solid var(--line) !important; }
  .tb__nav li:last-child { flex: 0 0 auto; }
}
