/* Arch Electric, coming soon page. NIGHT GLASS, INTER (Brief 26).
   Self contained: this folder is its own Netlify site with no build step.
   The look is the site's: deep blue top to bottom, deepening as the page
   goes down, off white text, one glass card, yellow as the light.

   COLOR. The client's five colors, and three blues derived from deep
   blue for the night gradient and the solid fallback:
     Deep Blue  #183653   Off White  #F8F7F2   Yellow  #F4C542
     Light Blue #76BDE0   Slate Gray #8A939E
     #132B42  deep blue at 80 percent over black
     #0B1825  deep blue at 45 percent over black, the footer
     #2A4560  off white at 8 percent over deep blue, the solid card
   Everything else is one of those with an alpha.

   COLOR LAW. Text is off white on the blues, deep blue on yellow and on
   the off white button. Light blue carries the small labels. Yellow is
   the light: the beam and its glow. No button here is yellow, because
   yellow means call and the page has no number yet.

   THE LOGO sits on flat deep blue at the top of the page, above every
   glow, never under glass.

   GLASS. One layer blurs what is behind it, the form card. Without
   backdrop-filter, or with reduced transparency asked for, it is the
   solid lifted blue in the same shape. Reduced motion stops the glow.
   Inter is self hosted from fonts/. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/inter-latin-900-normal.woff2') format('woff2'); }

:root {
  --deep: #183653;
  --off: #F8F7F2;
  --yellow: #F4C542;
  --blue: #76BDE0;
  --night-2: #132B42;
  --night-4: #0B1825;
  --lift: #2A4560;
  --ink: var(--off);
  --ink-2: rgba(248, 247, 242, 0.86);
  --rule: rgba(248, 247, 242, 0.14);
  --glass-brd: rgba(248, 247, 242, 0.15);
  --field-bg: rgba(11, 24, 37, 0.45);
  --field-brd: rgba(248, 247, 242, 0.28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 40rem;
  --pad: 1.125rem;
  --sbb-logo-w: 140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  /* flat deep blue behind the logo, then the night deepens */
  background: var(--night-4) linear-gradient(180deg, #183653 0, #183653 15rem, #132B42 55%, #0E2032 82%, #0B1825 100%);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { position: relative; z-index: 0; flex: 1 0 auto; overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
h1 { font-size: clamp(1.875rem, 6.4vw, 2.875rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.375rem); }
a { color: inherit; }
strong { font-weight: 900; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* THE HEADER. The stacked logo in its dark version, on flat deep blue. */
.top { padding: 2rem 0 1.5rem; }
.top__logo { width: min(100%, 19.5rem); margin: 0 auto; }

/* THE SIGNATURE TOUCH: the logo's own beam of light, as the shape that
   holds the headline. The yellow trapezoid keeps the proportions of the
   beam opening in the final logo (Brief 23). Deep blue on yellow is 7.63
   to 1. A soft yellow light sits behind it and ends at the top edge of
   this section, below the logo. */
.hero { position: relative; padding: 1.5rem 0 1rem; text-align: center; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(130vw, 60rem); height: 27rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 197, 66, 0.30), rgba(244, 197, 66, 0.09) 55%, rgba(244, 197, 66, 0)); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.beam {
  --top: 75.9%;
  position: relative;
  margin: 0 auto;
  width: min(100%, 31rem);
  aspect-ratio: 49 / 23.74;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 14%;
  background: var(--yellow);
  clip-path: polygon(calc(50% - var(--top) / 2) 0, calc(50% + var(--top) / 2) 0, 100% 100%, 0 100%);
}
.beam h1 { max-width: 16ch; color: var(--deep); }
.lede { max-width: 34rem; margin: 2rem auto 0; font-size: 1.125rem; line-height: 1.55; }
.lede p + p { margin-top: 1rem; color: var(--ink-2); }

/* THE CALLBACK FORM, in the page's one glass card, over a light blue glow */
.callback { position: relative; padding: 2.5rem 0 4rem; }
.callback::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 10%; width: min(140vw, 52rem); height: min(140vw, 52rem); transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(118, 189, 224, 0.22), rgba(118, 189, 224, 0)); pointer-events: none; }
.card { position: relative; padding: clamp(1.375rem, 4vw, 2.25rem); border-radius: 28px; border: 1px solid var(--glass-brd); background: var(--lift); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 30px 70px rgba(3, 10, 18, 0.45); }
.callback h2 { margin-bottom: 0.875rem; }
.callback__intro { margin-bottom: 1.5rem; color: var(--ink-2); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.875rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-brd);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  min-height: 3rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.form__honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* the button is off white, not yellow: yellow means call */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  font: inherit;
  font-weight: 900;
  font-size: 0.9375rem;
  color: var(--deep);
  background: var(--off);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: 0.7; cursor: default; }
.thanks { border-left: 3px solid var(--yellow); padding: 0.25rem 0 0.25rem 1rem; }
.thanks p + p { margin-top: 0.5rem; color: var(--ink-2); }
.thanks[hidden] { display: none; }

/* FOOTER, with the Sites by Bob signature row per the studio footer law:
   its own row under a hairline at the very bottom, the horizontal logo at
   140px in a chip matching the footer ground, full opacity always. */
.footer { position: relative; background: var(--night-4); padding: 2rem 0 1.75rem; font-size: 0.9375rem; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(244, 197, 66, 0), rgba(244, 197, 66, 0.75) 50%, rgba(244, 197, 66, 0)); }
.footer__copy { text-align: center; }
.foot__sig {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.foot__sig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.foot__sig-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.foot__sig-link:hover .foot__sig-label { text-decoration: underline; text-underline-offset: 3px; }
.foot__sig-logo {
  display: inline-flex;
  line-height: 0;
  background: var(--night-4);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
}
.foot__sig-logo img { width: var(--sbb-logo-w); height: auto; display: block; }
.foot__sig-arrow { display: inline-flex; line-height: 1; }

/* Thank you and 404 pages */
.note { position: relative; padding: 3rem 0 4.5rem; text-align: center; }
.note::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(130vw, 56rem); height: 22rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 197, 66, 0.30), rgba(244, 197, 66, 0.09) 55%, rgba(244, 197, 66, 0)); pointer-events: none; }
.note h1 { margin-bottom: 1rem; }
.note p { max-width: 30rem; margin: 0 auto; }
.note .btn { margin-top: 1.75rem; }

@media (min-width: 881px) {
  :root { --pad: 2rem; }
  .top { padding: 2.75rem 0 2rem; }
  .hero { padding-top: 2rem; }
  .callback { padding: 3rem 0 6rem; }
}

/* where the browser can blur: the real glass */
@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .card { background: linear-gradient(180deg, rgba(248, 247, 242, 0.13), rgba(248, 247, 242, 0.05)), rgba(11, 24, 37, 0.44); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
}
/* reduced transparency: the card goes solid, same shape */
@media (prefers-reduced-transparency: reduce) {
  .card { background: var(--lift); border-color: rgba(248, 247, 242, 0.22); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* reduced motion: the glow stops, at rest */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
