/* Arkalp HR Solutions — site styles */

:root {
  --navy: #1d4170;
  --navy-2: #2a5a94;
  --navy-deep: #0f2440;
  --navy-ink: #0a1a30;
  --navy-soft: #e8edf4;
  --ink: #15202d;
  --body: #46505c;
  --stone: #78766b;
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: #e3dfd5;
  --brass: #b8863a;
  --brass-2: #d9a95a;
  --green: #2f9e6a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 36, 64, .06), 0 18px 40px -16px rgba(15, 36, 64, .22);
  --shadow-lg: 0 2px 4px rgba(15, 36, 64, .05), 0 30px 60px -20px rgba(15, 36, 64, .3);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--navy); color: var(--white); }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; }
h1 { font-size: clamp(42px, 5.4vw, 70px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h2 em, h1 em { font-style: italic; color: var(--navy); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--brass), var(--brass-2)); }
.eyebrow--light { color: #b9c9de; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--navy), var(--brass));
}

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -12px rgba(29, 65, 112, .7); }
.btn--primary:hover { background: var(--navy-deep); box-shadow: 0 16px 30px -12px rgba(29, 65, 112, .8); }
.btn--ghost { color: var(--navy); border-color: rgba(29, 65, 112, .25); background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy-deep); }
.btn--light::after { background: linear-gradient(110deg, transparent 30%, rgba(29, 65, 112, .12) 50%, transparent 70%); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, transform .45s var(--ease-out);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(15, 36, 64, .45); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand img { height: 60px; width: auto; transition: transform .3s var(--ease); }
.nav__brand:hover img { transform: scale(1.03); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--navy); }
.nav__toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 78px);
  display: flex; align-items: center;
  padding: clamp(56px, 7vw, 96px) 0 clamp(96px, 10vw, 130px);
  background: linear-gradient(180deg, var(--paper) 0%, #f2efe7 100%);
}
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -2; pointer-events: none; }
.hero__glow--a { width: 560px; height: 560px; right: -120px; top: -160px; background: rgba(42, 90, 148, .22); animation: drift 18s ease-in-out infinite alternate; }
.hero__glow--b { width: 420px; height: 420px; left: -140px; bottom: -160px; background: rgba(217, 169, 90, .22); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(30px, 80px) scale(.95); }
}

.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; }
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.headline .w > * { display: inline-block; }
.js .headline .w > * { transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 150ms); }
.is-loaded .headline .w > * { transform: none; }

.js .load { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease-out); transition-delay: calc(var(--d) * 90ms + 150ms); }
.is-loaded .load { opacity: 1; transform: none; }

.lede { font-size: clamp(17px, 1.45vw, 20px); margin-top: 28px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 42px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__visual { position: relative; perspective: 1200px; }
.pipeline {
  position: relative;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-radius: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(227, 223, 213, .9); padding: 28px 28px 22px;
  transform: rotateY(-4deg) rotateX(2deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.hero__visual:hover .pipeline { transform: rotateY(0) rotateX(0); }
.pipeline__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2); opacity: 0; } }

.pipeline__steps li {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
  padding: 13px 0;
}
.pipeline__steps li::before {
  content: ""; grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white) center / 16px no-repeat; position: relative; z-index: 1;
  transition: background-color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease-out);
}
.pipeline__steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 47px; bottom: -13px; width: 2px;
  background: linear-gradient(var(--navy), var(--navy)) top / 100% 0 no-repeat, var(--line);
  transition: background-size .6s var(--ease);
}
.pipeline__steps b { color: var(--ink); font-size: 16px; line-height: 1.3; align-self: end; transition: color .4s; }
.pipeline__steps small { font-size: 14px; color: var(--stone); line-height: 1.4; }
.pipeline__steps li.is-done::before {
  border-color: var(--navy);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.pipeline__steps li.is-done::after { background-size: 100% 100%, auto; }
.pipeline__steps li.is-active::before { border-color: var(--brass); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 20px var(--brass), 0 0 0 6px rgba(184, 134, 58, .15); transform: scale(1.08); }
.pipeline__steps li.is-active b { color: var(--brass); }
.pipeline__done {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(47, 158, 106, .1); color: #217a51; font-size: 14px; font-weight: 700;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease-out);
}
.pipeline__done span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 12px; }
.pipeline.is-complete .pipeline__done { opacity: 1; transform: none; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 999px; padding: 10px 18px 10px 10px;
  box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--ink);
}
.chip__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(47, 158, 106, .14); color: var(--green); font-size: 13px; }
.chip--verified { right: -28px; top: -24px; animation: bob 6s ease-in-out infinite; }

.hero__badge {
  position: absolute; left: -40px; bottom: -40px;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy-deep); color: var(--white); border-radius: 18px; padding: 16px 22px;
  box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out -2s infinite;
}
.hero__badge strong { font: 500 42px/1 var(--serif); }
.hero__badge span { font-size: 13px; font-weight: 600; line-height: 1.3; color: #c9d5e5; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(29, 65, 112, .35);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Industries marquee */
.industries { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; }
.industries__title {
  flex: none; padding: 30px 32px 30px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stone);
  background: var(--white); position: relative; z-index: 1; white-space: nowrap;
  box-shadow: 24px 0 24px var(--white);
}
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; font: 500 26px/1 var(--serif); color: var(--navy-deep); padding: 0 34px; white-space: nowrap; transition: color .3s; }
.marquee__track li::after { content: "✦"; font-size: 13px; color: var(--brass); margin-left: 68px; }
.marquee__track li:hover { color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: var(--section) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--navy-deep); color: #c3cfde; overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark h2 em { color: var(--brass-2); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head p:not(.eyebrow) { margin-top: 20px; font-size: 18px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.section__head--split > p { margin: 0 0 8px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Mouse-follow glow on cards */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 90, 148, .12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glow:hover::before { opacity: 1; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.about__intro h2 { position: sticky; top: 120px; }
.about__body > p { font-size: 18px; }
.about__body > p + p { margin-top: 18px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar svg {
  width: 48px; height: 48px; padding: 11px; border-radius: 14px; margin-bottom: 22px;
  background: var(--navy-soft); fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round;
  transition: background-color .4s, stroke .4s, transform .5s var(--ease-out);
}
.pillar:hover svg { background: var(--navy); stroke: var(--white); transform: rotate(-8deg) scale(1.06); }
.pillar p { margin-top: 10px; font-size: 15.5px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line);
}
.stats li { padding: 36px 24px 0 0; position: relative; }
.stats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.stats strong { display: block; font: 500 clamp(52px, 6vw, 80px)/1 var(--serif); color: var(--navy); letter-spacing: -.03em; }
.stats span { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 36px;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; }
.service__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy-soft); transition: background-color .4s, transform .6s var(--ease-out);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.service:hover .service__icon { background: var(--navy); transform: rotate(-6deg) scale(1.05); }
.service:hover .service__icon svg { stroke: var(--white); }
.service__num { font: 500 15px/1 var(--serif); color: var(--brass); }
.service p { margin-top: 12px; font-size: 15.5px; }

/* Process */
.process { position: relative; }
.process ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.process__rail { position: absolute; left: 22px; right: calc((100% - 96px) / 5 - 23px); top: 22px; height: 2px; background: var(--line); }
.process__rail span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--brass)); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.process__step {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line); color: var(--stone);
  font: 500 18px/1 var(--serif); margin-bottom: 26px;
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease-out), box-shadow .5s;
}
.process li h3, .process li p { transition: opacity .6s, transform .6s var(--ease-out); }
.js .process li:not(.is-lit) h3, .js .process li:not(.is-lit) p { opacity: .35; transform: translateY(6px); }
.process li.is-lit .process__step { background: var(--navy); border-color: var(--navy); color: var(--white); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(29, 65, 112, .1); }
.process p { margin-top: 10px; font-size: 15.5px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 60%, #13305a 100%);
  padding: clamp(64px, 8vw, 100px) 0;
}
.cta__blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.cta__blob--a { width: 420px; height: 420px; left: 10%; top: -220px; background: rgba(120, 170, 235, .32); animation: drift 14s ease-in-out infinite alternate; }
.cta__blob--b { width: 380px; height: 380px; right: 5%; bottom: -220px; background: rgba(90, 140, 210, .45); animation: drift 17s ease-in-out infinite alternate-reverse; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(34px, 4.6vw, 60px); }
.cta h2 em { color: var(--brass-2); }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Values */
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--sx, 70%) var(--sy, 30%), rgba(90, 140, 210, .2), transparent 55%);
}
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  animation: gridpan 30s linear infinite;
}
@keyframes gridpan { to { background-position: 56px 56px; } }
.values { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.values__intro p:not(.eyebrow) { margin-top: 22px; font-size: 18px; }
.values__intro .btn { margin-top: 36px; }
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.values__grid li {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px; padding: 28px 26px;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-out), opacity .9s var(--ease);
}
.values__grid li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(217, 169, 90, .45); transform: translateY(-4px); }
.values__grid h3::before { content: ""; display: block; width: 22px; height: 2px; background: var(--brass-2); margin-bottom: 18px; transition: width .5s var(--ease-out); }
.values__grid li:hover h3::before { width: 44px; }
.values__grid p { margin-top: 8px; font-size: 15.5px; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px 32px;
  background: var(--white);
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s, opacity .9s var(--ease);
}
.partner::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(184, 134, 58, .14), transparent 70%);
  transition: transform .8s var(--ease-out);
}
.partner:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.partner:hover::after { transform: scale(1.8); }
.partner__mono {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  margin-bottom: 28px; color: var(--white); font: 500 30px/1 var(--serif); letter-spacing: .02em;
  background: linear-gradient(140deg, var(--navy-2), var(--navy-deep));
}
.partner__mono::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brass), transparent 30%, var(--navy-2) 60%, transparent 80%, var(--brass));
  -webkit-mask: radial-gradient(circle, transparent 44px, #000 45px);
  mask: radial-gradient(circle, transparent 44px, #000 45px);
  animation: spin 6s linear infinite; animation-play-state: paused; opacity: .5; transition: opacity .4s;
}
.partner:hover .partner__mono::before { animation-play-state: running; opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
.partner h3 { font: 500 26px/1.2 var(--serif); letter-spacing: -.01em; }
.partner p { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }

/* Careers */
.careers { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.careers > div > p:not(.eyebrow) { margin-top: 20px; font-size: 18px; }
.careers__card {
  background: var(--white); border-radius: 28px; padding: 44px; box-shadow: var(--shadow-lg);
}
.careers__card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out), opacity .9s var(--ease); }
.careers__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--navy-soft); margin-bottom: 26px; }
.careers__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.careers__card h3 { font: 500 30px/1.15 var(--serif); }
.careers__card p { font-size: 16px; margin: 10px 0 28px; }
.careers__card .btn { width: 100%; }

/* Contact */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); }
.contact__info > p:not(.eyebrow) { margin-top: 20px; font-size: 18px; }
.contact__list { margin: 44px 0 0; display: grid; gap: 14px; }
.contact__list > div { padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, background-color .3s, transform .5s var(--ease-out), opacity .9s var(--ease); }
.contact__list > div:hover { border-color: var(--navy); background: var(--navy-soft); transform: translateX(6px); }
.contact__list dt { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.contact__list dd { margin: 6px 0 0; font-size: 17px; color: var(--ink); font-weight: 600; }
.contact__list a { text-decoration: none; }

.form { background: var(--paper); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.form__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); }
.form__pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--navy); transition: transform .5s var(--ease-out); }
.form__tabs.is-job .form__pill { transform: translateX(100%); }
.form__tabs label { position: relative; }
.form__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.form__tabs span {
  display: block; text-align: center; padding: 12px 10px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--body); cursor: pointer; transition: color .35s; white-space: nowrap;
}
.form__tabs input:checked + span { color: var(--white); }
.form__tabs input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(29, 65, 112, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b4412f; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field[hidden] { display: none; }
.form__hint { font-size: 14px; color: var(--stone); text-align: center; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--navy-ink); color: #9fb0c6; padding: 84px 0 0; font-size: 15px; }
.footer__mark {
  position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%);
  font: 500 clamp(120px, 22vw, 320px)/1 var(--serif); letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__brand p { font: 400 italic 22px/1.4 var(--serif); color: #dbe3ee; max-width: 360px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer__col a { text-decoration: none; transition: color .25s, transform .3s var(--ease); justify-self: start; }
.footer__col a:hover { color: var(--white); transform: translateX(4px); }
.footer__base {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 120px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--white); }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top.is-visible:hover { transform: translateY(-3px); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top__track { stroke: var(--line); }
.to-top__ring { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .load, .js .headline .w > * { opacity: 1; transform: none; transition: none; }
  .js .process li:not(.is-lit) h3, .js .process li:not(.is-lit) p { opacity: 1; transform: none; }
  .pipeline { transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track li[aria-hidden] { display: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr 1fr; }
  .section__head--split { grid-template-columns: 1fr; gap: 0; }
  .section__head--split > p { margin-top: 20px; }
  .chip--verified { right: -8px; }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 30px -20px rgba(15, 36, 64, .3);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease-out), visibility 0s .45s;
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out), visibility 0s; }
  .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; min-height: 52px; }

  .hero { min-height: 0; }
  .hero__grid, .about, .values, .careers, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 540px; margin-top: 16px; }
  .pipeline { transform: none; }
  .hero__badge { left: auto; right: -8px; }
  .chip--verified { right: auto; left: -8px; }
  .hero__scroll { display: none; }
  .about__intro h2 { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .process ol { grid-template-columns: 1fr; gap: 0; }
  .process__rail { left: 22px; right: auto; top: 22px; bottom: 60px; width: 2px; height: auto; }
  .process__rail span { width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .process li { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .process__step { grid-row: span 2; margin-bottom: 0; }
  .process h3 { align-self: center; }
  .process p { margin-top: 4px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__inner { height: 68px; }
  .nav__brand img { height: 48px; }
  .hero__actions .btn { width: 100%; }
  .hero__points { flex-direction: column; gap: 12px; margin-top: 32px; }
  .pipeline { padding: 22px 20px 16px; border-radius: 22px; }
  .chip--verified { top: -20px; left: 12px; font-size: 13px; }
  .hero__badge { right: 12px; bottom: -28px; padding: 12px 16px; }
  .hero__badge strong { font-size: 32px; }
  .industries { flex-direction: column; align-items: stretch; }
  .industries__title { padding: 24px var(--gutter) 0; box-shadow: none; }
  .marquee { padding: 18px 0 24px; }
  .marquee__track li { font-size: 21px; padding: 0 22px; }
  .marquee__track li::after { margin-left: 44px; }
  .pillars, .services, .values__grid, .form__row, .partners { grid-template-columns: 1fr; }
  .stats li { padding: 28px 12px 0 0; }
  .stats li + li { padding-left: 20px; }
  .stats li:nth-child(3) { padding-left: 0; }
  .stats span { font-size: 12px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .careers__card { padding: 30px 24px; }
  .contact__list > div:hover { transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
