/* ==========================================================================
   LEON EX MACHINA — stylesheet
   Design language: engineering drawing. Navy field, cream ink, orange
   callouts, mono annotations, isometric grid echoing the logo mark.

   HOW TO TWEAK: almost everything is driven by the variables below.
   Change a color or spacing here and it updates site-wide.
   ========================================================================== */

:root {
  /* Brand palette (sampled from the logo) */
  --navy-900: #101c25;   /* page background */
  --navy-800: #16242f;   /* section panels */
  --navy-700: #1e3140;   /* cards */
  --navy-600: #273f4f;   /* logo face navy / borders */
  --cream:    #efeeea;   /* primary text */
  --slate:    #8aa0b2;   /* secondary text */
  --orange:   #fe7743;   /* accent — use sparingly, like a torque callout */
  --line:     rgba(239, 238, 234, 0.14);  /* hairline rules */

  /* Type */
  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --maxw: 1120px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- reset-ish ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Brand name: the "Ex" is italic orange, echoing the wordmark */
.nav__name em, .footer__brand em {
  font-style: italic;
  color: var(--orange);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad);
  background: rgba(16, 28, 37, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}
.nav.is-compact { padding-top: 10px; padding-bottom: 10px; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 34px; height: auto; }
.nav__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--orange); }

/* ==========================================================================
   BUTTONS — square corners, like machined parts
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--orange);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--orange); color: var(--navy-900); font-weight: 500; }
.btn--solid:hover { background: #ff8557; }
.btn--line { color: var(--orange); }
.btn--line:hover { background: rgba(254, 119, 67, 0.1); }
.nav__cta { padding: 10px 16px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; }

/* Isometric grid backdrop — two line sets at ±30°, like the logo's axes.
   Drawn with CSS gradients: cheap, crisp, no image request. */
.hero__grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(60deg,  var(--line) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(-60deg, var(--line) 0 1px, transparent 1px 72px);
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, black 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 30% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--pad) 48px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;  /* copy column wide enough for the one-line lede */
  gap: 48px;
  align-items: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
/* Dimension-line flourish before the kicker */
.kicker::before { content: "— "; color: var(--slate); }

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
h1 .accent { color: var(--orange); font-style: italic; }

.lede {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--slate);
  font-size: 17px;
}
.lede strong { color: var(--cream); }
/* First sentence stays on a single line on desktop; wraps normally on
   smaller screens where nowrap would overflow. */
.lede__line { white-space: nowrap; }
@media (max-width: 1120px) {
  .lede__line { white-space: normal; }
}

.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__mark img {
  width: min(320px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

/* Stat strip — styled like an engineering drawing's title block */
.statbar {
  position: relative;
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px var(--pad);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:last-child { border-right: 1px solid var(--line); }
.stat__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}
.stat__n i { font-style: normal; color: var(--orange); }
.stat__l {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ==========================================================================
   SECTIONS — shared scaffolding
   ========================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--pad) 0;
}

/* "SEC.01 / FIELD NOTES" annotation with a rule between the two labels */
.seclabel {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.seclabel::after,
.seclabel span:first-child::after { content: none; }
.seclabel span:last-child { color: var(--slate); }
.seclabel::before { content: ""; width: 34px; height: 1px; background: var(--orange); }
.seclabel span:first-child + span::before {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--line);
  margin-right: 16px;
  vertical-align: middle;
}

.section__head { margin-top: 22px; margin-bottom: 44px; max-width: 62ch; }
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section__head p { color: var(--slate); }

/* ==========================================================================
   VIDEOS
   ========================================================================== */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;           /* keeps the iframe responsive */
  border: 1px solid var(--line);
  background: var(--navy-800);
}
/* Corner ticks — the drawing-registration-mark detail */
.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--orange);
  border-style: solid;
}
.video-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.video-frame::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.chipset { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--slate);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.chip:hover { border-color: var(--orange); color: var(--cream); transform: translateY(-2px); }

/* ==========================================================================
   EXPERIENCE — timeline
   ========================================================================== */
.timeline {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.tl {
  position: relative;
  padding: 0 0 44px 36px;
}
/* Node: a small isometric-feeling diamond on the rail */
.tl::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: 6px;
  width: 11px; height: 11px;
  background: var(--navy-900);
  border: 2px solid var(--orange);
  transform: rotate(45deg);
}
.tl__meta { margin-bottom: 8px; }
.tl__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  border: 1px solid rgba(254, 119, 67, 0.35);
  padding: 4px 10px;
}
.tl h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 10px 0 6px;
}
.tl p { color: var(--slate); max-width: 62ch; }
.tl p strong { color: var(--cream); font-weight: 600; }

/* ==========================================================================
   PATENTS — grid of "drawing sheet" cards
   ========================================================================== */
.patgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--navy-800);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.pat:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  background: var(--navy-700);
}
.pat__no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.06em;
}
.pat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.pat__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

/* ==========================================================================
   CONSULTING — two offer panels
   ========================================================================== */
.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.offer {
  padding: 32px;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
}
.offer__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 10px;
}
.offer h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* Rate line — mono, like a spec callout */
.offer__price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 16px;
}
.offer__price span { font-size: 13px; color: var(--slate); }
.offer ul { list-style: none; margin-bottom: 28px; }
.offer li {
  color: var(--slate);
  padding: 9px 0 9px 24px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.offer li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--orange);
}
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Booking panel — Google Calendar appointment schedule embed.
   The widget is white; scroll-margin keeps the #book anchor clear of
   the sticky nav when the buttons jump here. */
.booking {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--navy-800);
  scroll-margin-top: 90px;
  position: relative;
}
.booking::before,
.booking::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--orange);
  border-style: solid;
}
.booking::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.booking::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.booking__head { padding: 28px 32px 8px; }
.booking__head h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.booking__head p { color: var(--slate); max-width: 62ch; }
.booking__mail { color: var(--orange); }
.booking__mail:hover { text-decoration: underline; }
.booking iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  margin-top: 16px;
  background: #fff;   /* Google's widget is light-themed */
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: clamp(72px, 10vh, 120px);
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 48px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
}
.footer__mark { width: 26px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--orange); }
.footer__fine {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  opacity: 0.7;
}

/* ==========================================================================
   SCROLL REVEAL — elements start hidden, js adds .is-visible
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Respect users who turn off motion at the OS level */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark img { width: 180px; margin: 0; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-bottom: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-bottom: none; }
  .patgrid { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .nav__links { display: none; }   /* keep nav minimal on phones */
}
