/* Ironhurst Advisory, v2
   Palette: Smith Blue ground, Cornell Carnelian for action, Myna Deep Teal and
   Smith Azure as supporting color, Ember orange for small sparks only.
   Layout idea: dark animated hero that hands off to light, image-led sections;
   motion is used for reveals, counters, a sector marquee and a scroll-drawn flight path. */
:root {
  --smith: #071d49;      /* Queen's Smith Blue: primary dark */
  --smith-2: #0c2b66;    /* lighter step for gradients */
  --azure: #0047bb;      /* Smith Azure: links, data graphics */
  --carnelian: #b31b1b;  /* Cornell Carnelian: primary action */
  --teal: #1f5f5b;       /* Myna Deep Teal: secondary */
  --ember: #e8762d;      /* orange spark, used sparingly */
  --ink: #0e1a33;
  --slate: #56617a;
  --mist: #eef2f7;
  --line: #d9e0ea;
  --white: #ffffff;

  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 2.4vw, 1.875rem);
  --step-3: clamp(2rem, 3.6vw, 2.75rem);
  --step-4: clamp(2.6rem, 6vw, 4.75rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--carnelian); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--smith); letter-spacing: -.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--carnelian); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header: glass bar that solidifies on scroll ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; transition: padding .35s var(--ease); }
.site-header.scrolled { background: rgba(7, 29, 73, .86); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header.scrolled .wrap { padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { display: block; font-family: var(--display); font-size: 1.45rem; letter-spacing: .16em; line-height: 1; }
.brand-sub { display: block; font-size: .64rem; letter-spacing: .58em; margin-top: .4rem; color: rgba(255,255,255,.72); font-weight: 500; }
.brand:hover { color: var(--white); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: .55rem 1rem; font: 600 .9rem/1 var(--body); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font: 600 .975rem/1 var(--body); padding: 1rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  background: var(--carnelian); color: var(--white); border: 1px solid var(--carnelian);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(179, 27, 27, .7);
}
.btn:hover { background: #961616; color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(179, 27, 27, .8); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); color: var(--white); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--white); box-shadow: none; }
.btn-line { background: transparent; color: var(--smith); border-color: var(--smith); box-shadow: none; }
.btn-line:hover { background: var(--smith); color: var(--white); box-shadow: none; }
.nav .btn { padding: .7rem 1.2rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero (dark, animated) ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--smith); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, rgba(7,29,73,0), rgba(7,29,73,.55)); z-index: -1; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(8rem, 15vw, 11rem); padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-copy { display: grid; gap: 1.6rem; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82); }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--ember); border-radius: 2px; }
.hero .lede { color: rgba(255,255,255,.82); font-size: var(--step-1); line-height: 1.55; max-width: 36rem; }
.hero-card { position: relative; justify-self: end; width: min(100%, 22rem); }
.hero-card .frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18); transform: rotate(1.5deg); transition: transform .6s var(--ease); }
.hero-card:hover .frame { transform: rotate(0deg) translateY(-4px); }
.hero-card .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,29,73,0) 55%, rgba(7,29,73,.85)); }
.hero-card .tag { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; display: grid; gap: .15rem; }
.hero-card .tag strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.hero-card .tag span { font-size: .88rem; color: rgba(255,255,255,.8); }
.hero-card .badge { position: absolute; z-index: 2; left: -1.4rem; top: 1.6rem; background: var(--white); color: var(--smith); border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); display: grid; gap: .1rem; animation: float 6s ease-in-out infinite; }
.hero-card .badge b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--carnelian); line-height: 1; }
.hero-card .badge span { font-size: .78rem; color: var(--slate); font-weight: 500; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Inner-page hero (shorter) */
.page-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: clamp(8rem, 14vw, 10rem); padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { max-width: 18ch; }

/* ---------- Marquee ---------- */
.marquee { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.4rem 0; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--smith); white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: 9px; height: 9px; margin: 0 2.2rem; background: var(--ember); transform: rotate(45deg); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); position: relative; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--smith); color: rgba(255,255,255,.84); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.head p { color: var(--slate); font-size: var(--step-1); line-height: 1.55; }
.section.dark .head p { color: rgba(255,255,255,.75); }
.head.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 2rem; }

/* ---------- Stats with counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { padding: 1.8rem 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: .35rem; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--carnelian)); }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1; color: var(--smith); font-variant-numeric: tabular-nums; }
.stat span { color: var(--slate); font-size: .98rem; }

/* ---------- Service cards with illustrations ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card { position: relative; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(7,29,73,.45); border-color: transparent; color: inherit; }
.card-art { height: 190px; position: relative; overflow: hidden; background: var(--bg); }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art .draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--ease); }
.card:hover .card-art .draw, .card.in .card-art .draw { stroke-dashoffset: 0; }
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: grid; gap: .8rem; flex: 1; align-content: start; }
.card-body .role { font-size: .85rem; font-weight: 600; color: var(--c); }
.card-body p { color: var(--slate); }
.card-body ul { margin: .3rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.card-body li { padding-left: 1.2rem; position: relative; font-size: .97rem; }
.card-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.card .go { margin-top: auto; padding: 0 1.6rem 1.6rem; font-weight: 600; color: var(--smith); display: inline-flex; align-items: center; gap: .4rem; }
.card .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .go svg { transform: translateX(4px); }

/* ---------- Audience: sticky split ---------- */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.sticky { position: sticky; top: 7rem; display: grid; gap: 1rem; }
.sticky p { color: var(--slate); font-size: var(--step-1); }
.who { display: grid; gap: 1rem; }
.who-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.who-item:hover { border-color: var(--c); transform: translateX(4px); }
.icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; }
.icon svg { width: 26px; height: 26px; }
.who-item h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.who-item p { color: var(--slate); }

/* ---------- Experience carousel ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 24rem); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem var(--gutter) 1.5rem; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; border-radius: 20px; padding: 2rem 1.8rem; min-height: 22rem; color: #fff; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; background: var(--bg); }
.case::after { content: ""; position: absolute; width: 22rem; height: 22rem; right: -9rem; top: -9rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 65%); }
.case .area { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.case b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 1; }
.case p { color: rgba(255,255,255,.9); margin-top: auto; font-size: 1rem; }
.rail-ctrl { display: flex; gap: .6rem; }
.rail-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--smith); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.rail-ctrl button:hover { background: var(--smith); color: #fff; border-color: var(--smith); }
.rail-ctrl svg { width: 18px; height: 18px; }
.note { font-size: .9rem; color: var(--slate); }

/* ---------- Flight path process ---------- */
.flight { position: relative; }
.flight svg.path { position: absolute; left: 0; right: 0; top: calc(2.2rem - 60px); width: 100%; height: 120px; overflow: visible; }
.flight .trail { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 2 8; }
.flight .progress { fill: none; stroke: url(#flightGrad); stroke-width: 3; stroke-linecap: round; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.step { display: grid; gap: .7rem; align-content: start; padding-top: 0; }
.dot { width: 4.4rem; height: 4.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; color: #fff; background: var(--smith-2); border: 2px solid rgba(255,255,255,.25); transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); position: relative; z-index: 1; }
.step.lit .dot { background: var(--carnelian); border-color: var(--ember); box-shadow: 0 0 0 8px rgba(232,118,45,.15); }
.step h3 { font-size: 1.5rem; margin-top: .6rem; }
.step p { color: rgba(255,255,255,.74); font-size: 1rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait { position: relative; max-width: 26rem; }
.portrait::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border-radius: 22px; background: linear-gradient(135deg, var(--carnelian), var(--ember)); z-index: 0; }
.portrait img { position: relative; z-index: 1; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(7,29,73,.5); }
.quote { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; color: var(--smith); position: relative; padding-left: 1.6rem; border-left: 3px solid var(--ember); }
.founder-copy { display: grid; gap: 1.3rem; }
.founder-copy .who-line { font-weight: 600; color: var(--teal); }
.founder-copy p { color: var(--slate); }
.founder-copy .quote { color: var(--smith); }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.model { border-radius: 18px; padding: 2rem 1.8rem; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); display: grid; gap: .8rem; align-content: start; transition: background .35s var(--ease), transform .35s var(--ease); }
.model:hover { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); transform: translateY(-4px); }
.model .icon { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: var(--ember); }
.model h3 { font-size: 1.6rem; }
.model p { color: rgba(255,255,255,.76); }
.terms { margin-top: 1.8rem; display: inline-flex; gap: .7rem; align-items: center; padding: .9rem 1.2rem; border-radius: 999px; background: rgba(232,118,45,.12); color: #ffd9bf; font-size: .98rem; }
.terms::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }
.section:not(.dark) .terms { background: #fdf0e7; color: #7a3a10; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(120deg, var(--smith) 0%, #0b3a63 55%, var(--teal) 100%); }
.cta::before { content: ""; position: absolute; width: 40rem; height: 40rem; right: -12rem; top: -18rem; border-radius: 50%; background: radial-gradient(circle, rgba(179,27,27,.55), rgba(179,27,27,0) 60%); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; width: 26rem; height: 26rem; left: -8rem; bottom: -14rem; border-radius: 50%; background: radial-gradient(circle, rgba(232,118,45,.35), rgba(232,118,45,0) 60%); z-index: -1; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-3rem, 2rem) scale(1.08); } }
.cta .wrap { padding-block: clamp(4.5rem, 9vw, 7rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.cta p { margin-top: 1rem; color: rgba(255,255,255,.82); max-width: 34rem; font-size: var(--step-1); }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.svc-nav { position: sticky; top: 7rem; display: grid; gap: .3rem; }
.svc-nav a { text-decoration: none; color: var(--slate); padding: .65rem .9rem; border-radius: 10px; font-weight: 500; border-left: 3px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.svc-nav a:hover, .svc-nav a.active { background: var(--mist); color: var(--smith); border-left-color: var(--carnelian); }
.svc { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2rem; scroll-margin-top: 7rem; background: #fff; }
.svc-top { padding: clamp(1.8rem, 4vw, 2.6rem); color: #fff; background: var(--bg); position: relative; overflow: hidden; display: grid; gap: .8rem; }
.svc-top::after { content: ""; position: absolute; width: 26rem; height: 26rem; right: -10rem; top: -12rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), rgba(255,255,255,0) 65%); }
.svc-top h2 { color: #fff; }
.svc-top .role { font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.85); }
.svc-top p { color: rgba(255,255,255,.88); max-width: 40rem; font-size: 1.08rem; }
.svc-body { padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks svg { width: 22px; height: 22px; color: var(--c); margin-top: .1rem; }
.fit { background: var(--mist); border-radius: 16px; padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.fit strong { color: var(--smith); font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.fit p { color: var(--slate); font-size: .98rem; }

.faq { max-width: 50rem; display: grid; gap: .8rem; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 1.4rem; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: transparent; box-shadow: 0 20px 40px -28px rgba(7,29,73,.4); }
.faq summary { cursor: pointer; padding: 1.2rem 2.2rem 1.2rem 0; font-family: var(--display); font-size: 1.3rem; color: var(--smith); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--carnelian); border-bottom: 2px solid var(--carnelian); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--slate); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-side { position: sticky; top: 7rem; display: grid; gap: 1.6rem; }
.about-side .portrait { max-width: 20rem; }
.namecard { display: grid; gap: .2rem; }
.namecard strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--smith); }
.namecard span { color: var(--slate); }
.prose { display: grid; gap: 1.3rem; max-width: 42rem; }
.prose p { color: #2a3550; font-size: 1.08rem; line-height: 1.72; }
.prose .lead { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--smith); }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 2rem; position: relative; display: grid; gap: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--carnelian), var(--ember), var(--azure), var(--teal)); border-radius: 2px; }
.timeline li { position: relative; display: grid; gap: .3rem; }
.timeline li::before { content: ""; position: absolute; left: -2rem; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--carnelian)); }
.timeline .when { font-size: .85rem; font-weight: 600; color: var(--c, var(--carnelian)); }
.timeline h3 { font-size: 1.35rem; }
.timeline p { color: var(--slate); font-size: 1rem; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .88rem; font-weight: 500; padding: .45rem .85rem; border-radius: 999px; background: var(--mist); color: var(--smith); border: 1px solid var(--line); }
.name-panel { border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.4rem); background: linear-gradient(135deg, var(--smith), var(--teal)); color: rgba(255,255,255,.88); display: grid; gap: .8rem; }
.name-panel h2 { color: #fff; font-size: var(--step-2); }
.prose .name-panel p { color: rgba(255,255,255,.88); }

/* ---------- Insights ---------- */
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.post-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(7,29,73,.45); color: inherit; }
.post-card .art { height: 150px; background: var(--bg); position: relative; overflow: hidden; }
.post-card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card .txt { padding: 1.4rem; display: grid; gap: .6rem; }
.post-card .tag { font-size: .82rem; font-weight: 600; color: var(--c); }
.post-card h3 { font-size: 1.4rem; }
.articles { display: grid; gap: clamp(3rem, 7vw, 5rem); max-width: 46rem; margin: 0 auto; }
.article { display: grid; gap: 1.2rem; scroll-margin-top: 7rem; }
.article .tag { display: inline-flex; width: fit-content; font-size: .82rem; font-weight: 600; color: #fff; background: var(--c); padding: .35rem .75rem; border-radius: 999px; }
.article p, .article li { font-size: 1.1rem; line-height: 1.75; color: #2a3550; }
.article ol, .article ul { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.article .pull { font-family: var(--display); font-size: 1.5rem; line-height: 1.4; color: var(--smith); border-left: 3px solid var(--ember); padding-left: 1.2rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.5rem; align-items: stretch; }
.form { display: grid; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 30px 60px -40px rgba(7,29,73,.35); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--smith); }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: .85rem 1rem; border: 1px solid #c3ccd9; border-radius: 12px; background: #f8fafc; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0,71,187,.15); background: #fff; }
.form-status { font-size: .95rem; color: var(--smith); background: #fdf0e7; padding: .9rem 1rem; border-radius: 12px; border-left: 3px solid var(--ember); }
.form-status[hidden] { display: none; }
.contact-panel { border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.4rem); color: rgba(255,255,255,.85); background: linear-gradient(160deg, var(--smith), #0b3a63 60%, var(--teal)); display: grid; gap: 1.8rem; align-content: start; position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; width: 20rem; height: 20rem; right: -8rem; bottom: -8rem; border-radius: 50%; background: radial-gradient(circle, rgba(179,27,27,.45), rgba(179,27,27,0) 65%); }
.contact-panel h2 { color: #fff; font-size: 1.5rem; margin-bottom: .4rem; }
.contact-panel a:not(.btn) { color: #fff; }
.contact-panel .email { font-family: var(--display); font-size: 1.3rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #05153a; color: rgba(255,255,255,.7); font-size: .95rem; }
.site-footer .wrap { padding-block: 4rem 2.5rem; display: grid; gap: 2.5rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .84rem; color: rgba(255,255,255,.55); display: grid; gap: .5rem; max-width: 62rem; }
.colorbar { height: 4px; background: linear-gradient(90deg, var(--carnelian) 0 40%, var(--ember) 40% 48%, var(--azure) 48% 76%, var(--teal) 76%); }

/* ---------- Brand page ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.swatch { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.swatch div { height: 110px; background: var(--c); }
.swatch p { padding: .9rem 1rem; display: grid; gap: .1rem; font-size: .9rem; color: var(--slate); }
.swatch strong { color: var(--smith); font-size: 1rem; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr 1fr; }
  .post-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .flight svg.path { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 0; background: rgba(7,29,73,.97); flex-direction: column; justify-content: center; gap: 1.6rem; font-size: 1.3rem; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .nav a { font-size: 1.35rem; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .menu-btn { position: relative; z-index: 60; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; width: min(100%, 18rem); }
  .head.split, .split, .founder, .about-grid, .contact, .svc-layout, .svc-body { grid-template-columns: 1fr; }
  .sticky, .about-side, .svc-nav { position: static; }
  .svc-nav { display: flex; flex-wrap: wrap; }
  .models { grid-template-columns: 1fr; }
  .cta .wrap { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .portrait { max-width: 20rem; }
}
@media (max-width: 620px) {
  .cards, .post-cards, .stats, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-card .badge { left: auto; right: -.6rem; top: auto; bottom: 4.6rem; padding: .6rem .8rem; }
  .brand-name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
}

/* ---------- v2.1: hero brand panel (replaces photo) ---------- */
.hero-panel { position: relative; justify-self: end; width: min(100%, 25rem); }
.panel { border-radius: 22px; padding: 1.6rem 1.6rem 1.2rem; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); display: grid; gap: 1rem; transform: rotate(-1.2deg); transition: transform .6s var(--ease); }
.hero-panel:hover .panel { transform: rotate(0) translateY(-4px); }
.panel-title { font-family: var(--display); font-size: 1.3rem; color: #fff; line-height: 1.25; }
.lane { display: grid; gap: .45rem; }
.lane span { font-size: .88rem; color: rgba(255,255,255,.85); font-weight: 500; }
.lane i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.lane i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--c), rgba(255,255,255,.85)); animation: lane 1.6s var(--ease) both .3s; transform-origin: left; }
.lane:nth-child(3) i::after { animation-delay: .45s; }
.lane:nth-child(4) i::after { animation-delay: .6s; }
@keyframes lane { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spark { width: 100%; height: 80px; margin-top: .3rem; }
.spark-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: spark 2.2s var(--ease) forwards .7s; }
@keyframes spark { to { stroke-dashoffset: 0; } }
.bench { position: absolute; left: -2.2rem; bottom: -3.4rem; display: flex; align-items: center; gap: .8rem; background: #fff; color: var(--slate); border-radius: 16px; padding: .8rem 1.1rem; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); font-size: .82rem; line-height: 1.3; max-width: 17rem; animation: float 6s ease-in-out infinite; }
.bench b { display: block; color: var(--smith); font-size: .95rem; font-family: var(--display); font-weight: 400; }
.avatars { display: flex; flex: none; }
.avatars i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; margin-left: -8px; }
.avatars i:first-child { margin-left: 0; }

/* Bench section tiles */
.bench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 1.5rem; display: grid; gap: .6rem; align-content: start; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { border-color: var(--c); transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(7,29,73,.45); }
.tile .icon { width: 48px; height: 48px; border-radius: 12px; }
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.3rem; margin-top: .3rem; }
.tile p { color: var(--slate); font-size: .98rem; }
@media (max-width: 1040px) { .bench-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .hero-panel { justify-self: start; margin-bottom: 1.5rem; } .bench { left: auto; right: -.5rem; } }
@media (max-width: 620px) { .bench-grid { grid-template-columns: 1fr; } .bench { position: relative; right: auto; bottom: auto; margin-top: -1rem; margin-left: 1rem; } }

/* ---------- v2.2: hero orbit diagram (replaces the bar panel) ---------- */
.hero-panel { width: min(100%, 30rem); }
.orbit { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.ring-spin { transform-origin: 220px 220px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.links path:not(:last-child) { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.node { transform-box: fill-box; transform-origin: center; animation: pulse 5s ease-in-out infinite; }
.node.n2 { animation-delay: 1.6s; }
.node.n3 { animation-delay: 3.2s; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.hero-panel .bench { left: 1rem; bottom: -4.4rem; }
@media (max-width: 860px) { .hero-panel { margin: 1rem auto 2rem; justify-self: center; } }

/* ---------- v2.3: industry band (replaces the scrolling ticker) ---------- */
.industries { background: var(--white); border-bottom: 1px solid var(--line); }
.industries .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: 1.8rem; }
.ind-title { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--slate); letter-spacing: 0; line-height: 1.3; max-width: 7rem; }
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ind-list li { display: flex; align-items: center; gap: .85rem; padding: .4rem 1.2rem; border-left: 1px solid var(--line); transition: transform .3s var(--ease); }
.ind-list li:hover { transform: translateY(-2px); }
.ind-list .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); }
.ind-list .icon svg { width: 22px; height: 22px; }
.ind-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: var(--smith); line-height: 1.2; }
.ind-list li span:not(.icon) { display: block; font-size: .85rem; color: var(--slate); line-height: 1.35; margin-top: .15rem; }
@media (max-width: 1040px) { .industries .wrap { grid-template-columns: 1fr; gap: 1rem; } .ind-title { max-width: none; } .ind-list { grid-template-columns: 1fr 1fr; row-gap: 1rem; } .ind-list li:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .ind-list { grid-template-columns: 1fr; } .ind-list li { border-left: 0; padding-left: 0; } }

/* ---------- v2.4: precision orbit hero (option A) ---------- */
.hero-panel { width: min(100%, 34rem); }
.orbit { filter: none; }
.orbit .bezel { transform-origin: 220px 220px; animation: spin 120s linear infinite; }
.orbit .halo { transform-box: fill-box; transform-origin: center; animation: halo 4s ease-out infinite; }
.orbit .halo.h2 { animation-delay: 1.33s; }
.orbit .halo.h3 { animation-delay: 2.66s; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.orbit .arc { stroke-dasharray: 272; stroke-dashoffset: 272; animation: arcdraw 2.2s var(--ease) forwards; }
.orbit .arc.k2 { animation-delay: .5s; }
.orbit .arc.k3 { animation-delay: 1s; }
@keyframes arcdraw { to { stroke-dashoffset: 0; } }
.hero-panel .bench { left: 50%; margin-left: -8.5rem; bottom: -3.2rem; }
@media (max-width: 620px) { .hero-panel .bench { left: auto; margin-left: 1rem; } }
@media (prefers-reduced-motion: reduce) { .orbit .arc { stroke-dashoffset: 0; } }
.hero:not(.page-hero) .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-panel { width: 100%; max-width: 36rem; }
.hero-panel .bench { left: 0; margin-left: 0; bottom: -4.6rem; }
@media (max-width: 860px) { .hero:not(.page-hero) .wrap { grid-template-columns: 1fr; } .hero-panel .bench { bottom: auto; } }
/* v2.5: industry band with title above, wider tiles */
.industries .wrap { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 2rem 2.2rem; }
.ind-title { max-width: none; }
.ind-list li { align-items: flex-start; padding: .2rem 1.4rem; }
.ind-list li:first-child { border-left: 0; padding-left: 0; }
.ind-list li span:not(.icon) { font-size: .9rem; }
