/* ============================================================
   ioneosys technologies private limited — Global Stylesheet
   Dark luxury tech theme · orange/amber signature gradient
   ============================================================ */

:root {
  --bg: #090A0F;
  --bg-2: #12141D;
  --bg-3: #1A1D2B;
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(255, 138, 0, 0.3);
  --text: #FFFFFF;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --orange: #FF8A00;
  --amber: #FFC400;
  --grad: linear-gradient(135deg, #FF8A00 0%, #FFC400 100%);
  --glow: 0 0 30px rgba(255, 138, 0, 0.25);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-brand: 'Comfortaa', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  30% { transform: translate(5%,-3%); } 50% { transform: translate(-8%,5%); }
  70% { transform: translate(6%,8%); } 90% { transform: translate(-3%,3%); }
}

::selection { background: var(--orange); color: #090A0F; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1240px, 92%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.display { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.h-xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 62ch; }
.caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.caption::before { content: ""; width: 2.2rem; height: 1px; background: var(--grad); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; }
.cta-mark { position: absolute; right: -46px; bottom: -70px; width: 340px; height: auto; opacity: 0.08; transform: rotate(-8deg); pointer-events: none; }
@media (max-width: 820px) { .cta-mark { width: 200px; right: -30px; bottom: -40px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; z-index: 1100; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px auto; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(9, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 8%;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem);
  padding: 0.55rem 0; color: var(--text-2);
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line);
  transform: translateY(24px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s, color 0.3s;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; }
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 1rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: #0B0B0F; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(255, 138, 0, 0.45); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: #fff; background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--line-accent); box-shadow: var(--glow); transform: translateY(-2px); }
.btn-sm { padding: 0.65rem 1.35rem; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none;
}
.hero-orb.one { width: 480px; height: 480px; top: -140px; right: -80px; background: radial-gradient(circle, rgba(255,138,0,0.22), transparent 65%); }
.hero-orb.two { width: 380px; height: 380px; bottom: -120px; left: -100px; background: radial-gradient(circle, rgba(255,196,0,0.12), transparent 65%); }
.hero-inner { position: relative; }
.hero-title { margin: 1.6rem 0 1.8rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line-inner { display: block; will-change: transform; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2.6rem; }
.hero-meta {
  display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap;
  margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero-meta .stat { min-width: 120px; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--orange), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats ---------- */
.stat .stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; }
.stat .stat-num em { font-style: normal; color: var(--orange); }
.stat .stat-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-top: 0.5rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.6rem 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  color: var(--text-3); white-space: nowrap; padding-right: 3.5rem; display: inline-flex; align-items: center; gap: 3.5rem;
  transition: color 0.3s;
}
.marquee-track span i { font-style: normal; color: var(--orange); font-size: 0.8em; }
.marquee-track span:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }
.section-tint { background: var(--bg-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.section-head .lead { margin-top: 1rem; }

/* ---------- Manifesto chapters ---------- */
.chapters { border-top: 1px solid var(--line); }
.chapter {
  display: grid; grid-template-columns: 110px 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.chapter-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange);
  border: 1px solid var(--line-accent); border-radius: 999px; padding: 0.45rem 0; text-align: center; width: 74px;
}
.chapter h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.chapter p { color: var(--text-2); }
.chapter .link-arrow { margin-top: 1.3rem; }

/* ---------- Service rows ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 90px 1.2fr 1fr 60px; align-items: center; gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0.5rem; border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.45s var(--ease), background-color 0.45s;
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,138,0,0.07), transparent 60%);
  opacity: 0; transition: opacity 0.45s;
}
.service-row:hover { padding-left: 1.6rem; }
.service-row:hover::before { opacity: 1; }
.service-row .s-idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.service-row h3 { font-size: clamp(1.35rem, 2.8vw, 2rem); transition: color 0.3s; }
.service-row:hover h3 { color: var(--amber); }
.service-row p { color: var(--text-2); font-size: 0.95rem; }
.service-row .s-arrow {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: background-color 0.35s, border-color 0.35s, transform 0.45s var(--ease);
}
.service-row .s-arrow svg { width: 18px; height: 18px; }
.service-row:hover .s-arrow { background: var(--grad); border-color: transparent; color: #0B0B0F; transform: rotate(45deg); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-accent); box-shadow: var(--glow); }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,138,0,0.1); border: 1px solid var(--line-accent); color: var(--amber); margin-bottom: 1.4rem;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-2); font-size: 0.93rem; }

/* ---------- Case study cards ---------- */
.case-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-6px); border-color: var(--line-accent); box-shadow: var(--glow); }
.case-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.case-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) contrast(1.05); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.case-card:hover .case-media img { filter: grayscale(0); transform: scale(1.05); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,10,15,0.75)); }
.case-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(9,10,15,0.7); backdrop-filter: blur(8px); border: 1px solid var(--line-accent);
  color: var(--amber); padding: 0.35rem 0.8rem; border-radius: 999px;
}
.case-body { padding: 1.6rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.case-body p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.case-metrics { display: flex; gap: 1.8rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-metrics b { font-family: var(--font-head); font-size: 1.25rem; color: var(--amber); display: block; line-height: 1.1; }
.case-metrics small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Tech pills ---------- */
.tech-group { margin-bottom: 3rem; }
.tech-group h3 { display: flex; align-items: center; gap: 0.8rem; font-size: 1.15rem; margin-bottom: 1.3rem; }
.tech-group h3 .caption { font-size: 0.62rem; }
.tech-group h3 .caption::before { width: 1.4rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.02);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.pill:hover { color: var(--amber); border-color: var(--line-accent); box-shadow: var(--glow); transform: translateY(-2px); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 3rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.3rem;
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: var(--line-accent); }
.filter-btn.active { background: var(--grad); color: #0B0B0F; border-color: transparent; font-weight: 700; }
.filterable { transition: opacity 0.4s, transform 0.4s var(--ease); }
.filterable.hidden-f { display: none; }

/* ---------- Jobs ---------- */
.job-row {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 1.5rem;
  padding: 1.7rem 0.5rem; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), background-color 0.4s;
}
.job-row:first-child { border-top: 1px solid var(--line); }
.job-row:hover { padding-left: 1.4rem; background: linear-gradient(90deg, rgba(255,138,0,0.05), transparent 60%); }
.job-row h3 { font-size: 1.2rem; }
.job-row .job-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }
.job-badge { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-accent); color: var(--amber); border-radius: 999px; padding: 0.35rem 0.9rem; white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--orange), rgba(255,138,0,0.05)); }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.2rem; top: 7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange); box-shadow: 0 0 12px rgba(255,138,0,0.5);
}
.timeline-item .t-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--amber); letter-spacing: 0.2em; }
.timeline-item h3 { font-size: 1.2rem; margin: 0.4rem 0; }
.timeline-item p { color: var(--text-2); font-size: 0.93rem; max-width: 56ch; }

/* ---------- Media split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.media-frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.7); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.media-frame:hover img { filter: grayscale(0); transform: scale(1.04); }
.media-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); border-radius: 24px; pointer-events: none; }
.media-frame .frame-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(9,10,15,0.72); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text-2);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.cta-band .container { padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: left; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); max-width: 16ch; margin: 1.2rem 0 2.2rem; }
.cta-glow { position: absolute; width: 620px; height: 620px; right: -180px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(255,138,0,0.16), transparent 65%); filter: blur(40px); pointer-events: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.6rem; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px;
  color: #fff; font-family: var(--font-body); font-size: 0.95rem; padding: 0.95rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--glow); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFC400' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field select option { background: var(--bg-2); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: none; border: 0; color: #fff; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0.4rem; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  transition: color 0.3s;
}
.acc-head:hover { color: var(--amber); }
.acc-head .acc-ico { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform 0.45s var(--ease), background-color 0.35s; }
.acc-head .acc-ico svg { width: 15px; height: 15px; }
.acc-item.open .acc-ico { transform: rotate(45deg); background: var(--grad); color: #0B0B0F; border-color: transparent; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.acc-body p { color: var(--text-2); padding: 0 0.4rem 1.7rem; max-width: 68ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 190px 0 90px; overflow: hidden; }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero h1 { margin-top: 1.5rem; }
.crumb { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-top: 2.6rem; }
.crumb b { color: var(--orange); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #07080C; padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-blurb { color: var(--text-2); font-size: 0.92rem; max-width: 34ch; margin: 1.2rem 0 1.6rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col a, .footer-col p { color: var(--text-2); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--amber); }
.socials { display: flex; gap: 0.7rem; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2);
  transition: all 0.35s var(--ease);
}
.socials a svg { width: 16px; height: 16px; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #0B0B0F; transform: translateY(-3px); box-shadow: var(--glow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-3); }

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(44px); }
.no-anim .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .chapter { grid-template-columns: 90px 1fr; }
  .chapter p, .chapter .link-arrow { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .service-row { grid-template-columns: 1fr 48px; }
  .service-row .s-idx, .service-row p { display: none; }
  .split { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .hero-meta { gap: 1.6rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .case-metrics { flex-wrap: wrap; gap: 1rem; }
}
