/* Structonix Engineers — modular rack + sliding slots
   Palette from the interlocking S: steel teal #0a6992 on white, ink #000. */

:root {
  --steel:       #0a6992;
  --steel-mid:   #1a749a;
  --steel-deep:  #064d6c;
  --steel-glow:  #7ec8e6;
  --ink:         #07141a;
  --ink-2:       #0c1f28;
  --ink-3:       #12303c;
  --rail:        #0a1c24;
  --line:        #1b4656;
  --paper:       #f3f8fa;
  --paper-2:     #e6eef2;
  --on-dark:     #f3f8fb;
  --on-dark-dim: #c8d9e2;
  --on-light:    #0a1216;
  --muted-light: #3d5560;
  --white:       #ffffff;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    72px;
  --maxw:        1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: "Noto Serif", Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .eyebrow, .kicker, .nav, .btn,
.slot-u, .slot-kicker, .rack-serial, .rack-power, .tray-id,
.unit-no, .faq-q, .terminal-head, .contact-email, .hero-meta {
  font-family: "Chivo", system-ui, sans-serif;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 4.4vw, 3.55rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.28rem; font-weight: 700; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--steel); color: var(--white); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: var(--steel); color: var(--white); text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(10, 105, 146, .7);
}
.btn-ghost {
  background: transparent; color: var(--on-dark); border-color: var(--line);
}

.eyebrow, .kicker {
  display: inline-block; margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel-glow);
}

/* Header: thin rack-ear ticks along the top */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 2px, transparent 2px 16px);
  opacity: .45; pointer-events: none;
}
.site-header.scrolled {
  background: rgba(7, 20, 26, .9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 4px; background: var(--white); }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-name em { font-style: normal; font-weight: 500; letter-spacing: .12em; color: var(--on-dark-dim); font-size: .78em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--on-dark-dim); letter-spacing: .04em; text-transform: uppercase; }
.nav .nav-cta {
  color: var(--on-dark); border: 1px solid var(--line); padding: 8px 16px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--on-dark); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ===== Hero: 19-inch engineering rack ===== */
.hero {
  position: relative;
  padding: 120px 0 72px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(10, 105, 146, .22), transparent 50%),
    var(--ink);
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 460px);
  gap: 48px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-sub {
  margin-top: 22px; font-size: 1.05rem; color: var(--on-dark-dim); max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  margin-top: 22px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel-mid);
}

.rack {
  display: grid; grid-template-columns: 22px 1fr 22px;
  background: var(--rail);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(126, 200, 230, .08),
    0 28px 60px -28px rgba(0, 0, 0, .65);
}
.rack-ear {
  background:
    radial-gradient(circle, #9ad0e6 1.15px, transparent 1.35px) 50% 10px / 100% 16px,
    linear-gradient(180deg, #0e2430, #07141a);
  box-shadow: inset 0 0 0 1px #163848;
}
.rack-chassis {
  display: grid; gap: 8px; padding: 10px 10px 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(10, 105, 146, .05) 10px 11px),
    linear-gradient(180deg, #0e2530, #081820);
}
.rack-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 8px 10px; border-bottom: 1px solid var(--line);
}
.rack-serial {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim);
}
.rack-power {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .16em; color: var(--steel-glow);
}
.rack-power i {
  width: 7px; height: 7px; border-radius: 50%; background: #7ee0c2;
  box-shadow: 0 0 8px #7ee0c2; animation: pulse 2.2s ease-in-out infinite;
}

.slot {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px;
  min-height: 78px; color: var(--on-dark);
  background: linear-gradient(180deg, #164556, #0e2d3a);
  border: 1px solid #226178;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: seat .85s var(--ease) both;
  animation-delay: var(--d, 0s);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.slot-u {
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  background: #0a2430; color: var(--steel-glow); border-right: 1px solid #1c4c5e;
}
.slot-face { display: grid; align-content: center; padding: 10px 12px 10px 14px; position: relative; }
.slot-kicker {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-glow);
}
.slot-face strong {
  font-family: "Chivo", sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: .02em;
}
.slot-note { font-size: .82rem; color: var(--on-dark-dim); line-height: 1.35; }
.led {
  position: absolute; top: 12px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ee0c2; box-shadow: 0 0 8px #7ee0c2;
  animation: pulse 1.8s ease-in-out infinite;
}
.slot-handle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: #0a2430; border-left: 1px solid #1c4c5e;
}
.slot-handle i {
  width: 5px; height: 22px; border-radius: 2px;
  background: linear-gradient(90deg, #2a6a80, #0e3a4a);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.18);
}

.bay-empty {
  position: relative; min-height: 48px; overflow: hidden;
  border: 1px dashed #1e4a5a; background: rgba(7, 20, 26, .5);
}
.scan {
  position: absolute; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--steel-glow), transparent);
  animation: scan 3.2s ease-in-out infinite alternate;
  box-shadow: 0 0 12px var(--steel);
}
.bay-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Chivo", sans-serif; font-size: 10px; letter-spacing: .2em;
  color: #6a93a3; text-transform: uppercase;
}

@keyframes seat {
  from { transform: translateX(30%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes scan {
  from { top: 14%; }
  to   { top: 72%; }
}

/* ===== About (light band) ===== */
.about { background: var(--paper); color: var(--on-light); padding: 88px 0; }
.about .kicker { color: var(--steel); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start;
}
.about-copy { display: grid; gap: 18px; font-size: 1.05rem; color: var(--muted-light); max-width: 60ch; }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head .lead { margin-top: 14px; color: var(--on-dark-dim); }

/* ===== Practice trays (dark rack) ===== */
.bays {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.bay-rack { display: grid; gap: 14px; }
.tray {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px;
  background: linear-gradient(90deg, #102833, #0c2028);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tray-rail {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 12px 0; background: var(--rail); color: var(--steel-glow);
  font-family: "Chivo", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  border-right: 1px solid var(--line);
}
.tray-body { padding: 22px 24px; }
.tray-id {
  margin: 0 0 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-glow);
}
.tray-body h3 { margin-bottom: 10px; }
.tray-body p { color: var(--on-dark-dim); max-width: 62ch; }
.tray-grip {
  background:
    repeating-linear-gradient(180deg, #2a6a80 0 3px, transparent 3px 8px) center / 6px 100% no-repeat,
    #0a2430;
  border-left: 1px solid var(--line);
}

/* ===== Method units (light) ===== */
.method { background: var(--paper); color: var(--on-light); }
.method .kicker { color: var(--steel); }
.method .lead { color: var(--muted-light); }
.units {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.unit {
  background: var(--white); border: 1px solid var(--paper-2); padding: 26px 24px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.unit-no {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--steel);
}
.unit h3 { margin-bottom: 8px; color: var(--on-light); }
.unit p { color: var(--muted-light); }

/* ===== Brand statement ===== */
.statement {
  background: var(--ink);
  background-image: linear-gradient(90deg, rgba(10,105,146,.18) 0 8px, transparent 8px);
}
.statement-inner { max-width: 820px; }
.statement blockquote {
  margin: 0; font-family: "Chivo", sans-serif; font-weight: 800;
  font-size: clamp(1.55rem, 3.6vw, 2.6rem); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--on-dark);
}
.statement-sub { margin-top: 18px; color: var(--on-dark-dim); font-size: .95rem; }

/* ===== FAQ ===== */
.faq { background: var(--paper); color: var(--on-light); }
.faq .kicker { color: var(--steel); }
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--white); border: 1px solid var(--paper-2);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.faq-item.open { border-color: var(--steel); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--on-light);
  font-size: 1.05rem; font-weight: 700; padding: 18px 20px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--steel);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-ico::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { color: var(--muted-light); margin: 0; padding: 0 20px 18px; }

/* ===== Contact rack ===== */
.contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-rack {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start;
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy p { color: var(--on-dark-dim); max-width: 46ch; }
.contact-email {
  display: inline-block; margin: 22px 0 0;
  font-size: 1.25rem; font-weight: 700; color: var(--steel-glow);
  border-bottom: 1px solid transparent;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.terminal {
  background: var(--ink); border: 1px solid var(--line); padding: 22px 24px 10px;
  box-shadow: inset 0 0 0 1px rgba(126, 200, 230, .06);
}
.terminal-head {
  margin: 0 0 16px; font-size: 11px; letter-spacing: .2em; color: var(--steel-glow);
}
.terminal dl { margin: 0; display: grid; }
.terminal dl > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem;
}
.terminal dt {
  font-family: "Chivo", sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel-mid); font-weight: 700;
}
.terminal dd { margin: 0; color: var(--on-dark); }
.terminal a { color: var(--steel-glow); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 48px 0 26px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--on-dark-dim); margin-top: 12px; font-size: .95rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-dim); font-family: "Chivo", sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--on-dark-dim); font-size: 14px; padding-top: 18px;
}

/* Reveal must sit before hover transforms */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slot, .rack-power i, .led, .scan { animation: none !important; }
  .slot { opacity: 1; transform: none; }
  .scan { top: 40%; }
}

/* Hover AFTER .reveal.in so lift/slide is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--steel-mid);
    box-shadow: 0 16px 32px -12px rgba(10, 105, 146, .8);
  }
  .btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--steel-glow);
    color: var(--steel-glow);
  }
  .nav a:hover { color: var(--on-dark); }
  .nav .nav-cta:hover { border-color: var(--steel); color: var(--steel-glow); }
  .slot:hover {
    transform: translateX(-12px);
    border-color: var(--steel-glow);
    box-shadow: 0 0 0 1px var(--steel), 8px 10px 24px -12px rgba(0, 0, 0, .45);
  }
  .tray:hover {
    transform: translateX(-10px);
    border-color: var(--steel-mid);
    box-shadow: 10px 12px 28px -16px rgba(0, 0, 0, .5);
  }
  .unit:hover {
    transform: translateY(-4px);
    border-color: var(--steel);
    box-shadow: 0 16px 28px -18px rgba(10, 105, 146, .35);
  }
  .faq-q:hover { color: var(--steel); }
  .faq-item:hover { border-color: var(--steel-mid); }
  .contact-email:hover { border-bottom-color: var(--steel-glow); transform: translateY(-2px); }
  .footer-nav a:hover { color: var(--steel-glow); }
}

/* ===== Mobile ~390px stacked ===== */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .faq-wrap, .contact-rack { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .units { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(7, 20, 26, .97); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 12px; }
  .hero { padding: 108px 0 56px; }
  .section, .about { padding: 64px 0; }
  .rack { grid-template-columns: 14px 1fr 14px; }
  .slot { min-height: 72px; }
  .tray { grid-template-columns: 28px minmax(0, 1fr) 12px; }
  .tray-body { padding: 18px 16px; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn-ghost { font-size: 13px; letter-spacing: 0; word-break: break-all; }
  h1 { font-size: 1.85rem; }
}
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand-name { font-size: 14px; }
  .slot-note { display: none; }
  .hero-sub { font-size: 1rem; }
  .terminal dl > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
}
