/* =====================================================================
   Patigo Software — Design System & Styles
   Palette + type from Patigo-Design-Guide.txt. Orange for actions only.
   Reference feel: Linear / Stripe / Vercel.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy:        #1b2c5a;
  --navy-soft:   #2a3f74;
  --body:        #475569;
  --muted:       #64748B;
  --disabled:    #94A3B8;

  --accent-start: #F59E0B;
  --accent-end:   #F97316;
  --accent-hover: #EA580C;
  --accent-grad:  linear-gradient(135deg, #F59E0B 0%, #F97316 100%);

  --bg:        #FCFCFD;
  --bg-alt:    #F8FAFC;
  --card:      #FFFFFF;
  --border:    #E2E8F0;
  --border-h:  #CBD5E1;

  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;

  /* Type */
  --font: "Manrope", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing scale (4/8) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius — 4px everywhere; --r-full stays pill-shaped for buttons only */
  --r-sm: 4px; --r: 4px; --r-lg: 4px; --r-full: 999px;

  /* Soft shadows only */
  --sh-sm: 0 1px 2px rgba(26,34,56,.05), 0 1px 3px rgba(26,34,56,.04);
  --sh:    0 4px 16px rgba(26,34,56,.06), 0 1px 3px rgba(26,34,56,.05);
  --sh-lg: 0 18px 50px -12px rgba(26,34,56,.16), 0 6px 18px rgba(26,34,56,.06);
  --sh-accent: 0 10px 28px -8px rgba(249,115,22,.45);

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -0.03em; }
strong { color: var(--navy); font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }

/* fluid type scale */
.h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem); letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--body); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-hover);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 4px;
  background: var(--accent-grad);
}
.text-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--r-full);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--sh-accent); }
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(249,115,22,.55); transform: translateY(-2px); }
.btn-secondary { background: var(--card); color: var(--navy); border: 1px solid var(--border-h); box-shadow: var(--sh-sm); }
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost { color: var(--navy); padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s, box-shadow .3s;
  background: rgba(252,252,253,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { box-shadow: inset 0 -1px 0 var(--border), 0 1px 0 rgba(26,34,56,.02); }

/* Dark header — stays dark on the home page, at the top AND while scrolling.
   The hero is pulled up under the sticky header (see .hero-dark below) so the
   transparent header reveals the dark hero behind it at the top of the page. */
.site-header.on-dark {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* once scrolled, give the dark header a solid navy blur backdrop + subtle divider
   so content stays legible sliding underneath it */
.site-header.on-dark.scrolled {
  background: rgba(15,28,61,.82);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(0,0,0,.2);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header.on-dark .nav-links a { color: rgba(255,255,255,.82); }
.site-header.on-dark .nav-links a:hover,
.site-header.on-dark .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.site-header.on-dark .nav-toggle span { background: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 45px; width: auto; }
/* Logo swap: light logo (dark ink) by default; dark logo (white ink) on the dark header.
   The dark home header stays dark even when scrolled, so it keeps the dark logo throughout. */
.brand .logo-dark { display: none; }
.site-header.on-dark .brand .logo-light { display: none; }
.site-header.on-dark .brand .logo-dark { display: inline-block; }
/* while the mobile menu is open on the dark header, the bar turns light -> use the light logo */
.site-header.on-dark.open .brand .logo-light { display: inline-block; }
.site-header.on-dark.open .brand .logo-dark { display: none; }
.nav-links { display: flex; align-items: center; gap: var(--s-2); }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--body);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-links a.active { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 4px; margin: 4px auto; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-sm { padding-block: clamp(48px, 5vw, 80px); }
.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: var(--s-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head p { margin-top: var(--s-4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Atmospheric stock photo behind the hero, calibrated for a DARK image.
   Add a file at assets/hero.jpg — until then this layer is invisible (no broken image).
   The photo sits on the right; a diagonal mask fades it into the near-white background
   so the left-side headline & body stay perfectly legible. */
.hero-photo {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 0; pointer-events: none;
  width: 60%;                       /* photo lives on the right portion of the hero */
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  opacity: 1;
  /* feather the left edge so the photo melts into the dark hero instead of a hard box */
  -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 100%);
  mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}
/* dark wash blending the photo into the navy hero on its left seam only */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0f1c3d 0%, rgba(15,28,61,.5) 14%, transparent 34%);
}

/* ===== Dark hero variant (home) — lets a dark photo shine ===== */
.hero.hero-dark {
  background: #0f1c3d;
  /* pull the hero up under the sticky header so a transparent header
     shows the dark hero behind it, then pad the content back down */
  margin-top: -72px;
  padding-top: calc(72px + clamp(56px, 7vw, 96px));
}
.hero.hero-dark .hero-glow {
  background: radial-gradient(ellipse at center, rgba(249,115,22,.28), rgba(245,158,11,.08) 42%, transparent 72%);
}
.hero.hero-dark h1 { color: #fff; }
.hero.hero-dark .lead { color: rgba(255,255,255,.72); }
.hero.hero-dark .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.hero.hero-dark .pill .tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); }
.hero.hero-dark .btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.hero.hero-dark .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
/* dark-hero floating tiles: glassy on navy */
.hero.hero-dark .tile { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
/* recolor navy icon strokes/fills to white on the dark hero (orange accents stay) */
.hero.hero-dark .tile svg[stroke="#1b2c5a"] { stroke: #fff; }
.hero.hero-dark .tile svg path[stroke="#1b2c5a"],
.hero.hero-dark .tile svg circle[stroke="#1b2c5a"] { stroke: #fff; }
.hero.hero-dark .tile svg path[fill="#1b2c5a"],
.hero.hero-dark .tile svg circle[fill="#1b2c5a"] { fill: #fff; }
.hero-glow {
  position: absolute; z-index: 0; top: -20%; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(249,115,22,.14), rgba(245,158,11,.05) 40%, transparent 70%);
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 860px; }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .85rem; font-weight: 700; color: var(--navy);
  background: var(--card); border: 1px solid var(--border);
  padding: 7px 8px 7px 14px; border-radius: var(--r-full); box-shadow: var(--sh-sm);
  margin-bottom: var(--s-6);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.pill .tag { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .04em;
  background: var(--bg-alt); padding: 3px 9px; border-radius: var(--r-full); }
.hero-eyebrow { margin-bottom: var(--s-5); }
/* brighter accent on the dark hero so the eyebrow pops */
.hero.hero-dark .hero-eyebrow { color: #FDBA74; }
.hero.hero-dark .hero-eyebrow::before { background: var(--accent-grad); }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { max-width: 620px; margin-bottom: var(--s-7); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Signature: floating game-tile field */
.tile-field { position: absolute; inset: 0; z-index: 0; }
.tile {
  position: absolute; border-radius: 4px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--sh);
  display: grid; place-items: center;
  animation: floaty var(--dur, 9s) var(--ease) infinite alternate;
  animation-delay: var(--delay, 0s);
  opacity: .9;
}
.tile svg { width: 42%; height: 42%; }
.tile.accent { background: var(--accent-grad); border-color: transparent; box-shadow: var(--sh-accent); }
@keyframes floaty {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-22px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

/* ---------- Trust bar / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.stat { text-align: center; padding: var(--s-5) var(--s-3); }
.stat .num { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.stat .num em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: var(--s-3); font-size: .9rem; color: var(--muted); font-weight: 600; }
.stat + .stat { border-left: 1px solid var(--border); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-h); }
.card .icon {
  width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(249,115,22,.12));
  color: var(--accent-hover); margin-bottom: var(--s-5);
}
.card .icon svg { width: 26px; height: 26px; }

/* Card cover image — a 16:9 strip flush to the card's top edge */
.card .card-media {
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5);
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: #0f1c3d;
}
.card .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: .98rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-5); font-weight: 700; color: var(--navy); font-size: .95rem; }
.card-link:hover { color: var(--accent-hover); }
.card-link .arrow { transition: transform .2s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(3px); }

/* ---------- Value / feature list ---------- */
.value { display: flex; gap: var(--s-4); align-items: flex-start; }
.value .tick { flex: none; width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center;
  background: rgba(16,185,129,.1); color: var(--success); }
.value h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value p { font-size: .96rem; }

/* ---------- Portfolio cover cards ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.work-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--card);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--border-h); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; }
.cover-mark { position: relative; z-index: 2; text-align: center; padding: var(--s-5); }
.cover-mark .cover-title { font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.cover-mark .cover-sub { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.cover::after { /* subtle mesh dots */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cover-1 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.cover-2 { background: linear-gradient(135deg, #1b2c5a, #2a3f74); }
.cover-3 { background: linear-gradient(135deg, #EC4899, #F97316); }
.cover-4 { background: linear-gradient(135deg, #6366F1, #1b2c5a); }
.cover-5 { background: linear-gradient(135deg, #EC4899, #A855F7); }

/* Cover with a real screenshot: image fills, hover zoom, hide the dot mesh */
.cover.has-img { background: #0f1c3d; }
.cover.has-img::after { display: none; }
.cover.has-img img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.work-card:hover .cover.has-img img { transform: scale(1.04); }
.work-body { padding: var(--s-5) var(--s-5) var(--s-6); flex: 1; display: flex; flex-direction: column; }
.work-body h3 { margin-bottom: 6px; }
.work-body p { font-size: .96rem; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-3) 0 var(--s-5); }
.badge {
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border);
}
.badge.hot { background: rgba(249,115,22,.1); color: var(--accent-hover); border-color: rgba(249,115,22,.2); }
.work-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: .95rem; margin-top: auto; }
.work-link:hover { color: var(--accent-hover); }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.chip {
  font-weight: 700; font-size: .9rem; color: var(--body);
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--card); transition: .18s;
}
.chip:hover { border-color: var(--border-h); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Alternating service blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
.split + .split { margin-top: var(--s-9); }
.split.reverse .split-visual { order: -1; }
.split-visual {
  border-radius: var(--r-lg); aspect-ratio: 4/3; border: 1px solid var(--border);
  box-shadow: var(--sh); position: relative; overflow: hidden; display: grid; place-items: center;
}
.split-list { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.split-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .98rem; }
.split-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,185,129,.12); color: var(--success); margin-top: 2px; }
.split-list .tick svg { width: 13px; height: 13px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; }
.step { position: relative; }
.step .n { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--accent-hover); margin-bottom: var(--s-3); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .93rem; }
.step::before { content: ""; position: absolute; top: 9px; left: 0; width: 34px; height: 2px; background: var(--accent-grad); border-radius: 4px; }
.step { padding-top: var(--s-5); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 4px; background: var(--navy); color: #fff; padding: clamp(40px, 5vw, 72px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 540px; margin: var(--s-4) auto var(--s-7); }
.cta-band .glow {
  position: absolute; z-index: 0; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.4), transparent 65%);
  top: -50%; right: -8%; pointer-events: none;
}
.cta-band .container-inner { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: start; }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: .9rem; margin-bottom: var(--s-2); }
.field input, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 13px 15px; font-size: 1rem; color: var(--navy); transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--disabled); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-start); box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.field textarea { resize: vertical; min-height: 140px; }
.info-card { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s-7); box-shadow: var(--sh-lg); }
.info-card h3 { color: #fff; margin-bottom: var(--s-2); }
.info-card .company { color: rgba(255,255,255,.66); font-size: .95rem; margin-bottom: var(--s-6); }
.info-row { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-top: 1px solid rgba(255,255,255,.1); }
.info-row .ic { flex: none; width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--accent-start); }
.info-row .k { font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.info-row .v { color: #fff; font-weight: 600; }
.info-row .v a:hover { color: var(--accent-start); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding-top: var(--s-9); }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-8); }
.footer-brand img { height: 32px; margin-bottom: var(--s-4); }
.footer-brand p { font-size: .95rem; max-width: 320px; }
/* social icons */
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); transition: color .18s, background .18s, border-color .18s, transform .18s var(--ease);
}
.footer-social a:hover { color: #fff; background: rgba(249,115,22,.2); border-color: rgba(249,115,22,.4); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; color: rgba(255,255,255,.62); transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-5) 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom .made { color: rgba(255,255,255,.4); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero .hero-glow { height: 420px; }
.page-hero-inner { max-width: 760px; position: relative; z-index: 2; }
.page-hero h1 { margin: var(--s-4) 0 var(--s-5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Dark-hero photo: on narrow screens it sits full-width behind the content,
     anchored to the bottom, with a strong navy veil so text stays legible. */
  .hero.hero-dark .hero-photo {
    width: 100%; background-position: right bottom;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
    mask-image: linear-gradient(to top, #000 55%, transparent 100%);
    opacity: .55;
  }
  .hero.hero-dark .hero-photo::after {
    background: linear-gradient(180deg, #0f1c3d 8%, rgba(15,28,61,.55) 45%, rgba(15,28,61,.35) 100%);
  }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--s-6); }
  .split.reverse .split-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--s-5) var(--s-6); box-shadow: var(--sh-lg);
  }
  .site-header.open .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .site-header.open .nav-links .btn { display: inline-flex; margin-top: var(--s-3); }
  /* opened mobile menu on the dark home header: give the whole bar a light panel
     so the dropdown, logo and toggle all read against a consistent light surface */
  .site-header.on-dark.open {
    background: var(--card);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 -1px 0 var(--border);
  }
  .site-header.on-dark.open .nav-links a { color: var(--body); }
  .site-header.on-dark.open .nav-links a:hover,
  .site-header.on-dark.open .nav-links a.active { color: var(--navy); background: var(--bg-alt); }
  .site-header.on-dark.open .brand img { filter: none; }
  .site-header.on-dark.open .nav-toggle span { background: var(--navy); }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--border); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .grid-3, .grid-2, .work { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-band .btn, .page-hero .btn { width: auto; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { transition-duration: .01ms !important; }
}
