/* =========================================================
   okie.digital.⭐ — design system

   Structure is the technical/modular one: a visible rule grid
   with dot intersections, corner-bracket frames, a vertical
   social rail, a live clock in the bar. Rendered black, crimson and
   moon white, because the glow is the house style.

   The two ideas fight unless the neon is disciplined: hairline
   rules that barely glow, one saturated accent, and light that
   pools *under* elements rather than smearing everywhere. Glow
   on every surface reads as haze, not neon.
   ========================================================= */

:root {
  --ground: #050506;
  --ground-2: #0b0b0e;
  --panel: rgba(255, 255, 255, .022);

  --ink: #f6f4ee;
  --ink-soft: #a7a4ad;
  --ink-faint: #6d6a74;

  /* Crimson is the ink: accents, borders, marks. */
  --accent: #dc143c;
  --accent-hot: #ff2d55;
  --accent-deep: #8c0d26;

  /* Moon white is the light: every glow and bloom resolves to this.
     Crimson glowing on black goes muddy — a warm-white core with crimson
     underneath is what actually reads as neon. */
  --moon: #fdfbf5;

  --rule: rgba(253, 251, 245, .08);
  --rule-lit: rgba(220, 20, 60, .38);

  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --pad-section: clamp(3.5rem, 9vw, 8rem);

  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "SF Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The signature: light pooling beneath a thing, as if it sits on a
     dark reflective floor. */
  --pool: 0 14px 34px -12px rgba(253, 251, 245, .5);
  --pool-soft: 0 10px 26px -14px rgba(253, 251, 245, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  /* Faint vignette so the neon has somewhere dark to sit against. */
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(220, 20, 60, .13), transparent 62%),
    radial-gradient(900px 540px at 8% 12%, rgba(253, 251, 245, .05), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--moon); padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- the rule grid ----------
   Fixed behind everything, so the page reads as drawn on graph paper.
   Two layers: the lines, and the dots at their intersections. */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: clamp(120px, 16vw, 220px) clamp(120px, 16vw, 220px);
  /* Fade the grid out at the edges so it doesn't box the viewport in. */
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 30%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 100% at 50% 30%, #000 45%, transparent 100%);
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(220, 20, 60, .34) 1px, transparent 1.6px);
  background-size: clamp(120px, 16vw, 220px) clamp(120px, 16vw, 220px);
}

/* Everything above the grid. */
.site-head, main, .site-foot, .social-rail { position: relative; z-index: 2; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 5, 6, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .1rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none;
  text-shadow: 0 0 14px rgba(253, 251, 245, .5);
}
.brand .dot { color: var(--accent); }
.brand .star { margin-left: .18rem; filter: drop-shadow(0 0 6px rgba(253, 251, 245, .9)); }

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a {
  position: relative;
  text-decoration: none; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-soft); padding: .4rem 0;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); opacity: 0;
  box-shadow: 0 0 10px var(--accent);
  transition: opacity .18s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { opacity: 1; }

.head-meta {
  display: flex; align-items: center; gap: .55rem;
  font-size: .74rem; letter-spacing: .06em; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.head-meta .diamond { color: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--rule-lit); background: transparent; place-items: center;
  box-shadow: var(--pool-soft);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ''; display: block; width: 18px; height: 1.5px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); position: relative;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- vertical social rail ---------- */

.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 55; display: grid; gap: -1px;
}
.social-rail a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--rule); border-right: 0;
  color: var(--ink-soft); background: rgba(5, 5, 6, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .18s var(--ease), box-shadow .18s var(--ease);
}
.social-rail a + a { border-top: 0; }
.social-rail a:hover {
  color: var(--accent);
  box-shadow: inset 0 0 22px rgba(253, 251, 245, .18), -6px 0 20px -8px rgba(253, 251, 245, .6);
}
.social-rail svg { width: 16px; height: 16px; }

@media (max-width: 1100px) { .social-rail { display: none; } }

/* ---------- corner-bracket frame ---------- */

.framed { position: relative; }
.framed > .corner {
  position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--accent); opacity: .85;
  filter: drop-shadow(0 0 5px rgba(253, 251, 245, .7));
}
.framed > .corner:nth-child(1) { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.framed > .corner:nth-child(2) { top: -1px; right: -1px; border-top: 1.5px solid; border-right: 1.5px solid; }
.framed > .corner:nth-child(3) { bottom: -1px; left: -1px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.framed > .corner:nth-child(4) { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ---------- panels ---------- */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.panel:hover {
  border-color: var(--rule-lit);
  box-shadow: var(--pool);
  transform: translateY(-3px);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) var(--pad-section); }

.hero-meta {
  display: flex; gap: 1rem; align-items: center;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.75rem;
}
.hero-meta .bar {
  flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--rule-lit), transparent);
}

.hero h1 {
  margin: 0; max-width: 20ch;
  font-size: clamp(2rem, 6vw, 4.1rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.035em;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 26px rgba(253, 251, 245, .55), 0 0 60px rgba(253, 251, 245, .28);
}

.hero-sub { margin: 1.6rem 0 0; max-width: 50ch; color: var(--ink-soft); font-size: clamp(.92rem, 1.5vw, 1.02rem); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.7rem; cursor: pointer; font-family: inherit;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--moon);
  box-shadow: var(--pool);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px -12px rgba(253, 251, 245, .75);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--rule-lit);
  box-shadow: var(--pool-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */

.section { padding-block: var(--pad-section); border-top: 1px solid var(--rule); }

.section-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .8rem;
  text-shadow: 0 0 12px rgba(253, 251, 245, .45);
}
.section-title {
  margin: 0 0 2.75rem;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08;
}
.section-title .brace { color: var(--accent); text-shadow: 0 0 18px rgba(253, 251, 245, .5); }

/* ---------- services ---------- */

.services { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }

.service { display: grid; gap: .9rem; align-content: start; }

.service-num {
  margin: 0; font-size: .76rem; letter-spacing: .22em; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 12px rgba(253, 251, 245, .5);
}
.service h3 {
  margin: 0; font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 700;
  letter-spacing: -.005em; text-transform: uppercase;
}
.service p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  font-size: .69rem; letter-spacing: .08em; padding: .3rem .55rem;
  border: 1px solid var(--rule); color: var(--ink-soft);
  background: rgba(255, 255, 255, .02);
}

/* ---------- marquee strip ----------
   The orange band, in motion. Duplicated content and a -50% translate so
   the loop is seamless rather than snapping back. */

.strip {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
  box-shadow: 0 0 40px -6px rgba(253, 251, 245, .6);
  padding: .75rem 0;
}
.strip-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.strip-track span {
  display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  color: var(--moon); font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }

.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .93rem; padding: .8rem .9rem; width: 100%;
  border: 1px solid var(--rule); background: rgba(255, 255, 255, .03); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(253, 251, 245, .35), 0 8px 24px -14px rgba(253, 251, 245, .8);
}
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #ff5f56; }
.field-error { font-size: .7rem; color: #ff8a80; min-height: 1em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: .84rem; min-height: 1.2em; }
.form-status.is-good { color: #6ee7a0; text-shadow: 0 0 12px rgba(110, 231, 160, .4); }
.form-status.is-bad { color: #ff8a80; }

.contact-aside dl { margin: 0; display: grid; gap: 1.4rem; }
.contact-aside dt {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .3rem;
}
.contact-aside dd { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.contact-aside a {
  color: var(--accent); text-decoration: none;
  text-shadow: 0 0 12px rgba(253, 251, 245, .45);
}

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-col h4 {
  margin: 0 0 .9rem; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 700;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-col a {
  text-decoration: none; font-size: .86rem; color: var(--ink-soft);
  transition: color .18s var(--ease), text-shadow .18s var(--ease);
}
.foot-col a:hover { color: var(--accent); text-shadow: 0 0 12px rgba(253, 251, 245, .5); }

.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .76rem; color: var(--ink-faint);
}

/* ---------- scroll reveal ----------
   Set by js/site.js via IntersectionObserver. Declared here so the
   pre-reveal state never applies when JavaScript is off — a visitor
   without it sees the finished page, not a blank one. */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ---------- mobile nav ---------- */

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .head-meta { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: rgba(5, 5, 6, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule-lit);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Full-screen overlay menu

   The hamburger is present at every width, not just on phones —
   a single way in to the same panel, so the interaction is the
   same thing you learn once wherever you are.

   Links stagger in on a per-item delay set in the markup, and
   the whole panel is inert to the keyboard while closed so tab
   order never wanders into a hidden menu.
   ========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(5, 5, 6, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .34s var(--ease), visibility .34s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

/* Crimson wash from the top corner so the black isn't flat. */
.menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 460px at 82% 6%, rgba(220, 20, 60, .17), transparent 64%),
    radial-gradient(560px 360px at 10% 92%, rgba(253, 251, 245, .05), transparent 62%);
}

.menu-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.menu-close {
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--rule-lit); background: transparent;
  color: var(--ink);
  transition: color .18s var(--ease), box-shadow .18s var(--ease);
}
.menu-close:hover, .menu-close:focus-visible {
  color: var(--accent);
  box-shadow: 0 0 22px -6px rgba(253, 251, 245, .7);
}
.menu-close svg { width: 18px; height: 18px; }

.menu-body {
  position: relative;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: clamp(1.5rem, 5vw, 3rem) var(--gutter);
  overflow-y: auto;
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding: clamp(.5rem, 1.6vw, .9rem) 0;
  text-decoration: none;
  font-size: clamp(1.9rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  /* Staggered arrival, driven by --i on each link. */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease),
    color .2s var(--ease), border-color .2s var(--ease);
}
.menu-overlay.is-open .menu-link {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 90ms);
}
.menu-link .idx {
  font-size: clamp(.65rem, 1.4vw, .8rem);
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(253, 251, 245, .45);
}
.menu-link:hover, .menu-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--rule-lit);
  text-shadow: 0 0 30px rgba(253, 251, 245, .5);
}

.menu-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: .76rem;
  color: var(--ink-faint);
}
.menu-foot a { color: var(--ink-soft); text-decoration: none; }
.menu-foot a:hover { color: var(--accent); }

/* The hamburger is now the only nav control, at every width. */
.menu-btn { display: grid; }
.nav { display: none; }

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .menu-overlay, .menu-link { transition: none !important; }
  .menu-overlay.is-open .menu-link { opacity: 1; transform: none; }
}

/* --- select control -------------------------------------------------
   The dropdown list is drawn by the OS, not by page CSS. It was rendering
   on a white popup while inheriting the site's near-white text, so the
   options were invisible until highlighted — you couldn't see what you
   were picking.

   color-scheme is the fix that actually reaches the popup: it tells the
   browser to render native UI dark, so the list, its scrollbar and the
   highlight all follow. The explicit option colours are the fallback for
   engines that ignore it. */
.field select {
  color-scheme: dark;

  /* Drop the default arrow so the control can match everything else, and
     draw a crimson chevron in its place. Encoded inline rather than as a
     file so it can't 404 and leave a control with no affordance. */
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc143c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 16px;
  /* Keep the value clear of the chevron. */
  padding-right: 2.4rem;
  cursor: pointer;
}

.field select option {
  background: #0b0b0e;
  color: #f6f4ee;
}

/* The placeholder row reads as a prompt, not as a chosen value. */
.field select option[value=""] { color: #6d6a74; }

/* Until something is picked, the control itself shows the muted prompt
   colour — so "Select…" doesn't look like an answer you already gave. */
.field select:invalid,
.field select.is-empty { color: var(--ink-faint); }
