/* ============================================================
   STRAYE India Private Limited — styles.css
   Theme: straye.no palette (navy primary, warm stone, rust accent)
   ============================================================ */

/* ---------- Self-hosted fonts: Prime (Fontfabric) ---------- */
@font-face {
  font-family: "Prime";
  src: url("assets/fonts/Prime-Regular.woff2") format("woff2"),
       url("assets/fonts/Prime-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prime";
  src: url("assets/fonts/Prime-Light.woff2") format("woff2"),
       url("assets/fonts/Prime-Light.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #003B70;
  --navy-deep: #002E57;
  --navy-ink: #001F3D;
  --rust: #BD7024;
  --rust-soft: #d88436;
  --green: #417463;
  --teal: #009796;
  --charcoal: #282828;
  --ink: #131313;       /* headings */
  --body: #222222;      /* body text */
  --muted: #606060;
  --white: #ffffff;
  --stone: #E3E1DD;
  --stone-2: #F2F0ED;
  --stone-3: #E9EAE5;
  --line: #d8d5cf;
  --font: "Prime", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 31, 61, .08);
  --shadow-md: 0 12px 40px rgba(0, 31, 61, .14);
  --shadow-lg: 0 30px 80px rgba(0, 31, 61, .20);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
/* Home page: all black text -> brand blue */
body.home { --ink: var(--navy); --body: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(0,31,61,.08);
  padding: 10px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.site-header:not(.scrolled) .brand { opacity: 0; visibility: hidden; pointer-events: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--rust); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; font-weight: 800; letter-spacing: .14em; color: #fff; transition: color .3s var(--ease); }
.brand-text small { font-size: 11px; letter-spacing: .06em; color: #9fb3ca; text-transform: uppercase; transition: color .3s var(--ease); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 600; color: #eaf1f8; position: relative; transition: color .3s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--rust); transition: width .28s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a.nav-cta {
  color: #fff; background: var(--navy); padding: 10px 20px; border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--rust); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px auto; transition: .3s var(--ease); }

/* scrolled header — switches to dark text on white */
.site-header.scrolled .brand-text strong { color: var(--ink); }
.site-header.scrolled .brand-text small { color: var(--muted); }
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a.nav-cta { color: #fff; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav a.active::after { width: 100%; }

/* ============ Hero ============ */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, var(--navy) 0%, var(--navy-deep) 45%, var(--navy-ink) 100%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,31,61,.35) 0%, rgba(0,31,61,0) 40%, rgba(0,31,61,.55) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: #9fc1e2; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 22px; }
.hero-title { color: #fff; font-size: clamp(44px, 8vw, 96px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; }
.hero-title span { color: var(--rust-soft); }
.hero-sub { color: #c9d8e8; font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); cursor: pointer; border: 0; }
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 8px 24px rgba(189,112,36,.4); }
.btn-primary:hover { background: var(--rust-soft); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

/* ============ Sections (shared) ============ */
.section { padding: 110px 0; }
.section-kicker { color: var(--rust); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 22px; }
.section-title span { color: var(--navy); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 48px; }
.amp { color: var(--rust); font-weight: 400; }

/* ============ About ============ */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.about-copy p { margin-bottom: 18px; color: var(--body); }
.about-media { border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ============ About — isometric steel-connection element ============ */
.about-3d {
  position: relative; min-height: 360px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle, rgba(0, 59, 112, .08) 1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f6f8fb, #eef2f7);
}
.about-3d::after {
  content: ""; position: absolute; left: 0; right: 0; top: -6%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(189, 112, 36, .5) 50%, transparent 100%);
  pointer-events: none;
}
.a3d-svg { width: min(100%, 460px); height: auto; will-change: transform; }
.a3d-layer { transform-box: fill-box; transform-origin: center; }
.a3d-glow { animation: a3dPulse 7s ease-in-out infinite; }
.a3d-grid { opacity: .9; }
@keyframes a3dPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes a3dScan { 0% { top: -6%; } 100% { top: 106%; } }
@media (prefers-reduced-motion: no-preference) {
  .about-3d::after { animation: a3dScan 8s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .a3d-glow { animation: none; }
}
@media (max-width: 960px) {
  .about-3d { min-height: 300px; }
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.mv-card h3 { font-size: 22px; margin-bottom: 14px; }
.mv-card p { color: var(--body); }
.mv-vision { background: var(--navy); color: #eaf1f8; border-color: var(--navy); }
.mv-vision h3 { color: #fff; }
.mv-vision p { color: #d3e0ee; }

/* ============ Services ============ */
.services { background: var(--stone-3); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; transform-style: preserve-3d; }
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-media { height: 220px; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-body { padding: 26px 28px 30px; }
.service-index { display: inline-block; color: var(--rust); font-weight: 800; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.service-body h3 { font-size: 21px; margin-bottom: 12px; }
.service-body p { color: var(--muted); font-size: 15px; }

/* marquee */
.marquee { margin-top: 80px; padding: 26px 0; background: var(--navy); overflow: hidden; }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px 16px 8px 8px; }
.marquee-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.marquee-item span { color: #eaf1f8; font-weight: 600; font-size: 14px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Why ============ */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item { background: var(--stone-2); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; padding: 24px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-item strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.why-item span { color: var(--muted); font-size: 14px; }

/* ============ Software ============ */
.software { background: var(--stone-3); padding: 150px 0 56px; }
.software-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.software-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.software-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.software-item img { height: 44px; width: auto; max-width: 120px; object-fit: contain; }
.software-item span { font-weight: 700; color: var(--ink); font-size: 14px; }

/* ============ Portfolio ============ */
.portfolio { background: var(--white); }
.carousel-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 24px 0 16px; }
.carousel-stage { position: relative; height: 360px; }
.carousel-card { position: absolute; top: 50%; left: 50%; width: 560px; max-width: 84vw; height: 320px; transition: transform .6s var(--ease), opacity .6s var(--ease); will-change: transform, opacity; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.carousel-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(180deg, transparent, rgba(0, 31, 61, .72)); pointer-events: none; }
.carousel-card figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.carousel-card figcaption strong { display: block; font-size: 24px; color: #fff; }
.carousel-card figcaption span { font-size: 13px; opacity: .85; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.carousel-btn:hover { background: var(--rust); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.gallery { padding-top: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ============ Timeline ============ */
.timeline {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(216,132,54,.10), transparent 60%),
    radial-gradient(900px 520px at 2% 108%, rgba(0,59,112,.08), transparent 60%),
    linear-gradient(180deg, #fbf9f6 0%, #f2efe9 100%);
  color: var(--body);
}
.timeline .section-kicker { color: var(--rust); }
.timeline .section-title { color: var(--navy); }

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 60px auto 0;
  counter-reset: tl;
}

/* vertical spine */
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(216,132,54,.06), rgba(216,132,54,.4) 18%, rgba(216,132,54,.4) 82%, rgba(216,132,54,.06));
  border-radius: 2px;
}

/* scroll-linked progress fill (vertical) */
.timeline-progress {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px; margin-left: -1.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rust), var(--rust-soft));
  box-shadow: 0 0 16px rgba(216,132,54,.5);
  transform: scaleY(0);
  transform-origin: 50% 0;
  z-index: 2;
}

.timeline-item {
  counter-increment: tl;
  position: relative;
  width: calc(50% - 52px);
  margin-bottom: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.timeline-item:nth-child(even) { align-self: flex-start; }
.timeline-item:nth-child(odd) { align-self: flex-end; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(216,132,54,.45);
  box-shadow: 0 22px 48px -20px rgba(0,31,61,.22), 0 0 0 1px rgba(216,132,54,.10);
}

/* milestone node — icon chip on the spine */
.tl-node {
  position: absolute;
  top: 28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid rgba(216,132,54,.5);
  border-radius: 50%;
  color: var(--rust);
  box-shadow: 0 0 0 6px rgba(216,132,54,.12), 0 12px 26px -10px rgba(0,31,61,.4);
  z-index: 3;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.timeline-item:nth-child(even) .tl-node { left: calc(100% + 24px); }
.timeline-item:nth-child(odd) .tl-node { right: calc(100% + 24px); }
.tl-node svg { width: 26px; height: 26px; }
.timeline-item:hover .tl-node {
  background: var(--rust);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(216,132,54,.16), 0 14px 30px -10px rgba(0,31,61,.5);
}

/* top accent hairline (sweeps in on hover) */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 0; left: 1px; right: 1px;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--rust-soft));
  border-radius: 18px 18px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.timeline-item:hover::after { transform: scaleX(1); }

.timeline-item .year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--navy);
}
.timeline-item .year::before {
  content: "PHASE " counter(tl, decimal-leading-zero);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rust);
}
.timeline-item h3 { color: var(--ink); font-size: 18px; margin-bottom: 10px; }
.timeline-item p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============ R&D ============ */
.rd { background: var(--white); }
.rd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rd-step { background: var(--stone-2); border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rd-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.rd-num { position: absolute; top: 10px; right: 18px; font-size: 72px; font-weight: 800; color: rgba(0,59,112,.08); line-height: 1; }
.rd-step h3 { font-size: 18px; margin-bottom: 12px; position: relative; }
.rd-step p { color: var(--muted); font-size: 14px; position: relative; }

/* ============ Environment ============ */
.environment { background: var(--stone-3); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); cursor: pointer; }
.office-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ============ Careers ============ */
.careers { background: var(--white); }
.careers-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 20px; padding: 56px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; box-shadow: var(--shadow-lg); }
.careers-banner .section-kicker { color: #9fc1e2; margin-bottom: 0; }
.careers-banner h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.careers-meta { color: #c9d8e8; font-size: 16px; margin-bottom: 10px; }

/* ============ Contact ============ */
.contact { background: var(--stone-2); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--ink); font-size: 14px; }
.contact-form input, .contact-form textarea { font-family: var(--font); font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--body); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,59,112,.12); }
.form-note { color: var(--green); font-weight: 600; }
.contact-info h3 { font-size: 22px; margin-bottom: 14px; }
.contact-info p { color: var(--muted); margin-bottom: 22px; }
.social { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
.social a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); transition: all .25s var(--ease); }
.social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============ Footer ============ */
.site-footer { background: var(--navy-ink); color: #c9d8e8; padding: 60px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { background: var(--rust); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #9fb3ca; }
.footer-tagline { max-width: 520px; }
.footer-legal { font-size: 13px; color: #7f95ad; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 8px; }

/* ============ Reveal animation ============ */
html.js [data-reveal] { opacity: 0; }
html.js [data-reveal].revealed { opacity: 1; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .about-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: repeat(3, 1fr); }
  .rd-grid { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: #fff; flex-direction: column; align-items: flex-start; gap: 8px; padding: 90px 28px 28px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 60px rgba(0,31,61,.15); }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 18px; padding: 8px 0; color: var(--ink); }
  .nav a.nav-cta { margin-top: 12px; color: #fff; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .carousel-stage { height: 240px; }
  .carousel-card { height: 200px; }
}

@media (max-width: 560px) {
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative; padding: 170px 0 90px; overflow: hidden;
  background: radial-gradient(120% 140% at 80% 0%, var(--navy) 0%, var(--navy-deep) 45%, var(--navy-ink) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,31,61,.35) 0%, rgba(0,31,61,0) 60%, rgba(0,31,61,.4) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-title { font-size: clamp(36px, 6vw, 68px); margin-bottom: 16px; }
.page-hero .hero-sub { max-width: 680px; }

/* ============ Section CTA ============ */
.section-cta { text-align: center; margin-top: 44px; }

/* ============ Portfolio preview ============ */
.portfolio-preview { background: var(--white); padding-top: 56px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.preview-card { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.preview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.preview-card img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s var(--ease); }
.preview-card:hover img { transform: scale(1.06); }
.preview-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,31,61,.85) 100%); color: #fff; }
.preview-overlay strong { font-size: 22px; color: #fff; }
.preview-overlay span { font-size: 14px; opacity: .9; }

/* ============ About page extras ============ */
.mv { background: var(--stone-2); }
.policy-card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--rust); border-radius: 14px; padding: 34px 38px; margin: 40px 0; box-shadow: var(--shadow-sm); }
.policy-card h3 { font-size: 22px; margin-bottom: 12px; }
.policy-card p { color: var(--body); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar h4 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 14px; }

/* ============ Footer (multi-page) ============ */
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #9fb3ca; }
.footer-tagline { margin-top: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: #9fb3ca; font-size: 14px; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--rust-soft); }

/* ============ Careers page ============ */
.positions { margin-top: 60px; }
.positions-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.positions-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--stone-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.positions-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-left: 4px solid var(--rust); }
.positions-list strong { color: var(--ink); font-size: 17px; }
.positions-list span { color: var(--muted); font-size: 14px; }
.positions-note { color: var(--muted); font-size: 15px; }
.apply { background: var(--stone-3); }
.apply-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ============ Forms (select + file) ============ */
.contact-form select { font-family: var(--font); font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--body); transition: border-color .25s, box-shadow .25s; }
.contact-form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,59,112,.12); }
.file-input { padding: 10px; }
.form-title { font-size: 22px; margin-bottom: 4px; }

/* ============ Responsive additions ============ */
@media (max-width: 960px) {
  .preview-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .apply-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .positions-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   PREMIUM ENHANCEMENT LAYER
   ============================================================ */

:root {
  --mono: "Prime", ui-monospace, SFMono-Regular, Menlo, monospace;
  --navy-2: #003A6D;
  --blueprint: rgba(159, 193, 226, 0.10);
  --radius-lg: 20px;
}

/* ---------- Base refinements ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-size: 16.5px; }
::selection { background: var(--rust); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--stone-2); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 6px; border: 2px solid var(--stone-2); }
::-webkit-scrollbar-thumb:hover { background: var(--rust); }
h1, h2, h3, h4 { font-weight: 800; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9000; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--rust), var(--rust-soft)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Custom cursor ---------- */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); margin: -4px 0 0 -4px; z-index: 100000; pointer-events: none; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(0, 59, 112, 0.45); margin: -19px 0 0 -19px; z-index: 100000; pointer-events: none; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.cursor-ring.active { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--rust); background: rgba(189, 112, 36, 0.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Blueprint grid on hero + page hero ---------- */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,31,61,.42) 0%, rgba(0,31,61,0) 42%, rgba(0,31,61,.6) 100%),
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
}
.page-hero::after {
  background:
    linear-gradient(180deg, rgba(0,31,61,.42) 0%, rgba(0,31,61,0) 60%, rgba(0,31,61,.4) 100%),
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
}

/* ---------- Typography scale ---------- */
.hero-title { font-size: clamp(50px, 9vw, 124px); letter-spacing: -0.03em; line-height: 0.96; font-weight: 900; }
.section-title { font-size: clamp(32px, 4.8vw, 62px); letter-spacing: -0.02em; line-height: 1.04; }
.section-lead { font-size: 19px; line-height: 1.7; }
.page-hero .hero-title { font-size: clamp(40px, 7vw, 88px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; }

/* ---------- Section kicker with number + rule ---------- */
.section-kicker { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; }
.section-kicker::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .45; }
.section-kicker .sec-no { color: var(--rust); font-weight: 700; font-size: 13px; }

/* ---------- Split text ---------- */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word-inner { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; font-weight: 700; letter-spacing: .02em; }
.btn.magnetic { transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.btn.magnetic:hover { transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--rust) 0%, var(--rust-soft) 100%); box-shadow: 0 10px 30px rgba(189, 112, 36, .38); }
.btn-primary::after { content: "→"; font-weight: 800; transition: transform .3s var(--ease); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(2px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(46px, 6vw, 76px); font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.stat-num--plus::after { content: "+"; }
.stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Editorial image frame ---------- */
.about-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.about-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* ---------- Service cards ---------- */
.service-card { position: relative; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--rust), var(--rust-soft)); transition: width .45s var(--ease); z-index: 3; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(0, 59, 112, .2); box-shadow: 0 34px 70px rgba(0, 31, 61, .18); }
.service-card:hover::before { width: 100%; }
.service-media { position: relative; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 31, 61, 0) 45%, rgba(0, 31, 61, .28) 100%); }
.service-index { font-family: var(--mono); font-weight: 700; color: var(--rust); font-size: 13px; letter-spacing: .1em; }
.service-body h3 { font-size: 23px; }

/* ---------- Why choose (numbered) ---------- */
.why-grid { counter-reset: why; }
.why-item { position: relative; background: #fff; border: 1px solid var(--line); border-left: 1px solid var(--line); padding: 26px 26px 26px 76px; }
.why-item::before { counter-increment: why; content: counter(why, decimal-leading-zero); position: absolute; left: 26px; top: 24px; font-family: var(--mono); font-weight: 700; font-size: 19px; color: var(--rust); }
.why-item:hover { border-color: rgba(0, 59, 112, .35); box-shadow: var(--shadow-md); }
.why-item strong { font-size: 18px; }

/* ---------- Software ---------- */
.software-item img { opacity: 1; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.software-item:hover img { opacity: 1; transform: scale(1.06); }

/* ---------- Portfolio preview cards ---------- */
.preview-card { border-radius: var(--radius); }
.preview-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 31, 61, .9) 100%); }
.preview-overlay strong { font-size: 26px; letter-spacing: -0.01em; }

/* ---------- Timeline (styles consolidated in the base Timeline section above) ---------- */

/* ---------- Footer wordmark ---------- */
.footer-word { margin-top: 44px; font-size: clamp(58px, 14vw, 196px); font-weight: 900; letter-spacing: -0.02em; line-height: .78; color: transparent; -webkit-text-stroke: 1px rgba(159, 179, 202, .22); user-select: none; pointer-events: none; white-space: nowrap; }

/* ---------- Responsive: premium layer ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-kicker { flex-wrap: wrap; }
}

/* ============================================================
   PAGE TRANSITION / LIGHTBOX / H-SCROLL
   ============================================================ */

/* ---------- Page transition overlay (split curtain) ---------- */
.page-transition { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.page-transition:not(.is-open) { pointer-events: auto; }

.pt-panel {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background: var(--navy-ink);
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.pt-panel--left { left: 0; }
.pt-panel--right { right: 0; }

.page-transition.is-open .pt-panel--left { transform: translateX(-101%); transition-duration: .68s; }
.page-transition.is-open .pt-panel--right { transform: translateX(101%); transition-duration: .68s; }

.pt-mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.pt-mark-inner {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  /* Fade the mark in only after the panels have met in the center (.5s close),
     so the logo never renders over the page content behind the curtain. */
  transition: opacity .25s ease .5s;
}
.pt-mark-icon { display: block; width: 116px; height: auto; }
.pt-mark-word {
  display: block; height: 31px; width: auto;
}
.pt-mark-logo { display: block; width: 300px; max-width: 70vw; height: auto; }
.page-transition.is-open .pt-mark-inner {
  opacity: 0;
  transition: opacity .14s ease;
}

/* page navigation motion: the navy curtain does all the work, content stays still */
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9990; display: none; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 15, 31, .93); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.lightbox-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s var(--ease), transform .25s var(--ease); }
.lightbox-btn:hover { background: var(--rust); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-btn:hover { transform: scale(1.08); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #c9d8e8; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }

/* ---------- Horizontal showcase ---------- */
.hscroll { background: var(--stone-3); overflow: hidden; position: relative; }
.hscroll-track { display: flex; align-items: stretch; gap: 26px; padding: 48px 24px 80px; width: max-content; will-change: transform; }
.hscroll-panel { flex: 0 0 460px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hscroll-media { height: 300px; overflow: hidden; }
.hscroll-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hscroll-panel:hover .hscroll-media img { transform: scale(1.06); }
.hscroll-body { padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 14px; }
.hscroll-index { font-family: var(--mono); color: var(--rust); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.hscroll-body h3 { font-size: 24px; }
.hscroll-body p { color: var(--muted); font-size: 15px; }
.hscroll-hint { position: absolute; left: 24px; bottom: 24px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hscroll-hint::after { content: "→"; font-size: 16px; animation: hintNudge 1.6s infinite var(--ease); }
@keyframes hintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (min-width: 961px) {
  .hscroll { min-height: 100vh; display: flex; align-items: center; padding-top: 88px; padding-bottom: 48px; }
  .hscroll-track { padding-top: 0; padding-bottom: 0; }
  .hscroll-panel { flex-basis: 500px; }
}
@media (max-width: 960px) {
  .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 32px 16px 80px; }
  .hscroll-panel { flex: 0 0 84vw; scroll-snap-align: center; }
}

/* ============================================================
   SECTION POLISH PASS
   ============================================================ */

/* ---------- Why choose — spotlight hover ---------- */
.why-item { position: relative; overflow: hidden; }
.why-item::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); transform: translateY(102%); transition: transform .45s var(--ease); }
.why-item:hover::after { transform: translateY(0); }
.why-item > * { position: relative; z-index: 1; }
.why-item::before { z-index: 1; }
.why-item:hover strong { color: #fff; }
.why-item:hover span { color: #d5e2f0; }
.why-item:hover::before { color: var(--rust-soft); }

/* ---------- Software — index + underline ---------- */
.software-grid { counter-reset: tool; }
.software-item { position: relative; counter-increment: tool; overflow: hidden; }
.software-item::before { content: counter(tool, decimal-leading-zero); position: absolute; top: 12px; left: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.software-item::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--navy), var(--rust)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.software-item:hover::after { transform: scaleX(1); }

/* ---------- Portfolio preview — index + arrow ---------- */
.preview-grid { counter-reset: pv; }
.preview-card { position: relative; counter-increment: pv; }
.preview-card::before { content: counter(pv, decimal-leading-zero); position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--mono); font-weight: 700; color: #fff; font-size: 14px; letter-spacing: .1em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.preview-overlay strong::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.preview-card:hover .preview-overlay strong::after { opacity: 1; transform: translateX(0); }

/* ---------- Mission / Vision — gradient accent ---------- */
.mv-card { position: relative; overflow: hidden; }
.mv-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--rust)); }

/* ---------- R&D — connector arrows ---------- */
@media (min-width: 961px) {
  .rd-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -21px; transform: translateY(-50%); font-family: var(--mono); color: var(--rust); font-size: 22px; z-index: 1; }
}

/* ---------- Careers positions — hover arrow ---------- */
.positions-list li { position: relative; padding-right: 44px; }
.positions-list li::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(-8px); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); color: var(--rust); font-size: 22px; line-height: 1; }
.positions-list li:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 960px) { .positions-list li::after { display: none; } }

/* ---------- Timeline — responsive ---------- */
@media (max-width: 960px) {
  .timeline-item { width: calc(50% - 36px); }
  .timeline-item:nth-child(even) .tl-node { left: calc(100% + 8px); }
  .timeline-item:nth-child(odd) .tl-node { right: calc(100% + 8px); }
}
@media (max-width: 640px) {
  .timeline-track { padding-left: 76px; margin-top: 40px; }
  .timeline-track::before { left: 28px; right: auto; }
  .timeline-progress { left: 28px; margin-left: -1.5px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    align-self: stretch;
    margin-bottom: 36px;
  }
  .timeline-item:last-child { margin-bottom: 0; }
  .timeline-item .tl-node,
  .timeline-item:nth-child(odd) .tl-node,
  .timeline-item:nth-child(even) .tl-node { left: -76px; right: auto; }
}

/* ---------- Contact — social cards ---------- */
.social a { display: flex; align-items: center; gap: 8px; }
.social a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.social a:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Statement (word-scrub) */
.statement { background: var(--white); }
.statement .container { max-width: 1100px; }
.statement-text { font-size: clamp(30px, 5.2vw, 62px); font-weight: 800; line-height: 1.16; letter-spacing: -0.02em; color: var(--ink); }
.statement-text .sw { color: var(--ink); }

/* Text marquee */
.text-marquee { overflow: hidden; background: var(--navy); padding: 28px 0; white-space: nowrap; }
.text-marquee-inner { display: inline-flex; align-items: center; width: max-content; will-change: transform; }
.text-marquee-inner span { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; letter-spacing: .01em; color: #fff; padding: 0 14px; line-height: 1; }
.text-marquee-inner .dot { color: var(--rust-soft); }
.text-marquee-inner .tm-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }

/* R&D step active */
.rd-step { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.rd-step.active { border-color: var(--navy); background: #fff; box-shadow: var(--shadow-md); }
.rd-step.active .rd-num { color: rgba(189, 112, 36, .16); }
.rd-step.active h3 { color: var(--navy); }

/* Footer wordmark letters */
.footer-word .fl { display: inline-block; will-change: transform; }

/* Hide native cursor when custom cursor is active */
body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }

/* ---------- Scroll tint (bottom vignette) ---------- */
.scroll-tint {
  position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(120% 100% at 50% 110%, rgba(0, 31, 61, 0.24), rgba(0, 31, 61, 0) 58%);
  opacity: 0;
  will-change: opacity;
}

/* ============================================================
   ACCESSIBILITY, FORMS & CONTACT DETAILS
   ============================================================ */

/* Contact details list */
.contact-details { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.contact-details li { color: var(--body); font-size: 15px; }
.contact-details a { color: var(--navy); font-weight: 600; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact-details a:hover { color: var(--rust); border-color: var(--rust); }

/* Form note error state */
.form-note.error { color: #b3261e; }

/* Active state for the CTA nav link (Contact page) */
.nav a.nav-cta.active { background: var(--rust); }

/* Footer legal contrast bump */
.footer-legal { color: #a9bccd; }

/* Hide the native cursor while the custom cursor is active */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor input,
  body.custom-cursor select,
  body.custom-cursor textarea,
  body.custom-cursor [role="button"],
  body.custom-cursor .tilt,
  body.custom-cursor .carousel-card { cursor: none; }
}

/* Reduced motion: disable animations & reveal-on-scroll hiding */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track, .hero-scroll span { animation: none !important; }
  .word-inner { transform: none !important; opacity: 1 !important; }
  .progress-bar span { transform: scaleX(1) !important; }
}

/* ============================================================
   HERO REDESIGN
   ============================================================ */

/* Rust ambient glow behind content */
.hero-glow {
  position: absolute; top: -22%; left: -12%; width: 70vw; height: 70vw; z-index: 1;
  background: radial-gradient(circle, rgba(216, 132, 54, .30) 0%, rgba(216, 132, 54, 0) 62%);
  filter: blur(12px); pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .65; transform: translate(0, 0) scale(1); }
  to   { opacity: 1; transform: translate(4%, 3%) scale(1.1); }
}

/* Eyebrow status dot */
.hero-eyebrow { display: flex; align-items: center; gap: 13px; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rust-soft); flex: 0 0 auto; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(216, 132, 54, .6); animation: statusPulse 2.4s ease-out infinite; }
@keyframes statusPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.hero-title { margin-bottom: 16px; }
.hero-mark { display: block; width: clamp(170px, 26vw, 280px); height: auto; color: #fff; }

/* Vertical side label */
.hero-side {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); z-index: 5;
  font-family: var(--mono); font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: #c2d7ec; writing-mode: vertical-rl; opacity: .85; pointer-events: none;
}

/* Content breathing room for the header and bottom meta bar */
.hero-content { justify-content: flex-start; padding: 32px 24px 80px; }

/* Bottom meta bar */
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch; gap: 0;
  border-top: 1px solid rgba(159, 193, 226, .16);
  background: linear-gradient(180deg, rgba(0, 31, 61, 0) 0%, rgba(0, 31, 61, .34) 100%);
}
.hero-meta-item { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 18px 34px 20px 0; }
.hero-meta-item + .hero-meta-item { padding-left: 34px; border-left: 1px solid rgba(159, 193, 226, .16); }
.hero-meta-item strong { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.hero-meta-item span { color: #9fb3ca; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

/* Scroll cue (right-aligned in the meta bar) */
.hero-scroll { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #c9d8e8; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transition: color .25s var(--ease); }
.hero-scroll:hover { color: var(--rust-soft); }
.hero-scroll-line { position: relative; display: block; width: 1px; height: 44px; background: rgba(159, 193, 226, .22); overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--rust-soft); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 120%; } }

/* Responsive */
@media (max-width: 1240px) {
  .hero-side { left: 10px; font-size: 9px; letter-spacing: .26em; opacity: .75; }
}
@media (max-width: 960px) {
  .hero-meta-item { padding: 16px 20px 18px 0; }
  .hero-meta-item + .hero-meta-item { padding-left: 20px; }
}
@media (max-width: 560px) {
  .hero-meta-item span { display: none; }
  .hero-meta-item strong { font-size: 14px; }
  .hero-meta-item { padding: 14px 12px 16px 0; }
  .hero-meta-item + .hero-meta-item { padding-left: 12px; }
  .hero-scroll { font-size: 10px; gap: 8px; }
  .hero-glow { width: 90vw; height: 90vw; }
}

/* ============================================================
   IMMERSIVE LAYER — preloader / ambient / sound / bg-shift / cursor label / captions
   ============================================================ */

html.is-loading { overflow: hidden; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: #fff;
  overflow: hidden;
  transition: transform .7s cubic-bezier(.76, 0, .24, 1), opacity .7s ease;
}
.preloader::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 59, 112, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 59, 112, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.preloader.is-done { transform: translateY(-100%); opacity: .001; }

.preloader-logo {
  position: relative; z-index: 1;
  width: 380px; max-width: 84vw;
}
.preloader-logo img {
  display: block; width: 100%; height: auto;
  animation: preLogoIn 1s var(--ease) both;
}
@keyframes preLogoIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.preloader-count {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 14px; z-index: 1;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--muted);
  animation: preIn .5s .1s var(--ease) both;
}
.preloader-label { letter-spacing: .3em; }
.preloader-count b { font-weight: 700; color: var(--navy); font-size: 20px; }

.preloader-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; z-index: 1; background: rgba(0, 59, 112, .1); }
.preloader-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--rust), var(--rust-soft)); transform: scaleX(0); transform-origin: 0 50%; }
@keyframes preIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ambient particles ---------- */
.ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }

/* ---------- Background shift ---------- */
.bg-shift {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  mix-blend-mode: soft-light;
  background: radial-gradient(120% 90% at 50% 50%, #124a82 0%, rgba(0, 31, 61, .6) 60%, rgba(0, 31, 61, 0) 100%);
  transition: opacity .5s linear;
  will-change: opacity;
}

/* ---------- Sound toggle ---------- */
.sound-toggle {
  position: fixed; left: 22px; bottom: 22px; z-index: 10001;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 31, 61, .85); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  backdrop-filter: blur(6px);
}
.sound-toggle:hover { background: var(--rust); transform: translateY(-2px); }
.sound-toggle.on { background: var(--rust); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .ic-mute { display: none; }
.sound-toggle.on .ic-mute { display: block; }
.sound-toggle.on .ic-sound { display: none; }

/* ---------- Cursor label ---------- */
.cursor-ring { display: grid; place-items: center; }
.cursor-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: scale(.6); white-space: nowrap;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.cursor-ring.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--rust); border-color: transparent; }
.cursor-ring.has-label .cursor-label { opacity: 1; transform: scale(1); }

/* ---------- Gallery captions ---------- */
.gallery-grid .gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid .gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; box-shadow: none; }
.gallery-grid .gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 36px 16px 12px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 31, 61, .85) 100%);
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.gallery-caption span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9d8e8; }

/* ============================================================
   HERO ENHANCEMENT — light sweep
   ============================================================ */

.hero-overlay::after {
  content: ""; position: absolute; top: -25%; bottom: -25%; width: 32%; left: -45%;
  background: linear-gradient(100deg, transparent 0%, rgba(159, 193, 226, .14) 42%, rgba(255, 255, 255, .22) 50%, rgba(159, 193, 226, .14) 58%, transparent 100%);
  transform: skewX(-16deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: heroSweep 9s ease-in-out infinite;
}
@keyframes heroSweep {
  0% { left: -45%; }
  60% { left: 115%; }
  100% { left: 115%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-overlay::after { animation: none; }
}

/* ============================================================
   HERO REDESIGN — blueprint schematic (replaces 3D)
   ============================================================ */

.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 48%;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-blueprint { display: block; width: 100%; height: 100%; opacity: .55; }
.hero-blueprint .bp-thin { stroke-width: 1.4; opacity: .85; }
.hero-blueprint .bp-nodes circle { transform-box: fill-box; transform-origin: center; }
.hero-scan {
  position: absolute; left: 8%; right: 0; top: -6%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(216, 132, 54, .75) 50%, transparent 100%);
  box-shadow: 0 0 22px 2px rgba(216, 132, 54, .32);
  animation: heroScan 7s linear infinite;
}
@keyframes heroScan { 0% { top: -6%; } 100% { top: 106%; } }

@media (max-width: 960px) {
  .hero-bg { left: 0; right: 0; width: 100%; }
  .hero-blueprint { opacity: .14; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan { animation: none; }
}

/* ============================================================
   ABOUT ("Who We Are") ENHANCEMENTS
   ============================================================ */

.about-lead { font-size: 19px; line-height: 1.62; color: var(--ink); font-weight: 500; }
.accent { color: var(--rust); font-weight: 700; }

.about-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.about-tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--stone-2); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.about-tags li:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

.about-badge {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 22px; border-radius: 12px;
  background: rgba(0, 31, 61, .88); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
.about-badge strong { font-size: 26px; font-weight: 800; color: var(--rust-soft); letter-spacing: -.01em; line-height: 1; }
.about-badge span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #c9d8e8; }

.mv-num { display: block; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--rust); margin-bottom: 12px; }
.mv-vision .mv-num { color: var(--rust-soft); }
.mv-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

@media (max-width: 560px) {
  .about-badge { right: 12px; bottom: 12px; padding: 14px 16px; }
  .about-badge strong { font-size: 20px; }
}

/* ============================================================
   "WHY STRAYE" — modern redesign
   ============================================================ */

.why-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 42px; }
.why-head .section-title { margin-bottom: 0; }
.why-lead { color: var(--muted); font-size: 17px; line-height: 1.65; }

.why-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.why-item::before {
  counter-increment: why;
  content: counter(why, decimal-leading-zero);
  position: absolute; top: 10px; right: 20px; left: auto;
  font-family: var(--mono); font-weight: 700; font-size: 42px; line-height: 1;
  color: rgba(0, 59, 112, .08);
  transition: color .35s var(--ease);
  z-index: 1;
}
.why-item::after {
  content: ""; position: absolute; top: auto; right: auto; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--rust));
  transform: none; transition: width .4s var(--ease);
  z-index: 2;
}
.why-item:hover::after { width: 100%; }
.why-item > * { position: relative; z-index: 1; }
.why-item strong { display: block; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.why-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; }
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0, 59, 112, .22); }
.why-item:hover::before { color: var(--rust-soft); }
.why-item:hover strong { color: var(--ink); }
.why-item:hover span { color: var(--muted); }

@media (max-width: 960px) {
  .why-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .why-lead { max-width: none; }
}

/* ============================================================
   "OUR WORK" — modern redesign
   ============================================================ */

.work-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 42px; }
.work-head .section-title { margin-bottom: 0; }
.work-lead { color: var(--muted); font-size: 17px; line-height: 1.65; }

.preview-grid { grid-auto-rows: 320px; }

.preview-card {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.preview-card--feature { grid-column: span 2; }
.preview-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.preview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.preview-card:hover img { transform: scale(1.07); }

.preview-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(0, 31, 61, .36) 0%, rgba(0, 31, 61, 0) 30%, rgba(0, 31, 61, 0) 70%, rgba(0, 31, 61, .66) 100%);
  color: #fff;
}
.preview-overlay strong { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #fff; line-height: 1.05; }
.preview-overlay span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9d8e8; opacity: 1; }

.preview-card::before {
  left: auto; right: 20px;
  font-size: 15px; color: rgba(255, 255, 255, .85);
}

@media (max-width: 960px) {
  .work-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .work-lead { max-width: none; }
  .preview-card--feature { grid-column: auto; }
  .preview-grid { grid-auto-rows: 280px; }
}

/* ============================================================
   VALUES MARQUEE + HIRING CARD — modern redesign
   ============================================================ */

/* Values marquee — slanted blueprint-sheet ribbon */
.text-marquee {
  position: relative; z-index: 1;
  width: 106%; margin: 0 0 20px -3%;
  padding: 20px 0;
  background-color: #e3edf7;
  background-image:
    linear-gradient(90deg, rgba(0, 59, 112, .06) 0%, rgba(0, 59, 112, 0) 24%, rgba(0, 59, 112, 0) 76%, rgba(0, 59, 112, .06) 100%),
    linear-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .8) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px, 26px 26px;
  transform: rotate(-2.2deg);
  box-shadow: none;
  border-top: 1px solid rgba(189, 112, 36, .4);
  border-bottom: 1px solid rgba(189, 112, 36, .4);
}
.text-marquee::before {
  content: ""; position: absolute; inset: 10px; z-index: 0; pointer-events: none;
  border: 1px dashed rgba(0, 59, 112, .22);
  /* corner registration / crop marks */
  background:
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 0 0 / 14px 1px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 0 0 / 1px 14px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 0 100% / 14px 1px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 0 100% / 1px 14px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(rgba(0, 59, 112, .4), rgba(0, 59, 112, .4)) 100% 100% / 1px 14px no-repeat;
}
.text-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: ribbonShine 6.5s ease-in-out infinite;
}
@keyframes ribbonShine {
  0% { left: -30%; }
  55% { left: 118%; }
  100% { left: 118%; }
}

.text-marquee-inner { position: relative; z-index: 1; }
.text-marquee-inner span { font-size: clamp(26px, 3.6vw, 54px); color: var(--navy); }
.text-marquee-inner .dot { color: var(--rust); font-size: clamp(12px, 1.6vw, 18px); }
.text-marquee-inner .tm-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(0, 59, 112, .5); }
.text-marquee-inner .tm-accent {
  background: linear-gradient(120deg, var(--rust) 0%, var(--rust-soft) 50%, var(--rust) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Mono term — type-rhythm contrast against the headline words */
.text-marquee-inner .tm-mono {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82em;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Idle drift wrapper — gentle breathing motion before/while scrolling.
   Also carries the edge-fade mask so words dissolve at the ribbon ends. */
.text-marquee-drift {
  position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  will-change: transform;
  animation: marqueeDrift 7s ease-in-out infinite alternate;
}
@keyframes marqueeDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-48px); }
}

/* Drafting annotations pinned to the ribbon ends */
.tm-tick {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(0, 59, 112, .55);
}
.tm-tick::before { content: ""; width: 22px; height: 1px; background: var(--rust); opacity: .6; }
.tm-tick--left { left: 18px; }
.tm-tick--right { right: 18px; }
.tm-tick--right::before { content: none; }
.tm-tick--right::after { content: ""; width: 22px; height: 1px; background: var(--rust); opacity: .6; }

@media (max-width: 720px) {
  .text-marquee { width: 100%; margin: 0 0 20px; transform: none; }
  .tm-tick { display: none; }
}

/* Hiring banner */
.careers-banner {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
}
.careers-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(159, 193, 226, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 193, 226, .07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.careers-banner > * { position: relative; z-index: 1; }
.careers-banner .careers-banner-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 170px;
  height: auto;
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 720px) {
  .careers-banner .careers-banner-logo { width: 100px; top: 18px; right: 18px; opacity: .5; }
}

.careers-banner--hiring {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 40px; padding: 64px 60px;
}
.careers-banner--hiring::after {
  content: "CAREERS";
  position: absolute; right: -8px; bottom: -36px; z-index: 0;
  font-size: 150px; font-weight: 900; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.careers-content { display: flex; flex-direction: column; gap: 12px; }
.careers-banner--hiring .section-kicker { color: #9fc1e2; margin-bottom: 0; }
.careers-banner--hiring h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.careers-banner--hiring h2 span { color: var(--rust-soft); }
.careers-banner--hiring .careers-meta { margin-bottom: 0; }
.careers-cta { flex: 0 0 auto; }
.careers-brand {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.careers-brand-pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: #c9d8e8; white-space: nowrap;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(4px);
}
.careers-brand-pill strong { color: #fff; font-weight: 800; }
.careers-brand-pill::before {
  content: ""; flex: 0 0 auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rust-soft);
  box-shadow: 0 0 10px rgba(216, 132, 54, .9);
  animation: careersPulse 2.4s ease-out infinite;
}
@keyframes careersPulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 132, 54, .55), 0 0 10px rgba(216, 132, 54, .9); }
  70% { box-shadow: 0 0 0 12px rgba(216, 132, 54, 0), 0 0 10px rgba(216, 132, 54, .9); }
  100% { box-shadow: 0 0 0 0 rgba(216, 132, 54, 0), 0 0 10px rgba(216, 132, 54, .9); }
}
@media (max-width: 720px) {
  .careers-brand { flex: 0 0 auto; width: 100%; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .careers-banner--hiring { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px 32px; }
  .careers-banner--hiring::after { font-size: 110px; bottom: -26px; }
}

/* ============================================================
   "WHO WE ARE" — modern redesign
   ============================================================ */

.about-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.about-head .section-title { margin-bottom: 0; }
.about-intro { color: var(--muted); font-size: 17px; line-height: 1.65; }

.about-media { border-radius: 18px; }

/* ---------- Holographic overlay (realistic image + subtle scan) ---------- */
.about-holo-overlay { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.aho-scan {
  position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(127, 212, 245, .85), transparent);
  box-shadow: 0 0 18px 4px rgba(127, 212, 245, .55);
  animation: ahoScan 5.5s ease-in-out infinite;
}
.aho-glow {
  position: absolute; left: 50%; top: 40%; width: 320px; height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(127, 212, 245, .30), transparent 68%);
  animation: ahoGlow 6s ease-in-out infinite;
}
.aho-p {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #9fe0ff; box-shadow: 0 0 9px 2px rgba(127, 212, 245, .7);
  animation-name: ahoParticle; animation-duration: 5s; animation-timing-function: linear; animation-iteration-count: infinite;
}
.aho-p1 { left: 22%; top: 68%; }
.aho-p2 { left: 38%; top: 52%; animation-delay: 1.2s; }
.aho-p3 { left: 58%; top: 40%; animation-delay: .6s; }
.aho-p4 { left: 74%; top: 58%; animation-delay: 2s; }
.aho-p5 { left: 30%; top: 34%; animation-delay: 1.7s; }
.aho-p6 { left: 66%; top: 26%; animation-delay: .9s; }

@keyframes ahoScan { 0% { top: -3%; } 50% { top: 97%; } 100% { top: -3%; } }
@keyframes ahoGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ahoParticle {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: 0; }
  100% { transform: translateY(-60px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aho-scan, .aho-glow, .aho-p { animation: none !important; }
}

@media (max-width: 960px) {
  .about-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .about-intro { max-width: none; }
}

/* ============================================================
   "WHAT WE DO" — modern redesign
   ============================================================ */

.services-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.services-head .section-title { margin-bottom: 0; }
.services-lead { color: var(--muted); font-size: 17px; line-height: 1.65; }

@media (min-width: 961px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.service-card { border-radius: 18px; }
.service-body h3::after {
  content: " →"; display: inline-block; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  color: var(--rust);
}
.service-card:hover .service-body h3::after { opacity: 1; transform: translateX(0); }

@media (max-width: 960px) {
  .services-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .services-lead { max-width: none; }
}

/* ============================================================
   SERVICES PAGE — modern redesign
   ============================================================ */

.page-hero--split .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.page-hero--split .hero-title { margin-bottom: 0; }
.page-hero--split .hero-sub { max-width: none; }
@media (max-width: 900px) {
  .page-hero--split .container { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

.hscroll-panel {
  border-radius: 18px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.hscroll-panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 59, 112, .2); }
.hscroll-media { position: relative; height: 220px; }
.hscroll-media img { height: 100%; }
.hscroll-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 31, 61, 0) 55%, rgba(0, 31, 61, .25) 100%);
}
.hscroll-body { position: relative; padding: 26px 28px 28px; gap: 12px; }
.hscroll-index {
  position: absolute; top: 16px; right: 24px;
  font-size: 44px; line-height: 1; font-weight: 700; color: rgba(0, 59, 112, .08);
}
.hscroll-body h3 { font-size: 22px; line-height: 1.25; padding-right: 56px; }
.hscroll-body p { font-size: 14.5px; line-height: 1.55; }
.hscroll-body h3::after {
  content: " →"; display: inline-block; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease); color: var(--rust);
}
.hscroll-panel:hover .hscroll-body h3::after { opacity: 1; transform: translateX(0); }

.hscroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; pointer-events: none;
  background: rgba(0, 59, 112, .12);
}
.hscroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--rust), var(--rust-soft));
  transform: scaleX(0); transform-origin: 0 50%;
}
@media (max-width: 960px) {
  .hscroll-progress { display: none; }
}

/* ============================================================
   ABOUT PAGE — modern redesign
   ============================================================ */

/* Pillars — ghost numbers + accent */
.pillar-grid { counter-reset: pillar; }
.pillar { position: relative; overflow: hidden; }
.pillar::before {
  counter-increment: pillar;
  content: counter(pillar, decimal-leading-zero);
  position: absolute; top: 12px; right: 16px;
  font-family: var(--mono); font-weight: 700; font-size: 34px; line-height: 1;
  color: rgba(0, 59, 112, .08);
  transition: color .3s var(--ease);
}
.pillar:hover::before { color: var(--rust-soft); }

/* Office grid — captions + hover */
.office-grid .office-item { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.office-grid .office-item img { width: 100%; height: 280px; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .5s var(--ease); }
.office-grid .office-item:hover img { transform: scale(1.05); }
.office-grid .office-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 31, 61, .85));
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.office-grid .office-item:hover figcaption { opacity: 1; transform: translateY(0); }
.office-grid .office-item figcaption strong { display: block; font-size: 16px; color: #fff; }
.office-grid .office-item figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9d8e8; }

/* ============================================================
   SITE LOGO (header + footer) — STRAYE INDIA wordmark
   ============================================================ */

.site-logo { display: block; height: auto; }
.brand .site-logo { width: 168px; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand .site-logo { width: 150px; }
.footer-brand .footer-tagline { margin-top: 0; }

/* ============================================================
   HERO TITLE — outline (STRAYE India)
   ============================================================ */

.hero-title { -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px #fff; }
.hero-title .hero-accent { -webkit-text-stroke: 2px var(--rust-soft); }

/* ============ Portfolio enhancements ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 30px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 14px;
  font-family: var(--font); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.filter-btn:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-2px); }
.filter-btn.active { background: var(--rust); border-color: var(--rust); color: #fff; }
.gallery-item.hidden { display: none; }

/* Carousel project tag */
.carousel-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.project-tag {
  display: inline-block; font-style: normal; font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; margin-top: 8px; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff;
}

/* Carousel dots + focus */
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: var(--navy); opacity: .18; cursor: pointer;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.carousel-dot:hover { opacity: .4; transform: scale(1.25); }
.carousel-dot.active { background: var(--rust); opacity: 1; transform: scale(1.25); }
.carousel-stage:focus { outline: none; }
.carousel-stage:focus-visible { outline: 2px solid var(--rust); outline-offset: 8px; border-radius: var(--radius); }

/* Lightbox caption */
.lightbox-caption {
  position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 15px; text-align: center; max-width: 80vw; padding: 0 16px;
}

/* Upcoming projects */
.upcoming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin-top: 10px; }
.upcoming-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 18px 20px; }
.upcoming-item strong { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.upcoming-item span { color: #c9d8e8; font-size: 13px; }
@media (max-width: 720px) {
  .upcoming-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE DETAILS MODAL
   ============================================================ */
.hscroll-panel { cursor: pointer; }
.hscroll-panel:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.hscroll-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.hscroll-panel:hover .hscroll-more { gap: 14px; }

.service-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.service-modal.open { display: flex; }
.service-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 15, 31, .94);
}
.service-modal-panel {
  position: relative; z-index: 1; width: min(1100px, 100%); max-height: 88vh;
  background: #fff; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: row;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  will-change: transform, opacity;
  animation: modalIn .4s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.service-modal-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 5;
  background: linear-gradient(90deg, var(--navy), var(--rust));
}

/* left — image */
.service-modal-media {
  position: relative; flex: 0 0 42%; min-height: 260px; overflow: hidden;
  background: var(--navy-ink);
}
.service-modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-modal-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(0, 31, 61, 0) 30%, rgba(0, 31, 61, .88) 100%);
}
.service-modal-index {
  position: absolute; left: 28px; bottom: 16px; z-index: 2;
  font-family: var(--mono); font-weight: 700; font-size: 64px; line-height: 1;
  color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.service-modal-index::after {
  content: ""; display: block; width: 36px; height: 4px; margin-top: 12px;
  background: var(--rust);
}

/* right — content */
.service-modal-content {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 36px 38px 44px;
}
.service-modal-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 10px;
}
.service-modal-title {
  font-size: 30px; line-height: 1.15; color: var(--navy);
  margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.service-modal-body p { color: var(--body); font-size: 15.5px; margin-bottom: 14px; }
.service-modal-body h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin: 24px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.service-modal-body h4::before { content: ""; width: 16px; height: 2px; background: var(--rust); flex: 0 0 auto; }
.service-modal-body ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 9px; }
.service-modal-body li { position: relative; padding-left: 24px; color: var(--body); font-size: 15px; }
.service-modal-body li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--navy), var(--rust));
}

/* close */
.service-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 31, 61, .85); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.service-modal-close:hover { background: var(--rust); border-color: transparent; transform: scale(1.06); }

/* scrollbar */
.service-modal-content { scrollbar-width: thin; scrollbar-color: #c9c4bb transparent; }
.service-modal-content::-webkit-scrollbar { width: 10px; }
.service-modal-content::-webkit-scrollbar-track { background: transparent; }
.service-modal-content::-webkit-scrollbar-thumb { background: #c9c4bb; border-radius: 8px; border: 2px solid #fff; }
.service-modal-content::-webkit-scrollbar-thumb:hover { background: var(--rust); }

body.modal-open { overflow: hidden; }

@media (max-width: 860px) {
  .service-modal { padding: 0; }
  .service-modal-panel { flex-direction: column; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .service-modal-media { flex: 0 0 210px; min-height: 0; }
  .service-modal-index { font-size: 46px; left: 22px; bottom: 12px; }
  .service-modal-content { padding: 24px 22px 44px; }
  .service-modal-title { font-size: 24px; }
  .service-modal-close { top: 12px; right: 12px; }
}
