/* ============================================================
   KEBS-TECH — charcoal + phosphor green, terminal-marked-up
   ============================================================ */

:root {
  --bg:        #1c1c1c;
  --bg-2:      #141414;
  --bg-3:      #232323;
  --ink:       #39ff14;
  --ink-dim:   #7fe07a;
  --secondary: #ffb000;
  --paper:     #e8e6e0;
  --line:      rgba(57, 255, 20, 0.22);
  --line-soft: rgba(232, 230, 224, 0.14);

  --section-color: var(--bg);
  --section-ink:   var(--paper);

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(2rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* subtle scanline overlay — decorative only */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

h1 { font-size: clamp(2rem, 1.2rem + 4.2vw, 4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bg-2);
  z-index: 100;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}
.brand { text-decoration: none; display: grid; gap: 0.1rem; }
.brand-mark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-dash { color: var(--secondary); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.6;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.site-nav a { text-decoration: none; color: var(--paper); opacity: 0.8; }
.site-nav a:hover { opacity: 1; color: var(--ink); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #0d0d0d;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.call-btn:hover { background: var(--secondary); border-color: var(--secondary); color: #0d0d0d; }
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0d0d0d;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.call-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }

/* ---------- scribble mark ---------- */
mark.scribble {
  background: none;
  color: var(--secondary);
  position: relative;
  padding-inline: 0.06em;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  height: 0.42em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 13 C 30 3, 55 18, 82 9 S 140 2, 168 12 S 190 8, 198 6' fill='none' stroke='%23ffb000' stroke-width='3.2' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

/* ---------- hover footnote annotations ---------- */
.note {
  position: relative;
  border-bottom: 1px dotted var(--secondary);
  cursor: help;
  color: var(--ink-dim);
}
.note::after {
  content: attr(data-note);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.6rem);
  width: min(20rem, 78vw);
  padding: 0.7rem 0.85rem;
  background: var(--bg-3);
  border: 1px solid var(--secondary);
  color: var(--paper);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.note:hover::after,
.note:focus-visible::after { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero {
  background: var(--bg);
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1.25rem; }
.lede {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  color: var(--paper);
  opacity: 0.88;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #0d0d0d; }
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); color: #0d0d0d; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(57, 255, 20, 0.1); color: var(--ink); }

.hero-note {
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 52ch;
  margin: 0;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.35) contrast(1.05);
}
.hero-figure figcaption,
.gallery figcaption,
.about-figure figcaption {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
  margin-top: 0.6rem;
}

/* ---------- section heads ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0.9rem; }
.section-sub { opacity: 0.82; margin: 0; }

/* ---------- services (menu-first) ---------- */
.services {
  background: var(--bg-2);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.menu-block h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.item:last-child { border-bottom: 0; }
.item-body { display: grid; gap: 0.15rem; }
.item-name { font-weight: 600; color: var(--paper); }
.item-desc { font-size: 0.82rem; opacity: 0.66; line-height: 1.5; }
.item-price {
  color: var(--secondary);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  opacity: 0.7;
  max-width: 70ch;
}

/* ---------- callout steps ---------- */
.callout {
  background: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
}
.step-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}
.steps h3 { margin-bottom: 0.4rem; color: var(--ink); font-size: 1.05rem; }
.steps p { font-size: 0.88rem; opacity: 0.78; margin: 0; }

.callout-band {
  display: grid;
  gap: var(--gap);
  align-items: center;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.band-figure { margin: 0; }
.band-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.35) contrast(1.05);
}
.band-copy h3 { color: var(--ink); margin-bottom: 0.9rem; }
.band-copy p { font-size: 0.9rem; opacity: 0.82; }

/* ---------- about ---------- */
.about {
  background: var(--bg-3);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.about-grid { display: grid; gap: var(--gap); align-items: start; }
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.4) contrast(1.05);
}
.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p { font-size: 0.92rem; opacity: 0.85; }
.creds {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.creds li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; }
.cred-k { color: var(--secondary); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; padding-top: 0.15rem; }

/* ---------- gallery ---------- */
.gallery {
  background: var(--bg-2);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.gallery-grid figure:hover img { filter: grayscale(0) contrast(1.05); transform: translateY(-3px); }

/* ---------- visit / cards ---------- */
.visit {
  background: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.footer-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.card h3 {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.hours { margin: 0; display: grid; gap: 0.35rem; font-size: 0.85rem; }
.hours > div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.hours dt { opacity: 0.8; }
.hours dd { margin: 0; color: var(--secondary); white-space: nowrap; }
.card-note { font-size: 0.8rem; opacity: 0.68; margin: 0; }
.card address { font-style: normal; font-size: 0.88rem; line-height: 1.65; }
.card-link { font-size: 0.82rem; text-decoration: none; border-bottom: 1px solid var(--line); align-self: flex-start; }
.big-phone {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.big-phone:hover { color: var(--secondary); }
.call-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.75;
}
.call-list li::before { content: "→ "; color: var(--secondary); }

.closing {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  border-top: 1px solid var(--line);
  max-width: 60ch;
}
.closing p {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.closing cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.foot-inner { display: grid; gap: 0.75rem; }
.foot-brand { font-weight: 600; color: var(--ink); margin: 0; font-size: 0.9rem; }
.foot-meta { font-size: 0.82rem; opacity: 0.7; margin: 0; }

.claim-banner {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.35);
  border-radius: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--secondary);
  text-decoration: none;
  align-self: flex-start;
}
.claim-banner:hover { background: rgba(255, 176, 0, 0.16); color: var(--secondary); }

.attribution { margin: 0.5rem 0 0; font-size: 0.72rem; }
.attribution a { color: var(--paper); opacity: 0.5; text-decoration: none; }
.attribution a:hover { opacity: 0.9; color: var(--ink); }
.muted { opacity: 0.7; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .callout-band { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 719px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 1rem; overflow-x: auto; }
  .call-btn { margin-left: auto; }
  .creds li { grid-template-columns: 1fr; gap: 0.1rem; }
  .item { grid-template-columns: 1fr; }
  .item-price { justify-self: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .progress span { transform: scaleX(1); }
  .gallery-grid figure:hover img { transform: none; }
}
