/* =========================================================
   KRATOS BUILDERS — styles
   ========================================================= */
/* Brand wordmark font: Amuse-Bouche by Chequered Ink (commercial license required for live use) */
@font-face {
  font-family: "Amuse-Bouche";
  src: url("../assets/fonts/AmuseBouche.ttf") format("truetype");
  font-display: block;
}
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --panel: #151518;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f4;
  --muted: #9b9ba3;
  --red: #e3141c;
  --red-2: #ff3b30;
  --red-deep: #8f0a0f;
  --font-display: "Russo One", "Arial Black", Impact, sans-serif;
  --font-wide: "Michroma", "Arial", sans-serif;
  --font-brand: "Amuse-Bouche", "Russo One", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* no sideways overflow on phones (tilted marquee etc.) */
}
main, footer { overflow-x: clip; }
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-wide);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero__eyebrow::before { display: none; }

.section__head { margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
/* the word KRATOS in headings uses the brand wordmark font */
.brand-word { font-family: var(--font-brand); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 18px 30px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--pad);
  font-family: var(--font-wide);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: color .35s var(--ease), border-color .35s, background .35s, transform .3s var(--ease), opacity 1s var(--ease), translate 1s var(--ease);
  will-change: transform;
}
.btn--sm { --pad: 13px 20px; font-size: 10.5px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff;
  transform: translateX(-101%) skewX(-20deg);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.btn--red:hover { color: var(--bg); }
.btn--red:hover::before { transform: translateX(0) skewX(0); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--red); color: #fff; background: rgba(227,20,28,.12); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Helmet mark ---------- */
.helmet { width: 100%; height: 100%; overflow: visible; }
.helmet .hp {
  fill: #fff; fill-opacity: 0;
  stroke: #fff; stroke-width: 9; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.helmet .he { opacity: 0; transform-box: fill-box; transform-origin: center; }

.helmet.is-drawing .hp { animation: draw 1.4s var(--ease) forwards; }
.helmet.is-filled .hp { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; transition: fill-opacity .6s ease, stroke-opacity .8s ease; }
.helmet.is-filled .he { animation: eyes 3.6s ease-in-out .3s infinite; }
.helmet.is-static .hp { fill-opacity: 1; stroke-dashoffset: 0; stroke: none; }
.helmet.is-static .he { opacity: .9; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes eyes {
  0%, 100% { opacity: .55; transform: scale(.9); }
  8% { opacity: 1; transform: scale(1.12); }
  50% { opacity: .85; transform: scale(1); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 26px;
  transition: background-color .9s ease .15s, visibility 0s 1.15s;
}
.loader__mark { width: 120px; height: 150px; will-change: transform; }
/* hand-off: the loader helmet glides into the hero helmet's spot while the black screen fades */
.loader__word, .loader__bar { transition: opacity .35s ease, transform .35s ease; }
body.is-loaded .loader { background-color: transparent; visibility: hidden; pointer-events: none; }
body.is-loaded .loader__word, body.is-loaded .loader__bar { opacity: 0; transform: translateY(10px); }
.hero__helmet { opacity: 0; }
.hero__helmet.is-shown { opacity: 1; }
.helmet.is-ready .hp { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
.helmet.is-ready .he { animation: eyes 3.6s ease-in-out infinite; }
.loader__word { display: flex; gap: .35em; font-family: var(--font-brand); font-size: 28px; letter-spacing: .1em; color: var(--red); }
.loader__word span { opacity: 0; transform: translateY(12px); animation: up .6s var(--ease) forwards; }
.loader__word span:nth-child(1) { animation-delay: .5s; }
.loader__word span:nth-child(2) { animation-delay: .58s; }
.loader__word span:nth-child(3) { animation-delay: .66s; }
.loader__word span:nth-child(4) { animation-delay: .74s; }
.loader__word span:nth-child(5) { animation-delay: .82s; }
.loader__word span:nth-child(6) { animation-delay: .9s; }
.loader__bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; animation: bar 1.7s var(--ease) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Cursor + progress ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(227, 20, 28, .7); border-radius: 50%;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s;
  opacity: 0;
}
.cursor i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; background: var(--red); border-radius: 50%; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(227, 20, 28, .12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--red-deep), var(--red-2)); transform: scaleX(0); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 11, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark { width: 30px; height: 38px; }
.nav__name { font-family: var(--font-brand); font-size: 16px; letter-spacing: .14em; white-space: nowrap; }
.nav__name b { color: var(--red); font-weight: 400; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #cfcfd4;
  transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 45%, rgba(143, 10, 15, .28), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(143, 10, 15, .25), transparent 70%),
    var(--bg);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__grain {
  position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}

/* red light slashes, like the Facebook cover */
.hero__slashes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__slashes .s {
  position: absolute; display: block; height: 3px; width: 70vmax;
  background: linear-gradient(90deg, transparent, var(--red) 40%, #ff6a5e 50%, var(--red) 60%, transparent);
  box-shadow: 0 0 18px rgba(227, 20, 28, .8), 0 0 50px rgba(227, 20, 28, .35);
  opacity: 0;
}
.hero__slashes .s1 { left: -25vmax; top: 18%; transform: rotate(58deg); }
.hero__slashes .s2 { left: -30vmax; top: 30%; transform: rotate(58deg); height: 1px; }
.hero__slashes .s3 { left: -22vmax; top: 48%; transform: rotate(58deg); height: 2px; }
.hero__slashes .s4 { left: -34vmax; top: 64%; transform: rotate(58deg); height: 1px; }
.hero__slashes .s5 { right: -25vmax; top: 18%; transform: rotate(-58deg); }
.hero__slashes .s6 { right: -30vmax; top: 32%; transform: rotate(-58deg); height: 1px; }
.hero__slashes .s7 { right: -22vmax; top: 50%; transform: rotate(-58deg); height: 2px; }
.hero__slashes .s8 { right: -34vmax; top: 66%; transform: rotate(-58deg); height: 1px; }
body.is-loaded .hero__slashes .s { animation: slash 1.4s var(--ease) forwards, flicker 6s ease-in-out infinite; }
body.is-loaded .hero__slashes .s2, body.is-loaded .hero__slashes .s6 { animation-delay: .12s, 1.6s; }
body.is-loaded .hero__slashes .s3, body.is-loaded .hero__slashes .s7 { animation-delay: .24s, 2.2s; }
body.is-loaded .hero__slashes .s4, body.is-loaded .hero__slashes .s8 { animation-delay: .36s, 3s; }
@keyframes slash {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  30% { opacity: 1; }
  100% { opacity: .55; clip-path: inset(0 0 0 0); }
}
@keyframes flicker { 0%, 100% { opacity: .55; } 45% { opacity: .25; } 50% { opacity: .8; } 55% { opacity: .4; } }

.hero__inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.hero__eyebrow { color: #d6d6db; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227, 20, 28, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(227, 20, 28, .7); } 70% { box-shadow: 0 0 0 12px rgba(227, 20, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 20, 28, 0); } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero__title em {
  display: inline-block;
  background: linear-gradient(100deg, var(--red-deep) 0%, var(--red) 35%, #ff7b6f 50%, var(--red) 65%, var(--red-deep) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 5s linear infinite;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero__lead { max-width: 520px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: #c4c4cb; margin-bottom: 38px; }
.hero__lead strong { color: #fff; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__tags li { font-family: var(--font-wide); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__tags li::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }

/* hero intro choreography */
.hero__eyebrow, .hero__lead, .hero__ctas, .hero__tags { opacity: 0; transform: translateY(24px); }
body.is-loaded .hero__eyebrow, body.is-loaded .hero__lead, body.is-loaded .hero__ctas, body.is-loaded .hero__tags { animation: up 1s var(--ease) forwards; }
body.is-loaded .hero__eyebrow { animation-delay: .2s; }
body.is-loaded .hero__lead { animation-delay: .9s; }
body.is-loaded .hero__ctas { animation-delay: 1.05s; }
body.is-loaded .hero__tags { animation-delay: 1.2s; }

.hero__visual { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.hero__helmet { position: absolute; inset: 14% 22%; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); transition: transform .2s linear; }
.hero__glow { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(227, 20, 28, .45), transparent 65%); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); opacity: 0; transition: opacity 1.2s 1s; }
body.is-loaded .orbit { opacity: 1; }
.orbit--1 { inset: 4%; border-style: dashed; border-color: rgba(255, 255, 255, .08); animation: spin 60s linear infinite; }
.orbit--2 { inset: 12%; animation: spin 18s linear infinite; }
.orbit--3 { inset: -2%; border-color: rgba(227, 20, 28, .25); animation: spin 28s linear infinite reverse; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: var(--red); border-radius: 50%; box-shadow: 0 0 16px var(--red), 0 0 40px var(--red); }
.orbit--3 i { width: 6px; height: 6px; top: -3px; background: #fff; box-shadow: 0 0 12px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-family: var(--font-wide); font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Split text ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.is-in .split-word > span { transform: none; }

/* ---------- Reveal ---------- */
/* uses `translate` (not transform) so hover/tilt transforms stay free */
[data-reveal], [data-reveal-group] > * { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
[data-reveal].is-in, [data-reveal-group].is-in > * { opacity: 1; translate: 0 0; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 4;
  background: var(--red); color: #fff;
  padding: 20px 0; overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  margin: -30px 0;
  box-shadow: 0 20px 60px rgba(227, 20, 28, .25);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 28s linear infinite; will-change: transform; }
.marquee__track > * { display: inline-block; transform: skewX(var(--skew, 0deg)); }
.marquee span { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee span.r { color: var(--bg); }
.marquee b { font-size: 1.2rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__word { position: relative; padding: 40px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(227, 20, 28, .08), transparent 60%); }
.about__word::before, .about__word::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); }
.about__word::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.about__word::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.about__greek { display: block; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.2rem); color: var(--red); line-height: 1; margin-bottom: 18px; }
.about__phon { display: block; font-family: var(--font-wide); font-size: 13px; letter-spacing: .3em; color: #fff; margin-bottom: 10px; }
.about__def { color: var(--muted); }
.about__def b { color: #fff; }
.about__statement { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.25; text-transform: uppercase; }
.about__statement .w { color: rgba(255, 255, 255, .14); transition: color .4s; }
.about__statement .w.on { color: #fff; }
.about__statement .w.on.hl { color: var(--red); }

/* ---------- Services ---------- */
.services { background: linear-gradient(var(--bg), var(--bg-2)); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; padding: 40px 34px 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: border-color .4s, transform .5s var(--ease), opacity 1s var(--ease), translate 1s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(227, 20, 28, .22), transparent 45%);
}
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover { border-color: rgba(227, 20, 28, .45); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 56px; height: 56px; margin-bottom: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); transform: translateZ(30px); transition: background .4s, border-color .4s; }
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--red); border-color: var(--red); }
.card__no { position: absolute; top: 30px; right: 30px; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); transition: -webkit-text-stroke-color .4s; }
.card:hover .card__no { -webkit-text-stroke-color: rgba(227, 20, 28, .7); }
.card h3 { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; transform: translateZ(20px); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); overflow: hidden; }
.process__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process__rail { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); grid-column: 1 / -1; }
.process__rail i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-2)); box-shadow: 0 0 14px var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step { position: relative; padding-top: 52px; }
.step__node { position: absolute; top: 0; left: 0; width: 24px; height: 24px; transform: rotate(45deg); border: 2px solid var(--line-2); background: var(--bg-2); transition: background .5s, border-color .5s, box-shadow .5s; }
.step.is-lit .step__node { background: var(--red); border-color: var(--red); box-shadow: 0 0 24px var(--red); }
.step__no { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .25); margin-bottom: 14px; transition: color .5s, -webkit-text-stroke-color .5s; }
.step.is-lit .step__no { color: #fff; -webkit-text-stroke-color: transparent; }
.step h3 { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step { opacity: .35; transition: opacity .6s; }
.step.is-lit { opacity: 1; }

/* ---------- Pillars ---------- */
.pillars { overflow: hidden; background: var(--bg); }
.pillars__bg { position: absolute; inset: auto 0 6% 0; display: flex; white-space: nowrap; pointer-events: none; transform: translateX(var(--shift, 0)); }
.pillars__bg span { font-family: var(--font-display); font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(227, 20, 28, .14); padding-right: .3em; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); position: relative; }
.pillar { background: var(--bg); padding: 44px 30px 40px; position: relative; overflow: hidden; transition: background .5s, opacity 1s var(--ease), translate 1s var(--ease); }
.pillar:hover { background: #120709; }
.pillar__glyph { display: block; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--red); margin-bottom: 26px; transition: transform .6s var(--ease), text-shadow .6s; }
.pillar:hover .pillar__glyph { transform: translateY(-6px) scale(1.08); text-shadow: 0 0 30px rgba(227, 20, 28, .7); }
.pillar h3 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Projects (blueprints) ---------- */
.projects {
  background-color: #0b0d12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bp { margin: 0; border: 1px solid var(--line-2); background: rgba(10, 10, 11, .6); position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease), opacity 1s var(--ease), translate 1s var(--ease); }
.bp:hover { border-color: var(--red); transform: translateY(-6px); }
.bp3d { display: block; width: 100%; aspect-ratio: 32 / 22; touch-action: pan-y; }
@keyframes bpdraw { to { stroke-dashoffset: 0; } } /* also used by the Mayon outline */
.bp::after { /* scanning line */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none;
  background: linear-gradient(transparent, rgba(227, 20, 28, .12), transparent);
  transform: translateY(-80px); animation: scan 4.5s linear infinite;
}
@keyframes scan { to { transform: translateY(420px); } }
.bp figcaption { padding: 20px 26px 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
.bp figcaption span { grid-row: span 2; font-family: var(--font-wide); font-size: 11px; color: var(--red); padding-top: 4px; }
.bp figcaption h3 { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 4px; }
.bp figcaption p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Founder ---------- */
.founder { background: var(--bg); }
.founder__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.founder__portrait { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: center; }
.founder__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.founder__ring text { font-family: var(--font-wide); font-size: 13px; fill: rgba(255, 255, 255, .55); }
.founder__photo {
  position: absolute; inset: 17%; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a0a0c, #0d0d10 70%);
  border: 2px solid var(--red);
  box-shadow: 0 0 0 10px rgba(227, 20, 28, .08), 0 30px 80px rgba(227, 20, 28, .25);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo span { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); color: #fff; letter-spacing: .05em; }
.founder__name { font-family: var(--font-display); font-size: clamp(2.4rem, 5.4vw, 4.6rem); text-transform: uppercase; margin-bottom: 14px; }
.founder__role { font-family: var(--font-wide); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin-bottom: 26px; }
.founder__copy > p:not(.eyebrow):not(.founder__role) { color: #c4c4cb; max-width: 560px; margin-bottom: 34px; }

/* ---------- Albay / Mayon ---------- */
.albay { position: relative; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(80px, 10vw, 130px); }
.albay__sky { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(227, 20, 28, .22), transparent 70%), linear-gradient(var(--bg), #120a0b 70%, var(--bg)); }
.albay__text { position: relative; z-index: 2; text-align: center; }
.albay__text .eyebrow { justify-content: center; }
.albay__sub { color: #c4c4cb; max-width: 560px; margin: 22px auto 0; }
.mayon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: 1; }
.mayon .ridge { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 2; }
.mayon .rim { fill: none; stroke: rgba(227, 20, 28, .55); stroke-width: 1.5; stroke-dasharray: 2000; stroke-dashoffset: 2000; filter: drop-shadow(0 0 6px rgba(227, 20, 28, .8)); }
.albay.is-in .mayon .rim { animation: bpdraw 3s var(--ease) forwards; }
.mayon .crater { animation: crater 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes crater { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.mayon .smoke circle { fill: rgba(200, 200, 210, .22); transform-box: fill-box; transform-origin: center; animation: smoke 9s linear infinite; opacity: 0; }
.mayon .smoke circle:nth-child(2) { animation-delay: 1.8s; }
.mayon .smoke circle:nth-child(3) { animation-delay: 3.6s; }
.mayon .smoke circle:nth-child(4) { animation-delay: 5.4s; }
.mayon .smoke circle:nth-child(5) { animation-delay: 7.2s; }
@keyframes smoke {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(140px, -120px) scale(3.4); opacity: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); padding-top: 60px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info > p:not(.eyebrow) { color: #c4c4cb; margin: 24px 0 34px; max-width: 480px; }
.contact__list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .4s var(--ease), opacity 1s var(--ease), translate 1s var(--ease); }
.contact__list li:hover { border-color: rgba(227, 20, 28, .5); transform: translateX(6px); }
.ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: rgba(227, 20, 28, .12); color: var(--red); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list small { display: block; font-family: var(--font-wide); font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list span:not(.ci) { font-weight: 600; font-size: 17px; }
.contact__list a:hover { color: var(--red); }
.contact__list a .ci-sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.contact__map { border: 1px solid var(--line); height: 230px; overflow: hidden; background: var(--panel); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

.quote { padding: clamp(28px, 4vw, 48px); background: var(--panel); border: 1px solid var(--line); position: relative; }
.quote::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: linear-gradient(90deg, var(--red), transparent); }
.quote h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 28px; }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 16px 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 0;
  font: inherit; font-size: 16px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field--select::after { content: ""; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field select option { background: var(--bg); }
.field > span { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 20, 28, .15); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span { transform: translateY(-11px) scale(.74); color: var(--red); }
.field.is-error input, .field.is-error select { border-color: var(--red-2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quote__note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.quote__note a, .quote__sms { color: #fff; border-bottom: 1px solid var(--red); }
.quote__sms { background: none; border: 0; border-bottom: 1px solid var(--red); padding: 0; font: inherit; cursor: pointer; }
.quote__sms:hover, .quote__note a:hover { color: var(--red); }
.quote__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.quote__status.is-ok { color: #fff; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(227, 20, 28, .08); }
.quote__status { margin: 10px 0 0; font-size: 14px; color: #fff; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #070708; padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { width: 130px; height: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--muted); max-width: 360px; font-size: 15px; }
.footer h4 { font-family: var(--font-wide); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a:hover { color: var(--red); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer__top:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: 1fr; gap: 0; padding-left: 50px; }
  .process__rail { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; grid-column: auto; }
  .process__rail i { transform: scaleY(var(--p, 0)); transform-origin: top; height: 100%; width: 100%; }
  .step { padding: 0 0 46px; }
  .step__node { left: -50px; top: 6px; }
  .step__no { font-size: 2.2rem; }
  .nav { gap: 24px; }
  .nav__links { gap: 20px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0;
    background: rgba(10, 10, 11, .96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
  }
  .nav__links a { padding: 18px 24px; border-top: 1px solid var(--line); font-size: 15px; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav.is-open { background: rgba(10, 10, 11, .96); }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { order: -1; width: min(70vw, 340px); margin-bottom: -10px; }
  .hero { padding-bottom: 70px; }
  .hero__scroll { display: none; } /* the red banner below already signals "keep scrolling" */
  .about__grid, .founder__grid, .contact__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  /* tablet: logo left, Explore + Contact to its right */
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
  .footer__logo { width: 120px; }
  .footer__brand p { font-size: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* phone: centered brand sign-off, links below, centered base line */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer__brand { grid-column: 1 / -1; text-align: center; }
  .footer__logo { width: 130px; margin-inline: auto; }
  .footer__brand p { margin-inline: auto; font-size: 15px; }
  .footer__base { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .services__grid, .pillars__grid { grid-template-columns: 1fr; }
  .quote__row { grid-template-columns: 1fr; gap: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .nav__name { font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__grain, .bp::after, .mayon .smoke { display: none; }
}
