/* Tanzo Technologies: enterprise style matched to the logo. Navy ink, deep-blue-to-cyan gradient
   (from the T mark) as the single accent device, full-bleed photo heroes, transparent nav with dropdowns. */
:root {
  --ink: #0b1f3a;
  --text: #33384a;
  --muted: #6a7084;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --navy: #0b1f3a;
  --navy-2: #071428;
  --blue: #0f62d6;
  --accent: #0b7fd1;
  --grad: linear-gradient(90deg, #0b3aa6 0%, #1a5fd8 60%, #2f7cf0 100%);
  --max: 1280px;
  --font: "Exo 2", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 18px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------------- Header ---------------- */
.site-header { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { position: fixed; background: #fff; box-shadow: 0 2px 18px rgba(10,10,20,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100px; transition: height .25s; }
.scrolled .nav { height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.scrolled .brand, .site-footer .brand { color: var(--ink); }
.site-footer .brand { color: #fff; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: #fff; font: inherit; font-size: 1.12rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; border-radius: 4px;
}
.menu > li > a:hover, .menu > li > button:hover { text-decoration: none; opacity: .85; }
.menu .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }
.scrolled .menu > li > a, .scrolled .menu > li > button { color: var(--ink); }
.menu > li > a[aria-current="page"], .menu > li > button.current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu .pill { margin-left: 18px; border: 1.5px solid #fff; border-radius: 999px; padding: 11px 34px; }
.menu .pill:hover { background: #fff; color: var(--ink); opacity: 1; }
.scrolled .menu .pill { border-color: var(--ink); }
.scrolled .menu .pill:hover { background: var(--ink); color: #fff; }

.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px); min-width: 300px; background: #fff; border-radius: 6px; box-shadow: 0 20px 50px rgba(10,10,20,.18); padding: 26px 28px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown.wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dd:hover .caret, .has-dd.open .caret { transform: rotate(180deg); }
.dropdown h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid transparent; border-image: var(--grad) 1; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a { display: block; padding: 7px 0; color: var(--ink); font-size: 1rem; font-weight: 500; }
.dropdown li a:hover { color: var(--blue); text-decoration: none; }
.dropdown .dd-all { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.6); border-radius: 6px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; }
.scrolled .nav-toggle { border-color: var(--line); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ---------------- Heroes ---------------- */
.hero { position: relative; color: #fff; background: var(--navy-2) center/cover no-repeat; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,16,40,.55) 0%, rgba(5,16,40,.25) 40%, rgba(5,16,40,.55) 100%); }
.hero > .container { position: relative; z-index: 1; }
.hero-home { min-height: 720px; padding: 180px 0 110px; }
.hero-home h1 { color: #fff; max-width: 900px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.hero-home p { font-size: 1.3rem; max-width: 640px; color: #e4e8f7; margin-bottom: 36px; }
.hero-page { min-height: 480px; padding: 160px 0 74px; text-align: center; justify-content: center; }
.hero-page h1 { color: #fff; margin: 0 auto; max-width: 960px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1.05rem; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { box-shadow: 0 10px 30px rgba(20,121,230,.4); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }

/* Breadcrumb */
.crumbs { padding: 40px 0 0; font-size: 1.02rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }

/* ---------------- Sections ---------------- */
section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.intro h2 { margin: 0; }
.intro p { font-size: 1.15rem; margin: 0 0 1em; }
.section-title { margin-bottom: 56px; max-width: 860px; }
.section-title p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-title.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }

/* Gradient-rule columns (benefits etc.) */
.cols { display: grid; gap: 40px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rule { padding-top: 32px; position: relative; }
.rule::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.rule h3 { margin-bottom: 18px; }
.rule p { color: var(--text); margin: 0; }
.dash { list-style: none; padding: 0; margin: 0; }
.dash li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.dash li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--accent); }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tile { background: #fff; padding: 44px 40px; color: var(--text); display: flex; flex-direction: column; position: relative; transition: background .2s; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
a.tile:hover { text-decoration: none; background: #fbfbfe; }
a.tile:hover::after { transform: scaleX(1); }
.tile .num { font-size: .9rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.tile h3 { font-size: 1.45rem; }
.tile p { margin: 0; color: var(--muted); }
.tile .more { margin-top: auto; padding-top: 26px; font-weight: 600; color: var(--blue); }

/* Detailed service rows */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc h3 { font-size: 2rem; }
.svc p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Four-phase flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: f; }
.flow li { list-style: none; position: relative; padding: 0 28px 0 0; counter-increment: f; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-size: 3.4rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.flow li::after { content: ""; position: absolute; top: 26px; left: 92px; right: 18px; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1.3rem; }
.flow p { color: var(--muted); font-size: 1rem; margin: 0; }
.flow { padding: 0; margin: 0; }

/* Tabs */
.tabs { border: 1px solid var(--line); background: #fff; }
.tab-list { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list button { flex: 1 0 auto; font: inherit; font-weight: 600; font-size: 1.08rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 24px 28px; text-align: left; position: relative; white-space: nowrap; }
.tab-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-list button[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { padding: 48px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.8rem; }
.tab-panel p { color: var(--muted); margin: 0; }
.tool-group + .tool-group { margin-top: 26px; }
.tool-group h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--ink); background: #fff; font-weight: 500; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; position: relative; counter-reset: t; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .5; }
.timeline li { position: relative; padding-top: 72px; counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Numbers band */
.band { background: var(--navy) url("img/hero-network.jpg") center/cover; color: #fff; position: relative; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(5,16,40,.72); }
.band > .container { position: relative; }
.band h2 { color: #fff; }
.band .section-title p { color: #c9cfe8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stats div { padding-top: 26px; border-top: 2px solid rgba(255,255,255,.25); }
.stats strong { display: block; font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1.05; margin-bottom: 8px; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { color: #c9cfe8; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ind { position: relative; min-height: 260px; color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--navy) center/cover; }
.ind::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,16,40,.15), rgba(5,16,40,.85)); transition: background .25s; }
.ind > * { position: relative; }
.ind h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.ind p { margin: 0; color: #dfe4f5; font-size: 1rem; }
a.ind:hover { text-decoration: none; }
a.ind:hover::before { background: linear-gradient(180deg, rgba(47,124,240,.25), rgba(5,16,40,.9)); }

/* Plans */
.plan { border: 1px solid var(--line); padding: 44px 40px; display: flex; flex-direction: column; background: #fff; position: relative; }
.plan.featured { border: 0; box-shadow: 0 20px 60px rgba(10,10,20,.12); }
.plan.featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.plan .kind { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.plan h3 { font-size: 1.7rem; }
.plan p { color: var(--muted); }
.plan .dash { flex: 1; margin: 10px 0 30px; }
.plan .btn { align-self: flex-start; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 28px 0; font-weight: 700; font-size: 1.3rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 2rem; font-weight: 300; line-height: .8; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 28px; margin: 0; max-width: 900px; font-size: 1.08rem; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.media { min-height: 420px; background: var(--navy) center/cover; position: relative; }
.media::after { content: ""; position: absolute; left: -24px; bottom: -24px; width: 45%; height: 45%; border-left: 4px solid; border-bottom: 4px solid; border-image: var(--grad) 1; pointer-events: none; }
.kv { border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 600; text-align: right; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { margin-bottom: 26px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
input, select, textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1.5px solid #c4c9d6; border-radius: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.hidden { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); margin-bottom: 28px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.side-info .item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.side-info .item:first-child { padding-top: 0; }
.side-info h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.side-info p { margin: 0; color: var(--ink); font-weight: 500; }

/* Prose (privacy) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }

/* CTA */
.cta { background: var(--navy-2); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.cta .container { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #c9cfe8; margin: 0; font-size: 1.15rem; }
.cta .btn { justify-self: end; }

/* Footer */
.site-footer { background: #06111f; color: #a3abc9; padding: 80px 0 34px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.site-footer .brand { margin-bottom: 18px; font-size: 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c9cfe8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .92rem; }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Chat bubble */
.chat { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 14px 24px 14px 14px; border-radius: 22px; box-shadow: 0 12px 34px rgba(5,16,40,.35); font-size: 1.05rem; line-height: 1.3; }
.chat:hover { text-decoration: none; background: #13305a; }
.chat .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.chat .ava svg { width: 24px; height: 24px; }

/* Reveal (visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
  .menu > li > a, .menu > li > button { padding: 12px 10px; font-size: 1.02rem; }
  .menu .pill { margin-left: 8px; padding: 10px 24px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 980px) {
  .container { padding: 0 28px; }
  .nav-toggle { display: block; }
  .menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 90px 28px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
  .menu.open { transform: none; }
  .menu > li > a, .menu > li > button, .scrolled .menu > li > a, .scrolled .menu > li > button { color: var(--ink); width: 100%; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .menu .pill, .scrolled .menu .pill { margin: 24px 0 0; justify-content: center !important; border: 1.5px solid var(--ink) !important; border-radius: 999px !important; }
  .dropdown, .dropdown.wide { position: static; transform: none !important; min-width: 0; box-shadow: none; padding: 6px 0 14px 14px; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; gap: 14px; }
  .has-dd:hover .dropdown { display: none; }
  .has-dd.open .dropdown { display: block; }
  .has-dd.open .dropdown.wide { display: grid; }
  .nav-close { position: absolute; top: 24px; right: 24px; }
  .intro, .section-title.split, .split, .contact-grid, .svc, .tab-panel, .cta .container { grid-template-columns: 1fr; gap: 32px; }
  .cta .btn { justify-self: start; }
  .cols-3, .cols-4, .tiles, .ind-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media { min-height: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 18px; }
  section { padding: 68px 0; }
  .nav { height: 76px; }
  .brand { font-size: 1.35rem; }
  .hero-home { min-height: 600px; padding: 140px 0 70px; }
  .hero-page { min-height: 340px; padding: 120px 0 50px; }
  .cols-2, .cols-3, .cols-4, .tiles, .ind-grid, .stats, .flow, .timeline, .footer-grid, form .row { grid-template-columns: 1fr; }
  form .row { gap: 0; }
  .tile, .plan { padding: 32px 26px; }
  .tab-panel { padding: 28px 22px; }
  .tab-list button { padding: 18px 18px; font-size: 1rem; }
  .chat { padding: 10px; border-radius: 50%; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .chat .txt { display: none; }
  .media::after { left: -10px; bottom: -10px; }
  .crumbs { padding-top: 26px; font-size: .95rem; }
}
@media (max-width: 980px) {
  .nav-toggle { position: relative; z-index: 2; }
  .menu { z-index: 1; }
  .nav-toggle[aria-expanded="true"] { border-color: var(--line); }
  .nav-toggle[aria-expanded="true"] span { background: var(--ink); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle span { transition: transform .2s, opacity .2s; }
}

/* Logo */
.brand img { height: 54px; width: auto; display: block; }
.brand .logo-dark { display: none; }
.scrolled .brand .logo-light { display: none; }
.scrolled .brand .logo-dark { display: block; }
.scrolled .brand img { height: 46px; }
.site-footer .brand img { height: 92px; }
@media (max-width: 640px) { .brand img, .scrolled .brand img { height: 40px; } .site-footer .brand img { height: 76px; } }

/* Three-practice services menu and footer */
.dropdown.three { min-width: 900px; grid-template-columns: repeat(3, 1fr); }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr; gap: 40px; }
.site-footer h4 a { color: #fff; }
.practice-tile .dash { margin: 18px 0 0; }
.practice-tile .dash li { color: var(--text); font-size: 1rem; margin-bottom: 8px; }
@media (max-width: 1120px) { .dropdown.three { min-width: 760px; } }
@media (max-width: 980px) { .has-dd.open .dropdown.three { display: grid; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
