/* ==========================================================================
   MYLO — theme.css
   Component layer. Consumes tokens.css. Navy + electric blue connection
   accent + soft gold. Premium "connection layer" brand.
   ========================================================================= */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

/* ---- Electric blue connection accent ----------------------------------- */
:root {
  --accent-solid: var(--accent);
  --accent-soft: rgba(37,99,235,0.12);
  --accent-soft-2: rgba(37,99,235,0.08);
  --accent-border: rgba(37,99,235,0.35);
  --accent-glow: rgba(37,99,235,0.25);
  --electric: #38BDF8;
  --electric-soft: rgba(56,189,248,0.15);
  --electric-border: rgba(56,189,248,0.30);
  --focus: var(--focus);
}

/* ---- Typography -------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: var(--fw-display);
  line-height: var(--lh-heading);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.015em; margin-bottom: var(--s-lg); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em;  margin-bottom: var(--s-md); }
h3 { font-size: var(--fs-h3); line-height: 1.28; }

h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--accent-solid);
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: var(--heading-display);
  margin: 0 0 var(--s-lg);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text);
  margin: 0 0 var(--s-md);
}

p { margin: 0 0 var(--s-md); color: var(--text); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-solid);
  margin: 0 0 var(--s-sm);
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
}

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* ---- Links ------------------------------------------------------------- */
a {
  color: var(--accent-solid);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-solid); text-decoration: underline; text-underline-offset: 3px; }

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

::selection { background: var(--accent-solid); color: #FFFFFF; }

/* ---- Layout ------------------------------------------------------------ */
.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

.section { padding: var(--s-3xl) 0; }
.section-sm { padding: var(--s-2xl) 0; }
.section-alt { background: var(--bg-alt); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-lg);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-lg);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .services-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-2xl) 0; }
}

/* ---- Hairline dividers ------------------------------------------------- */
.divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: var(--s-xl) 0;
}
.divider-gold {
  border: 0;
  border-top: 1px solid var(--divider-gold);
  margin: var(--s-xl) 0;
  position: relative;
}
.divider-gold::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 48px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold-600);
}

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { color: var(--heading); margin: var(--s-sm) 0; }
.card p  { color: var(--text); }
.card ul { margin: var(--s-sm) 0; padding-left: var(--s-lg); }
.card li { margin: var(--s-xs) 0; color: var(--text); }
.card li::marker { color: var(--accent-solid); }
.card a { font-weight: var(--fw-semibold); }
.card > :last-child { margin-bottom: 0; }

.card-kicker {
  color: var(--accent-solid);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

.card-top {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
  margin-bottom: var(--s-sm);
}
.card-top .badge { margin-left: auto; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  min-height: 48px;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — navy */
.btn-primary {
  background: var(--navy-800);
  color: #FFFFFF;
  border-color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* Gold — the single highest-value action */
.btn-gold {
  background: var(--gold-metal);
  background-size: 100% 100%;
  color: var(--navy-900);
  border-color: var(--gold-700);
  box-shadow: var(--shadow-gold), var(--inset-hairline);
  position: relative;
}
.btn-gold:hover {
  color: var(--navy-900);
  box-shadow: 0 10px 28px -10px rgba(201,169,98,0.7), var(--inset-hairline);
  border-color: var(--gold-600);
}

/* Ghost — secondary */
.btn-ghost {
  background: var(--surface);
  color: var(--navy-800);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--navy-50);
  color: var(--navy-900);
  border-color: var(--border-strong);
}

/* On dark surfaces, ghost inverts to navy-tinted */
[data-theme="dark"] .btn-ghost {
  background: transparent;
  color: #F2F4F8;
  border-color: rgba(242,244,248,0.22);
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(242,244,248,0.06);
  color: #FFFFFF;
  border-color: rgba(201,169,98,0.45);
}

.btn-block { width: 100%; }

/* ---- Badges ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  line-height: 1.4;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-solid);
  flex: 0 0 auto;
}
.badge-live {
  border-color: transparent;
  color: var(--accent-solid);
  background: var(--accent-soft);
}
.badge-live .badge-dot { background: var(--accent-solid); }
.badge-soon {
  border-color: transparent;
  color: var(--text-subtle);
  background: var(--surface);
}
.badge-soon .badge-dot { background: var(--text-subtle); }

/* ---- Header / navigation ----------------------------------------------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding-top: var(--s-sm);
  padding-bottom: var(--s-sm);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

/* Geometric mark — three interlocking circles in a precise ring */
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--logo-mark-bg);
  border: 1px solid var(--logo-mark-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--logo-glow), 0 4px 12px -4px var(--logo-glow);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.logo:hover .logo-mark {
  box-shadow: 0 0 0 1px var(--logo-glow), 0 6px 16px -4px var(--logo-glow);
}
.logo-mark svg { display: block; width: 18px; height: 18px; }

.logo-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  color: var(--logo-word);
  line-height: 1;
}
.logo-sub {
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--logo-sub);
  border-left: 1px solid var(--border);
  padding-left: var(--s-sm);
  line-height: 1;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.site-nav a {
  color: var(--text);
  font-weight: var(--fw-medium);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover {
  color: var(--heading);
  text-decoration: none;
  border-bottom-color: var(--accent-solid);
}
.nav-r {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  padding: var(--s-3xl) 0;
  background: var(--hero-glow);
  position: relative;
}
.hero .wrap { position: relative; }
.hero-meta {
  color: var(--text-muted);
  margin-top: var(--s-lg);
  font-size: var(--fs-sm);
}
.hero-ctas {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
  margin-top: var(--s-lg);
}

/* ---- Proof / telemetry ------------------------------------------------ */
.proof {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-md);
  margin-top: var(--s-xl);
}
.telemetry-strip > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-md);
  box-shadow: var(--shadow-sm);
}
.telemetry-label {
  display: block;
  color: var(--accent-solid);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin-bottom: var(--s-xs);
}
.telemetry-strip strong {
  font-size: var(--fs-body);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
}

.stat strong {
  display: block;
  font-size: var(--fs-number);
  font-weight: var(--fw-bold);
  color: var(--stat);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}

/* ---- Forms ------------------------------------------------------------- */
label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--s-sm);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--r-md);
  color: var(--input-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }

textarea { min-height: 120px; resize: vertical; }

.form-row { margin-bottom: var(--s-md); }
.form-row:last-of-type { margin-bottom: 0; }

.formnote {
  margin-top: var(--s-md);
  font-size: var(--fs-sm);
  color: var(--accent-solid);
}
.formnote:empty { display: none; }

/* Checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}
.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent-solid);
  border-radius: var(--r-xs);
}
.check span { line-height: 1.5; }

/* ---- Held / empty states ----------------------------------------------- */
.held {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  padding: var(--s-xl);
  margin-top: var(--s-lg);
}
.held h2 { font-size: var(--fs-h3); }
.held p  { color: var(--text-muted); }

.empty {
  text-align: center;
  padding: var(--s-3xl) var(--s-lg);
  color: var(--text-muted);
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-md);
  color: var(--accent-solid);
  opacity: 0.6;
}

/* ---- Diagram ----------------------------------------------------------- */
.diagram {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--diagram-bg);
  padding: var(--s-xl);
  margin-top: var(--s-lg);
  position: relative;
  overflow: hidden;
}
.diagram svg { width: 100%; height: auto; display: block; }

/* ---- Price / number ---------------------------------------------------- */
.price {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--price);
  margin: var(--s-sm) 0;
  font-variant-numeric: tabular-nums;
}
.price-note {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

/* ---- Sector featured --------------------------------------------------- */
.sector-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-lg);
  align-items: stretch;
}
.sector-featured .card-featured {
  margin-top: 0;
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}
.sector-featured .card-featured::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--gold-metal);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.sector-featured .card-featured > ul { flex: 1 1 auto; }
.sector-featured .card-featured .hero-ctas { margin-top: var(--s-md); }
.sector-featured + #sector-grid { margin-top: var(--s-md); }

@media (max-width: 760px) { .sector-featured { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------ */
footer, .site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-xl) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer .wrap {
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-more { display: block; margin-top: var(--s-xs); }
footer a, .site-footer a { color: var(--text); }
footer a:hover, .site-footer a:hover { color: var(--accent-solid); }

/* ---- Theme toggle ------------------------------------------------------ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--accent-border); color: var(--accent-solid); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-toggle .tt-icon { width: 14px; height: 14px; display: inline-flex; }
.theme-toggle .tt-icon svg { width: 14px; height: 14px; display: block; }
.theme-toggle .tt-label { min-width: 34px; text-align: left; }

.theme-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex: 0 0 auto;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
}
.theme-switch .ts-track {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.theme-switch .ts-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-600);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.theme-switch input:checked + .ts-track {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.theme-switch input:checked + .ts-track .ts-thumb {
  transform: translateX(16px);
  background: var(--gold-500);
}
.theme-switch input:focus-visible + .ts-track {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Table ------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s-sm) var(--s-md);
  border-bottom: 1px solid var(--border-strong);
}
.table td {
  padding: var(--s-md);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---- Alert ------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--s-sm);
  padding: var(--s-md);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.alert-warning { background: var(--warning-soft); color: var(--text); border-color: rgba(122,78,18,0.18); }
.alert-danger  { background: var(--danger-soft);  color: var(--text); border-color: rgba(163,58,58,0.18); }
.alert-success { background: var(--success-soft); color: var(--text); border-color: rgba(31,111,92,0.18); }

/* ---- Utility ----------------------------------------------------------- */
.stack > * + * { margin-top: var(--s-md); }
.stack-sm > * + * { margin-top: var(--s-sm); }
.stack-lg > * + * { margin-top: var(--s-lg); }
.center { text-align: center; }
.right { text-align: right; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 640px) {
  .wrap { padding: 0 var(--s-md); }
  .site-nav { display: none; }
  .logo-sub { display: none; }
  .hero { padding: var(--s-2xl) 0; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: auto; flex: 1 1 100%; }
}

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

/* ---- Print ------------------------------------------------------------- */
@media print {
  .site-header, .theme-toggle, .hero-ctas, footer { display: none; }
  body { background: #fff; color: #1A1A2E; }
  .card { box-shadow: none; border: 1px solid #E3E7EE; }
}

/* ---- Services summary ------------------------------------------------ */
.services-grid .card-service {
  display: flex;
  gap: var(--s-md);
  align-items: flex-start;
  padding: var(--s-lg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.services-grid .card-service:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.services-grid .service-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-solid);
  display: grid;
  place-items: center;
}
.services-grid .card-service h3 {
  color: var(--heading);
  margin: 0 0 var(--s-xs);
  font-size: var(--fs-h4);
}
.services-grid .card-service p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.5;
}

/* ---- Hero connection diagram animation --------------------------------- */
.hero .diagram svg path,
.hero .diagram svg line,
.hero .diagram svg circle {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s ease-in-out forwards;
}
.hero .diagram svg path:nth-child(3) { animation-delay: 0.4s; }
.hero .diagram svg path:nth-child(4) { animation-delay: 0.6s; }
.hero .diagram svg circle { animation-delay: 0.8s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Floating connection dots */
.hero .diagram svg circle {
  animation: pulse 2.2s ease-in-out infinite;
}
.hero .diagram svg circle:nth-child(5) { animation-delay: 0.5s; }
.hero .diagram svg circle:nth-child(6) { animation-delay: 1.0s; }
.hero .diagram svg circle:nth-child(7) { animation-delay: 1.5s; }

@keyframes pulse {
  0%, 100% { r: 3; opacity: 0.4; }
  50% { r: 6; opacity: 1; }
}

/* Services icon float on hover */
.services-grid .card-service:hover .service-icon {
  animation: float 3s ease-in-out infinite;
}
/* ==========================================================================
   MYLO — additions to theme.css
   Appended brand-corrected rules for the connection-layer background and the
   contact block. Blue-tinted values from the pre-brand-lock stylesheet have
   been re-pointed at the locked navy/gold tokens.
   ========================================================================== */

/* ---- Connection-layer background --------------------------------------- */
/* Fixed, behind everything, non-interactive. Adapts to the dark/light toggle
   via CSS custom properties. Gold on the locked brand, never cyan. */


/* ---- Contact options --------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.contact-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.contact-option p { margin: 8px 0 0; }
.contact-option .subtle { font-size: var(--fs-sm); }

/* ---- Consent row ------------------------------------------------------- */
label.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
label.consent input { width: auto; margin-top: 3px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Logo image (replaces the old inline SVG mark) ---------------------- */
.logo-mark {
  width: auto;
  height: 40px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.logo-mark:hover { box-shadow: none; }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}
.logo-img-light { display: none; }

[data-theme="light"] .logo-img-dark  { display: none; }
[data-theme="light"] .logo-img-light { display: block; }

/* keep the wordmark text hidden — the image carries it */
.logo-word { display: none; }

/* logo-sub divider still sits next to the mark */
.logo-sub {
  margin-left: 2px;
}








/* Slower, subtler drift */

@media (prefers-reduced-motion: reduce) {
  
}


/* ==========================================================================
   CONNECTION-LAYER BACKGROUND - authoritative, gold only, strictly at the back
   Painted on body::before so it can never interleave with page content.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 35%, rgba(201,162,39, var(--bg-glow-opacity)) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(184,150,31, calc(var(--bg-glow-opacity) * 0.7)) 0%, transparent 50%);
}

.mylo-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mylo-bg svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: mylo-drift 120s ease-in-out infinite;
}

.mylo-bg .lines {
  stroke: var(--bg-line);
  opacity: var(--bg-line-opacity);
  stroke-width: 1;
}

.mylo-bg .nodes circle {
  fill: var(--bg-node);
  opacity: var(--bg-node-opacity);
}

@keyframes mylo-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-1%, 0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mylo-bg svg { animation: none; }
}
