/* =========================================================
   AUTOMATIKON — Visual System (Single Source of Truth)
   - Clean consolidated CSS
   - Keeps all previously built behavior (header, nav, hero, cards, stack)
   ========================================================= */

:root{
  /* layout */
  --w: 1100px;
  --g: 16px;

  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* colors (engineering-neutral) */
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(0,0,0,0.60);
  --muted-2: rgba(0,0,0,0.72);
  --border: rgba(0,0,0,0.10);
  --border-2: rgba(0,0,0,0.14);

  /* accents (division palette) */
  --blue: #2563eb;    /* Networks */
  --green: #1f9d55;   /* Automation */
  --neutral: #6b7280; /* Access/neutral */

  /* radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 18px;

  /* motion */
  --t: 140ms ease;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);

  /* Subtle "alive" background, NOT noisy */
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(37,99,235,0.05), transparent 60%),
    radial-gradient(900px 520px at 88% 22%, rgba(31,157,85,0.045), transparent 60%),
    #f6f7f8;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* Never underline UI controls */
.btn, .btn:hover,
.pill, .pill:hover,
.primary-nav a, .primary-nav a:hover,
.mobile-nav a, .mobile-nav a:hover,
.nav-card, .nav-card:hover,
#home-layers a.card, #home-layers a.card:hover,
.site-header a, .site-header a:hover{
  text-decoration: none;
}
.site-header a,
.card a{ text-decoration: none; }

/* =========================================================
   Layout container
   ========================================================= */

.container{
  max-width: var(--w);
  margin: 0 auto;
  padding: 20px;
}

/* Paper surface ONLY for main content */
main.container{
  background: rgba(255,255,255,0.92);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-right: 1px solid rgba(0,0,0,0.05);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.06);
}

/* =========================================================
   Header (single source of truth)
   Works with header.php structure:
   .site-header > .container.header-inner > .nav-wrap ...
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand{
  display: flex;
  align-items: center;
}

.brand img{
  display: block;
  height: 40px;
  width: auto;
  max-width: 240px;
}

.nav-wrap{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.primary-nav{
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav a{
  color: #1f1f1f;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t);
}

.primary-nav a:hover{
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

/* Contact CTA (matches height of pills) */
.primary-nav a.cta{
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1.5px solid #111;
  border-radius: 12px;
  font-weight: 600;
  background: transparent;
  line-height: 1;
  box-shadow: none;
  transition: background var(--t), transform var(--t);
}

.primary-nav a.cta:hover{
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

/* Utility pills */
.utility-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-sep{
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,0.12);
  display: inline-block;
  align-self: center;
}

.pill{
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.92;
  background: transparent;
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.pill:hover{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.28);
  transform: translateY(-1px);
}

.muted-pill{ opacity: 0.84; }

/* Burger */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--r-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .icon{
  width: 22px;
  height: 22px;
  display: block;
  color: #1f1f1f;
}

/* Mobile dropdown */
.mobile-nav{
  display: none;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 14px 18px;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a{
  padding: 10px 6px;
  border-radius: var(--r-sm);
}

.mobile-nav a:hover{
  background: rgba(0,0,0,0.04);
}

.mobile-nav-divider{
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 6px 0;
}

.mobile-nav.is-open{ display: flex; }

/* Mobile dropdown CTA */
.mobile-nav a.cta{
  display: inline-flex;
  width: fit-content;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid #111;
  border-radius: 12px;
  font-weight: 600;
  background: transparent;
  line-height: 1;
}

/* tablet + mobile */
@media (max-width: 1023px){
  .header-inner{ min-height: 64px; }
  .brand img{ height: 36px; max-width: 220px; }
  .nav-wrap{ display: none; }
  .nav-toggle{ display: flex; }
  .site-header{ overflow-x: clip; }
}

@media (max-width: 767px){
  .brand img{ height: 32px; max-width: 180px; }
}

/* =========================================================
   Typography blocks
   ========================================================= */

.hero{ padding: 60px 0 30px; }

.kicker{
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.h1{
  font-size: 44px;
  line-height: 1.1;
  margin: 10px 0 12px;
  letter-spacing: -0.03em;
}

.lead{
  font-size: 18px;
  color: rgba(0,0,0,0.72);
  max-width: 75ch;
}

/* =========================================================
   Sections, grid, cards
   ========================================================= */

.section{ padding: 30px 0; }

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--g);
}

.card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-lg);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}

.card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: rgba(0,0,0,0.72); }

/* default hover (non-clickable cards) */
.card:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}

.muted{ color: rgba(0,0,0,0.60); font-size: 14px; }

.card a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn{ text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.70);
  color: inherit;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform var(--t), background var(--t), border-color var(--t);
  text-decoration: none;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.90);
  text-decoration: none;
}

.btn:focus,
.btn:focus-visible{
  text-decoration: none;
  outline: none;
}

.btn--primary{
  background: rgba(0,0,0,0.92);
  border-color: rgba(0,0,0,0.92);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.btn--primary:hover{
  background: rgba(0,0,0,1);
  border-color: rgba(0,0,0,1);
}

.btn--ghost{
  background: rgba(255,255,255,0.85);
}

/* =========================================================
   HOME - HERO split
   ========================================================= */

.hero.hero--split{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

/* small technical accent line */
.hero.hero--split::before{
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 118px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,1), rgba(31,157,85,1));
  box-shadow: 0 6px 16px rgba(37,99,235,0.10);
  opacity: 0.95;
}

.hero.hero--split .hero__content{ min-width: 0; }

.hero.hero--split .hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.hero.hero--split .hero__media{
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  box-shadow: 0 18px 55px rgba(0,0,0,0.10);
  position: relative;
}

/* subtle overlay */
.hero.hero--split .hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(60% 70% at 25% 20%, rgba(37,99,235,0.16), transparent 55%),
    radial-gradient(60% 70% at 85% 35%, rgba(31,157,85,0.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
}

.hero.hero--split .hero__img{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.97);
}

@media (max-width: 1024px){
  .hero.hero--split{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero.hero--split .hero__img{ aspect-ratio: 16 / 10; }
}

@media (max-width: 640px){
  .hero.hero--split .hero__img{ aspect-ratio: 3 / 4; }
}

/* =========================================================
   HOME - deterministic grids
   ========================================================= */

@media (min-width: 1024px){
  /* System layers: 3 columns */
  #home-layers .grid{ grid-template-columns: repeat(3, 1fr); }
  #home-layers .grid > .card,
  #home-layers .grid > a.card{ grid-column: auto; }

  /* Split section: 2 columns */
  #home-split .grid{ grid-template-columns: repeat(2, 1fr); }
  #home-split .grid > .card{ grid-column: auto; }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1023px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .grid > .card{ grid-column: auto; }
}

/* Mobile: 1 column */
@media (max-width: 768px){
  .grid{ grid-template-columns: 1fr; }
  .grid > .card{ grid-column: auto; }

  .section{ padding: 18px 0; }
  .card{ padding: 16px; border-radius: 14px; }
  .hero{ padding: 42px 0 18px; }
  .h1{ font-size: 34px; }
  .lead{ font-size: 16px; }
}

/* =========================================================
   HOME - System layer cards (clickable) — accent bar on hover
   ========================================================= */

a.card{
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* baseline */
#home-layers a.card{
  border-left: 1px solid rgba(0,0,0,0.07);
}

/* Accent bar appears on hover/focus */
#home-layers a.card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#home-layers a.card:hover::before,
#home-layers a.card:focus-visible::before{
  opacity: 1;
  transform: translateX(0);
}

/* color mapping */
#home-layers a.card:nth-child(1)::before{ background: rgba(31,157,85,0.90); }
#home-layers a.card:nth-child(2)::before{ background: rgba(68,68,68,0.75); }
#home-layers a.card:nth-child(3)::before{ background: rgba(37,99,235,0.90); }

/* clickable lift stronger */
#home-layers a.card:hover,
#home-layers a.card:focus-visible{
  transform: translateY(-2px);
}

/* faint wash on hover */
#home-layers a.card:hover,
#home-layers a.card:focus-visible{
  background:
    radial-gradient(120% 140% at 10% 20%, rgba(37,99,235,0.06), transparent 55%),
    radial-gradient(120% 140% at 90% 30%, rgba(31,157,85,0.05), transparent 60%),
    #ffffff;
}

/* =========================================================
   HOME - Why section
   ========================================================= */

.why__inner{ max-width: 920px; }
.why__title{ margin: 0 0 14px; letter-spacing: -0.01em; }

.why__lead{
  margin: 0 0 18px;
  opacity: 0.92;
  line-height: 1.65;
  max-width: 75ch;
}

.why__items{ display: grid; gap: 12px; }

.why__item{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.015));
}

.why__item p{ margin: 0; line-height: 1.65; }

/* =========================================================
   HOME - CTA (stable)
   ========================================================= */

.section--cta{ padding-top: 10px; padding-bottom: 34px; }

.cta{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.cta__text{
  margin:0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
  color: rgba(0,0,0,0.78);
}

.cta__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

@media (max-width: 640px){
  .cta{
    flex-direction: column;
    align-items: flex-start;
  }
  .cta__actions{
    width:100%;
    justify-content:flex-start;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 40px;
  background: rgba(255,255,255,0.70);
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

/* =========================================================
   HOME — System Fabric (legacy block; safe to keep)
   (Not used by current index.php, but kept for reuse)
   ========================================================= */

.fabric{ padding-top: 10px; }
.fabric__inner{ max-width: 980px; }

.fabric__title{
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.fabric__lead{
  margin: 0 0 16px;
  color: rgba(0,0,0,0.70);
  max-width: 80ch;
  line-height: 1.65;
}

.fabric__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fabric__item{
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px 20px 16px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.fabric__item::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  opacity:0.45;
  transition: opacity 200ms ease, width 200ms ease;
}

.fabric__item:hover{
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.14);
}

.fabric__item:hover::before{
  opacity:1;
  width:5px;
}

.fabric__kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(0,0,0,0.60);
  margin-bottom: 10px;
}

.fabric__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,0.74);
  line-height: 1.6;
}

.fabric__list li{ margin: 0 0 8px; }

.fabric__item--automation::before{ background: rgba(31,157,85,0.90); }
.fabric__item--automation{
  background:
    radial-gradient(120% 140% at 10% 15%, rgba(31,157,85,0.07), transparent 55%),
    rgba(255,255,255,0.92);
}
.fabric__item--automation:hover{ box-shadow: 0 18px 40px rgba(31,157,85,0.15); }

.fabric__item--access::before{ background: rgba(68,68,68,0.75); }
.fabric__item--access{
  background:
    radial-gradient(120% 140% at 10% 15%, rgba(107,114,128,0.06), transparent 55%),
    rgba(255,255,255,0.92);
}
.fabric__item--access:hover{ box-shadow: 0 18px 40px rgba(0,0,0,0.10); }

.fabric__item--networks::before{ background: rgba(37,99,235,0.90); }
.fabric__item--networks{
  background:
    radial-gradient(120% 140% at 10% 15%, rgba(37,99,235,0.07), transparent 55%),
    rgba(255,255,255,0.92);
}
.fabric__item--networks:hover{ box-shadow: 0 18px 40px rgba(37,99,235,0.15); }

@media (max-width: 1023px){
  .fabric__grid{ grid-template-columns: 1fr; }
  .fabric__item{ padding: 16px; }
}

/* =========================================================
   HOME — System Stack (CURRENT) — A: bus + taps + connector nodes
   ========================================================= */

.stack__inner{ max-width: 980px; }

.stack__head{ margin-bottom: 18px; }

.stack__title{
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.stack__lead{
  margin: 0;
  line-height: 1.65;
  color: rgba(0,0,0,0.76);
  max-width: 82ch;
}

.stack__layout{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}

/* Left panel */
.stack__viz{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 16px;
  padding-left: 30px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  --bus-x: 16px;
}

.stack__viz::before{
  content:"";
  position:absolute;
  left: var(--bus-x);
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.00),
    rgba(0,0,0,0.12),
    rgba(0,0,0,0.12),
    rgba(0,0,0,0.00)
  );
  opacity: 0.85;
}

/* Chips */
.stack__chip{
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 200ms ease, background 200ms ease;
  position: relative;
}

.stack__chip::before{
  content:"";
  position:absolute;
  left: calc(var(--bus-x) - 30px);
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.14);
  opacity: 0.55;
}

.stack__chip::after{
  content:"";
  position:absolute;
  left: calc(var(--bus-x) - 30px - 4px);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  opacity: 0.85;
}

.stack__chip + .stack__chip{ margin-top: 10px; }

.stack__chipTitle{
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
}

.stack__chipMeta{
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.35;
}

/* chip accents */
.stack__chip--aut{ border-left: 3px solid rgba(31,157,85,0.85); }
.stack__chip--acc{ border-left: 3px solid rgba(68,68,68,0.70); }
.stack__chip--net{ border-left: 3px solid rgba(37,99,235,0.85); }

.stack__chip--aut::before{ background: rgba(31,157,85,0.35); }
.stack__chip--aut::after{ border-color: rgba(31,157,85,0.40); }

.stack__chip--acc::before{ background: rgba(68,68,68,0.22); }
.stack__chip--acc::after{ border-color: rgba(68,68,68,0.28); }

.stack__chip--net::before{ background: rgba(37,99,235,0.35); }
.stack__chip--net::after{ border-color: rgba(37,99,235,0.40); }

/* chip hover */
.stack__chip:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.16);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.80);
}

.stack__chip:hover::before{ opacity: 0.85; }
.stack__chip:hover::after{ opacity: 1; }

.stack__footnote{
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.72;
}

/* Wiring sits at bottom, inside left panel */
.stack__wiring{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.stack__wire{
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(31,157,85,0.70),
    rgba(107,114,128,0.55),
    rgba(37,99,235,0.70)
  );
}

.stack__nodes{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 6px;
}

.stack__node{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.95);
  display: inline-block;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.stack__node::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.35);
}

.stack__node--aut{ border-color: rgba(31,157,85,0.55); }
.stack__node--aut::after{ background: rgba(31,157,85,0.90); }

.stack__node--acc{ border-color: rgba(68,68,68,0.32); }
.stack__node--acc::after{ background: rgba(68,68,68,0.55); }

.stack__node--net{ border-color: rgba(37,99,235,0.55); }
.stack__node--net::after{ background: rgba(37,99,235,0.90); }

.stack__labels{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

/* Right column cards */
.stack__cards{
  display: grid;
  gap: 12px;
}

.stack__card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 200ms ease, background 200ms ease;
}

.stack__kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.70;
  margin-bottom: 10px;
}

.stack__list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,0.78);
}

.stack__list li{ margin: 0 0 8px; }

/* layer accents */
.stack__card--aut{ border-left: 3px solid rgba(31,157,85,0.70); }
.stack__card--acc{ border-left: 3px solid rgba(68,68,68,0.60); }
.stack__card--net{ border-left: 3px solid rgba(37,99,235,0.70); }

/* card hover */
.stack__card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.09);
  background: rgba(255,255,255,0.98);
}

/* per-layer hover glow */
.stack__card--aut:hover{ box-shadow: 0 18px 45px rgba(31,157,85,0.14); }
.stack__card--net:hover{ box-shadow: 0 18px 45px rgba(37,99,235,0.14); }

@media (max-width: 1023px){
  .stack__layout{ grid-template-columns: 1fr; }
  .stack__wiring{ margin-top: 14px; }
}

/* =========================================================
   SIGNATURE PLANNING CALLOUT
   ========================================================= */

.section--signature{
  padding-top: 36px;
  padding-bottom: 36px;
}

.signature{
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 22px;
  padding: 26px 26px;
  background:
    radial-gradient(120% 140% at 12% 12%, rgba(0,0,0,0.03), transparent 60%),
    rgba(255,255,255,0.96);
  box-shadow: 0 22px 56px rgba(0,0,0,0.08);
  position: relative;
}

/* hard safety: no underline inside signature */
.signature a,
.signature a:hover{
  text-decoration: none;
}

.signature::before{
  content:"";
  position:absolute;
  left: 26px;
  top: 0;
  width: 168px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(31,157,85,0.08);
  opacity: 0.95;
}

.signature__kicker{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.58;
  margin-bottom: 12px;
}

.signature__title{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.signature__lead{
  margin: 0 0 14px;
  max-width: 78ch;
  line-height: 1.65;
  color: rgba(0,0,0,0.75);
}

/* Engineering list: system nodes, not browser bullets */
.signature__list{
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 74ch;
  color: rgba(0,0,0,0.78);
  line-height: 1.6;
}

.signature__list li{
  position: relative;
  padding-left: 22px;
  margin: 0 0 9px;
}

.signature__list li::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.signature__list li::after{
  content:"";
  position:absolute;
  left: 3px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.38);
}

.signature__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* =========================================================
   NAV CARDS (Solutions / Industries)
   ========================================================= */

.nav-card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  cursor: pointer;
}

.nav-card__cta{
  margin-top: 14px;
  font-weight: 600;
  opacity: 0.75;
  transition: transform 140ms ease, opacity 140ms ease;
}

.nav-card:hover{
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.nav-card:hover .nav-card__cta{
  transform: translateX(4px);
  opacity: 1;
}

/* =========================================================
   METHOD CARD (How we work)
   ========================================================= */

.method-card__kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  opacity: 0.65;
  margin-bottom: 10px;
}


/* =========================================================
   METHOD TIMELINE (How we work)
   - Desktop: horizontal timeline with phase segments
   - Mobile: compact vertical timeline (no "snake" stretching)
   ========================================================= */

.method-card{
  position: relative;
  overflow: hidden;
}

.method-card::before{
  content:"";
  position:absolute;
  left: 18px;
  top: 0;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(107,114,128,0.70), var(--green));
  opacity: 0.95;
}

.method-timeline{
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}

.method-timeline::before{
  content:"";
  position:absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(37,99,235,0.70),
    rgba(107,114,128,0.40),
    rgba(31,157,85,0.70)
  );
  opacity: 0.9;
}

.method-step{
  position: relative;
  padding: 9px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.method-step::before{
  content:"";
  position:absolute;
  left: 50%;
  top: -12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.16);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* subtle per-phase tint (keeps it neutral, not circus) */
.method-step:nth-child(1){ background: radial-gradient(120% 140% at 10% 10%, rgba(37,99,235,0.05), transparent 55%), rgba(0,0,0,0.02); }
.method-step:nth-child(2){ background: radial-gradient(120% 140% at 10% 10%, rgba(107,114,128,0.05), transparent 55%), rgba(0,0,0,0.02); }
.method-step:nth-child(3){ background: radial-gradient(120% 140% at 10% 10%, rgba(31,157,85,0.04), transparent 55%), rgba(0,0,0,0.02); }
.method-step:nth-child(4){ background: radial-gradient(120% 140% at 10% 10%, rgba(37,99,235,0.04), transparent 55%), rgba(0,0,0,0.02); }
.method-step:nth-child(5){ background: radial-gradient(120% 140% at 10% 10%, rgba(31,157,85,0.04), transparent 55%), rgba(0,0,0,0.02); }

/* CTA link inside method card */
.method-card .muted a{
  text-decoration: none;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity var(--t), transform var(--t);
}

.method-card .muted a:hover{
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 900px) and (orientation: landscape){
  .method-timeline{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .method-timeline::before{ left: 10px; right: 10px; }
}

@media (max-width: 900px) and (orientation: portrait){
  /* Tablet portrait: keep it readable — single column vertical timeline */
  .method-timeline{
    grid-template-columns: 1fr;
    padding: 0 0 0 18px;
    margin-top: 14px;
  }
  .method-timeline::before{
    left: 7px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, rgba(37,99,235,0.95), rgba(31,157,85,0.95));
  }
  .method-step{
    text-align: left;
    padding: 12px 14px;
    min-height: 0;
  }
  .method-step::before{ left: -28px; top: 50%; transform: translateY(-50%); }
  .method-step::after{ display: none; }
}
.method-timeline::before{ left: 10px; right: 10px; }
}

@media (max-width: 640px){
  .method-timeline{
    grid-template-columns: 1fr;
    padding: 0 0 0 18px;
    margin-top: 14px;
  }

  .method-timeline::before{
    left: 8px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .method-step{
    text-align: left;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .method-step::before{
    left: -18px;
    top: 50%;
    transform: translate(50%, -50%);
  }
}


/* ===============================
   HOW WE WORK – subtle accent line
================================== */
.method-card::before {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #2563EB 0%, #1F9D55 100%);
}



/* ===============================
   SOFT DARK CTA
================================== */
.section--cta .cta {
  background: linear-gradient(135deg, #111111 0%, #161616 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.section--cta .cta__text {
  color: rgba(255,255,255,0.85);
}

.section--cta .btn--ghost {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}

.section--cta .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
}


/* =========================================================
   HOTFIX — 2026-02-12
   Goals:
   1) Restore ALWAYS-ON division accents on Home layer cards (web/tablet/mobile)
   2) Fix How We Work timeline so it is compact and consistent across breakpoints
   3) Soft-dark CTA with coherent button styling
   ========================================================= */

/* 1) Home layer cards — permanent division accent (no hover dependency) */
#home-layers a.card{
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: rgba(0,0,0,0.08); /* default fallback */
}
#home-layers a.card:nth-child(1){ border-left-color: rgba(31,157,85,0.90); }
#home-layers a.card:nth-child(2){ border-left-color: rgba(68,68,68,0.55); }
#home-layers a.card:nth-child(3){ border-left-color: rgba(37,99,235,0.90); }

/* keep hover bar disabled so we don't get double accents */
#home-layers a.card::before{ content: none !important; }

/* 2) How We Work — build timeline using CURRENT markup (.method-card__steps > span) */
.method-card{ position: relative; }

/* small top accent line (detail, not full-width) */
.method-card::before{
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0.95;
  margin: 2px 0 12px;
}

/* horizontal timeline for tablet/desktop */
.method-card__steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.method-card__steps::before{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(37,99,235,0.75),
    rgba(107,114,128,0.42),
    rgba(31,157,85,0.75)
  );
  opacity: 0.85;
}

.method-card__steps span{
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.88);
  font-size: 13px;
}

.method-card__steps span::before{
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* vertical timeline for mobile (compact) */
@media (max-width: 640px){
  .method-card__steps{
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 18px;
  }

  .method-card__steps::before{
    left: 7px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(37,99,235,0.70),
      rgba(107,114,128,0.36),
      rgba(31,157,85,0.70)
    );
    opacity: 0.95;
  }

  .method-card__steps span{
    justify-content: flex-start;
    padding-left: 14px;
  }

  .method-card__steps span::before{
    top: 50%;
    left: -18px;
    transform: translateY(-50%);
  }
}

/* disable legacy timeline markup if it exists (we use .method-card__steps spans) */

/* 3) CTA — soft dark + coherent buttons */
.section--cta .cta{
  background: linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0.94));
  border-color: rgba(0,0,0,0.75);
  box-shadow: 0 18px 60px rgba(0,0,0,0.20);
}
.section--cta .cta__text{ color: rgba(255,255,255,0.88); }

/* Invert buttons inside dark CTA */
.section--cta .cta .btn--primary{
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.92);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.section--cta .cta .btn--primary:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(255,255,255,1);
}

.section--cta .cta .btn--ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.88);
  box-shadow: none;
}
.section--cta .cta .btn--ghost:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.36);
}


/* =========================================================
   HOME - Tablet-only Industrial card (System Layers)
   ========================================================= */
#home-layers a.card--industrial { display: none; }
@media (min-width: 769px) and (max-width: 1023px) {
  #home-layers a.card--industrial { display: block; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  /* 2x2 grid on tablet */
  #home-layers .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Always-on division accents (extend for Industrial) */
#home-layers a.card:nth-child(4) {
  border-left-color: rgba(107, 114, 128, 0.55);
}

/* =========================================================
   HOW WE WORK - Make portrait tablets use vertical timeline
   (horizontal timeline stays for landscape tablet & desktop)
   ========================================================= */
@media (max-width: 900px) {
  .method-card__steps {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 18px;
  }

  .method-card__steps::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), var(--green));
    border-radius: 999px;
  }

  .method-card__steps span {
    justify-content: flex-start;
    padding: 12px 14px;
    min-height: auto;
  }

  /* stacked node dots */
  .method-card__steps span::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--card);
    border: 2px solid rgba(0,0,0,0.18);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
}

/* =========================================================
   CTA - better layout on portrait tablets
   ========================================================= */
@media (max-width: 900px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cta__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

