/* ==========================================================================
   contact.html — page-local styles ("The Phone Plate")
   Loaded after css/styles.css. Tokens only; white / black / silver.
   ========================================================================== */

/* ---- page head quick actions ---- */
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   THE PHONE PLATE — a black plaque bolted to the vault wall; the number is
   embossed into it and the one light source sweeps across the digits.
   [data-tilt] lives on the wrap so the shadow plane can counter-move (.iu-card recipe).
   -------------------------------------------------------------------------- */
.plate-wrap {
  --tx: -4deg; --ty: 4deg;                 /* ±4° via the .rv.in transform expression */
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.plate-shadow {
  position: absolute; inset: 10% 5% 0;
  border-radius: 22px;
  background: #0A0A0B;
  opacity: .7;
  filter: blur(28px);
  transform: translate(calc(var(--mx, 0) * -24px), calc(var(--my, 0) * -14px + 30px)) scale(.94);
  z-index: -1;
  pointer-events: none;
}
.phone-plate {
  position: relative;
  display: block;
  width: 100%;
  container-type: inline-size;
  border-radius: 22px;
  background: var(--card-face);
  color: #DDDFE3;
  padding: 5.4cqw 6cqw 5cqw;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), var(--glow-white);
  isolation: isolate;
}
.phone-plate:focus-visible { outline: 3px solid #FFFFFF; box-shadow: 0 0 0 5px #0A0A0B, 0 0 0 7px #FFFFFF; border-radius: 22px; }
/* chrome bezel (mask ring) */
.plate-rim {
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--chrome);
  background-size: 200% 100%;
  background-position: calc(var(--light) * 100%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .85;
  transition: opacity .3s;
  z-index: 8;
  pointer-events: none;
}
.plate-wrap.is-hover .plate-rim { opacity: 1; }
/* brushed metal */
.plate-brush {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,.10), transparent 55%),
    repeating-linear-gradient(100deg, rgba(255,255,255,.055) 0 1px, transparent 1px 3px);
  opacity: .4;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}
/* the --light pass — the plate answers the page's single light source */
.plate-holo {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 42%, rgba(255,255,255,.50) 50%, rgba(255,255,255,.10) 58%, transparent 70%);
  background-size: 250% 100%;
  background-position: calc(var(--light) * 100% + var(--mx, 0) * 30%) 0;
  mix-blend-mode: screen;
  opacity: .5;
  z-index: 5;
  pointer-events: none;
}
/* four chrome screws — mounted, permanent, not going anywhere */
.plate-screw {
  position: absolute;
  width: max(9px, 1.4cqw); height: max(9px, 1.4cqw);
  border-radius: 50%;
  background: var(--chrome);
  background-size: 200% 100%;
  background-position: calc(var(--light) * 100%) 0;
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 #8E9199, 0 1px 2px rgba(0,0,0,.7);
  z-index: 6;
  pointer-events: none;
}
.plate-screw::after { content: ''; position: absolute; left: 20%; right: 20%; top: 50%; height: 1px; margin-top: -.5px; background: #26272B; transform: rotate(-35deg); }
.plate-screw.tl { left: 2.4cqw; top: 2.4cqw; }
.plate-screw.tr { right: 2.4cqw; top: 2.4cqw; }
.plate-screw.tr::after { transform: rotate(20deg); }
.plate-screw.bl { left: 2.4cqw; bottom: 2.4cqw; }
.plate-screw.bl::after { transform: rotate(65deg); }
.plate-screw.br { right: 2.4cqw; bottom: 2.4cqw; }
.plate-screw.br::after { transform: rotate(-70deg); }

/* content rows */
.plate-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; z-index: 3; }
.plate-label {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 600;
  font-size: max(.66rem, 2cqw);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #C9CCD2;
  text-shadow: 0 1px 0 rgba(255,255,255,.2), 0 -1px 0 rgba(0,0,0,.9);
  white-space: nowrap;
}
.plate-foot .plate-label { color: #B9BCC3; }
/* the embossed number (.iu-number recipe, scaled to the plate) */
.plate-num {
  position: relative;
  display: block;
  margin: 5.2cqw 0 5.6cqw;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 8.4cqw;
  letter-spacing: .1em;
  line-height: 1;
  color: #E8E9EC;
  text-shadow: 0 1px 0 rgba(255,255,255,.22), 0 -1px 0 rgba(0,0,0,.95), 0 3px 3px rgba(0,0,0,.45);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  z-index: 3;
}
.plate-num .odo-c { white-space: pre; }            /* keep the space between groups */
.plate-num .odo-s { transition-duration: 1.4s; }   /* rolls 1.1–1.4s per the timing law */
html:not(.js) .plate-num .odo[data-odo]::after { color: #E8E9EC; -webkit-text-fill-color: #E8E9EC; }
/* engraved rule under the number */
.plate-rule { position: relative; height: 1px; background: var(--chrome-edge); opacity: .55; margin-bottom: 4cqw; z-index: 3; }
/* the live badge: state by intensity only */
.phone-plate .pill[data-hours] { background: transparent; border-color: #8E9199; color: #C9CCD2; }
.phone-plate .pill.pill-live { border-color: #DDDFE3; color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Contact facts under the plate — one ruled strip, chrome ticks (stat-band construction)
   -------------------------------------------------------------------------- */
.plate-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid #26272B; border-bottom: 1px solid #26272B; }
.plate-fact { position: relative; padding: 30px 24px 28px; border-right: 1px solid #26272B; min-width: 0; }
.plate-fact:last-child { border-right: 0; }
.plate-fact::before { content: ''; position: absolute; top: -1px; left: 24px; width: 24px; height: 1px; background: var(--chrome-edge); }
.plate-fact .mono-label { display: block; margin-bottom: 12px; color: #8E9199; }
.plate-fact .val {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}
.plate-fact a.val::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--chrome-edge); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out); }
.plate-fact a.val:hover::after, .plate-fact a.val:focus-visible::after { transform: scaleX(1); }
.plate-fact .sub { margin-top: 6px; font-size: .85rem; color: #8E9199; }

/* --------------------------------------------------------------------------
   The form (white showroom) + the response card + the Fresno map plate
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-form-card { position: relative; padding: clamp(28px, 4vw, 44px); }
.contact-form-card::before { content: ''; position: absolute; top: 0; left: var(--radius); right: var(--radius); height: 1px; background: var(--chrome-edge-dark); opacity: .8; z-index: 2; }
.contact-form-card h3 { margin-bottom: 8px; }
.contact-form-card .form-intro { margin-bottom: 28px; font-size: .95rem; }
.contact-form-card .btn[type="submit"] { width: 100%; margin-top: 6px; }
.contact-form-card .form-success p { font-size: .95rem; }

.contact-aside { display: flex; flex-direction: column; gap: 22px; height: 100%; }
.response-card { position: relative; background: var(--mist); border: 1px solid #DDDFE3; border-radius: var(--radius); padding: 28px 30px; }
.response-card::before { content: ''; position: absolute; top: 0; left: var(--radius); right: var(--radius); height: 1px; background: var(--chrome-edge-dark); opacity: .8; }
.response-card .mono-label { display: block; margin-bottom: 10px; }
.response-card .ledger-num { display: flex; align-items: baseline; gap: 6px; font-size: clamp(2.6rem, 4vw, 3.6rem); }
.response-card .ledger-num .unit { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: .5em; color: #26272B; letter-spacing: 0; }
.response-card p:last-child { margin-top: 8px; font-size: .95rem; }

/* the map goes here: a blueprint grid on a vault panel, one chrome pin on Fresno */
.map-plate {
  position: relative;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background-image: linear-gradient(#26272B 1px, transparent 1px), linear-gradient(90deg, #26272B 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #0A0A0B;
  border: 1px solid #26272B;
  color: #C9CCD2;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.map-plate::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 62% 52%, transparent 30%, rgba(10,10,11,.75) 100%); pointer-events: none; }
.map-plate > * { position: relative; }
.map-plate .mono-label { display: block; color: #8E9199; margin-bottom: auto; padding-bottom: 84px; }
.map-city { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; color: #FFFFFF; }
.map-city .flourish { font-size: 1em; }
.map-city .flourish { background: var(--chrome); background-size: 220% 100%; background-position: calc(var(--light) * 100%) 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.map-sub { margin-top: 10px; font-size: .9rem; color: #C9CCD2; max-width: 30ch; }
.map-pin { position: absolute; left: 74%; top: 30%; width: 12px; height: 12px; border-radius: 50%; background: var(--chrome); background-size: 200% 100%; background-position: calc(var(--light) * 100%) 0; box-shadow: 0 0 0 1px #0A0A0B, 0 0 0 2px #8E9199, 0 0 24px rgba(255,255,255,.35); }
.map-pin::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid #8E9199; opacity: .5; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .plate-facts { grid-template-columns: 1fr; }
  .plate-fact { border-right: 0; border-bottom: 1px solid #26272B; padding: 22px 20px; }
  .plate-fact:last-child { border-bottom: 0; }
  .plate-fact::before { left: 20px; }
}
@media (max-width: 640px) {
  .phone-plate { padding: 22px 20px 20px; border-radius: 18px; }
  .plate-num { margin: 24px 0 22px; font-size: 8.8cqw; letter-spacing: .07em; }
  .plate-rule { margin-bottom: 18px; }
  .plate-screw { width: 8px; height: 8px; }
  .plate-screw.tl, .plate-screw.bl { left: 8px; }
  .plate-screw.tr, .plate-screw.br { right: 8px; }
  .plate-screw.tl, .plate-screw.tr { top: 8px; }
  .plate-screw.bl, .plate-screw.br { bottom: 8px; }
  .head-actions { flex-direction: column; gap: 10px; }
  .head-actions .btn { width: 100%; }
  .response-card, .map-plate { padding: 24px 22px; }
  .map-plate .mono-label { padding-bottom: 64px; }
}

/* reduced motion: the plate sits static, the light is frozen at .5 (system) */
@media (prefers-reduced-motion: reduce) {
  .plate-shadow { transform: translate(0, 30px) scale(.94); }
}
