/* =====================================================================
   ORIENTED NETWORKS - Components

   Every selector here is a single class. No element selectors compete
   with them, so nothing cancels out when the layers stack.
   ===================================================================== */

/* =====================================================================
   SIGNATURE: the route line

   The blueprint describes three chains: how a campaign runs, how content
   reaches a screen, and how the company grows. All three are sequences,
   so they are drawn as stops along a route rather than as boxes with
   arrows between them.

   A pale segment travels the line on a slow loop. That movement is the
   product itself, an advertisement moving from the cloud to a screen on
   a moving bus.
   ===================================================================== */
.route {
  --stops: 4;
  position: relative;
  display: flex;
  gap: var(--s-4);
  padding-block: var(--s-5);
}

.route__stop {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  text-align: center;
}

/* The base line, inset so it starts and ends at a marker centre. */
.route::before {
  content: "";
  position: absolute;
  top: calc(var(--s-5) + 9px);
  left: calc(50% / var(--stops));
  right: calc(50% / var(--stops));
  height: 2px;
  background: var(--metal-line);
  opacity: 0.55;
}

/* The travelling signal. */
.route::after {
  content: "";
  position: absolute;
  top: calc(var(--s-5) + 8px);
  left: calc(50% / var(--stops));
  width: 84px;
  height: 4px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, var(--gold-lit), transparent);
  filter: blur(0.4px);
  animation: route-run var(--t-signal) var(--ease) infinite;
  pointer-events: none;
}

@keyframes route-run {
  0%        { transform: translateX(0); opacity: 0; }
  8%        { opacity: 0.95; }
  84%       { opacity: 0.95; }
  92%, 100% { transform: translateX(calc(100vw - 200px)); opacity: 0; }
}

.route__marker {
  position: relative;
  z-index: 1;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--ink), 0 0 18px rgba(201, 162, 39, 0.35);
}

.route__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--metal);
}

/* The final stop is the outcome, so it reads solid rather than hollow. */
.route__stop:last-child .route__marker {
  background: var(--metal);
  border-color: var(--gold-lit);
}

.route__label {
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: 600;
  line-height: 1.3;
  font-variation-settings: "wdth" var(--wdth-tight);
}

.route__note {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--track-mono);
  color: var(--paper-faint);
  text-transform: uppercase;
}

/* Below 860px the route turns vertical, which is how a route map is
   read on a phone anyway. */
@media (max-width: 860px) {
  .route {
    flex-direction: column;
    gap: var(--s-5);
    padding-left: var(--s-2);
  }

  .route__stop {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--s-5);
  }

  .route::before {
    top: calc(var(--s-5) + 9px);
    bottom: calc(var(--s-5) + 9px);
    left: calc(var(--s-2) + 9px);
    right: auto;
    width: 2px;
    height: auto;
    background: var(--metal-line-v);
  }

  .route::after {
    top: calc(var(--s-5) + 9px);
    left: calc(var(--s-2) + 8px);
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--gold-lit), transparent);
    animation-name: route-run-v;
  }

  @keyframes route-run-v {
    0%        { transform: translateY(0); opacity: 0; }
    8%        { opacity: 0.95; }
    84%       { opacity: 0.95; }
    92%, 100% { transform: translateY(calc(100% + 420px)); opacity: 0; }
  }
}

/* =====================================================================
   Section header
   ===================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

/* A stop marker, the same shape used on the route line, so the two
   read as one system. */
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--metal);
  flex: none;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  max-width: 72ch;
}

.section-head-center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

/* =====================================================================
   Buttons

   A plaque rather than a pill. The primary carries the metallic fill and
   a sheen that sweeps once on hover, which is the only place the gold
   moves outside the route line.
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 15px var(--s-6);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: 600;
  line-height: 1;
  font-variation-settings: "wdth" 104;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--metal);
  color: #221A05;
  border: var(--hair) solid var(--gold-lit);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 26px rgba(201, 162, 39, 0.2);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left var(--t-slow) var(--ease-out);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 34px rgba(201, 162, 39, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: var(--hair) solid var(--edge);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-lit);
  background: var(--gold-ghost);
}

.btn-quiet {
  padding-inline: 0;
  background: none;
  color: var(--gold);
  border: 0;
  border-radius: 0;
}

.btn-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.btn-quiet:hover::after {
  transform: scaleX(1);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* =====================================================================
   Cards
   ===================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--ink-raised);
  border: var(--hair) solid var(--edge-soft);
  border-radius: var(--r-md);
  transition: border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

/* A hairline across the top that lights up on hover, so the whole grid
   feels wired to the same current. */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--s-6);
  right: var(--s-6);
  height: 1px;
  background: var(--metal-line);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.card:hover {
  border-color: var(--edge);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card-featured {
  border-color: var(--gold-veil);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 40%), var(--ink-raised);
}

.card-featured::before {
  opacity: 1;
}

.card-flat:hover {
  transform: none;
  box-shadow: none;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  letter-spacing: var(--track-head);
}

.card__body {
  color: var(--paper-dim);
  font-size: var(--size-small);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: var(--hair) solid var(--edge-soft);
}

/* =====================================================================
   Stats

   Numbers are the proof in a media business, so they get the widest
   setting on the page and tabular figures that do not jump when the
   values update from the database.
   ===================================================================== */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--size-stat);
  font-weight: 700;
  line-height: 0.9;
  font-variation-settings: "wdth" var(--wdth-widest);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-faint);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-6);
}

/* =====================================================================
   Chips and status
   ===================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 11px;
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--paper-dim);
}

.chip-gold {
  border-color: var(--gold-veil);
  color: var(--gold-lit);
  background: var(--gold-ghost);
}

.chip-live {
  border-color: rgba(99, 216, 164, 0.3);
  color: var(--live);
}

.chip-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(99, 216, 164, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 5px rgba(99, 216, 164, 0); }
}

/* =====================================================================
   Screen frame

   A bezel for anything that represents a screen inside a bus. Keeps
   product imagery from floating loose on the page.
   ===================================================================== */
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-sunk);
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: var(--r-sm);
  border: var(--hair) solid var(--gold-veil);
  pointer-events: none;
}

.screen__inner {
  width: 100%;
  height: 100%;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--ink-lift), var(--ink-sunk));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screen__tag {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  z-index: 2;
}

/* =====================================================================
   Forms
   ===================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field__label {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-dim);
}

.field__req {
  color: var(--gold);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px var(--s-4);
  background: var(--ink-sunk);
  color: var(--paper);
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-sm);
  font-size: var(--size-small);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--paper-faint);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--edge);
  background: var(--ink);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-ghost);
  background: var(--ink);
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  padding-right: var(--s-8);
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.select option {
  background: var(--ink-raised);
  color: var(--paper);
}

.field-error .input,
.field-error .select,
.field-error .textarea {
  border-color: var(--alert);
}

.field__msg {
  font-size: var(--size-fine);
  color: var(--alert);
  min-height: 1.2em;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  font-size: var(--size-small);
  color: var(--paper-dim);
}

.check__box {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  background: var(--ink-sunk);
  border: var(--hair) solid var(--edge);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.check__box:checked {
  background: var(--metal);
  border-color: var(--gold-lit);
}

.check__box:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px auto;
  border: solid #221A05;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* The honeypot. Hidden from people, reachable by bots. Not display:none,
   because some bots skip those. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--size-small);
  border: var(--hair) solid var(--edge);
}

.form-note-ok {
  border-color: rgba(99, 216, 164, 0.35);
  background: rgba(99, 216, 164, 0.08);
  color: var(--live);
}

.form-note-bad {
  border-color: rgba(224, 112, 92, 0.35);
  background: rgba(224, 112, 92, 0.08);
  color: var(--alert);
}

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--hair) solid transparent;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.nav-stuck {
  border-bottom-color: var(--edge-soft);
  background: rgba(10, 9, 8, 0.94);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 74px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__link {
  position: relative;
  font-size: var(--size-small);
  color: var(--paper-dim);
  padding-block: var(--s-2);
  transition: color var(--t-fast) var(--ease);
}

.nav__link:hover {
  color: var(--paper);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--metal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.nav__link.is-current {
  color: var(--paper);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-3);
  margin-right: calc(var(--s-3) * -1);
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-open .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav__bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 74px 0 auto;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-5) var(--gutter) var(--s-7);
    background: var(--ink);
    border-bottom: var(--hair) solid var(--edge);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  }

  .nav-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding-block: var(--s-4);
    border-bottom: var(--hair) solid var(--edge-soft);
    font-size: var(--size-body);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: var(--s-5);
  }
}

/* =====================================================================
   Footer
   ===================================================================== */
.foot {
  background: var(--ink-sunk);
  border-top: var(--hair) solid var(--edge-soft);
  padding-block: var(--s-9) var(--s-6);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-7);
}

@media (max-width: 860px) {
  .foot__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.foot__head {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
}

.foot__link {
  display: block;
  padding-block: 7px;
  font-size: var(--size-small);
  color: var(--paper-dim);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.foot__link:hover {
  color: var(--gold-lit);
  padding-left: 5px;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: var(--hair) solid var(--edge-soft);
  font-size: var(--size-fine);
  color: var(--paper-faint);
}

/* =====================================================================
   Scroll reveal

   Applied by main.js. Without JavaScript the content is simply visible,
   which is the correct fallback.
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Brand mark

   A route running through a stop, which also reads as an O. This is a
   placeholder until the real Oriented Networks logo file is supplied.
   Replacing it means swapping the inline SVG in partials/header.html and
   partials/footer.html, plus public/assets/img/logo.svg.
   ===================================================================== */
.brandmark {
  width: 34px;
  height: 27px;
  flex: none;
}

/* =====================================================================
   Navigation additions
   ===================================================================== */
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--size-fine);
  letter-spacing: var(--track-mono);
  color: var(--gold);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.nav__phone svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.nav__phone:hover {
  color: var(--gold-lit);
}

/* The navigation carries six links plus a number plus a button, which
   is too much below this width, so the row collapses earlier than the
   menu breakpoint. */
@media (max-width: 1180px) and (min-width: 981px) {
  .nav__links {
    gap: var(--s-5);
  }

  .nav__phone {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav__phone {
    padding-block: var(--s-4);
    border-bottom: var(--hair) solid var(--edge-soft);
    font-size: var(--size-small);
  }
}

/* =====================================================================
   Footer additions
   ===================================================================== */
.foot__brand .nav__brand {
  margin-bottom: var(--s-4);
}

.foot__line {
  font-size: var(--size-small);
  color: var(--paper-dim);
  margin-bottom: var(--s-5);
  max-width: 32ch;
}

.foot__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
}

.foot__address {
  padding-block: 7px;
  font-size: var(--size-small);
  color: var(--paper-faint);
  max-width: 30ch;
}

.foot__social {
  display: flex;
  gap: var(--s-3);
}

.foot__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-sm);
  color: var(--paper-dim);
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.foot__social-link svg {
  width: 17px;
  height: 17px;
}

.foot__social-link:hover {
  color: var(--gold-lit);
  border-color: var(--gold-veil);
  background: var(--gold-ghost);
}

/* The footer navigation columns hold links directly, with no list
   wrapper, so they need their own top alignment. */
.foot__grid nav .foot__link:first-of-type {
  padding-top: 0;
}

/* =====================================================================
   Hero

   Two columns on desktop, stacked on mobile. The visual is a bus screen
   showing an empty advertising slot, which is the honest version of a
   hero image for a media network with no client photography yet. Drop a
   real photograph inside .screen__inner when one exists.
   ===================================================================== */
.hero {
  padding-block: clamp(56px, 8vw, 108px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

.hero__title {
  font-size: var(--size-hero);
  margin-top: var(--s-5);
}

.hero__sub {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--size-lead);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  color: var(--gold-lit);
}

.hero__copy .lead {
  margin-top: var(--s-4);
}

.hero__cta {
  margin-top: var(--s-7);
}

.hero__caption {
  margin-top: var(--s-4);
  color: var(--paper-faint);
  text-align: center;
}

/* The empty advertising slot inside the hero screen. */
.slot {
  padding: var(--s-6);
  text-align: center;
}

.slot__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: var(--s-4);
}

.slot__brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  font-variation-settings: "wdth" var(--wdth-widest);
  letter-spacing: var(--track-head);
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   Reasons

   A definition list rather than another card grid, so two consecutive
   six-item sections do not read as the same block twice.
   ===================================================================== */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0 var(--s-8);
}

.reasons__item {
  padding-block: var(--s-5);
  border-top: var(--hair) solid var(--edge-soft);
}

.reasons__term {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  margin-bottom: var(--s-2);
}

.reasons__def {
  margin: 0;
  font-size: var(--size-small);
  color: var(--paper-dim);
  max-width: 46ch;
}

/* =====================================================================
   City list

   Filled from /api/network. Until a city exists the empty state below
   stands in its place.
   ===================================================================== */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-4);
}

.city {
  padding: var(--s-5);
  background: var(--ink);
  border: var(--hair) solid var(--edge-soft);
  border-radius: var(--r-md);
}

.city__name {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
}

.city__state {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: var(--s-4);
}

.city__figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--hair) solid var(--edge-soft);
}

.city__figure {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city__num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variation-settings: "wdth" 114;
  font-variant-numeric: tabular-nums;
  color: var(--gold-lit);
}

.city__cap {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* =====================================================================
   Empty state
   ===================================================================== */
.empty {
  padding: var(--s-8) var(--s-6);
  text-align: center;
  background: var(--ink);
  border: var(--hair) dashed var(--edge);
  border-radius: var(--r-md);
}

.empty__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  margin-bottom: var(--s-3);
}

.empty__body {
  color: var(--paper-dim);
  font-size: var(--size-small);
  max-width: 52ch;
  margin: 0 auto var(--s-6);
}

/* =====================================================================
   Partner section
   ===================================================================== */
.partner__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 940px) {
  .partner__grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

.ticks {
  display: flex;
  flex-direction: column;
}

.ticks__item {
  position: relative;
  padding: var(--s-4) 0 var(--s-4) var(--s-7);
  border-bottom: var(--hair) solid var(--edge-soft);
  font-size: var(--size-small);
  color: var(--paper-dim);
}

.ticks__item:first-child {
  border-top: var(--hair) solid var(--edge-soft);
}

.ticks__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--metal);
}

/* =====================================================================
   Closing call to action
   ===================================================================== */
.closer {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201, 162, 39, 0.09), transparent 62%),
    var(--ink-sunk);
  border-top: var(--hair) solid var(--edge-soft);
  text-align: center;
}

.closer__title {
  font-size: var(--size-display);
  margin-bottom: var(--s-5);
}

.closer__cta {
  justify-content: center;
  margin-top: var(--s-7);
}

.closer__phone {
  margin-top: var(--s-6);
  font-size: var(--size-small);
  color: var(--paper-dim);
}

.closer__link {
  font-family: var(--font-mono);
  letter-spacing: var(--track-mono);
  color: var(--gold);
  border-bottom: var(--hair) solid var(--gold-veil);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.closer__link:hover {
  color: var(--gold-lit);
  border-color: var(--gold);
}

/* The hero visual keeps a sensible width once the grid stacks, so the
   screen does not stretch edge to edge on a tablet. */
.hero__visual {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

/* =====================================================================
   Inner page header

   Quieter than the homepage hero on purpose. The hero carries the
   screen visual and does the selling; every other page opens with type
   only and lets its content do the work.
   ===================================================================== */
.page-head {
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.page-head__title {
  font-size: var(--size-display);
  margin-top: var(--s-5);
  max-width: 20ch;
}

.page-head .lead {
  margin-top: var(--s-5);
}

/* =====================================================================
   Specification rows

   A label column beside a content column, separated by hairlines. Reads
   like a technical specification sheet, which suits a company selling
   connected infrastructure, and keeps this page from becoming a second
   card grid.
   ===================================================================== */
.spec {
  display: flex;
  flex-direction: column;
}

.spec__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-top: var(--hair) solid var(--edge-soft);
}

.spec__row:last-child {
  border-bottom: var(--hair) solid var(--edge-soft);
}

@media (max-width: 860px) {
  .spec__row {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding-block: var(--s-6);
  }
}

.spec__label {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

.spec__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  font-variation-settings: "wdth" 108;
  letter-spacing: var(--track-head);
  margin-bottom: var(--s-4);
}

.spec__body > p {
  color: var(--paper-dim);
  max-width: 60ch;
}

.spec__body > p + p {
  margin-top: var(--s-4);
}

/* =====================================================================
   Data table

   Used for network coverage. Below 720px each row becomes a stacked
   block with its column name in front of each value, so nothing needs
   sideways scrolling on a phone.
   ===================================================================== */
.table-wrap {
  border: var(--hair) solid var(--edge-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-small);
}

.table th {
  padding: var(--s-4) var(--s-5);
  background: var(--ink-sunk);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-faint);
  border-bottom: var(--hair) solid var(--edge);
}

.table td {
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair) solid var(--edge-soft);
  color: var(--paper-dim);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table__city {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  color: var(--paper);
}

.table__state {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-top: 2px;
}

.table__num {
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

@media (max-width: 720px) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .table tr {
    display: block;
    padding: var(--s-5);
    border-bottom: var(--hair) solid var(--edge-soft);
  }

  .table tr:last-child {
    border-bottom: 0;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    padding: 6px 0;
    border: 0;
  }

  .table td:first-child {
    padding-bottom: var(--s-3);
  }

  /* The column name is written onto each cell by the renderer. */
  .table td[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: var(--size-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--paper-faint);
  }

  .table td:first-child::before {
    content: none;
  }
}

/* A tighter tick list for use inside a card, where the full spacing
   would make the card taller than the text deserves. */
.ticks-tight .ticks__item {
  padding: 9px 0 9px var(--s-6);
  font-size: var(--size-fine);
}

.ticks-tight .ticks__item:first-child {
  border-top: 0;
}

.ticks-tight .ticks__item:last-child {
  border-bottom: 0;
}

.ticks-tight .ticks__item::before {
  top: 17px;
  width: 6px;
  height: 6px;
}

/* =====================================================================
   Enquiry layout

   The form comes first in the markup so it is the first thing reached
   on a phone. On desktop the supporting notes sit beside it.
   ===================================================================== */
.enquiry__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 940px) {
  .enquiry__grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

.aside {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

@media (max-width: 940px) {
  .aside {
    position: static;
  }
}

/* =====================================================================
   Form
   ===================================================================== */
.form {
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink-raised);
  border: var(--hair) solid var(--edge-soft);
  border-radius: var(--r-md);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-5);
}

.form__grid + .form__grid,
.form__grid + .field,
.field + .field,
.field + .form__grid,
.field + .check,
.form__grid + .check {
  margin-top: var(--s-5);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: var(--hair) solid var(--edge-soft);
}

.form__small {
  font-size: var(--size-fine);
  color: var(--paper-faint);
  max-width: 40ch;
}

/* Sits above the fields once there is something to say. */
.form__status {
  margin-bottom: var(--s-5);
}

.form__status[hidden] {
  display: none;
}

/* The button reports its own state while a submission is in flight. */
.btn[data-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* =====================================================================
   Thank you page
   ===================================================================== */
.done {
  text-align: center;
  padding-block: clamp(72px, 10vw, 140px);
}

.done__mark {
  width: 66px;
  height: 66px;
  margin: 0 auto var(--s-6);
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.done__mark svg {
  width: 28px;
  height: 28px;
  color: var(--gold-lit);
}

.done__ref {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding: 9px 16px;
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--size-fine);
  letter-spacing: var(--track-mono);
  color: var(--paper-dim);
}

.done__ref[hidden] {
  display: none;
}

.done__ref b {
  color: var(--gold-lit);
  font-weight: 600;
}

/* =====================================================================
   Contact methods

   The value is the point of the card, so it is set larger than the
   label rather than buried in body text.
   ===================================================================== */
.contact__value {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  color: var(--gold-lit);
  word-break: break-word;
  transition: color var(--t-fast) var(--ease);
}

a.contact__value:hover {
  color: var(--paper);
}

.contact__note {
  margin-top: var(--s-3);
  font-size: var(--size-fine);
  color: var(--paper-faint);
}

.contact__emails {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.contact__email {
  display: flex;
  flex-direction: column;
}

.contact__purpose {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* =====================================================================
   Map

   The whole section ships hidden and only appears once a Google Maps
   embed URL is saved in settings, so the page never shows an empty grey
   rectangle.
   ===================================================================== */
.map {
  aspect-ratio: 16 / 7;
  border: var(--hair) solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-raised);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Map tiles are bright. Toning them down stops the section fighting
     the rest of the page for attention. */
  filter: grayscale(0.35) brightness(0.82) contrast(1.05);
}

@media (max-width: 720px) {
  .map {
    aspect-ratio: 4 / 3;
  }
}
