/* ===========================================================
   EYN Vending — V2 "Showroom"
   The page is the showroom; the machines are the dark objects
   on display. LED ticker, vend shelf, spec-sheet type.
   =========================================================== */
:root {
  --show: #FAFBF9;          /* showroom floor */
  --show-dim: #F1F4F0;      /* secondary surface */
  --ink: #0B1F1B;           /* deep teal-black text */
  --ink-60: rgba(11, 31, 27, 0.62);
  --ink-30: rgba(11, 31, 27, 0.30);
  --teal: #0F8A7E;          /* brand */
  --teal-deep: #0A5C55;
  --led-bg: #06140F;        /* machine display interior */
  --led: #35E0C4;           /* LED text */
  --led-dim: rgba(53, 224, 196, 0.45);
  --amber: #F5A623;         /* price tag */
  --line: rgba(11, 31, 27, 0.14);
  --line-strong: rgba(11, 31, 27, 0.4);

  --display: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--show);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 420;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.0;
  letter-spacing: -0.015em;
  font-weight: 780;
}
p { margin: 0 0 1em; color: var(--ink-60); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

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

/* Display headline — wide-set Archivo, the site's voice */
.hd {
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hd-xl { font-size: clamp(42px, 7.2vw, 92px); line-height: 0.94; }
.hd-lg { font-size: clamp(30px, 4.4vw, 54px); line-height: 0.98; }
.hd-md { font-size: clamp(22px, 2.8vw, 32px); }

/* Mono utility */
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Slot code — only on selectable things */
.slot-code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 2px 7px;
  display: inline-block;
}

/* Price tag — amber, like a vend price */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}
.price-tag strong { font-size: 17px; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-vend { background: var(--ink); color: var(--show); }
.btn-vend:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-led { background: var(--led); color: var(--led-bg); }
.btn-led:hover { background: #5aeed6; }

/* ===========================================================
   Header + LED ticker
   =========================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--show);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-stretch: 118%;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand .mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--teal); }
.nav-links a.nav-cta {
  color: var(--show);
  background: var(--ink);
  padding: 11px 18px;
  border-radius: 3px;
  border-bottom: none;
}
.nav-links a.nav-cta:hover { background: var(--teal-deep); color: var(--show); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--show);
    padding: 22px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
}

/* LED ticker — a real machine's scrolling display */
.ticker {
  background: var(--led-bg);
  border-bottom: 1px solid rgba(53,224,196,0.2);
  overflow: hidden;
  padding: 9px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--led);
  white-space: nowrap;
  padding-right: 14px;
}
.ticker-track span::after {
  content: "•";
  color: var(--led-dim);
  padding-left: 14px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ===========================================================
   Hero — showroom floor, machine photo displayed at scale
   =========================================================== */
.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  min-height: 560px;
}
.hero-copy {
  padding: 72px 40px 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--teal);
}
.hero h1 { margin-bottom: 26px; }
.hero h1 .accent { color: var(--teal); }
.hero .lede {
  font-size: 17.5px;
  max-width: 470px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-photo {
  position: relative;
  background: var(--show-dim);
  border-left: 1px solid var(--line);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-photo .photo-spec {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--led-bg);
  color: var(--led);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
  border: 1px solid rgba(53,224,196,0.3);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 54px 0 44px; }
  .hero-photo { min-height: 380px; border-left: none; border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); }
}

/* ===========================================================
   The Machine — full-width interactive shelf (signature)
   =========================================================== */
.machine-section {
  padding: 90px 0 100px;
  border-bottom: 1px solid var(--line);
}
.machine-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.machine-head p { max-width: 440px; margin: 0; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .format-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .format-grid { grid-template-columns: 1fr; } }

.format-card {
  background: var(--show-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px 22px;
}
.format-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--teal);
}
.format-card h3 {
  font-stretch: 112%;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 17px;
  margin-bottom: 8px;
}
.format-card p {
  font-size: 14.5px;
  margin: 0;
}

.format-cta {
  margin-top: 30px;
  text-align: center;
}

.machine-footnote {
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-30);
}

/* ===========================================================
   Equipment gallery — tall photos at natural proportion
   =========================================================== */
.gallery-section { padding: 90px 0; border-bottom: 1px solid var(--line); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item { display: flex; flex-direction: column; }
.gallery-item .ph {
  background: var(--show-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
}
.gallery-item .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover .ph img { transform: scale(1.025); }
.gallery-item .spec {
  border-top: 2px solid var(--ink);
  margin-top: 18px;
  padding-top: 14px;
}
.gallery-item .spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}
.gallery-item h3 {
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 780;
}
.gallery-item .spec p { font-size: 14px; margin: 8px 0 0; }
.gallery-item .spec .mono { color: var(--ink-30); font-size: 11px; }

/* ===========================================================
   Service loop — spec-sheet table, not cards
   =========================================================== */
.loop-section { padding: 90px 0; border-bottom: 1px solid var(--line); }
.loop-table { margin-top: 44px; border-top: 2px solid var(--ink); }
.loop-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr auto;
  gap: 26px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.loop-row .step {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-30);
}
.loop-row h3 {
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 780;
}
.loop-row p { font-size: 14.5px; margin: 0; }
.loop-row .loop-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .loop-row { grid-template-columns: 60px 1fr; }
  .loop-row p { grid-column: 2; }
  .loop-row .loop-meta { grid-column: 2; }
}

/* ===========================================================
   Who we serve — one honest line
   =========================================================== */
.serve-section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.serve-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 30px;
}
.serve-chip {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 10px 20px;
  color: var(--ink);
  background: var(--show);
}

/* ===========================================================
   Region band
   =========================================================== */
.region-band {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 300px;
}
.region-photo { position: relative; }
.region-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-copy {
  padding: clamp(40px, 5vw, 70px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--show-dim);
}
.region-copy .mono { color: var(--teal); margin-bottom: 16px; }
.region-copy h2 { margin-bottom: 14px; }
.region-copy p { max-width: 480px; margin-bottom: 0; }
@media (max-width: 820px) {
  .region-band { grid-template-columns: 1fr; }
  .region-photo { min-height: 240px; }
}

/* ===========================================================
   CTA — a giant price tag
   =========================================================== */
.cta-section { padding: 100px 0; }
.cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.cta-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  margin-bottom: 28px;
  transform: rotate(-1.5deg);
}
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner > p { max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   Page header (interior)
   =========================================================== */
.page-header {
  border-bottom: 1px solid var(--line);
  padding: 70px 0 56px;
}
.page-header .mono { color: var(--teal); display: block; margin-bottom: 18px; }
.page-header h1 { margin-bottom: 18px; }
.page-header p { max-width: 560px; font-size: 17px; margin: 0; }

/* Generic section head */
.sec-head { max-width: 640px; }
.sec-head .mono { color: var(--teal); display: block; margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { font-size: 16.5px; }

section.pad { padding: 90px 0; border-bottom: 1px solid var(--line); }
section.pad:last-of-type { border-bottom: none; }

/* Two-column content split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .ph {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--show-dim);
}
.split .ph img { width: 100%; height: 100%; object-fit: cover; }

/* Plain list with rules */
.rule-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.rule-list li::before {
  content: "→";
  font-family: var(--mono);
  color: var(--teal);
  flex-shrink: 0;
}

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,138,126,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Contact info panel styled as machine display */
.contact-display {
  background: var(--led-bg);
  border: 1px solid rgba(53,224,196,0.2);
  border-radius: 10px;
  padding: clamp(26px, 3vw, 38px);
}
.contact-display .cd-head {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--led-dim);
  margin-bottom: 26px;
}
.cd-row {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cd-row:last-of-type { border-bottom: none; }
.cd-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
}
.cd-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--led);
}
.cd-value a:hover { color: #7df3dd; }
.cd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cd-chips span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(53,224,196,0.35);
  color: var(--led);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ===========================================================
   Footer
   =========================================================== */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-stretch: 118%;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand .mark { width: 26px; height: 26px; }
.footer-tag { max-width: 260px; font-size: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 11px;
}
.footer-col a:hover { color: var(--led); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--led); }

/* ===========================================================
   Reveal + focus
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
