/* Debug Nelson - Draft B "Target Lock": the crosshair in their logo, at poster scale.
   The page is the brand blue. Black is the only other ink. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }

:root {
  --cyan: #00aeef;
  --ink: #0b0c0d;
  --white: #ffffff;
  --on-ink: #dfe7eb;

  --f-poster: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --snap: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cyan); color: var(--ink);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
p { margin: 0; }
h1, h2 { margin: 0; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--cyan); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.footer :focus-visible, .draft-strip :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

#trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer, .draft-strip { position: relative; z-index: 1; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.poster, .poster-h, .readout-name, .lock-title, .area-line, .bignum {
  font-family: var(--f-poster); font-weight: 900; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.005em;
}
.poster-h { font-size: clamp(3.6rem, 10vw, 9rem); }

.draft-strip { background: var(--ink); color: var(--on-ink); font-size: 0.875rem; text-align: center; padding: 8px var(--gutter); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cyan); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav-links a:hover { border-color: var(--ink); }
.btn-short { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  font: 600 1.0625rem/1 var(--f-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #24292c; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: #eef5f8; }
.nav .btn { min-height: 46px; padding: 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(72px, 9vw, 132px); }
.poster { font-size: clamp(3.3rem, 8.1vw, 7.6rem); line-height: 0.86; }
.poster .row { display: block; }
.poster mark, .poster-h mark { display: inline-block; background: var(--ink); color: var(--cyan); padding: 0.05em 0.12em 0.02em; margin-top: 0.06em; line-height: 0.86; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(20px, 3vw, 36px); }
.lede { max-width: 34ch; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.4; font-weight: 400; }

/* Target lock */
.lock { margin-top: clamp(36px, 5vw, 64px); }
.lock-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: clamp(14px, 2vw, 22px); }
.lock-stage { position: relative; }
.pest-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 20px); position: relative; }
.pest-row button {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: none; border: 0; padding: 10px 0 6px; color: inherit; cursor: pointer; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pest-row img { width: 100%; max-width: 116px; aspect-ratio: 1; transition: transform 0.4s var(--ease); }
.pest-row span { font-weight: 600; font-size: 1rem; }
.pest-row button[aria-checked="true"] img { transform: scale(0.92); }
@media (hover: hover) { .pest-row button[aria-checked="false"]:hover img { transform: translateY(-5px) scale(1.06); } }
.pest-row button:focus-visible { outline: none; }
.pest-row button:focus-visible span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.reticle { position: absolute; left: 0; top: 0; width: 160px; height: 160px; pointer-events: none; z-index: 2; opacity: 0; }
.reticle.on { opacity: 1; }
.reticle.glide { transition: transform 0.6s var(--snap); }
.reticle.pulse { animation: lockpulse 0.5s var(--ease); }
@keyframes lockpulse { 0% { scale: 1.28; } 100% { scale: 1; } }

.readout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 8px clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(16px, 2.4vw, 28px); padding-top: clamp(16px, 2.4vw, 28px); border-top: 4px solid var(--ink); }
.readout-name { font-size: clamp(4.4rem, 12vw, 10.5rem); grid-row: span 2; }
.readout-line { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 600; max-width: 22ch; align-self: end; }
.readout-cta { font-size: 1.125rem; }
.readout-cta a { font-weight: 600; }
.readout.swap .readout-name, .readout.swap .readout-line { animation: swapin 0.32s var(--ease); }
@keyframes swapin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Home / Business */
.who .wrap, .local .wrap, .contact .wrap { border-top: 4px solid var(--ink); }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.who-col { padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px) clamp(36px, 5vw, 72px) 0; display: grid; gap: 20px; align-content: start; }
.who-col + .who-col { position: relative; padding-left: clamp(16px, 3vw, 48px); padding-right: 0; }
.who-col + .who-col::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.who-col p { max-width: 36ch; font-size: 1.25rem; line-height: 1.45; }

/* Local */
.local { padding-bottom: clamp(48px, 7vw, 104px); }
.local .wrap { padding-top: clamp(48px, 7vw, 104px); }
.local-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.local-van { margin: 0; }
.local-van img { width: 100%; aspect-ratio: 868 / 710; object-fit: cover; }
.local-copy { display: grid; gap: 24px; }
.local .poster-h { font-size: clamp(3.4rem, 7.4vw, 6.6rem); }
.local-copy p { max-width: 44ch; font-size: 1.2rem; }
.local-copy .rating { font-weight: 600; }
.local-copy .rating a { font-weight: 600; }

/* Where */
.area { padding-block: clamp(44px, 6vw, 88px) clamp(20px, 3vw, 40px); }
.area-line { font-size: clamp(3.2rem, 11vw, 10rem); }
.area-line span { display: inline-block; margin-right: 0.18em; }
.area-sub { margin-top: 16px; font-size: 1.2rem; font-weight: 600; }

/* Contact: the trail arrives at the crosshair */
.contact { padding-bottom: clamp(56px, 8vw, 112px); }
.contact .wrap { padding-top: clamp(44px, 6vw, 88px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.contact .poster-h { font-size: clamp(3.4rem, 7.2vw, 6.6rem); }
.contact-target { display: grid; gap: 20px; justify-items: center; text-align: center; }
@media (min-width: 901px) {
  .contact-grid { grid-template-areas: "copy lock" "text num" "mail num"; align-items: start; row-gap: 20px; }
  .contact-target { display: contents; }
  .contact-copy { grid-area: copy; align-self: center; }
  .contact-target .lockpoint { grid-area: lock; justify-self: center; }
  .contact-target .bignum { grid-area: num; justify-self: center; align-self: start; }
  .contact-target .btn { grid-area: text; justify-self: start; }
  .contact-target .contact-mail { grid-area: mail; justify-self: start; text-align: left; }
}
.lockpoint { position: relative; width: min(300px, 56vw); aspect-ratio: 1; }
.lockpoint svg { width: 100%; height: 100%; }
.lock-ant { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; opacity: 0; transform: translate(-50%, -50%) rotate(125deg) scale(0.5); }
.lockpoint.hit .lock-ant { opacity: 1; transform: translate(-50%, -50%) rotate(125deg) scale(1); transition: transform 0.5s var(--ease), opacity 0.2s; }
.lockpoint.hit svg { animation: lockpulse 0.5s var(--ease); }
.bignum { display: inline-block; white-space: nowrap; font-size: clamp(2.8rem, 5.4vw, 5rem); text-decoration: none; }
.bignum:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; }
.contact-mail a { font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink); padding-block: 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-logo { height: 76px; width: auto; }
.footer address { line-height: 1.8; }
.footer a { text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer-links { display: flex; gap: 20px; font-size: 0.9375rem; }

.mobile-bar { display: none; }

/* Motion: hero entrance, scroll reveals. Content is visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .poster .row, .hero-sub, .lock { animation: rise 0.9s var(--ease) both; }
  .poster .row:nth-child(2) { animation-delay: 0.1s; }
  .hero-sub { animation-delay: 0.22s; }
  .lock { animation-delay: 0.32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

  .js .lockpoint svg { transform: scale(1.45); opacity: 0; transition: transform 1.1s var(--ease), opacity 0.6s; }
  .js .lockpoint.in svg { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reticle.glide { transition: none; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .readout { grid-template-columns: 1fr; }
  .readout-name { grid-row: auto; }
  .local-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-target { justify-items: start; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 720px) {
  :root { --gutter: 26px; }
  body { font-size: 1.0625rem; }
  .show-bar { padding-bottom: 76px; }
  .nav-inner { height: 64px; }
  .brand img { height: 34px; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
  .poster { font-size: clamp(2.6rem, 12.2vw, 4.4rem); }
  .poster .row:first-child { text-wrap: balance; }
  .poster .row:last-child { white-space: nowrap; }
  .hero-sub { flex-direction: column; align-items: stretch; }
  .cta-row .btn { flex: 1 1 100%; }
  .pest-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .who-grid { grid-template-columns: 1fr; }
  .who-col + .who-col { padding-left: 0; }
  .who-col + .who-col::before { right: 0; bottom: auto; width: auto; height: 4px; }
  .who-col { padding-right: 0; }

  .mobile-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--cyan); border-top: 3px solid var(--ink);
    transform: translateY(105%); transition: transform 0.35s var(--ease);
  }
  .show-bar .mobile-bar { transform: none; }
  .mobile-bar .btn { min-height: 54px; }
}
