/* ==========================================================================
   NERO Accounting & Consulting — Design System
   Colors sampled from the NERO logo.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --navy: #222C4C;
  --navy-deep: #161D35;
  --navy-ink: #10162A;
  --navy-2: #33466E;
  --navy-3: #7D8DB3;
  --silver: #BEBDBA;
  --silver-2: #DEDDDA;
  --silver-3: #EEEDEA;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --ink: #1B2238;
  --muted: #5B6276;
  --line: rgba(34, 44, 76, .12);
  --line-light: rgba(255, 255, 255, .14);
  --success: #2F7A5B;
  --error: #B4413C;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 42, .06), 0 2px 8px rgba(16, 22, 42, .05);
  --shadow: 0 10px 30px -12px rgba(16, 22, 42, .22);
  --shadow-lg: 0 30px 60px -24px rgba(16, 22, 42, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: page-in .6s var(--ease-out);
}
/* Opacity only: a transform on <body> would break the fixed header */
html.is-leaving body { opacity: 0; transition: opacity .26s var(--ease); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Slide-in reveals must never create sideways scroll (esp. in RTL); clip keeps position:sticky working */
main { overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--navy-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .founder-hero .eyebrow { color: var(--silver); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: rgba(255,255,255,.72); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Logo-inspired divider: line — diamond — line */
.divider { display: flex; align-items: center; gap: 14px; color: var(--navy-2); }
.divider::before, .divider::after { content: ""; height: 1px; width: 56px; background: var(--silver); }
.divider span { width: 10px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.section-head--center .divider { justify-content: center; margin: 22px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--light { --bg: var(--white); --fg: var(--navy); --bd: var(--white); }
.btn--light:hover { color: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: rgba(34,44,76,.35); }
.btn--ghost:hover { color: var(--white); border-color: var(--navy-2); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.4); }
.btn--ghost-light::after { background: var(--white); }
.btn--ghost-light:hover { color: var(--navy); border-color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 12px; border-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled { height: 70px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: auto; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: translateY(-2px); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .08em; color: var(--navy); }
.brand-sub { font-family: var(--font-display); font-size: .5rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-top: 5px; }
.brand .mark-light { display: none; }

/* Transparent header over dark hero */
.site-header.on-dark:not(.is-scrolled) .brand-name,
.site-header.on-dark:not(.is-scrolled) .brand-sub,
.site-header.on-dark:not(.is-scrolled) .nav-links a { color: var(--white); }
.site-header.on-dark:not(.is-scrolled) .brand .mark-dark { display: none; }
.site-header.on-dark:not(.is-scrolled) .brand .mark-light { display: block; }
.site-header.on-dark:not(.is-scrolled) .nav-toggle span { background: var(--white); }
.site-header.on-dark:not(.is-scrolled) .nav-cta { --bg: var(--white); --fg: var(--navy); --bd: var(--white); }
.site-header.on-dark:not(.is-scrolled) .nav-cta:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); position: relative; padding: 8px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; background: currentColor;
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-cta { min-height: 44px; padding: 10px 20px; font-size: .74rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease), background .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Six nav items + language switch + CTA: keep the desktop header compact */
@media (min-width: 1181px) {
  .header-inner { gap: 16px; }
  .nav { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { letter-spacing: .07em; font-size: .74rem; }
  .nav-cta { padding: 10px 14px; letter-spacing: .08em; }
}
@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 40px;
    padding: 100px var(--gutter) 48px; background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav::before {
    content: ""; position: absolute; right: -80px; bottom: -60px; width: 320px; height: 264px;
    background: url("../img/nero-mark-light.svg") no-repeat center / contain; opacity: .06; pointer-events: none;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 6px; }
  .nav-links li { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  .nav.is-open .nav-links li { opacity: 1; transform: none; }
  .nav.is-open .nav-links li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav-links li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav-links li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav-links li:nth-child(5) { transition-delay: .2s; }
  .nav-links a, .site-header.on-dark:not(.is-scrolled) .nav-links a { color: var(--white); font-size: 1.5rem; letter-spacing: .06em; text-transform: none; font-weight: 500; display: block; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
  .nav-links a::after { left: auto; right: 4px; bottom: 50%; transform: translateY(50%) rotate(45deg) scale(0); }
  .nav-links a[aria-current="page"]::after { transform: translateY(50%) rotate(45deg) scale(1.3); }
  .nav-cta, .site-header.on-dark:not(.is-scrolled) .nav-cta { --bg: var(--white); --fg: var(--navy); --bd: var(--white); min-height: 54px; }
  .nav-cta:hover { color: var(--white) !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span { background: var(--white) !important; }
  body.nav-open .site-header .brand-name, body.nav-open .site-header .brand-sub { color: var(--white); position: relative; z-index: 120; }
  body.nav-open .site-header .brand { position: relative; z-index: 120; }
  body.nav-open .site-header .brand .mark-dark { display: none; }
  body.nav-open .site-header .brand .mark-light { display: block; }
  body.nav-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(51,70,110,.65), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%, var(--navy-ink) 100%);
  color: rgba(255,255,255,.78); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--silver); }
.hero .lead { color: rgba(255,255,255,.72); margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.hero-meta li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.7); }
.hero-meta svg { width: 18px; height: 18px; color: var(--silver); flex: none; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-visual .ring { position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.1); transform: rotate(45deg); }
.hero-visual .ring--2 { inset: 18%; border-color: rgba(255,255,255,.06); }
.hero-mark { position: absolute; inset: 22% 16% 26%; width: 68%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero-mark polygon { transform-box: fill-box; transform-origin: center; animation: piece-in 1.1s var(--ease-out) both; }
.hero-mark .p1 { --tx: -40px; --ty: -40px; animation-delay: .15s; }
.hero-mark .p2 { --tx: 40px;  --ty: -40px; animation-delay: .25s; }
.hero-mark .p3 { --tx: -60px; --ty: 10px;  animation-delay: .45s; }
.hero-mark .p4 { --tx: 60px;  --ty: 10px;  animation-delay: .55s; }
.hero-mark .p5 { --tx: -30px; --ty: 40px;  animation-delay: .7s; }
.hero-mark .p6 { --tx: 30px;  --ty: 40px;  animation-delay: .8s; }
@keyframes piece-in { from { opacity: 0; transform: translate(var(--tx), var(--ty)); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-lg); min-width: 190px;
  animation: float-in 1s var(--ease-out) both, bob 7s ease-in-out infinite;
}
.float-card small { display: block; font-family: var(--font-display); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.float-card strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.float-card--a { left: -4%; top: 12%; animation-delay: 1s, 2s; }
.float-card--b { right: -6%; bottom: 10%; animation-delay: 1.2s, 3s; }
.float-card .bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin-top: 10px; }
.float-card .bars i { flex: 1; background: var(--silver-2); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: grow 1s var(--ease-out) both; }
.float-card .bars i:last-child { background: var(--navy-2); }
.float-card .check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.float-card .check svg { width: 18px; height: 18px; color: var(--success); }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--silver); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-top: 8px; }
  .float-card { min-width: 0; padding: 12px 14px; }
  .float-card--a { left: 0; top: 4%; }
  .float-card--b { right: 0; bottom: 4%; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero-visual { max-width: 300px; }
  .float-card { padding: 10px 12px; }
  .float-card small { font-size: .55rem; }
  .float-card strong { font-size: .85rem; }
  .float-card .check { font-size: .8rem; }
  .float-card .bars { height: 26px; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 9vw, 110px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255,255,255,.75);
}
.page-hero::after {
  content: ""; position: absolute; right: -6%; top: 50%; width: min(520px, 60vw); aspect-ratio: 274 / 226;
  transform: translateY(-42%); background: url("../img/nero-mark-light.svg") no-repeat center / contain; opacity: .07;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.72); }
.breadcrumb { display: flex; gap: 10px; list-style: none; font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--navy); position: relative; margin-bottom: 22px; }
.icon::before { content: ""; position: absolute; inset: 6px; background: var(--silver-3); transform: rotate(45deg); border-radius: 3px; transition: background .4s var(--ease), transform .6s var(--ease-out); }
.icon svg { position: relative; width: 24px; height: 24px; }
.section--dark .icon { color: var(--white); }
.section--dark .icon::before { background: rgba(255,255,255,.08); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 50%, var(--silver) 50%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card:hover .icon::before { background: var(--navy); transform: rotate(135deg); }
.card:hover .icon { color: var(--white); }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 12px; align-self: flex-start; }

.check-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 24px; }
.check-list li { position: relative; padding-left: 24px; color: var(--ink); font-size: 1rem; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--navy-2); transform: rotate(45deg); }
.section--dark .check-list li, .panel .check-list li { color: rgba(255,255,255,.88); }
.section--dark .check-list li::before, .panel .check-list li::before { background: var(--silver); }

/* Pillars strip */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 34px 28px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.pillar h3 svg { width: 20px; height: 20px; color: var(--navy-2); }
.pillar p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 4px; } .pillar:last-child { border-bottom: 0; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: var(--line-light); }
.step { position: relative; counter-increment: step; }
.step-num { width: 52px; height: 52px; display: grid; place-items: center; position: relative; margin-bottom: 26px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); }
.step-num::before { content: ""; position: absolute; inset: 8px; background: var(--silver); transform: rotate(45deg); transition: transform .6s var(--ease-out), background .4s; }
.step:hover .step-num::before { transform: rotate(225deg); background: var(--white); }
.step-num span { position: relative; }
.step h3 { margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.7); font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding-bottom: 32px; }
  .step::before { content: ""; position: absolute; left: 26px; top: 56px; bottom: 4px; width: 1px; background: var(--line-light); }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; margin: 0; }
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel { position: relative; background: var(--navy); color: rgba(255,255,255,.78); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); overflow: hidden; }
.panel h3 { color: var(--white); }
.panel::after { content: ""; position: absolute; right: -60px; bottom: -50px; width: 240px; height: 198px; background: url("../img/nero-mark-light.svg") no-repeat center / contain; opacity: .07; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.stat span { font-size: .92rem; color: var(--muted); }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }

/* Industry tiles */
.industry {
  position: relative; display: flex; flex-direction: column; min-height: 240px;
  padding: 30px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; transition: color .4s var(--ease), border-color .4s, transform .5s var(--ease-out);
}
.industry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); opacity: 0; transition: opacity .45s var(--ease); }
.industry > * { position: relative; }
.industry h3 { transition: color .4s; }
.industry p { color: var(--muted); font-size: .98rem; transition: color .4s; margin-bottom: 0; }
.industry .icon { margin-bottom: auto; padding-bottom: 0; }
.industry .industry-body { margin-top: 28px; }
.industry:hover { transform: translateY(-4px); border-color: transparent; }
.industry:hover::before { opacity: 1; }
.industry:hover h3 { color: var(--white); }
.industry:hover p { color: rgba(255,255,255,.72); }
.industry:hover .icon { color: var(--white); }
.industry:hover .icon::before { background: rgba(255,255,255,.1); transform: rotate(135deg); }

/* Detailed industry rows */
.industry-row { scroll-margin-top: 80px; display: grid; grid-template-columns: 300px 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.industry-row:last-child { border-bottom: 1px solid var(--line); }
.industry-row h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.industry-row h4 { font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-2); margin-bottom: 14px; }
.industry-row p { color: var(--muted); }
@media (max-width: 900px) { .industry-row { grid-template-columns: 1fr; gap: 16px; } }

/* Service detail */
.subnav { position: sticky; top: 70px; z-index: 50; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: background .3s, color .3s; }
.subnav a:hover { color: var(--navy); background: var(--silver-3); }
.subnav a.is-active { background: var(--navy); color: var(--white); }

.service-block { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 88px); scroll-margin-top: 150px; }
.service-block + .service-block { margin-top: clamp(72px, 10vw, 120px); padding-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.service-intro { position: sticky; top: 160px; align-self: start; }
.service-intro .num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--navy-3); display: block; margin-bottom: 14px; }
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: box-shadow .4s var(--ease), transform .4s var(--ease-out); }
.service-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-item h3 { font-size: 1.1rem; display: flex; gap: 12px; align-items: center; }
.service-item h3::before { content: ""; width: 8px; height: 8px; background: var(--navy-2); transform: rotate(45deg); flex: none; }
.service-item p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 1020px) { .service-block { grid-template-columns: 1fr; } .service-intro { position: static; } }
@media (max-width: 620px) { .service-items { grid-template-columns: 1fr; } }

/* Engagement models */
.model { padding: 36px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line-light); background: rgba(255,255,255,.03); display: flex; flex-direction: column; transition: background .4s, border-color .4s, transform .5s var(--ease-out); }
.model:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); transform: translateY(-4px); }
.model--featured { background: var(--white); color: var(--ink); border-color: var(--white); }
.model--featured:hover { background: var(--white); }
.model--featured h3 { color: var(--navy) !important; }
.model--featured p { color: var(--muted); }
.model--featured .check-list li { color: var(--ink); }
.model--featured .check-list li::before { background: var(--navy-2); }
.model .tag { align-self: flex-start; font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--silver); margin-bottom: 20px; }
.model--featured .tag { background: var(--navy); color: var(--white); }
.model .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy-2); border-bottom: 2px solid var(--navy-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .faq-body { padding: 0 0 26px; color: var(--muted); max-width: 70ch; }
.faq details[open] .faq-body { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Values */
.value { padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr; gap: 20px; }
.value .num { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--silver); line-height: 1; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }

/* Mark explainer */
.mark-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.mark-explain div { display: flex; gap: 14px; align-items: flex-start; font-size: .98rem; }
.mark-explain i { flex: none; width: 18px; height: 18px; margin-top: 4px; transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 520px) { .mark-explain { grid-template-columns: 1fr; } }
.mark-stage { aspect-ratio: 1; max-width: 460px; margin: 0 auto; display: grid; place-items: center; background: var(--paper); border-radius: 50%; position: relative; }
.mark-stage::before { content: ""; position: absolute; inset: 12%; border: 1px solid var(--line); transform: rotate(45deg); }
.mark-stage img { width: 56%; position: relative; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); color: rgba(255,255,255,.78); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -60px; width: 340px; height: 280px; background: url("../img/nero-mark-light.svg") no-repeat center / contain; opacity: .08; pointer-events: none; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 54ch; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* Stripe deposit (hidden until configured) */
[data-stripe-link][hidden] { display: none !important; }
.pay-note { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.pay-note svg { width: 18px; height: 18px; color: var(--navy-2); flex: none; }

/* ---------- Contact & forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1020px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-top: calc(-1 * clamp(48px, 7vw, 90px)); position: relative; z-index: 2; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--paper); }
.tab { border: 0; background: none; padding: 22px 16px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; transition: color .3s, background .3s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--navy); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.tab[aria-selected="true"] { color: var(--navy); background: var(--white); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { padding: clamp(24px, 4vw, 48px); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: faq-in .5s var(--ease-out); }
.tab-panel > p { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.field label.chip, .field label.consent { font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font-size: 1rem;
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius);
  transition: border-color .25s, background .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222C4C' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(51,70,110,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #fff; }
.field-error { font-size: .85rem; color: var(--error); min-height: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .95rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; user-select: none; }
.chip span::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--navy-3); transform: rotate(45deg); transition: background .25s, border-color .25s; }
.chip input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip input:checked + span::before { background: var(--white); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form-actions small { color: var(--muted); font-size: .88rem; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); }
.form-success[hidden] { display: none; }
.form-success .success-mark { width: 74px; height: 74px; margin: 0 auto 26px; display: grid; place-items: center; position: relative; color: var(--white); }
.form-success .success-mark::before { content: ""; position: absolute; inset: 10px; background: var(--navy); transform: rotate(45deg); border-radius: 4px; animation: pop .6s var(--ease-out) both; }
.form-success .success-mark svg { position: relative; width: 28px; height: 28px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s var(--ease) forwards; }
.form-success p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
@keyframes pop { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.contact-aside { display: grid; gap: 20px; }
.info-card { padding: 30px; border-radius: var(--radius-lg); background: var(--paper); }
.info-card h3 { font-size: 1.05rem; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.info-list svg { width: 20px; height: 20px; color: var(--navy-2); margin-top: 3px; }
.info-list small { display: block; font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-list a:hover { color: var(--navy-2); text-decoration: underline; }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: 16px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: .98rem; color: rgba(255,255,255,.8); }
.next-steps li::before { content: counter(ns); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-family: var(--font-display); font-size: .78rem; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.62); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.site-footer .brand-name, .site-footer .brand-sub { color: var(--white); }
.site-footer .brand { margin-bottom: 22px; }
.site-footer p { max-width: 36ch; }
.site-footer h4 { font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .88rem; }
.footer-bottom .divider { color: var(--navy-3); }
.footer-bottom .divider::before, .footer-bottom .divider::after { background: rgba(255,255,255,.18); width: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Founder page ---------- */
.founder-hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.78);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(48px, 6vw, 72px);
  background: radial-gradient(900px 520px at 80% 30%, rgba(51,70,110,.6), transparent 65%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%, var(--navy-ink) 100%);
}
.founder-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 14px; }
.founder-hero .post-nominal { color: var(--silver); font-weight: 500; }
.founder-role { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.founder-subrole { color: var(--silver); font-size: 1.02rem; margin-bottom: 28px; }
.founder-hero .lead { color: rgba(255,255,255,.72); margin-bottom: 34px; }

.portrait { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.portrait::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-2); }
.portrait-frame > img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 60%, var(--navy-deep) 100%);
}
.portrait-placeholder img { position: absolute; width: 130%; max-width: none; opacity: .07; right: -35%; bottom: -10%; }
.portrait-placeholder span { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 9vw, 6.5rem); letter-spacing: .08em; color: rgba(255,255,255,.9); }
.portrait-placeholder span::after { content: ""; display: block; width: 40px; height: 2px; margin: 18px auto 0; background: var(--silver); }
.portrait-badge { position: absolute; left: -28px; bottom: 32px; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 14px 20px; box-shadow: var(--shadow-lg); }
.portrait-badge small { display: block; font-family: var(--font-display); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.portrait-badge strong { font-family: var(--font-display); font-weight: 600; color: var(--navy); }

.credential-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line-light); }
.credential-strip li { padding: 26px 24px 0 0; }
.credential-strip li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }
.credential-strip strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: var(--white); line-height: 1.1; }
.credential-strip span { font-size: .95rem; color: rgba(255,255,255,.62); }

@media (max-width: 900px) {
  .founder-hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 290px; margin: 12px auto 0; }
  .portrait::before { inset: -12px 12px 12px -12px; }
  .portrait-badge { left: -10px; }
  .credential-strip { grid-template-columns: 1fr 1fr; }
  .credential-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .credential-strip li:nth-child(n+3) { padding-top: 22px; }
}

.prose p { color: var(--muted); }
.prose .lead { color: var(--ink); }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.tool-label { font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-2); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--silver-3); color: var(--navy); font-size: .92rem; font-weight: 600; }

/* Journey timeline */
.journey { list-style: none; position: relative; max-width: 920px; }
.journey::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--navy-2), var(--silver)); }
.journey-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: clamp(18px, 3vw, 36px); }
.journey-item + .journey-item { margin-top: 24px; }
.journey-marker { position: relative; padding-top: 30px; }
.journey-marker span { display: block; width: 14px; height: 14px; margin-left: 9px; background: var(--navy); transform: rotate(45deg); box-shadow: 0 0 0 6px var(--paper); transition: background .4s; }
.journey-item:hover .journey-marker span { background: var(--navy-2); }
.journey-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); transition: box-shadow .4s var(--ease), transform .5s var(--ease-out); }
.journey-item:hover .journey-card { box-shadow: var(--shadow); transform: translateX(4px); }
.journey-sector { display: inline-block; font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2); margin-bottom: 10px; }
.journey-card h3 { margin-bottom: 4px; }
.journey-org { color: var(--muted); margin-bottom: 14px; }
.journey-card .check-list { margin-bottom: 0; }

/* Expertise grid */
.expertise-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise { padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.expertise h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
.expertise .icon { margin-bottom: 18px; }
.expertise:hover { background: var(--paper); }
.expertise:hover .icon::before { background: var(--navy); transform: rotate(135deg); }
.expertise:hover .icon { color: var(--white); }
@media (max-width: 1020px) { .expertise-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .expertise-grid { grid-template-columns: 1fr 1fr; } .expertise { padding: 24px 16px; } }

/* Credentials */
.credential-cards { display: grid; gap: 16px; margin-top: 28px; }
.credential { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.credential-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); }
.credential-mark svg { width: 24px; height: 24px; }
.credential small { font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2); }
.credential h3 { margin: 6px 0 4px; }
.credential p { margin: 0; color: var(--muted); }
.list-title { font-size: 1.05rem; padding-bottom: 14px; border-bottom: 2px solid var(--navy); display: inline-block; }
.training-list { list-style: none; }
.training-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.training-list span { font-weight: 600; color: var(--ink); }
.training-list small { color: var(--muted); font-size: .9rem; text-align: right; }
@media (max-width: 480px) { .training-list li { flex-direction: column; gap: 2px; } .training-list small { text-align: left; } }

/* Philosophy */
.philosophy { overflow: hidden; }
.philosophy::after { content: ""; position: absolute; right: -80px; top: 40px; width: 460px; height: 380px; background: url("../img/nero-mark-light.svg") no-repeat center / contain; opacity: .05; pointer-events: none; }
.tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; color: var(--white); margin: 0 0 clamp(40px, 6vw, 64px); }
.tagline em { font-style: normal; color: var(--silver); }
.philosophy-body { position: relative; z-index: 1; gap: clamp(28px, 5vw, 64px); }
.philosophy-body p { color: rgba(255,255,255,.72); margin: 0; }

.connect-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.connect-links li { display: flex; align-items: center; gap: 8px; }
.connect-links svg { width: 18px; height: 18px; color: var(--silver); }
.connect-links a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); }
.connect-links a:hover { border-color: var(--white); }

/* Founder teaser (About page) */
.founder-teaser { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-teaser .portrait-frame { display: block; aspect-ratio: 4 / 5; transition: transform .5s var(--ease-out); }
.founder-teaser .portrait-frame:hover { transform: translateY(-4px); }
.founder-teaser .portrait-placeholder span { font-size: 3.6rem; }
@media (max-width: 680px) { .founder-teaser { grid-template-columns: 1fr; } .founder-teaser .portrait-frame { max-width: 220px; } }

.credential .credential-id { margin-top: 8px; font-size: .88rem; color: var(--navy-2); font-weight: 600; }
.consent a { color: var(--navy-2); text-decoration: underline; }

/* ---------- Legal page ---------- */
.legal { max-width: 920px; }
.legal-block { scroll-margin-top: 140px; }
.legal-block + .legal-block { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.legal-block h3 { font-size: 1.1rem; margin-top: 32px; }
.legal-block p { color: var(--muted); }
.legal-block a { color: var(--navy-2); text-decoration: underline; }
.legal-updated { font-size: .9rem; }
.entity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 20px; }
.entity { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; }
.entity--wide { margin-bottom: 24px; }
.entity h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.entity-ar { margin-bottom: 18px; font-size: .95rem; }
.entity-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.entity dl { margin: 0; font-size: .98rem; }
.entity dt { font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-2); }
.entity dd { margin: 2px 0 14px; color: var(--ink); }
.entity dd:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .entity-grid { grid-template-columns: 1fr; } }

.footer-legal { max-width: none !important; margin: 18px 0 0; padding-right: 150px; font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.42); }
@media (max-width: 620px) { .footer-legal { padding-right: 70px; } }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Business Setup ---------- */
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1020px) { .steps--5 { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } .steps--5::before { display: none; } }
@media (max-width: 900px) { .steps--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--5 { grid-template-columns: 1fr; gap: 0; } }
.framework-note { margin: 40px 0 0; font-size: .92rem; color: rgba(255,255,255,.55); max-width: 70ch; }

/* Home feature: three stacked items */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .4s var(--ease), transform .5s var(--ease-out); }
.feature-list li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-list .icon { margin: 0; }
.feature-list h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.setup-feature .btn-row { margin-top: 30px; align-items: center; }

/* Info box (e-Residency facts, disclaimers) */
.info-box { margin-top: 28px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--paper); border-inline-start: 4px solid var(--navy); }
.info-box h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.info-box h3 svg { width: 22px; height: 22px; color: var(--navy-2); flex: none; }
.info-box p { color: var(--muted); }
.info-box p:last-child, .info-box .check-list:last-child { margin-bottom: 0; }
.service-block .info-box { grid-column: 2; }
@media (max-width: 1020px) { .service-block .info-box { grid-column: auto; } }

.provider-strip { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.provider { padding: 22px 24px; border: 1px dashed rgba(34,44,76,.3); border-radius: var(--radius-lg); }
.provider strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.provider span { color: var(--muted); font-size: .95rem; }
.provider-note { grid-column: 2; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 1020px) { .provider-strip, .provider-note { grid-column: auto; } }
@media (max-width: 560px) { .provider-strip { grid-template-columns: 1fr; } }

/* Our role, clearly */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role-card { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg); }
.role-card--nero { background: var(--navy); color: rgba(255,255,255,.8); }
.role-card--nero h3 { color: var(--white); }
.role-card--nero .check-list li { color: rgba(255,255,255,.88); }
.role-card--nero .check-list li::before { background: var(--silver); }
.role-card--third { background: var(--white); border: 1px solid var(--line); }
.role-card .check-list { margin-bottom: 0; }
.role-statement { margin: 28px auto 0; max-width: 820px; text-align: center; color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .role-grid { grid-template-columns: 1fr; } }

/* Services page banner linking to Business Setup */
.setup-banner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--paper); position: relative; overflow: hidden; }
.setup-banner::after { content: ""; position: absolute; inset-inline-end: -50px; bottom: -60px; width: 280px; height: 231px; background: url("../img/nero-mark.svg") no-repeat center / contain; opacity: .06; pointer-events: none; }
.setup-banner .tags { margin: 20px 0 26px; }
.setup-banner .feature-list { position: relative; z-index: 1; }
@media (max-width: 900px) { .setup-banner { grid-template-columns: 1fr; } }
.model .price { font-family: var(--font-display); font-weight: 600; color: var(--silver); margin: -6px 0 18px; font-size: .95rem; }
.model--featured .price { color: var(--navy-2); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 14px;
  border: 1px solid rgba(34,44,76,.25); border-radius: 999px; color: var(--navy);
  font-family: "IBM Plex Sans Arabic", var(--font-body); font-size: .9rem; font-weight: 600; line-height: 1;
  transition: background .3s, color .3s, border-color .3s;
}
.lang-switch:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lang-switch[lang="en"] { font-family: "Montserrat", sans-serif; font-size: .74rem; letter-spacing: .12em !important; text-transform: uppercase; }
.site-header.on-dark:not(.is-scrolled) .lang-switch { color: var(--white); border-color: rgba(255,255,255,.4); }
.site-header.on-dark:not(.is-scrolled) .lang-switch:hover { background: var(--white); color: var(--navy); }
@media (max-width: 1180px) {
  .lang-switch, .site-header.on-dark:not(.is-scrolled) .lang-switch { align-self: flex-start; color: var(--white); border-color: rgba(255,255,255,.4); min-height: 44px; padding: 6px 20px; }
}

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */
:root[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
/* Letter-spacing breaks connected Arabic script; the Latin logo lockup keeps its own */
[lang="ar"] body :not(.brand-name):not(.brand-sub):not(.lang-switch) { letter-spacing: 0 !important; }
[lang="ar"] .brand-name, [lang="ar"] .brand-sub { font-family: "Montserrat", sans-serif; }
[lang="ar"] body { font-size: 1.05rem; line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { line-height: 1.4; font-weight: 700; }
[lang="ar"] .eyebrow { font-size: .92rem; }
[lang="ar"] .btn { font-size: .98rem; font-weight: 600; }
[lang="ar"] .nav-links a { font-size: .98rem; }
[lang="ar"] .nav-cta { font-size: .92rem; }
[lang="ar"] .link-arrow, [lang="ar"] .tab, [lang="ar"] .subnav a { font-size: .95rem; }
[lang="ar"] .breadcrumb { font-size: .88rem; }
[lang="ar"] .field label, [lang="ar"] .field legend { font-size: .92rem; }
[lang="ar"] .founder-role { font-size: 1.15rem; }
[lang="ar"] .journey-sector, [lang="ar"] .tool-label, [lang="ar"] .credential small, [lang="ar"] .entity-tag,
[lang="ar"] .entity dt, [lang="ar"] .site-footer h4, [lang="ar"] .portrait-badge small, [lang="ar"] .float-card small,
[lang="ar"] .model .tag, [lang="ar"] .info-list small, [lang="ar"] .industry-row h4 { font-size: .82rem; }
[lang="ar"] .tagline { line-height: 1.3; }
[lang="ar"] .faq summary { font-size: 1.12rem; }

/* Mirror direction-dependent details */
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .check-list li::before { left: auto; right: 2px; }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 42px; }
[dir="rtl"] .page-hero::after { right: auto; left: -6%; }
[dir="rtl"] .cta-band::after { right: auto; left: -40px; }
[dir="rtl"] .panel::after { right: auto; left: -60px; }
[dir="rtl"] .philosophy::after { right: auto; left: -80px; }
[dir="rtl"] .journey::before { left: auto; right: 15px; }
[dir="rtl"] .journey-marker span { margin-left: 0; margin-right: 9px; }
[dir="rtl"] .journey-item:hover .journey-card { transform: translateX(-4px); }
[dir="rtl"] .portrait::before { inset: -18px -18px 18px 18px; }
[dir="rtl"] .portrait-badge { left: auto; right: -28px; }
[dir="rtl"] .credential-strip li { padding: 26px 0 0 24px; }
[dir="rtl"] .credential-strip li + li { padding-left: 24px; padding-right: 24px; border-left: 0; border-right: 1px solid var(--line-light); }
[dir="rtl"] .training-list small { text-align: left; }
[dir="rtl"] .wa-float { right: auto; left: max(18px, env(safe-area-inset-left)); padding: 0 14px 0 18px; }
[dir="rtl"] .footer-legal { padding-right: 0; padding-left: 150px; }
[dir="rtl"] .entity-ltr { direction: ltr; text-align: right; }
@media (max-width: 1180px) {
  [dir="rtl"] .nav-links a::after { right: auto; left: 4px; }
}
@media (max-width: 900px) {
  [dir="rtl"] .portrait-badge { right: -10px; }
  [dir="rtl"] .portrait::before { inset: -12px -12px 12px 12px; }
  [dir="rtl"] .credential-strip li:nth-child(3) { padding-right: 0; border-right: 0; }
}
@media (max-width: 560px) {
  [dir="rtl"] .step::before { left: auto; right: 26px; }
}
@media (max-width: 620px) {
  [dir="rtl"] .footer-legal { padding-left: 70px; }
  [dir="rtl"] .wa-float { padding: 0; }
}

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 14px;
  background: #25D366; color: #fff; border-radius: 999px; box-shadow: 0 12px 28px -8px rgba(16,22,42,.45);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  animation: float-in .8s 1.2s var(--ease-out) both; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(16,22,42,.5); }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 620px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.notfound img { width: 120px; margin: 0 auto 30px; }
.notfound .code { font-family: var(--font-display); font-size: .8rem; letter-spacing: .3em; color: var(--navy-3); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
