/* =========================================================================
   Loop Data theme - derived from the logo: black, brushed chrome/silver, and
   the hot orange glow. Professional, technical, airy. Three typefaces:
   Space Grotesk (headings), Inter (body), IBM Plex Mono (technical labels).
   This is a first-pass theme; it can be spun out and refined on its own.
   ========================================================================= */

:root {
  --black:       #000000;
  --bg:          #0a0b0d;
  --bg-2:        #101319;
  --panel:       #13161d;
  --line:        rgba(255,255,255,0.09);
  --line-2:      rgba(255,255,255,0.16);

  --ink:         #eef1f5;   /* primary text - near-white silver */
  --ink-soft:    #aeb7c2;   /* secondary */
  --ink-dim:     #78828e;   /* muted */
  --silver:      #cad4df;

  --orange:      #ff7a18;   /* primary accent (logo "DATA") */
  --orange-soft: #ff9b47;
  --orange-deep: #e85f00;
  --orange-glow: rgba(255,122,24,0.55);

  --radius:      12px;
  --maxw:        1120px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .5em; }

a { color: var(--orange-soft); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0 0 1.1em; }

strong { color: #fff; font-weight: 600; }

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

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: .76rem;
  color: var(--orange);
  margin: 0 0 1rem;
}

.hot { color: var(--orange); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  color: #140a02;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  border: 0;
  border-radius: 999px;
  padding: .7em 1.4em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 6px 20px -8px var(--orange-glow);
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; color: #140a02; box-shadow: 0 10px 28px -8px var(--orange-glow); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: .84rem; padding: .44em .95em; white-space: nowrap; }
.btn-lg { font-size: 1.1rem; padding: .85em 1.8em; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { height: 52px; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { color: #140a02; }
.cta-short { display: none; }

/* Hamburger */
.hamburger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 0 10px; background: transparent; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; flex: none; }
.hamburger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menu opened by the hamburger */
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #000; border-top: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.site-header.menu-open .menu-panel { display: block; }
.menu-panel .wrap { display: flex; flex-direction: column; }
.menu-panel a { padding: 15px 2px; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a:hover { color: #fff; text-decoration: none; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; background: var(--black); }
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;             /* ~4:1 on desktop; min-height gives phones room for the overlaid text */
  min-height: 360px;
  background: #05070a url("/assets/img/skyline.jpg") center center / cover no-repeat;
  overflow: hidden;
}
/* No full-banner scrim: the image stays clear above and below the text band. */

/* Sniper-target reticles, placed by lib/helpers.php (percent of banner). */
.reticle {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--orange);
  pointer-events: none;
  /* Entrance flashes bright white then settles to orange (runs once); the
     orange pulse starts right after. Per-reticle timing via the two vars. */
  animation-name: reticle-in, reticle-pulse;
  animation-duration: 1.2s, 3.2s;
  animation-timing-function: ease-out, ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
  animation-delay: var(--in-delay, 0s), var(--pulse-delay, 1.2s);
  filter: drop-shadow(0 0 6px rgba(255,130,20,0.8));
  z-index: 1;                       /* always under the hero text band */
}
.reticle-svg { display: block; width: 100%; height: auto; }
.r-ring { fill: none; stroke: currentColor; stroke-width: 3.5; opacity: 1; }
.r-tick { stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
.r-dot  { fill: currentColor; }

/* Flash bright white on arrival, then fade into the orange. */
@keyframes reticle-in {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4);  color: #ffffff; }
  45%  { opacity: 1; transform: translate(-50%, -50%) scale(1.18); color: #ffffff; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1);   color: var(--orange); }
}
@keyframes reticle-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reticle { animation: none; opacity: 1; color: var(--orange); }
}

/* Copy overlays the skyline, centered, on a band only as tall as the text. */
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; z-index: 3; }
.hero-band { width: 100%; background: rgba(5,7,10,0.62); padding: 1.1rem 0; }
.hero-title { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.3rem, 6.6vw, 3.3rem); color: var(--orange); margin: 0; text-align: center; text-transform: uppercase; white-space: nowrap; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero-sub { font-size: clamp(1.1rem, 2.6vw, 1.9rem); color: var(--silver); margin: .4rem 0 0; font-family: var(--font-head); font-weight: 500; text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero-sub .nb { white-space: nowrap; }
.hero-sub .nb:first-child { margin-right: .55em; }   /* extra gap between the two sentences */
.hero-sub .w { color: #fff; }

/* Mobile hero: a square, zoomed crop with its own fewer, larger reticles. */
.reticle-m { display: none; }
@media (max-width: 640px) {
  .hero-banner { background-image: url("/assets/img/skyline-mobile.jpg"); aspect-ratio: 1 / 1; min-height: 0; }
  .reticle-d { display: none; }
  .reticle-m { display: block; }
}

/* ---- Content sections -------------------------------------------------- */
/* Shallow black separator band between the hero and the page body */
.band { background: #000; padding: clamp(16px, 2.6vw, 26px) 0; border-bottom: 1px solid var(--line); }
.band p { max-width: 800px; margin: 0 auto; text-align: justify; color: var(--silver); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.5; }

.pitch { padding: clamp(48px, 7vw, 92px) 0; border-bottom: 1px solid var(--line); }
.pitch-h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); color: #fff; text-align: center; }
.pitch-sub { color: var(--orange); font-size: 1rem; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 2rem; text-align: center; }

/* Light variant of a pitch section (white band) */
.pitch.light { background: #f5f7f9; color: #1a1f26; border-bottom-color: #e4e8ec; }
.pitch.light .pitch-h1 { color: #0d1116; }
.pitch.light .pitch-sub { color: var(--orange-deep); }
.pitch.light .prose p { color: #4a525c; }
.pitch.light .prose strong { color: #0d1116; }

/* Services list - two centered, left-aligned columns on large screens */
.svc-list { max-width: 680px; margin: 26px auto 0; columns: 2; column-gap: 44px; list-style: none; padding: 0; }
.svc-list li { break-inside: avoid; position: relative; padding: 10px 0 10px 24px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.svc-list li::before { content: "\25B8"; position: absolute; left: 2px; color: var(--orange); }
@media (max-width: 640px) { .svc-list { columns: 1; max-width: 420px; } }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink-soft); margin-bottom: 1.3em; text-align: justify; }
.prose strong { color: #fff; }
.prose em { font-style: italic; }

.page-head { padding: clamp(46px, 7vw, 88px) 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; }
.page-head-center { text-align: center; }
.page-head-center .btn { margin-top: 10px; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: #fff; }
.section-lead { color: var(--ink-soft); max-width: 640px; font-size: 1.08rem; }
.page-head-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Contact form ------------------------------------------------------ */
.contact-section { padding: clamp(48px, 7vw, 92px) 0; background: var(--bg-2); text-align: center; }
.contact-section .section-lead { margin-left: auto; margin-right: auto; }
.contact-form {
  max-width: 440px;
  margin: 28px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-form .field { text-align: left; }   /* labels/inputs stay left; heading, button, note centered */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--silver); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #0c0e13;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 13px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,24,0.18); }
.field textarea { resize: vertical; }
.field-captcha strong { color: var(--orange); }
.field-captcha input { max-width: 160px; }

.form-errors { background: rgba(255,80,40,0.1); border: 1px solid rgba(255,80,40,0.4); border-radius: 9px; padding: 10px 14px; margin-bottom: 18px; }
.form-errors p { margin: .2em 0; color: #ffb9a3; font-size: .95rem; }
.form-note { color: var(--ink-dim); font-size: .85rem; margin: 12px 0 0; }

/* Honeypot: off-screen, never seen by humans. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Blog teaser (LIGHT section - preview of a white band) ------------- */
.teaser { background: #f5f7f9; color: #1a1f26; padding: clamp(48px, 7vw, 84px) 0; }
.teaser .eyebrow { color: var(--orange-deep); text-align: center; }
.teaser-h2 { color: #0d1116; font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; }
.teaser-lead { color: #566069; max-width: 620px; margin: 0 auto; text-align: center; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.teaser-card { background: #fff; border: 1px solid #e4e8ec; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(20,30,45,.05); }
.teaser-card h3 { color: #0d1116; font-size: 1.15rem; margin: 0 0 8px; }
.teaser-card p { color: #566069; font-size: .95rem; margin: 0 0 14px; }
.teaser-card a { color: var(--orange-deep); font-weight: 600; }
.teaser-card a:hover { color: var(--orange); text-decoration: none; }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 54px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.footer-tag { color: var(--ink-dim); max-width: 320px; margin: 0; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim); font-family: var(--font-mono); font-weight: 500; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { color: var(--ink-soft); margin-bottom: 8px; font-size: .96rem; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .85rem; }
.footer-bottom .mono { color: var(--ink-dim); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* Compact header on phones (design floor 360px; still usable at 320). */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .header-inner { gap: 8px; }
  .brand-logo { height: 42px; }
  .header-actions { gap: 8px; }
  .btn-sm { font-size: .8rem; padding: .42em .8em; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .hamburger { width: 40px; height: 36px; gap: 4px; padding: 0 9px; }
  .site-header.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
