/* ==========================================================================
   EverCore Technologies — design system
   Dark editorial hero, warm paper sections, ember accent.
   ========================================================================== */

@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Fixed brand colours */
  --ink: #0b0c10;
  --ink-2: #121419;
  --ink-3: #1b1e25;
  --ember: #ff6a2c;
  --ember-soft: #ffb08a;
  --on-ink: #f4f0e8;
  --on-ink-muted: #a7a9b1;
  --ink-line: #ffffff1f;
  --copper: var(--ember); /* legacy alias */

  /* Themeable surfaces */
  --paper: #f3f0ea;
  --panel: #e9e4da;
  --card: #fbf9f5;
  --text: #121318;
  --muted: #595c65;
  --line: #d8d2c6;
  --accent: #b63b0a;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --radius-sm: 14px;
  --header: 76px;
  --wrap: min(100% - clamp(32px, 7vw, 120px), 1440px);
  font: 16px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1014;
  --panel: #15171d;
  --card: #191c23;
  --text: #f2eee6;
  --muted: #a6a8b0;
  --line: #2a2d35;
  --accent: #ff8a55;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; color: var(--text); background: var(--paper); overflow-x: clip; }
body:has(.directory[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1; letter-spacing: -.045em; font-weight: 650; }
h1 { font-size: clamp(3rem, 7vw, 7.5rem); line-height: .92; letter-spacing: -.06em; }
h2 { font-size: clamp(2.2rem, 4.8vw, 5rem); line-height: .96; letter-spacing: -.055em; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.12; letter-spacing: -.03em; }
:is(h2, h3) { text-wrap: balance; }
p { text-wrap: pretty; }
p + p, h3 + p, h4 + p, h2 + p { margin-top: .8rem; }
ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-top: .4rem; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.035em; }
::selection { background: var(--ember); color: var(--ink); }
:where(input, textarea) { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .6rem 1rem; background: var(--ember); color: var(--ink); border-radius: 999px; font-weight: 700; }
.skip:focus { transform: none; }
main { animation: page-in .7s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Grain overlay for depth */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }

/* ---------- Labels / small text ---------- */
.hero-location, .label, .landing-back, .cv-role, .eyebrow {
  font: 600 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lede { max-width: 52ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; margin-top: 1.4rem; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 54px; padding: .8rem 1.5rem; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--ember); color: var(--ink); font-weight: 750; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.button::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--on-ink);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.button:hover::before, .button:focus-visible::before { transform: none; }
.button:hover { color: var(--ink); }
.button .arrow, .button > span[aria-hidden] { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ember); font-size: .8rem; transition: transform .5s var(--ease); }
.button:hover .arrow, .button:hover > span[aria-hidden] { transform: rotate(45deg); }
.button.ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }
.button.ghost::before { background: currentColor; }
.button.ghost:hover { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-top: 2rem; }

.text-link, .profile, .secondary, .hero-secondary {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size .5s var(--ease);
}
.text-link:hover, .profile:hover, .secondary:hover, .hero-secondary:hover { background-size: 100% 1px; }
.prose a[href]:not(.button) { color: var(--accent); text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; color: var(--on-ink);
  transition: top .5s var(--ease); --accent: var(--ember);
}
.masthead::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--ink-line); transition: opacity .4s var(--ease);
}
html.at-top :is(.home, .service-page) .masthead::before { opacity: 0; }
html.header-hidden .masthead:not(:has(.directory[open], :focus-within)) { top: calc(var(--header) * -1 - 4px); }
.topbar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--header); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .7rem; font-size: 1.35rem; line-height: .95; letter-spacing: -.05em; font-weight: 800; width: max-content; }
.brand small { display: block; font: 500 .52rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .24em; margin-top: .3rem; opacity: .7; }
.mark { display: grid; width: 24px; height: 24px; grid-template-columns: 1fr 1fr; gap: 2px; transition: transform .8s var(--ease); }
.mark i { background: var(--ember); border-radius: 2px; transition: transform .6s var(--ease); }
.mark i:nth-child(2) { transform: translate(2px, -2px); }
.brand:hover .mark { transform: rotate(90deg); }
.brand:hover .mark i:nth-child(2) { transform: none; }
.brand:hover .mark i:nth-child(3) { transform: translate(-2px, 2px); }

.primary-nav { display: flex; align-items: center; gap: .25rem; padding: .3rem; border-radius: 999px; background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--ink-line); }
.primary-nav a { position: relative; padding: .5rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 650; color: var(--on-ink-muted); transition: color .3s, background-color .3s; }
.primary-nav a:hover { color: var(--on-ink); background: #ffffff10; }
.primary-nav a[aria-current="page"] { color: var(--ink); background: var(--on-ink); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.header-tools > .theme-toggle, .header-tools > .header-contact, .directory summary { position: relative; z-index: 2; }
.header-contact { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .5rem .4rem 1.1rem; border-radius: 999px; background: var(--ember); color: var(--ink); font-size: .86rem; font-weight: 750; transition: background-color .3s; }
.header-contact i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ember); font-style: normal; font-size: .8rem; transition: transform .5s var(--ease); }
.header-contact:hover { background: var(--on-ink); }
.header-contact:hover i { transform: rotate(45deg); }
.theme-toggle, .directory summary { display: flex; align-items: center; justify-content: center; min-height: 44px; color: inherit; background: #ffffff0d; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); transition: background-color .3s, color .3s; }
.theme-toggle { width: 44px; }
.theme-toggle:hover, .directory:not([open]) summary:hover { background: #ffffff1c; }
.theme-toggle[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--ember) 30%, transparent); }
.directory summary { list-style: none; gap: .7rem; padding: .4rem 1.1rem; font-size: .86rem; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.directory summary i { position: relative; width: 16px; height: 8px; }
.directory summary i::before, .directory summary i::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.directory summary i::before { top: 0; }
.directory summary i::after { top: 100%; }
.directory[open] summary { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.directory[open] summary i::before { top: 50%; transform: rotate(45deg); }
.directory[open] summary i::after { top: 50%; transform: rotate(-45deg); }

/* Fullscreen menu */
.mega {
  position: fixed; inset: 0; z-index: -1; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1.2fr 1fr; align-content: start; gap: 2rem clamp(2rem, 6vw, 6rem);
  padding: calc(var(--header) + clamp(2rem, 6vh, 5rem)) max(calc((100vw - 1440px) / 2), clamp(16px, 3.5vw, 60px)) 3rem;
  background: var(--ink); color: var(--on-ink);
  animation: menu-in .7s var(--ease) both;
}
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mega-main { grid-row: span 3; display: flex; flex-direction: column; }
.mega-main a {
  display: flex; align-items: baseline; gap: 1rem; padding: .2rem 0; border-bottom: 1px solid var(--ink-line);
  font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 650; letter-spacing: -.06em; line-height: 1.02;
  transition: color .4s, padding .6s var(--ease); animation: rise .9s var(--ease) both;
}
.mega-main a small { font: 500 .75rem/1 var(--mono); letter-spacing: .1em; color: var(--ember); transform: translateY(-1.6em); }
.mega-main a:hover { color: var(--ember); padding-left: 1rem; }
.mega-main a:nth-child(2) { animation-delay: .05s; } .mega-main a:nth-child(3) { animation-delay: .1s; } .mega-main a:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.mega h2, .footer-directory h2 { font: 600 .7rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ember); margin-bottom: .5rem; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; animation: rise 1s .15s var(--ease) both; }
.mega-cols a, .footer-directory a { display: flex; justify-content: space-between; gap: .5rem; padding-block: .55rem; border-bottom: 1px solid var(--ink-line); font-size: .92rem; color: var(--on-ink-muted); transition: color .3s, padding .5s var(--ease); }
.mega-cols a:hover, .footer-directory a:hover { color: var(--on-ink); padding-left: .4rem; }
.mega-cols a span, .footer-directory a span { color: var(--ember); }
.mega-meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; color: var(--on-ink-muted); font-size: .9rem; animation: rise 1s .25s var(--ease) both; }
.mega-meta a:hover { color: var(--ember); }
.mega .menu-contact { justify-content: center; align-self: start; width: max-content; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-ink); background: var(--ink); --accent: var(--ember); --muted: var(--on-ink-muted); }
.hero-media, .hero-media::after { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: 70% 55%; opacity: .55; transform: translateY(var(--parallax, 0)); will-change: transform; }
.hero-media::after { content: ''; z-index: 0; background: radial-gradient(120% 90% at 85% 20%, transparent 0%, #0b0c10cc 55%, #0b0c10 100%), linear-gradient(0deg, #0b0c10 0%, transparent 40%); }
.hero-glow { position: absolute; z-index: -1; width: 60vmax; aspect-ratio: 1; right: -18vmax; top: -22vmax; border-radius: 50%; background: radial-gradient(circle, #ff6a2c55, transparent 65%); filter: blur(30px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-8vmax, 10vmax) scale(1.15); } }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 88px 88px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); opacity: .5; }
.hero-content { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding-top: calc(var(--header) + clamp(2.5rem, 9vh, 7rem)); padding-bottom: 2rem; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero-clock { font: 500 .72rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.hero-clock b { color: var(--on-ink); font-weight: 600; }
.hero h1 { font-size: clamp(3.4rem, 10.4vw, 11.5rem); line-height: .86; letter-spacing: -.07em; font-weight: 650; }
.hero h1 em { color: var(--ember); padding-right: .08em; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: inline-block; animation: line-up 1.2s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .08s; } .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-up { from { transform: translateY(110%) rotate(3deg); } }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-top: clamp(2rem, 5vh, 3.5rem); }
.hero .lede { margin: 0; max-width: 44ch; color: #d5d2cc; animation: rise 1.2s .3s var(--ease) both; }
.hero .actions { margin: 0; animation: rise 1.2s .4s var(--ease) both; }
.hero-secondary { color: var(--on-ink); }
.hero-jumps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 7vh, 4.5rem); border-top: 1px solid var(--ink-line); animation: rise 1.2s .5s var(--ease) both; }
.hero-jumps a { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1rem 0; font-size: .95rem; font-weight: 650; letter-spacing: -.02em; color: var(--on-ink); }
.hero-jumps a + a { padding-left: 1.2rem; border-left: 1px solid var(--ink-line); }
.hero-jumps a small { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; color: var(--on-ink-muted); }
.hero-jumps a::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.hero-jumps a:hover::after { transform: none; }
.hero-jumps a span { position: absolute; right: 1rem; top: 1.1rem; color: var(--ember); transition: transform .5s var(--ease); }
.hero-jumps a:hover span { transform: translate(3px, -3px); }
.scroll-cue { display: inline-flex; align-items: center; gap: .7rem; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.scroll-cue i { position: relative; width: 1px; height: 34px; background: var(--ink-line); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--ember); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.ticker { overflow: hidden; background: var(--ember); color: var(--ink); padding-block: 1.05rem; transform: rotate(-1.2deg) scale(1.03); margin-block: -1.2rem; position: relative; z-index: 2; }
.ticker-track, .logo-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track, .logo-marquee:hover .logo-track { animation-play-state: paused; }
.ticker-track span { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.ticker-track span::after { content: '✦'; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section, .process, .overview-strip, .founder-proof { padding-block: clamp(4.5rem, 10vw, 10rem); }
.section + .section:not(.landing-tint, .situations) { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.section-heading h2 { max-width: 18ch; white-space: pre-line; }
.section-heading > p { max-width: 42ch; color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-index { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); font: 500 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.landing-tint, .situations, .founder-proof { background: var(--panel); }

/* Statement — words light up on scroll */
.statement { padding-block: clamp(6rem, 14vw, 13rem) clamp(4rem, 9vw, 8rem); }
.statement p[data-words] { font-size: clamp(1.9rem, 4.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; max-width: 22ch; }
.statement p[data-words] em { color: var(--accent); }
.js .statement .w { opacity: .16; transition: opacity .3s linear; }
.js .statement .w.on { opacity: 1; }
.statement-foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: end; margin-top: clamp(2.5rem, 5vw, 4rem); }
.statement-foot p { font-size: 1rem; max-width: 40ch; color: var(--muted); letter-spacing: 0; font-weight: 500; line-height: 1.6; }

/* Services index list (home) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: svc; }
.svc-list > li { margin: 0; border-bottom: 1px solid var(--line); counter-increment: svc; }
.svc-row { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(0, 1fr) 56px; align-items: center; gap: 1.5rem; padding-block: clamp(1.4rem, 2.8vw, 2.4rem); isolation: isolate; }
.svc-row::before { content: counter(svc, decimal-leading-zero); font: 500 .8rem/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.svc-row::after { content: ''; position: absolute; inset: 0 calc(clamp(16px, 3.5vw, 60px) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.svc-row strong { font-size: clamp(1.7rem, 4vw, 3.9rem); font-weight: 650; letter-spacing: -.055em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.svc-row > span:not(.svc-thumb) { color: var(--muted); font-size: 1rem; max-width: 34ch; transition: color .4s; }
.svc-row i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-style: normal; transition: transform .6s var(--ease), background-color .4s, border-color .4s, color .4s; }
.svc-thumb { display: none; }
:root[data-theme="dark"] .svc-row::after { background: var(--ink-3); }
@media (hover: hover) {
  .svc-row:hover::after { transform: none; transform-origin: 50% 0; }
  .svc-row:hover strong { color: var(--on-ink); transform: translateX(.8rem); }
  .svc-row:hover > span { color: var(--on-ink-muted); }
  .svc-row:hover::before { color: var(--ember); }
  .svc-row:hover i { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: rotate(45deg); }
}
.svc-preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(32px, -50%) scale(.6) rotate(-6deg); transition: opacity .35s var(--ease), transform .55s var(--ease); box-shadow: 0 30px 60px #0006; }
.svc-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(32px, -50%) scale(1) rotate(var(--tilt, 0deg)); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .4s, transform .8s var(--ease); }
.svc-preview img.is-active { opacity: 1; transform: none; }

/* Logo marquee */
.technology-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: var(--paper); border-block: 1px solid var(--line); }
.technology-section h2 { font: 600 .72rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.technology-grid { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.2rem 0 0; }
.technology-grid li { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem 1rem .55rem .6rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: .88rem; transition: transform .4s var(--ease); }
.technology-grid li:hover { transform: translateY(-3px); }
.technology-grid img { object-fit: contain; width: 22px; height: 22px; }
.logo-marquee { overflow: hidden; margin-top: 1.6rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee .technology-grid { flex-wrap: nowrap; margin: 0; padding-right: .6rem; }
.logo-track { animation-duration: 40s; }
.logo-marquee .technology-grid li { padding: .9rem 1.4rem .9rem 1rem; font-size: 1rem; }
.logo-marquee .technology-grid img { width: 26px; height: 26px; }
:root[data-theme="dark"] .technology-grid img { box-sizing: content-box; padding: 4px; border-radius: 50%; background: #f3f0ea; }

/* Principles cards (home) */
.situation-grid, .product-grid, .landing-grid, .proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.situation-grid > article { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: clamp(1.5rem, 2.5vw, 2.4rem); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .6s var(--ease), background-color .5s, color .5s; }
.situation-grid > article::before { content: '0' counter(card); counter-increment: card; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--accent); margin-bottom: auto; }
.situation-grid { counter-reset: card; }
.situation-grid h3 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); margin-top: 3rem; }
.situation-grid p { color: var(--muted); }
.situation-grid > article:hover { transform: translateY(-6px); background: var(--ink); color: var(--on-ink); --muted: var(--on-ink-muted); --accent: var(--ember); }
:root[data-theme="dark"] .situation-grid > article:hover { background: var(--ember); color: var(--ink); --muted: #3a1a0a; --accent: var(--ink); }

/* Process (home) */
.process { background: var(--ink); color: var(--on-ink); --muted: var(--on-ink-muted); --line: var(--ink-line); --accent: var(--ember); }
.process > .section { padding-block: 0; }
.steps { counter-reset: steps; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.steps > li { counter-increment: steps; position: relative; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(steps, decimal-leading-zero); display: block; font-size: clamp(4rem, 8vw, 8rem); font-weight: 650; letter-spacing: -.07em; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--ember); margin-bottom: 2rem; }
.steps > li::after { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--ember); transform: scaleX(var(--drawn, 0)); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.steps > li.is-in::after { --drawn: 1; }
.steps > li:nth-child(2)::after { transition-delay: .15s; } .steps > li:nth-child(3)::after { transition-delay: .3s; }
.steps h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: .8rem; }
.steps p { margin: 0; color: var(--muted); max-width: 36ch; }

/* Landing steps (service pages) */
.landing-steps { counter-reset: steps; list-style: none; margin: 0; padding: 0; }
.landing-steps > li { counter-increment: steps; display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; gap: 1.5rem; padding-block: 1.6rem; margin: 0; border-top: 1px solid var(--line); font-size: clamp(1.05rem, 1.5vw, 1.35rem); letter-spacing: -.02em; }
.landing-steps > li:last-child { border-bottom: 1px solid var(--line); }
.landing-steps > li::before { content: counter(steps, decimal-leading-zero); font: 500 .8rem/1.2 var(--mono); color: var(--accent); letter-spacing: .1em; }
.landing-steps > li > div { max-width: 62ch; }
.landing-steps p { margin: 0; color: var(--muted); }

/* ---------- Founder (home) ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.portrait { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.portrait img { width: 100%; height: auto; max-height: 680px; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .9rem; border-radius: 999px; background: #0b0c10b3; backdrop-filter: blur(10px); color: var(--on-ink); font-size: .8rem; }
.about h2 { max-width: 14ch; }
.about-copy { margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.about blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; letter-spacing: -.02em; max-width: 30ch; }
.about .profile { margin-top: 2rem; }

/* ---------- FAQ / details ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout .section-heading { display: block; position: sticky; top: calc(var(--header) + 2rem); }
.faq-items { display: block; }
main details { border-top: 1px solid var(--line); }
main details:last-child { border-bottom: 1px solid var(--line); }
main details > summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding-block: 1.4rem; list-style: none; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 650; letter-spacing: -.02em; transition: color .3s; }
main details > summary::after { content: ''; flex: 0 0 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .5s var(--ease), background-color .3s; }
main details[open] > summary::after { transform: rotate(135deg); background-color: var(--ember); color: var(--ink); box-shadow: none; }
main details > summary:hover { color: var(--accent); }
main details p { color: var(--muted); margin: 0 4rem 1.5rem 0; max-width: 64ch; animation: rise .6s var(--ease) both; }

/* ---------- Contact CTA band ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--ember); color: var(--ink); --accent: #4a1c05; --muted: #3a1a0a; padding-block: clamp(4rem, 10vw, 9rem); }
.contact::before { content: ''; position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; right: -25vmax; bottom: -45vmax; border-radius: 50%; background: radial-gradient(circle, #ffd2b8, transparent 60%); opacity: .6; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 7.5rem); max-width: 14ch; line-height: .92; }
.contact p { max-width: 50ch; font-size: 1.1rem; margin-top: 1.2rem; }
.contact .button { background: var(--ink); color: var(--on-ink); }
.contact .button::before { background: var(--on-ink); }
.contact .button:hover { color: var(--ink); }
.contact .button > span[aria-hidden] { background: var(--ember); color: var(--ink); }
.contact .text-link { color: var(--ink); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
.contact-panel > h2 { grid-column: 1 / -1; }
.contact-panel .actions { margin-top: 0; }
.cta-circle { position: relative; display: grid; place-items: center; width: clamp(140px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; text-align: center; line-height: 1.2; transition: transform .5s var(--ease); }
.cta-circle > span { display: block; }
.cta-circle > span span { font-size: 1.6rem; color: var(--ember); display: block; margin-top: .3rem; transition: transform .5s var(--ease); }
.cta-circle:hover span span { transform: rotate(45deg); }

/* ---------- Inner page hero ---------- */
.service-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--header) + clamp(3rem, 8vw, 7rem)) clamp(3.5rem, 8vw, 7rem); background: var(--ink); color: var(--on-ink); --accent: var(--ember); --muted: var(--on-ink-muted); --line: var(--ink-line); --panel: var(--ink-2); --card: var(--ink-2); --paper: var(--ink); --text: var(--on-ink); }
.service-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 88px 88px; mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 60%); opacity: .6; }
.service-hero::after { content: ''; position: absolute; z-index: -1; width: 50vmax; aspect-ratio: 1; right: -15vmax; top: -25vmax; border-radius: 50%; background: radial-gradient(circle, #ff6a2c40, transparent 65%); filter: blur(20px); }
.service-hero h1 { animation: rise 1.1s var(--ease) both; }
.service-hero .lede { animation: rise 1.1s .1s var(--ease) both; }
.service-hero .actions, .service-hero .founder-links { animation: rise 1.1s .18s var(--ease) both; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.landing-hero h1, .cv-hero h1, .legal-main h1 { font-size: clamp(2.8rem, 6.4vw, 6.8rem); }
.landing-hero > :only-child { grid-column: 1 / -1; max-width: 1000px; }
.landing-hero p.label, .cv-hero .label { margin: 1.4rem 0 .8rem; }
.service-hero > .wrap > h1 { max-width: 15ch; margin-top: 1.2rem; }
.landing-back { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--on-ink-muted); transition: color .3s, background-color .3s; }
.landing-back::before { content: '←'; color: var(--ember); transition: transform .4s var(--ease); }
.landing-back:hover { color: var(--on-ink); background: #ffffff0d; }
.landing-back:hover::before { transform: translateX(-3px); }
.landing-grid .icon, .service-icons, .landing-intro > .icon, .landing-hero .icon { display: none; }
.detail-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); aspect-ratio: 1.05; animation: reveal-media 1.4s .1s var(--ease) both; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.detail-media:hover img { transform: scale(1.05); }
@keyframes reveal-media { from { clip-path: inset(100% 0 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
.cert-illustration { display: grid; gap: .8rem; align-self: center; }
.cert-illustration > div { display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-line); font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -.04em; color: var(--on-ink); animation: rise 1.1s .2s var(--ease) both; }
.cert-illustration > div + div { animation-delay: .3s; margin-left: clamp(0rem, 4vw, 4rem); }
.cert-illustration img { width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--ember); }

/* Overview strip */
.overview-strip { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: var(--ink-2); color: var(--on-ink); --muted: var(--on-ink-muted); --accent: var(--ember); --line: var(--ink-line); border-top: 1px solid var(--ink-line); }
.overview-strip .landing-overview { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 1.5rem 3rem; align-items: start; }
.landing-overview h2 { font-size: clamp(1.4rem, 2.3vw, 2.3rem); }
.overview-strip p { margin: 0; color: var(--muted); }
.overview-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.overview-strip li { margin: 0; padding: .5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: .9rem; font-weight: 600; }
.overview-strip li:has(a) { padding: 0; }
.overview-strip li a { display: block; padding: .5rem 1rem; border-radius: 999px; transition: background-color .3s, color .3s; }
.overview-strip li a::after { content: ' ↓'; color: var(--ember); }
.overview-strip li a:hover { background: var(--ember); color: var(--ink); }
.overview-strip li a:hover::after { color: inherit; }

/* Cards */
.landing-grid > article, .landing-grid > div, .product-card, .proof-grid > * {
  position: relative; padding: clamp(1.4rem, 2.2vw, 2rem); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.landing-grid > article:hover, .product-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--accent), 0 24px 50px -30px #0005; }
.landing-grid h3 { margin-bottom: .2rem; }
.landing-grid p, .product-copy p, .landing-overview li { color: var(--muted); }
.landing-tint .landing-grid > article, .landing-tint .product-card { background: var(--paper); }
.product-card { display: flex; flex-direction: column; gap: 1.2rem; }
.product-media { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--panel); transition: transform .6s var(--ease), background-color .4s; }
.product-card:hover .product-media { transform: rotate(-8deg) scale(1.05); background: var(--ember); }
.product-media img { width: 30px; height: 30px; }
:root[data-theme="dark"] .product-media img, :root[data-theme="dark"] .contact-details .icon img { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .product-card:hover .product-media img { filter: none; }
.product-copy h3 { margin-bottom: .4rem; }
.product-benefit { margin-top: auto !important; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--text) !important; font-weight: 650; }
.product-group + .product-group { margin-top: 3rem; }
.product-group > h3 { font: 600 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.landing-intro { font-size: clamp(1.15rem, 1.8vw, 1.6rem); letter-spacing: -.02em; max-width: 46ch; margin: -1.5rem 0 2.5rem; color: var(--muted); }
.cert-grid > article { display: flex; flex-direction: column; }
.cert-name { font: 600 .72rem/1.5 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; }
.cert-preview { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: var(--accent); }
.contact-details .icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--panel); margin-bottom: 1.4rem; }
.contact-details address { font-style: normal; color: var(--muted); }
.contact-details h3 { margin-bottom: .5rem; }

/* Team & profiles */
.company-team .section-heading { display: block; }
.company-team .team-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.founder-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .4s; }
.founder-card .portrait { border-radius: 0; aspect-ratio: 1; }
.founder-card .portrait img { object-position: center 18%; }
.founder-card .portrait img { height: 100%; max-height: none; }
.founder-card > div { display: flex; flex: 1; flex-direction: column; padding: clamp(1.3rem, 2.5vw, 2.2rem); }
.founder-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.founder-card .cv-role { margin-top: .6rem; }
.founder-card .profile { align-self: flex-start; margin-top: auto; padding-top: 1.4rem; }
.founder-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--accent), 0 30px 60px -35px #0006; }
.founder-card:hover .portrait img { transform: scale(1.05); }
.cv-hero { align-items: end; }
.cv-hero .portrait { justify-self: end; width: min(100%, 460px); animation: reveal-media 1.4s .1s var(--ease) both; }
.founder-links, .cv-links, .cv-tags { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; min-width: 0; }
.founder-links { margin-top: 1.8rem; }
.cv-links { padding-top: 2rem; }
.cv-tags { list-style: none; padding: 0; gap: .5rem; }
.cv-tags li { margin: 0; padding: .4rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); font-size: .86rem; font-weight: 600; }
.cv-timeline > * { position: relative; padding: 1.8rem 0 2rem 2rem; border-left: 1px solid var(--line); max-width: 80ch; }
.cv-timeline > *::before { content: ''; position: absolute; left: -5px; top: 2.1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ember) 20%, transparent); }
.cv-timeline h3 { margin: .5rem 0 .2rem; }
.cv-timeline p:not(.label) { color: var(--muted); }
.founder-proof { padding-block: clamp(3rem, 6vw, 5rem); }
.proof-grid > * { background: var(--paper); }
.founder-proof strong { display: block; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 650; line-height: .95; letter-spacing: -.06em; color: var(--accent); margin-bottom: .6rem; }
.founder-proof span { color: var(--muted); }
.profile-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.profile-section-nav a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 650; transition: background-color .3s, color .3s; }
.profile-section-nav a span { color: var(--accent); }
.profile-section-nav a:hover { background: var(--ink); color: var(--on-ink); }

/* Enquiry form */
.enquiry-grid { align-items: start; }
.enquiry-panel { padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-line); animation: rise 1.1s .15s var(--ease) both; }
.enquiry-panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.enquiry-panel form { display: grid; gap: .45rem; margin-top: 1.5rem; }
.enquiry-panel label { font-size: .82rem; font-weight: 650; color: var(--on-ink-muted); }
.enquiry-panel :is(input, select, textarea) { display: block; width: 100%; min-width: 0; min-height: 52px; margin-bottom: .7rem; padding: .8rem 1rem; color: var(--on-ink); background: var(--ink); border: 1px solid var(--ink-line); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.enquiry-panel :is(input, select, textarea):hover { border-color: #ffffff40; }
.enquiry-panel :is(input, select, textarea):focus-visible { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px #ff6a2c30; }
.enquiry-panel textarea { resize: vertical; }
.enquiry-panel form .button { justify-self: start; margin-top: .4rem; }
.enquiry-panel .helper, .helper { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.enquiry-panel > p { margin-top: 1rem; }
.mobile-actions { display: none; }

/* Legal */
.legal-main { padding-top: calc(var(--header) + clamp(3rem, 7vw, 6rem)); }
.legal-copy { max-width: 74ch; }
.legal-copy h1 { margin-bottom: 1.5rem; }
.legal-copy > p { font-size: 1.15rem; color: var(--muted); }
.legal-copy section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-copy h2 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); margin-bottom: .6rem; }
.legal-copy section p { color: var(--muted); }
.legal-copy a { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); --accent: var(--ember); padding-top: clamp(4rem, 9vw, 8rem); }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--ink-line); }
.footer-cta h2 { font-size: clamp(2.4rem, 6vw, 6rem); max-width: 13ch; line-height: .94; }
.footer-cta h2 em { color: var(--ember); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-intro { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-intro p, .footer-intro address { color: var(--on-ink-muted); font-size: .92rem; font-style: normal; }
.footer-intro a:not(.brand):hover { color: var(--ember); }
.footer-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.evercore-resources { display: flex; flex-wrap: wrap; gap: .5rem; }
.evercore-resources a { padding: .45rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: .85rem; font-weight: 600; transition: background-color .3s, color .3s; }
.evercore-resources a:hover { background: var(--ember); color: var(--ink); }
.footer-wordmark { display: block; font-size: clamp(4rem, 19.5vw, 22rem); font-weight: 800; letter-spacing: -.085em; line-height: .78; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, #ffffff26, #ffffff05 85%); -webkit-background-clip: text; background-clip: text; margin-top: 1rem; user-select: none; transform: translateY(.08em); }
.footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--ink-line); color: var(--on-ink-muted); font-size: .82rem; }
.footer-base nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-base a:hover, .to-top:hover { color: var(--ember); }
.to-top { display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.4s var(--ease), transform 1.6s var(--ease); }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0 0 0 0); transform: none; }
.js [data-reveal="clip"].is-in:hover > img { transform: scale(1.04); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
}
@media (max-width: 900px) {
  .section-heading, .landing-hero, .about, .faq-layout, .overview-strip .landing-overview, .mega, .footer-grid, .contact-panel, .hero-bottom { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-heading { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .svc-row { grid-template-columns: 2.5rem minmax(0, 1fr) 48px; gap: .5rem 1rem; }
  .svc-row > span:not(.svc-thumb) { grid-column: 2; grid-row: 2; }
  .svc-row i { grid-column: 3; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .svc-row::before { align-self: start; padding-top: .7rem; grid-row: 1 / span 2; }
  .mega-main { grid-row: auto; }
  .cv-hero .portrait { justify-self: start; }
  .detail-media { aspect-ratio: 1.5; }
}
@media (max-width: 680px) {
  :root { --header: 66px; }
  .header-contact span { display: none; }
  .header-contact { padding: .4rem; }
  .directory summary span { display: none; }
  .directory summary { width: 44px; padding: 0; }
  .brand { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(3rem, 15.5vw, 5.5rem); }
  .hero-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-jumps a:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-jumps a:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .scroll-cue { display: none; }
  .svc-row { grid-template-columns: 2rem minmax(0, 1fr) 44px; }
  .svc-thumb { display: block; grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: .6rem; }
  .svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-row::before { grid-column: 1; grid-row: 2 / span 2; padding-top: .45rem; }
  .svc-row strong { grid-column: 2; grid-row: 2; font-size: 1.75rem; }
  .svc-row > span:not(.svc-thumb) { grid-column: 2; grid-row: 3; font-size: .95rem; }
  .svc-row i { grid-column: 3; grid-row: 2 / span 2; width: 44px; height: 44px; }
  .company-team .team-cards, .mega-cols, .footer-directory { grid-template-columns: minmax(0, 1fr); }
  .mega-cols { gap: 1rem; }
  .landing-steps > li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; }
  .situation-grid > article { min-height: 260px; }
  main details p { margin-right: 0; }
  .profile-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track, .logo-track { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .statement .w { opacity: 1; }
}

/* ==========================================================================
   Portfolio, products, network designs, solar tools
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dl { margin: 1.4rem 0 0; display: grid; gap: 1rem; }
dl > div { padding-top: 1rem; border-top: 1px solid var(--line); }
dt { font: 600 .7rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
dd { margin: 0; color: var(--muted); }

/* Screenshot frames */
.work-shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 16 / 10; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
a:hover > .work-shot img, .work-shot:hover img { transform: scale(1.045); }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; font: 600 .7rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.work-meta i { font-style: normal; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform .5s var(--ease), background-color .3s, color .3s; }
a:hover .work-meta i { background: var(--ember); color: var(--ink); box-shadow: none; transform: rotate(45deg); }

/* Featured client project */
.work-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1rem, 2vw, 1.5rem); border-radius: calc(var(--radius) + 8px); background: var(--ink); color: var(--on-ink); --muted: var(--on-ink-muted); --line: var(--ink-line); --accent: var(--ember); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.work-feature .work-shot { aspect-ratio: 16 / 10; box-shadow: none; }
.work-feature-copy { padding: clamp(.5rem, 2vw, 1.5rem); }
.work-feature h3 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); letter-spacing: -.055em; margin-top: .6rem; }
.work-lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--ember-soft); margin-top: .5rem; }
.work-feature .button { margin-top: 1.8rem; }
.work-live { position: absolute; left: 1rem; top: 1rem; padding: .4rem .85rem; border-radius: 999px; background: #0b0c10cc; backdrop-filter: blur(8px); color: #7be495; font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.8rem); }
.work-card a { display: block; }
.work-card strong { display: block; margin-top: .5rem; font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -.04em; line-height: 1.1; }
.work-sum { display: block; margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.work-more { margin-top: 3rem; text-align: center; }
.build-grid .label { margin-bottom: 2.5rem; }

/* Mini product cards (home, training) */
.mini-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.mini-apps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-app { display: block; }
.mini-app strong { display: block; margin-top: .4rem; font-size: 1.3rem; letter-spacing: -.035em; }
.products-teaser .section-heading > p .text-link { margin-top: .6rem; }

/* Products page */
.app-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); position: sticky; top: calc(var(--header) + .8rem); z-index: 5; width: max-content; max-width: 100%; padding: .35rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }
html.header-hidden .app-filter { top: .8rem; }
.app-filter button { min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 650; font-size: .88rem; transition: background-color .3s, color .3s; }
.app-filter button:hover { color: var(--text); }
.app-filter button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
:root[data-theme="dark"] .app-filter button[aria-pressed="true"] { background: var(--ember); color: var(--ink); }
.app-list { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.app-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.app-row:nth-child(even) .app-shot { order: 2; }
.app-shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px #0008; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.app-shot:hover img { transform: scale(1.04); }
.phone-shot { position: absolute; right: 6%; bottom: -10%; z-index: 2; height: 84%; aspect-ratio: 390 / 844; overflow: hidden; border: 5px solid #0b0c10; border-radius: 22px; background: #0b0c10; box-shadow: 0 24px 48px -12px #000000b3, 0 0 0 1px #ffffff26; transition: transform 1.2s var(--ease); pointer-events: none; }
.phone-shot img, a:hover > .work-shot .phone-shot img, .work-shot:hover .phone-shot img, .app-shot:hover .phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: none; border-radius: 16px; }
.app-shot:hover .phone-shot, .work-shot:hover .phone-shot, a:hover > .work-shot .phone-shot { transform: translateY(-4%); }
.work-grid .phone-shot, .mini-apps .phone-shot { border-width: 3px; border-radius: 14px; }
.work-grid .phone-shot img, .mini-apps .phone-shot img { border-radius: 11px; }
.app-shot:has(.phone-shot) .app-num { right: auto; left: 1rem; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.app-copy .app-actions .button { margin-top: 0; }
.app-num { position: absolute; right: 1rem; bottom: .6rem; font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; letter-spacing: -.07em; line-height: 1; color: transparent; -webkit-text-stroke: 1px #ffffffa0; }
.product-art { position: absolute; inset: 0; display: grid; align-content: center; gap: .2rem; padding: 2rem 2.5rem; background: radial-gradient(circle at 80% 20%, #ff6a2c55, transparent 55%), linear-gradient(135deg, var(--ink-3), var(--ink)); }
.product-art b { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 650; letter-spacing: -.06em; line-height: .95; color: var(--on-ink); }
.product-art b:nth-child(2) { color: var(--ember); font-family: var(--serif); font-style: italic; font-weight: 400; }
.app-copy h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); margin-top: .7rem; }
.app-tag { margin-top: .8rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.app-feats { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.app-feats li { position: relative; padding: .65rem 0 .65rem 1.6rem; margin: 0; border-top: 1px solid var(--line); }
.app-feats li::before { content: '↗'; position: absolute; left: 0; color: var(--accent); }
.app-stack { margin-top: 1rem; font: 500 .75rem/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); }
.app-copy .button { margin-top: 1.6rem; }

/* Network designs */
.design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.design-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.design-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.design-topo { background: var(--ink); padding: clamp(.6rem, 1.5vw, 1.2rem); }
.design-copy { padding: clamp(1.4rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: .2rem; }
.design-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); margin-top: .4rem; }
.design-sub { color: var(--muted); margin-top: .3rem !important; }
.design-copy .cv-tags { margin-top: 1rem; }
.design-copy > .text-link { margin-top: 1.2rem; align-self: flex-start; }
.design-plan { margin-top: 1rem; border: 0 !important; }
.design-plan > summary { font-size: .95rem !important; padding-block: .6rem !important; }
.design-plan img { border-radius: var(--radius-sm); margin-top: .5rem; background: #fff; }
.topo { width: 100%; height: auto; display: block; font-family: Manrope, sans-serif; }
.topo .zone { fill: none; stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .75; }
.topo .zone-label { font: 600 11px var(--mono); letter-spacing: .06em; }
.topo .link { stroke-width: 1.6; stroke: #f4f0e855; }
.topo .link--trunk, .topo .link--bundle { stroke: #ff6a2c; stroke-width: 2.2; }
.topo .link--wan { stroke: #ffb08a; stroke-dasharray: 6 5; }
.topo .link--wifi { stroke: #8fb4ff; stroke-dasharray: 2 5; stroke-linecap: round; }
.topo .link--tunnel { stroke: #c9a7ff; stroke-dasharray: 8 5; }
.topo .link--plain { stroke: #ffb08a; }
.topo .node { color: #f4f0e8; }
.topo .body { fill: #1b1e25; stroke: #f4f0e8; stroke-width: 1.4; }
.topo .node--router .body { stroke: #ff6a2c; }
.topo .node--cloud .body { fill: #121419; stroke: #ffb08a; }
.topo .glyph { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topo .label { fill: #f4f0e8; font-size: 11px; font-weight: 700; text-anchor: middle; letter-spacing: .02em; }
.topo .sub { fill: #a7a9b1; font-size: 9.5px; text-anchor: middle; font-family: var(--mono); }
.topo .packet { fill: #ff6a2c; filter: drop-shadow(0 0 4px #ff6a2c); }
.design-more { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.design-more h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.design-more p { color: var(--muted); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.dl-list li { margin: 0; }
.dl-list a { display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; height: 100%; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .5s var(--ease); }
.dl-list a:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-3px); }
.dl-list strong { display: block; letter-spacing: -.02em; }
.dl-list small { display: block; color: var(--muted); font-size: .85rem; }
.dl-meta { display: flex; justify-content: space-between; gap: .5rem; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.dl-meta i { font-style: normal; color: var(--accent); }
.design-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin-top: 2.5rem; padding: 1.2rem 1.5rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); --accent: var(--ember); }
.design-tools p { color: var(--on-ink-muted); }

/* Solar case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .6s var(--ease); }
.case-card:hover { transform: translateY(-6px); }
.case-card figure { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.case-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case-card:hover figure img { transform: scale(1.05); }
.case-card figcaption { position: absolute; left: 1rem; top: 1rem; padding: .4rem .85rem; border-radius: 999px; background: #0b0c10b3; backdrop-filter: blur(8px); color: var(--on-ink); font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.case-card > div { display: flex; flex-direction: column; flex: 1; padding: clamp(1.3rem, 2.2vw, 1.9rem); }
.case-card p { color: var(--muted); }
.case-card .text-link { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; }

/* Solar calculator */
.calc-section { background: var(--ink); color: var(--on-ink); --muted: var(--on-ink-muted); --line: var(--ink-line); --accent: var(--ember); --card: var(--ink-2); --panel: var(--ink-2); }
.calc-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.calc-intro { position: sticky; top: calc(var(--header) + 2rem); }
.calc-intro .helper { margin-top: 1.5rem; }
.calc { padding: clamp(1.2rem, 2.5vw, 2rem); border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-line); }
.calc-rows { display: grid; gap: .6rem; }
.calc-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, .8fr)) 40px; gap: .6rem; align-items: end; margin: 0; padding: .8rem; border: 0; border-radius: var(--radius-sm); background: var(--ink); }
.calc-row label { display: grid; gap: .3rem; font-size: .72rem; font-weight: 650; color: var(--on-ink-muted); min-width: 0; }
.calc-row :is(select, input) { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--on-ink); }
.calc-row :is(select, input):focus-visible { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px #ff6a2c30; }
.calc-remove { width: 40px; height: 44px; border-radius: 10px; border: 1px solid var(--ink-line); background: transparent; color: var(--on-ink-muted); font-size: 1.2rem; }
.calc-remove:hover { color: var(--ember); border-color: var(--ember); }
.calc-actions { margin-top: .9rem; }
.calc-actions .button { min-height: 44px; }
.calc-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.calc-results > div { padding: 1rem 1.1rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--ink-line); }
.calc-results > div:nth-child(n+3) { background: var(--ink); }
.calc-results > div:last-child { grid-column: 1 / -1; background: var(--ember); color: var(--ink); box-shadow: none; }
.calc-results span { display: block; font: 600 .68rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.calc-results strong { display: block; margin-top: .3rem; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 650; letter-spacing: -.045em; }
.calc-results small { font-weight: 600; }

@media (max-width: 1000px) {
  .work-grid, .mini-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card { flex-direction: row; } .case-card figure { flex: 0 0 42%; aspect-ratio: auto; }
}
@media (max-width: 900px) {
  .work-feature, .app-row, .design-card--wide, .design-more, .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .app-row:nth-child(even) .app-shot { order: 0; }
  .design-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-intro { position: static; }
  .mini-apps--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .work-grid, .mini-apps, .dl-list { grid-template-columns: minmax(0, 1fr); }
  .case-card { flex-direction: column; } .case-card figure { aspect-ratio: 3 / 2; }
  .calc-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; }
  .calc-row label:first-of-type { grid-column: 1 / -1; }
  .design-tools { border-radius: var(--radius); }
  .app-filter { position: static; width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .app-filter button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .topo .packet { display: none; } }

/* Clip the tilted ticker inside main so phones cannot scroll sideways */
main { overflow-x: clip; }

/* Sliding text bars keep moving on phones */
@media (hover: none), (pointer: coarse) { .ticker:hover .ticker-track, .logo-marquee:hover .logo-track { animation-play-state: running !important; } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .logo-track { animation-name: marquee !important; animation-duration: 80s !important; animation-iteration-count: infinite !important; animation-play-state: running !important; } }
