/* ============================================================
   GeminiSoft — static site CSS
   Design tokens captured from the live Wix site:
     - Primary text  : #000000
     - Secondary     : #6E6E6E / #8F8F8F
     - Accent blue   : #116dff   (Wix theme primary)
     - Accent crimson: #6B1E1C   (logo/brand)
     - Surface alt   : #F0F0F0
   Typography: Inter as the modern open replacement for Wix's
   Helvetica fallback stack — keeps the editorial neutral feel
   while loading clean from Google Fonts.
   ============================================================ */

:root {
  --c-text:        #1a0f0d;          /* near-black with warm undertone */
  --c-text-muted:  #6e5a55;
  --c-bg:          #ffffff;
  --c-bg-alt:      #faf6ef;          /* warm cream — softer than gray */
  --c-bg-deep:     #1a0f0d;          /* deep maroon-black for hero/dark sections */
  --c-bg-darker:   #100806;          /* deepest section bg */
  --c-border:      #e8dfd2;
  --c-brand:       #6b1e1c;          /* maroon — primary brand */
  --c-brand-soft:  rgba(107,30,28,.12);
  --c-accent:      #d4502a;          /* warm orange — primary CTA */
  --c-accent-soft: rgba(212,80,42,.14);
  --c-accent-hot:  #ec5e2c;          /* brighter orange for hover */
  --c-gold:        #f5b942;
  --shadow-soft:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lift:   0 24px 60px -16px rgba(0,0,0,.30);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --section-y:     clamp(72px, 10vw, 140px);
  --wrap:          1200px;
  --serif:         'Fraunces', 'Playfair Display', Georgia, serif;
  --sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  /* Reserve scrollbar gutter so navigating between pages of different heights
     never causes horizontal layout shift (a major source of perceived header flicker) */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Type scale — clean Inter sans-serif for ALL headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
h5 { font-size: 1rem; }
h6 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-muted);
}
p  { font-size: 1rem; color: #333; }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: #4a4a4a;
  max-width: 60ch;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Layout primitives ──────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
section { padding: var(--section-y) 0; position: relative; scroll-margin-top: 100px; }
.section-bg-alt { background: var(--c-bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 14px;
}
.section-title { margin-bottom: 22px; max-width: 24ch; }
.section-lede { color: var(--c-text-muted); max-width: 60ch; margin-bottom: 56px; font-size: 1.1rem; }

/* ── Floating decorative blobs ──────────────────────────────── */
/* Soft, blurred organic shapes that drift gently behind hero/feature
   sections. Pure CSS — no JS. Each blob respects prefers-reduced-motion.
   Sections containing blobs need `position: relative; overflow: hidden;`
   plus their direct content children need `position: relative; z-index: 1;`
   so the blobs sit BEHIND the content. The .has-blobs helper does that. */
.has-blobs { position: relative; overflow: hidden; }
.has-blobs > .wrap, .has-blobs > .hero-grid { position: relative; z-index: 1; }

.float-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
  animation: blobFloat 16s ease-in-out infinite;
}
.blob-gold     { background: radial-gradient(circle, rgba(245,185,66,.85), rgba(245,185,66,0) 70%); }
.blob-maroon   { background: radial-gradient(circle, rgba(107,30,28,.65),  rgba(107,30,28,0) 70%); }
.blob-accent   { background: radial-gradient(circle, rgba(212,80,42,.55),  rgba(212,80,42,0) 70%); }

/* Size variants */
.blob-sm { width: 240px; height: 240px; }
.blob-md { width: 380px; height: 380px; }
.blob-lg { width: 560px; height: 560px; }
.blob-xl { width: 760px; height: 760px; }

/* Position variants — peeking just outside the section frame */
.blob-tl { top: -160px;  left: -160px;  }
.blob-tr { top: -180px;  right: -180px; }
.blob-bl { bottom: -160px; left: -160px; }
.blob-br { bottom: -180px; right: -180px; }
.blob-cl { top: 30%; left: -260px; }
.blob-cr { top: 30%; right: -260px; }
.blob-cm { top: 30%; left: 50%; transform: translateX(-50%); }

/* Stagger animations so multiple blobs don't sync */
.float-blob.delay-1 { animation-delay: -3s;  animation-duration: 18s; }
.float-blob.delay-2 { animation-delay: -6s;  animation-duration: 14s; }
.float-blob.delay-3 { animation-delay: -9s;  animation-duration: 20s; }
.float-blob.delay-4 { animation-delay: -12s; animation-duration: 17s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0)        scale(1);    }
  25%  { transform: translate(40px, -30px) scale(1.06); }
  50%  { transform: translate(-30px, 20px) scale(0.96); }
  75%  { transform: translate(20px, 35px)  scale(1.03); }
  100% { transform: translate(0, 0)        scale(1);    }
}

/* Respect users who don't want motion — show the blobs static */
@media (prefers-reduced-motion: reduce) {
  .float-blob { animation: none; }
}

/* On smaller screens, scale blobs down so they don't dominate */
@media (max-width: 720px) {
  .blob-lg { width: 380px; height: 380px; }
  .blob-xl { width: 480px; height: 480px; }
  .float-blob { opacity: 0.4; filter: blur(50px); }
}

/* ── Header / nav (BRAND MAROON variant — matches live site) ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-brand);
  border-bottom: 1px solid rgba(255,255,255,.06);
  /* No transition on shadow — it would animate during SPA navigation
     when scroll resets to 0 and the .scrolled class is removed,
     reading as a header flash. */
}
.topbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.18); }
.topbar .inner {
  display: flex; align-items: center;
  gap: 32px; padding: 22px clamp(24px, 4vw, 48px);
  max-width: 1440px; margin: 0 auto;
  /* Lock topbar to a stable height so navigation between pages never reflows */
  min-height: 116px; box-sizing: border-box;
}
/* Brand stays left (with reserved width so nav doesn't shift before image decode),
   nav fills the middle, CTA pinned right */
.topbar .brand        { margin-right: auto; min-width: 116px; min-height: 72px; display: inline-flex; align-items: center; }
.topbar nav.nav-links { flex: 0 1 auto; margin: 0 auto; }
@media (max-width: 880px) {
  .topbar .inner { min-height: 92px; }
  .topbar .brand { min-width: 100px; min-height: 60px; }
}
@media (max-width: 720px) {
  .topbar .inner { min-height: 76px; }
  .topbar .brand { min-width: 84px; min-height: 50px; }
}
.brand {
  display: inline-flex; align-items: center; gap: 16px;
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand img { display: block; }
/* Full-lockup logo (sun + GEMINISOFT wordmark + tagline all in one PNG) */
.brand-logo { height: 72px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.28)); }
.brand-footer .brand-logo { filter: none; }
@media (max-width: 880px) {
  .brand-logo { height: 60px; }
}
@media (max-width: 720px) {
  .topbar .inner { padding: 12px clamp(16px, 4vw, 24px); gap: 12px; }
  .brand-logo { height: 50px; }
}
nav.nav-links { display: flex; gap: clamp(38px, 4.5vw, 72px); align-items: center; font-size: 1rem; font-weight: 500; }
nav.nav-links a {
  color: rgba(255,255,255,.88); padding: 8px 0; position: relative;
  transition: color .2s;
}
nav.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: right;
  transition: transform .25s;
}
nav.nav-links a:hover, nav.nav-links a.active { color: #fff; }
nav.nav-links a::after { background: var(--c-gold); }
nav.nav-links a:hover::after, nav.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  padding: 14px 30px; background: var(--c-gold); color: var(--c-text) !important;
  border-radius: 999px; font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: #ffcc66; transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(245,185,66,.45); }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  nav.nav-links { display: none; position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: #fff; padding: 24px 28px; border-bottom: 1px solid var(--c-border);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.18);
  }
  nav.nav-links.open { display: flex; }
  nav.nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav-toggle {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid rgba(255,255,255,.30); background: transparent;
  }
  .nav-toggle span { width: 18px; height: 2px; background: #fff; position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff;
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--c-text); color: #fff !important; box-shadow: 0 8px 24px -8px rgba(0,0,0,.3); }
.btn-primary:hover { background: var(--c-accent); transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--c-accent-soft); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn-ghost:hover { border-color: var(--c-text); transform: translateY(-2px); }
.btn-accent { background: var(--c-accent); color: #fff !important; }
.btn-accent:hover { background: #0f5cdb; transform: translateY(-2px); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(80px, 12vw, 160px) 0 var(--section-y);
  background: linear-gradient(180deg, #fff 0%, var(--c-bg-alt) 100%);
  position: relative;
}
.hero h1 em { font-style: italic; color: var(--c-accent); font-weight: 700; }
.hero p.lede { margin-top: 20px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4/3; background: var(--c-bg-deep);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* ── HERO video background — used inside .hero-corp ─────────── */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* slight color grade matching brand maroon undertone */
  filter: brightness(.55) saturate(1.1);
}
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,8,6,.20) 0%, rgba(16,8,6,.55) 60%, rgba(16,8,6,.85) 100%);
}

/* ── HERO-DARK variant ──────────────────────────────────────── */
/* Full-width dark hero with image background (motherboard / circuit
   pattern) and warm-orange CTA. Mirrors the live site's hero look. */
.hero-dark {
  position: relative;
  min-height: clamp(540px, 70vh, 760px);
  padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 120px);
  color: #fff;
  background-color: var(--c-bg-darker);
  background-blend-mode: multiply;
  overflow: hidden;
}
.hero-dark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,15,13,.55) 0%, rgba(26,15,13,.85) 100%);
  z-index: 1;
}
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark h1 { color: #fff; max-width: 22ch; }
.hero-dark h1 em { color: var(--c-accent); font-style: italic; }
.hero-dark .lede { color: rgba(255,255,255,.86); max-width: 60ch; margin-top: 24px; }
.hero-dark .hero-actions { margin-top: 40px; }
.hero-dark .btn-primary { background: var(--c-accent); color: #fff !important; box-shadow: 0 14px 38px -12px var(--c-accent-soft); }
.hero-dark .btn-primary:hover { background: var(--c-accent-hot); }
.hero-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-dark .eyebrow { color: var(--c-accent); }

/* ── DARK SECTION (used for services-dark + cta) ────────────── */
.section-dark {
  background: var(--c-bg-deep);
  color: #fff;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }
.section-dark .section-lede { color: rgba(255,255,255,.7); }
.section-dark .eyebrow { color: var(--c-accent); }

/* ── SERVICE CARD with image background ─────────────────────── */
/* Used inside .section-dark services row — full-bleed photo with
   dark overlay + text on top. */
.service-img-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .service-img-cards { grid-template-columns: 1fr; } }
.service-img-card {
  position: relative; aspect-ratio: 4/5; min-height: 360px;
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: flex-end; padding: 28px;
  text-align: left;
  background-size: cover; background-position: center;
  transition: transform .35s, box-shadow .35s;
}
.service-img-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,15,13,.15) 0%, rgba(26,15,13,.75) 60%, rgba(26,15,13,.92) 100%);
  z-index: 1;
}
.service-img-card > * { position: relative; z-index: 2; }
.service-img-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.service-img-card h3 { color: #fff; font-size: 1.4rem; margin: 0 0 10px; }
.service-img-card p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.55; }

/* ── STATS-SPLIT section (image stack + text + big stats) ─────────── */
.stats-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .stats-split { grid-template-columns: 1fr; } }
.stats-split-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-split-images img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.stats-split-images img:first-child { transform: translateY(20px); }
.stats-split-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.stats-split-stats .num { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 800; color: var(--c-accent); line-height: 1; }
.stats-split-stats .lbl { margin-top: 8px; color: var(--c-text-muted); font-size: .9rem; }

/* ── NEWSLETTER section ─────────────────────────────────────── */
.newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter-form { max-width: 520px; }
.newsletter-form .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .newsletter-form .row { grid-template-columns: 1fr; } }
.newsletter-form input[type="email"] {
  padding: 14px 16px; border: 1px solid var(--c-border); border-radius: 10px;
  background: #fff; font-size: 1rem; min-width: 0;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.newsletter-form .small { color: var(--c-text-muted); font-size: .85rem; margin-top: 12px; max-width: 50ch; }
.newsletter-form .check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .92rem; color: var(--c-text-muted); }
.newsletter-img { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.newsletter-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── BLOG cards ─────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.blog-card .img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.blog-card:hover .img img { transform: scale(1.05); }
.blog-card .body { padding: 22px 22px 24px; }
.blog-card .meta { font-size: .8rem; color: var(--c-text-muted); margin-bottom: 8px; letter-spacing: .04em; }
.blog-card h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.blog-card p { font-size: .9rem; color: var(--c-text-muted); line-height: 1.55; }

/* ── CTA strip — warm variant ───────────────────────────────── */
.cta-strip-warm {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-strip-warm h2 { color: #fff; }
.cta-strip-warm p { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 56ch; margin: 14px auto 32px; }
.cta-strip-warm .btn { background: #fff; color: var(--c-brand) !important; }
.cta-strip-warm .btn:hover { background: rgba(255,255,255,.92); }

/* ============================================================
   CORPORATE TEMPLATE — refined components for the
   typography-led modern engineering-consultancy aesthetic.
   Layered ON TOP of the existing components above.
   ============================================================ */

/* ── HERO-CORP ──────────────────────────────────────────────── */
/* Typography-led, editorial hero. Dark with very subtle motherboard
   accent in the corner, generous whitespace, serif h1.            */
.hero-corp {
  position: relative; overflow: hidden;
  padding: clamp(140px, 16vw, 220px) 0 clamp(96px, 12vw, 160px);
  background: var(--c-bg-darker);
  color: #fff;
  isolation: isolate;
}
.hero-corp::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(212,80,42,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(107,30,28,.45) 0%, transparent 60%);
}
/* keep .wrap content above the absolute-positioned .hero-video layer */
.hero-corp .wrap { position: relative; z-index: 1; }
/* Decorative sun emblem above headline (matches live geminisoft.in hero) */
.hero-mark {
  display: block;
  height: clamp(56px, 6.5vw, 88px); width: auto;
  margin: 0 0 24px 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.hero-corp .hero-h1 {
  font-family: var(--sans);
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  max-width: 22ch;
  margin: 0;
}
.hero-corp .lede {
  font-family: var(--sans);
  margin-top: 22px; max-width: 56ch;
  color: rgba(255,255,255,.82);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem); line-height: 1.55; font-weight: 300;
}
.hero-corp .hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
/* Gold pill CTA — same family as nav-cta, sized to feel proportional in hero */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 999px;
  background: var(--c-gold); color: var(--c-text) !important;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 12px 32px -12px rgba(245,185,66,.55);
}
.btn-cta:hover { background: #ffcc66; transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(245,185,66,.7); }
.hero-corp .btn-primary { background: var(--c-accent); color: #fff !important; box-shadow: 0 14px 38px -12px var(--c-accent-soft); }
.hero-corp .btn-primary:hover { background: var(--c-accent-hot); transform: translateY(-2px); }
.hero-corp .btn-ghost { color: #fff; border-color: rgba(255,255,255,.30); }
.hero-corp .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #fff; }

/* ── SECTION TITLE BLOCK (refined) ──────────────────────────── */
.title-block {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px); align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .title-block { grid-template-columns: 1fr; } }
.title-block h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.2;
  max-width: 22ch;
}
.title-block h2 em { font-style: normal; color: var(--c-accent); font-weight: 700; }
.title-block p { color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.65; max-width: 52ch; }

/* ── PRACTICES GRID (clean text-led cards, 2x2) ─────────────── */
.practices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 720px) { .practices-grid { grid-template-columns: 1fr; } }
.practice {
  background: #fff; padding: clamp(32px, 4vw, 48px);
  position: relative; transition: background .35s; min-height: 280px;
  display: flex; flex-direction: column;
}
.practice:hover { background: var(--c-bg-alt); }
.practice .num { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--c-accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.practice h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.25;
  margin-bottom: 14px; max-width: 18ch;
}
.practice p { color: var(--c-text-muted); font-size: 0.97rem; line-height: 1.6; flex: 1; }
.practice .arrow {
  margin-top: 24px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--c-text); display: inline-flex; align-items: center; gap: 8px;
  transition: gap .25s, color .25s;
}
.practice:hover .arrow { gap: 14px; color: var(--c-accent); }

/* ── APPROACH (4 numbered steps in horizontal flow) ─────────── */
.approach-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
@media (max-width: 880px) { .approach-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .approach-strip { grid-template-columns: 1fr; } }
.approach-step {
  padding: 32px 4px 0; border-top: 2px solid rgba(255,255,255,.16);
  position: relative;
}
.approach-step::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 32px; height: 4px; background: var(--c-accent);
}
.approach-step .step-num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 400;
  color: rgba(255,255,255,.42); line-height: 1; margin-bottom: 14px;
}
.approach-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.approach-step p { font-size: 0.92rem; color: rgba(255,255,255,.66); line-height: 1.55; }

/* Light variant — same component on a cream/white section */
.approach-light .approach-step { border-top-color: var(--c-border); }
.approach-light .approach-step .step-num { color: rgba(26,15,13,.18); }
.approach-light .approach-step h4 { color: var(--c-text); }
.approach-light .approach-step p { color: var(--c-text-muted); }

/* ── WHY-US (refined split with embedded big quote) ─────────── */
.why-us {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: stretch;
}
@media (max-width: 880px) { .why-us { grid-template-columns: 1fr; } }
.why-us-image {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  position: relative;
}
.why-us-image img { width: 100%; height: 100%; object-fit: cover; }
.why-us-text { display: flex; flex-direction: column; justify-content: center; }
.why-us-text blockquote {
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5;
  color: var(--c-text); margin: 24px 0; padding: 0 0 0 22px;
  border-left: 3px solid var(--c-accent);
}
.why-us-text blockquote cite {
  display: block; margin-top: 14px;
  font-style: normal; font-family: var(--sans); font-size: 0.82rem;
  color: var(--c-text-muted); letter-spacing: 0.10em; text-transform: uppercase; font-weight: 600;
}
.why-us-text .stats {
  border: none; padding: 0; margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-us-text .stats .num { font-size: clamp(2rem, 4vw, 2.6rem); }

/* ── INSIGHTS (editorial blog cards) ────────────────────────── */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }
.insight {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--c-border); padding-top: 24px;
  transition: opacity .25s;
}
.insight:hover { opacity: 0.78; }
.insight .meta { color: var(--c-text-muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.insight h3 {
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 12px;
}
.insight p { color: var(--c-text-muted); font-size: 0.95rem; line-height: 1.55; }
.insight .read {
  margin-top: 20px; font-size: 0.85rem; font-weight: 600;
  color: var(--c-accent); display: inline-flex; align-items: center; gap: 8px;
  transition: gap .25s;
}
.insight:hover .read { gap: 12px; }

/* ── CTA-FINAL — single elegant section ─────────────────────── */
.cta-final {
  background: var(--c-bg-darker); color: #fff;
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: left;
}
.cta-final .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
@media (max-width: 880px) { .cta-final .wrap { grid-template-columns: 1fr; align-items: start; } }
.cta-final h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.2;
  color: #fff; max-width: 22ch;
}
.cta-final h2 em { font-style: normal; color: var(--c-accent); font-weight: 700; }
.cta-final .right p { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.55; margin-bottom: 24px; }
.cta-final .right .btn-primary { background: var(--c-accent); color: #fff !important; }
.cta-final .right .btn-primary:hover { background: var(--c-accent-hot); }
.cta-final .right .btn-ghost { color: #fff; border-color: rgba(255,255,255,.30); margin-left: 10px; }
.cta-final .right .btn-ghost:hover { background: rgba(255,255,255,.06); }
.cta-final .right .meta-line { font-size: 0.84rem; color: rgba(255,255,255,.5); margin-top: 18px; letter-spacing: 0.04em; }

/* ── Generic two-column section ─────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 5/4; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse { direction: ltr; } }

/* ── Cards / grids ──────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--c-accent-soft); }
.card .icn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-accent-soft); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
/* SVG icon variant — used in About > "How we work" cards.
   Maroon brand tone, clean line-icon container. */
.card .icn-svg {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .25s, color .25s, transform .35s ease;
}
.card:hover .icn-svg {
  background: var(--c-brand); color: #fff;
  transform: scale(1.06) rotate(-2deg);
}
.card .icn-svg svg { display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: #444; }

/* ── Stats strip ────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; padding: 48px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
}
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--c-accent); line-height: 1; }
.stat .lbl { margin-top: 6px; color: var(--c-text-muted); font-size: 0.9rem; letter-spacing: 0.04em; }

/* ── List with checkmarks ───────────────────────────────────── */
ul.checklist { list-style: none; }
ul.checklist li {
  position: relative; padding: 8px 0 8px 28px; color: #2a2a2a;
}
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 14px;
  background: var(--c-accent); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq details {
  border-top: 1px solid var(--c-border); padding: 22px 0;
  cursor: pointer;
}
.faq details:last-child { border-bottom: 1px solid var(--c-border); }
.faq summary {
  font-weight: 600; font-size: 1.08rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; color: var(--c-text-muted); transition: transform .25s; }
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > div { margin-top: 14px; color: #444; font-size: 0.97rem; line-height: 1.65; }

/* ── Form ───────────────────────────────────────────────────── */
form.contact-form { display: grid; gap: 16px; max-width: 560px; }
form.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { form.contact-form .row { grid-template-columns: 1fr; } }
form.contact-form label { font-size: 0.84rem; font-weight: 600; color: var(--c-text-muted); display: block; margin-bottom: 6px; letter-spacing: 0.04em; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--c-border); border-radius: 10px;
  font: inherit; font-size: 0.95rem;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft);
}
form.contact-form button { padding: 14px 28px; }

/* ── CTA strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--c-text); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 56ch; margin: 14px auto 32px; }

/* ── Footer (4-column, professional) ────────────────────────── */
footer.site-footer {
  background: var(--c-text);
  color: #c8c1bb;
  padding: 72px 0 28px;
  position: relative;
}
footer.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,185,66,.45), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  max-width: 720px;
}
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; } }

.footer-brand .footer-wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 22px;
  transition: color .2s;
}
.footer-brand .footer-wordmark::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 28px; height: 2px;
  background: var(--c-gold);
  border-radius: 1px;
  transition: width .25s ease;
}
.footer-brand .footer-wordmark:hover { color: var(--c-gold); }
.footer-brand .footer-wordmark:hover::after { width: 56px; }

.footer-tagline {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-gold);
  letter-spacing: 0.01em;
}
.footer-tagline span { color: #b8b0a8; font-style: italic; }
.footer-blurb {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9c948e;
  max-width: 38ch;
}
.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  color: #c8c1bb;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover {
  background: var(--c-gold);
  color: var(--c-text);
  border-color: var(--c-gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none; margin: 0; padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #c8c1bb;
  font-size: 0.92rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--c-gold); }

.footer-reach address {
  font-style: normal;
  color: #9c948e;
  font-size: 0.9rem;
  line-height: 1.65;
}
.footer-reach address p { margin: 0 0 12px; }
.footer-reach address a { color: #c8c1bb; }
.footer-reach address a:hover { color: var(--c-gold); }
.footer-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--c-gold);
  color: var(--c-text) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.footer-cta:hover {
  background: #ffd066;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(245,185,66,.45);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem; color: #8c857f;
}
.footer-bottom-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-dot { color: #4a3f3a; }
.footer-bottom-right {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.footer-bottom-nav {
  display: flex; gap: 22px;
}
.footer-bottom-nav a { color: #8c857f; transition: color .2s; }
.footer-bottom-nav a:hover { color: var(--c-gold); }
/* Footer social — smaller, inline with bottom strip */
.footer-bottom-right .footer-social { gap: 8px; }
.footer-bottom-right .footer-social a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.05);
  color: #8c857f;
  border: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-right .footer-social a:hover {
  background: var(--c-gold);
  color: var(--c-text);
  border-color: var(--c-gold);
  transform: translateY(-1px);
}

/* ── Reveal / scroll animations ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Direction-aware slide-in modifiers — pair with .reveal so the
   IntersectionObserver triggers them. Use .from-left for elements
   that sit on the left of their row (slide rightward into place)
   and .from-right for elements on the right (slide leftward). */
.reveal.from-left  { transform: translateX(-80px); }
.reveal.from-right { transform: translateX(80px);  }
.reveal.from-left.in,
.reveal.from-right.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.from-left, .reveal.from-right { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none; transform: none; opacity: 1; }
}

/* ── WHO WE ARE — split image + content (matches live "Engineering Tomorrow's Technology, Today") */
.section-about { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 30px 80px -28px rgba(16,8,6,.30);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.about-image:hover img { transform: scale(1.04); }
.about-image-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(212,80,42,.18) 0%, transparent 65%);
  pointer-events: none;
}
.eyebrow-brand { color: var(--c-brand); font-weight: 700; }
.about-title {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 18px 0 22px;
  color: var(--c-text);
  max-width: 22ch;
}
.about-content p { color: var(--c-text-muted); font-size: 1.02rem; line-height: 1.7; }
.read-more-link {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 36px; padding-bottom: 10px;
  color: var(--c-text); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem;
  border-bottom: 1px solid var(--c-text);
  transition: gap .25s, color .25s, border-color .25s;
}
.read-more-link svg { transition: transform .3s; }
.read-more-link:hover { gap: 28px; color: var(--c-accent); border-color: var(--c-accent); }
.read-more-link:hover svg { transform: translateX(4px); }
@media (max-width: 880px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-image { aspect-ratio: 4 / 3; }
}

/* ── EXPLORE OUR COMPREHENSIVE IT SOLUTIONS — visual service cards */
.section-services { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.title-center {
  text-align: center;
  margin-left: auto; margin-right: auto;
  /* Override the parent .title-block 2-col grid — single column so eyebrow/h2/p stack and center cleanly */
  grid-template-columns: 1fr;
  max-width: 720px;
}
.title-center h2, .title-center p { margin-left: auto; margin-right: auto; }
.title-center h2 { max-width: none; }
.title-center p { max-width: 60ch; }
.brand-accent { color: var(--c-brand); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  display: flex; align-items: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: 100%; background-position: center;
  color: #fff;
  box-shadow: 0 24px 60px -24px rgba(16,8,6,.35);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, background-size .8s ease;
  isolation: isolate;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 32px 70px -20px rgba(16,8,6,.45); background-size: 112%; }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 55%, rgba(16,8,6,.85) 100%);
  z-index: -1;
}
.service-card-title {
  font-family: var(--sans);
  font-size: 1.18rem; font-weight: 700; line-height: 1.25;
  color: #fff; margin: 0; padding: 28px 28px 28px;
  max-width: 11ch;
}
.service-card-arrow {
  position: absolute; right: 22px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-gold); color: #2a1810;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s, background .25s;
}
.service-card:hover .service-card-arrow { transform: translate(4px, -4px); background: #ffcc66; }

/* ── WANT TO STAY UPDATED? — newsletter + lifestyle photo */
.section-newsletter { background: #faf6ee; overflow: hidden; }
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 0;
  max-width: 1440px; margin: 0 auto;
}
.newsletter-content { padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 72px); }
.newsletter-content h2 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--c-text);
}
.newsletter-content > p { color: var(--c-text-muted); max-width: 50ch; line-height: 1.65; }
.newsletter-form { margin-top: 40px; }
.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .newsletter-fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.84rem; color: var(--c-text); font-weight: 500; }
.field input {
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(107,30,28,.12); }
.newsletter-consent {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 0.92rem; color: var(--c-text-muted);
}
.newsletter-consent input { width: 18px; height: 18px; }
.btn-newsletter-submit {
  display: block; width: 100%;
  margin-top: 22px; padding: 16px 24px;
  background: var(--c-brand); color: #fff;
  border: none; border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .2s;
}
.btn-newsletter-submit:hover { background: #8a2a26; transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(107,30,28,.45); }
/* Right-column portrait. Constrained aspect + max-height so it never stretches
   to the full grid-row height (the form column is naturally taller). */
.newsletter-image {
  align-self: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f7eedb;       /* peach undertone matches the portrait bg */
}
.newsletter-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 25%;   /* keep face nicely framed */
  transition: transform 1.4s ease;
}
.newsletter-image:hover img { transform: scale(1.04); }
@media (max-width: 880px) {
  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-image {
    margin: 0 clamp(20px, 5vw, 40px) clamp(40px, 6vw, 60px);
    max-height: 420px;
  }
}

/* ── OUR BLOG (home page) ───────────────────────────────────── */
.section-blog { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.section-blog .title-block { margin-bottom: 56px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--c-text);
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -28px rgba(16,8,6,.20);
  border-color: var(--c-gold);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.blog-card:hover .blog-card-image img { transform: scale(1.06); }

.blog-card-body { padding: 24px 26px 28px; }

.blog-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: var(--c-text-muted);
  margin-bottom: 14px;
}
.blog-card-author {
  position: relative; padding-left: 26px;
  font-weight: 600; color: var(--c-text);
}
.blog-card-author::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b1e1c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") no-repeat center;
}
.blog-card-sep { color: var(--c-border); }
.blog-card-meta time { color: var(--c-text-muted); }

.blog-card-body h3 {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin: 0 0 12px;
  /* Clamp to 3 lines to keep cards equal height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CAREERS PAGE COMPONENTS ────────────────────────────────── */
/* Hero stats strip below the lede */
.hero-stats {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--c-border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: 1fr; gap: 18px; } }
.hero-stats div { color: var(--c-text-muted); font-size: 0.9rem; }
.hero-stats strong {
  display: block; color: var(--c-text); font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 4px;
}

/* "Life at GeminiSoft" perks list */
.perks-list { list-style: none; padding: 0; margin: 28px 0 0 0; }
.perks-list li {
  position: relative; padding: 12px 0 12px 36px;
  color: var(--c-text-muted); line-height: 1.55;
  border-bottom: 1px solid var(--c-border);
}
.perks-list li:last-child { border-bottom: none; }
.perks-list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5L4.5 9L10 3' stroke='%23100806' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.perks-list strong { color: var(--c-text); margin-right: 6px; }

/* Role-section subheadings */
.role-section-title {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.35rem; font-weight: 700; color: var(--c-text);
  margin: 56px 0 28px 0;
  letter-spacing: -0.01em;
}
.role-section-count {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  padding: 5px 12px; border-radius: 999px;
}

/* Job card grid */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.job-card-wide { grid-column: 1 / -1; }

/* Individual job card */
.job-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.2vw, 40px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -28px rgba(16,8,6,.18);
  border-color: var(--c-gold);
}

/* Top metadata badges */
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.job-badge {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--c-border); color: var(--c-text-muted);
  background: #fff;
}
.job-badge-type { background: var(--c-brand-soft); color: var(--c-brand); border-color: transparent; }
.job-badge-fulltime { background: var(--c-gold); color: #2a1810; border-color: transparent; }

/* Title + summary */
.job-title {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--c-text); margin: 0 0 12px;
}
.job-summary { color: var(--c-text-muted); line-height: 1.55; margin: 0 0 28px; max-width: 56ch; }

/* Inner two-column "What you'll do / You bring" */
.job-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 600px) { .job-grid-inner { grid-template-columns: 1fr; gap: 24px; } }
.job-grid-inner h4 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-text); margin: 0 0 14px;
}
.job-grid-inner ul { list-style: none; padding: 0; margin: 0; }
.job-grid-inner li {
  position: relative; padding: 6px 0 6px 22px;
  color: var(--c-text-muted); font-size: 0.97rem; line-height: 1.55;
}
.job-grid-inner li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}

/* Apply CTA — full-width inside card, gold accent */
.job-apply {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 26px;
  background: var(--c-text); color: #fff !important;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  transition: gap .25s, background .25s, transform .2s, box-shadow .2s;
}
.job-apply svg { transition: transform .25s; }
.job-apply:hover {
  background: var(--c-brand);
  gap: 22px;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(107,30,28,.45);
}
.job-apply:hover svg { transform: translateX(2px); }

/* Hero variant tweaks for careers page (light theme already in .hero) */
.hero .hero-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 80px -28px rgba(16,8,6,.30); }
.hero .hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.hero .hero-image:hover img { transform: scale(1.04); }

/* ── CAREERS — Life at GeminiSoft (culture / WLB block) ────── */
.eyebrow-gold { color: var(--c-gold); font-weight: 700; }

.life-section { padding: clamp(72px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); }
.life-copy-wide { max-width: 1040px; }
.life-copy-wide h2 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 14px 0 22px;
  color: var(--c-text);
}
.life-lede {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 70ch;
}
.life-points-row {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.life-points-row li {
  position: relative;
  padding: 24px 22px 22px 22px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  color: var(--c-text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.life-points-row li::before {
  content: "";
  display: block;
  width: 28px; height: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--c-brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1e1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}
.life-points-row strong {
  display: block;
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.02rem;
}
@media (max-width: 880px) {
  .life-points-row { grid-template-columns: 1fr; }
}

/* Careers — group team photo as the page hero (no caption, full-width band) */
.careers-photo-hero { padding: clamp(20px, 2.4vw, 32px) 0 0; }
.team-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
  position: relative;
  background: var(--c-text);
}
.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 20 / 9;
  object-fit: cover;
}
@media (max-width: 720px) {
  .team-photo img { aspect-ratio: 4 / 3; }
}

/* Buttons row inside the Life-at section */
.life-actions { margin-top: 36px; }

/* Role-tile experience + vacancy stats (atliq-inspired) */
.role-stats {
  display: inline-flex;
  gap: 28px;
  margin: 8px 0 14px;
  padding: 0;
}
.role-stat {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.role-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: -0.01em;
}
.role-stat span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* ── CAREERS v2 — minimal job board + inline apply form ────── */
.hero-careers { padding-bottom: clamp(40px, 5vw, 64px); }
.careers-hero { max-width: 720px; }
.careers-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.careers-hero .lede { font-size: 1.05rem; line-height: 1.55; max-width: 60ch; }
.careers-hero .hero-actions { margin-top: 28px; }

/* Openings header — atliq-style "Open Positions" intro */
.openings-header { max-width: 720px; margin-bottom: 36px; }
.openings-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--c-text);
}
.openings-lede {
  color: var(--c-text-muted); font-size: 1.05rem;
  line-height: 1.55; max-width: 60ch;
}

/* Role grid — 3-up card layout */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .role-grid { grid-template-columns: 1fr; } }

/* Individual role card */
.role-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 28px 26px 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .25s, transform .2s;
}
.role-card:hover { border-color: var(--c-accent-soft); box-shadow: var(--shadow-soft); }
.role-card.open {
  grid-column: 1 / -1;
  background: #fff;
  border-color: var(--c-brand-soft);
  box-shadow: 0 8px 28px rgba(107,30,28,.10);
}

.role-card-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 18px;
}
.role-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.role-icon svg { width: 24px; height: 24px; }
.role-card-title-block { min-width: 0; }
.role-card-title {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700; letter-spacing: -0.015em;
  margin: 0; color: var(--c-text);
  line-height: 1.25;
}
.role-card-sub {
  margin: 4px 0 0;
  color: var(--c-text-muted);
  font-size: 0.84rem; letter-spacing: 0.01em;
}

/* Stats row inside card */
.role-card-stats {
  display: flex; flex-wrap: wrap; gap: 22px 32px;
  margin: 0 0 18px;
  padding: 0;
}
.role-card-stats > div { display: inline-flex; align-items: baseline; gap: 6px; }
.role-card-stats dt {
  font-size: 0.86rem;
  color: var(--c-text-muted);
  font-weight: 500;
  margin: 0;
}
.role-card-stats dd {
  font-size: 0.95rem;
  color: var(--c-text);
  font-weight: 700;
  margin: 0;
}

.role-card-divider {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 4px 0 18px;
}
.role-card.open .role-card-divider { border-top-color: var(--c-brand-soft); }

.role-card-more {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--c-brand);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: var(--c-brand-soft);
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.role-card-more:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.role-card-more svg { transition: transform .3s; }
.role-card.open .role-card-more svg { transform: rotate(90deg); }
.role-card.open .role-card-more::before { content: "Hide details"; }
.role-card.open .role-card-more { font-size: 0; line-height: 0; }
.role-card.open .role-card-more::before { font-size: 0.95rem; line-height: 1; }
.role-card.open .role-card-more svg { width: 14px; height: 14px; }

/* Collapsible role detail */
.role-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1);
}
.role-card.open .role-detail { grid-template-rows: 1fr; margin-top: 22px; }
.role-card-summary {
  color: var(--c-text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 70ch;
}

/* Important Note — scam warning footer */
.openings-note {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-accent);
  border-radius: 6px;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.openings-note strong { color: var(--c-accent); font-weight: 700; }
.openings-note a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.role-detail-inner {
  min-height: 0;
  overflow: hidden;
}
.role-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding-bottom: 24px;
}
@media (max-width: 720px) { .role-cols { grid-template-columns: 1fr; gap: 24px; } }
.role-cols h4 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-text); margin: 0 0 12px;
}
.role-cols ul { list-style: none; padding: 0; margin: 0; }
.role-cols li {
  position: relative; padding: 6px 0 6px 22px;
  color: var(--c-text-muted); font-size: 0.96rem; line-height: 1.55;
}
.role-cols li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}

/* Apply form — used inline on each role + on the open application section */
.apply-form-mount { padding-bottom: 40px; }
#open-application .apply-form-mount { max-width: 720px; margin: 32px auto 0; }
.apply-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
}

/* File upload area */
.apply-upload-block { margin-bottom: 24px; }
.apply-upload {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  border: 1.5px dashed var(--c-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.apply-upload:hover { border-color: var(--c-brand); background: var(--c-bg-alt); }
.apply-upload input[type="file"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-upload-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.apply-upload[data-state="parsing"] .apply-upload-icon {
  animation: pulse 1.2s ease-in-out infinite;
}
.apply-upload[data-state="ready"] .apply-upload-icon {
  background: rgba(46, 160, 67, .15);
  color: rgb(46, 160, 67);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.7; }
}
.apply-upload-text { display: flex; flex-direction: column; gap: 4px; }
.apply-upload-title { font-size: 1rem; color: var(--c-text); }
.apply-upload-hint  { font-size: 0.86rem; color: var(--c-text-muted); }

.apply-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(220, 50, 50, .08);
  color: rgb(180, 40, 40);
  border-radius: 8px;
  font-size: 0.92rem;
}
.apply-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(46, 160, 67, .12);
  color: rgb(35, 110, 50);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form grid */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.apply-grid-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .apply-grid { grid-template-columns: 1fr; } }
.apply-grid .field { display: flex; flex-direction: column; gap: 6px; }
.apply-grid .field span { font-size: 0.84rem; color: var(--c-text); font-weight: 500; }
.apply-grid input,
.apply-grid textarea {
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: #fff; color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.apply-grid input:focus,
.apply-grid textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.apply-grid textarea { resize: vertical; min-height: 80px; }

.apply-actions { display: flex; flex-direction: column; gap: 12px; }
.apply-submit { align-self: flex-start; }
.apply-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── CONTACT PAGE v2 — image-led hero + form/sidebar grid ───── */
.contact-hero { padding: clamp(60px, 7vw, 90px) 0 clamp(48px, 6vw, 72px); }
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.contact-hero-copy h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin: 14px 0 18px;
  color: var(--c-text);
}
.contact-hero-copy .lede { font-size: 1.08rem; line-height: 1.6; max-width: 60ch; color: var(--c-text-muted); }
.contact-hero-points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-hero-points li {
  position: relative;
  padding: 0 0 0 28px;
  color: var(--c-text-muted);
  font-size: 0.97rem; line-height: 1.5;
}
.contact-hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1e1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.contact-hero-points strong { color: var(--c-text); font-weight: 700; margin-right: 4px; }

.contact-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.10);
  aspect-ratio: 4 / 3;
}
.contact-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px) {
  .contact-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-hero-image { aspect-ratio: 5 / 4; }
}

/* Human-support band — real person, real replies */
.contact-human { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.contact-human-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.contact-human-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  aspect-ratio: 4 / 5;
  max-width: 480px;
}
.contact-human-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-human-copy h2 {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 18px;
  color: var(--c-text);
}
.contact-human-copy p {
  color: var(--c-text-muted);
  font-size: 1.04rem;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 0 24px;
}
.contact-human-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-brand);
  font-weight: 600; font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-brand-soft);
  transition: color .2s, text-decoration-color .2s, gap .2s;
}
.contact-human-cta:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); gap: 12px; }
@media (max-width: 880px) {
  .contact-human-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-human-image { max-width: 100%; aspect-ratio: 5 / 4; }
}

/* Form + sidebar grid */
.contact-form-section { padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 100px); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

.contact-form-block {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.contact-form-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700; letter-spacing: -0.015em;
  margin: 0 0 8px; color: var(--c-text);
}
.contact-form-sub {
  color: var(--c-text-muted);
  margin: 0 0 28px;
  font-size: 0.98rem; line-height: 1.55;
}
.contact-form-v2 { display: grid; gap: 18px; }
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }
.contact-form-v2 .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form-v2 .field > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.01em;
}
.contact-form-v2 .field em {
  font-style: normal;
  color: var(--c-text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.contact-form-v2 input,
.contact-form-v2 select,
.contact-form-v2 textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form-v2 input:focus,
.contact-form-v2 select:focus,
.contact-form-v2 textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.contact-form-v2 textarea { resize: vertical; min-height: 120px; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  font-size: 0.98rem; font-weight: 600;
}
.contact-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.contact-error {
  margin: 0;
  color: #b21f24;
  font-size: 0.92rem;
  font-weight: 500;
}
.contact-success {
  margin: 0;
  padding: 12px 16px;
  background: rgba(46, 160, 67, .10);
  color: #1f7a30;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Sidebar */
.contact-sidebar {
  display: flex; flex-direction: column;
  gap: 16px;
  position: sticky; top: 100px;
}
@media (max-width: 880px) { .contact-sidebar { position: static; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px 24px;
}
.contact-card-eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 12px;
}
.contact-address {
  font-style: normal;
  color: var(--c-text);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.contact-address strong { font-weight: 700; }
.contact-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-brand);
  font-size: 0.92rem; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-brand-soft);
  transition: color .2s, text-decoration-color .2s;
}
.contact-card-link:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.contact-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.contact-phone:hover { color: var(--c-brand); }
.contact-card-fineprint {
  margin: 6px 0 0;
  color: var(--c-text-muted);
  font-size: 0.86rem;
}
.contact-socials {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-socials a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--c-text);
  font-size: 0.96rem; font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s;
}
.contact-socials a:hover { color: var(--c-brand); }
.contact-socials svg { color: var(--c-brand); }

/* ── Long-form / legal pages ────────────────────────────────── */
.legal {
  max-width: 800px; margin: 0 auto;
  padding-top: clamp(60px, 8vw, 100px);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.legal .updated { color: var(--c-text-muted); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal p, .legal li { font-size: 0.97rem; line-height: 1.7; color: #2a2a2a; }
.legal ul, .legal ol { padding-left: 24px; margin: 12px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Blog card "Read article" arrow ─────────────────────────── */
.blog-card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  transition: transform .25s, color .2s;
}
.blog-card:hover .blog-card-cta { transform: translateX(4px); color: var(--c-accent-hot); }

/* ── Long-form article (blog detail pages) ──────────────────── */
.article {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, #fff 220px);
  padding: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 110px);
}
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.article-back {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  transition: color .2s, transform .2s;
}
.article-back:hover { color: var(--c-accent); transform: translateX(-3px); }

.article-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin: 0 0 24px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
}
.article-author {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--c-text);
}
.article-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-brand); color: #fff;
  font-family: var(--serif);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.article-sep { color: var(--c-border); }

.article-cover {
  margin: 36px 0 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-alt);
  box-shadow: 0 24px 60px -28px rgba(16,8,6,.30);
}
.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body { color: #2a2a2a; }
.article-body .lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0 0 32px;
  font-weight: 500;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: 48px 0 18px;
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
  margin: 32px 0 12px;
}
.article-body p,
.article-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2a2a2a;
}
.article-body p { margin: 0 0 18px; }
.article-body ul,
.article-body ol { padding-left: 22px; margin: 14px 0 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--c-text); font-weight: 700; }
.article-body em { color: var(--c-brand); font-style: italic; }

.article-cta {
  margin: 44px 0 0;
  padding: 32px 36px;
  background: var(--c-text); color: #f4ece4;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,185,66,.18), transparent 65%);
  pointer-events: none;
}
.article-cta h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 12px;
}
.article-cta p {
  margin: 0 0 20px;
  color: #c8c1bb;
  line-height: 1.65;
  position: relative; z-index: 1;
}
.article-cta .btn-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--c-gold);
  color: var(--c-text) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative; z-index: 1;
}
.article-cta .btn-cta:hover {
  background: #ffd066;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(245,185,66,.45);
}

.article-nav {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border);
}
.article-nav h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 18px;
}
.article-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .article-nav-grid { grid-template-columns: 1fr; } }
.article-nav-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.article-nav-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
  box-shadow: 0 18px 40px -20px rgba(212,80,42,.25);
}
.article-nav-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.article-nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}

/* ── Newsletter — international upgrades ────────────────────── */
.newsletter-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}
.newsletter-perks {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; gap: 10px;
  max-width: 50ch;
}
.newsletter-perks li {
  position: relative; padding-left: 28px;
  font-size: 0.94rem; color: var(--c-text); line-height: 1.5;
}
.newsletter-perks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent-soft) 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='%23d4502a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.field span em { color: var(--c-text-muted); font-style: normal; font-weight: 400; }
.field-phone { grid-column: span 1; }

/* Phone input with country picker */
.phone-input {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 8px;
}
.phone-country-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 50px;
  white-space: nowrap;
}
.phone-country-btn:hover { border-color: var(--c-brand); }
.phone-country-btn:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(107,30,28,.12); }
.phone-country-btn[aria-expanded="true"] { border-color: var(--c-brand); }
.phone-flag {
  font-size: 1.15rem; line-height: 1;
  /* Help iOS/macOS render emoji flags consistently */
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji', sans-serif;
}
.phone-dial { font-variant-numeric: tabular-nums; color: var(--c-text-muted); font-size: 0.92rem; }
.phone-country-btn svg { color: var(--c-text-muted); margin-left: 2px; }

.phone-input input[type="tel"] {
  /* The .field input baseline rule already handles padding/border */
  width: 100%;
}

.phone-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: min(340px, 100%);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 28px 60px -28px rgba(16,8,6,.30), 0 4px 12px rgba(16,8,6,.06);
  overflow: hidden;
  max-height: 360px;
  flex-direction: column;
  display: flex;
}
/* Native [hidden] must beat display:flex above */
.phone-dropdown[hidden] { display: none !important; }

.phone-search-wrap {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}
.phone-search-icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
  z-index: 1;
}
/* Selector specificity bumped so it wins over `.field input` (0,1,1). */
.phone-search-wrap input.phone-search {
  width: 100%;
  margin: 0;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--sans); font-size: 0.92rem;
  background: #fff;
  min-height: 0;
}
.phone-search-wrap input.phone-search:focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(107,30,28,.12);
}

.phone-list {
  list-style: none; margin: 0; padding: 6px 0;
  overflow-y: auto;
  max-height: 280px;
}
.phone-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background .12s;
}
.phone-list li:hover,
.phone-list li:focus {
  background: var(--c-bg-alt);
  outline: none;
}
.pl-flag {
  font-size: 1.05rem; line-height: 1;
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji', sans-serif;
}
.pl-name { color: var(--c-text); }
.pl-dial {
  color: var(--c-text-muted); font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}
.phone-empty {
  padding: 16px; margin: 0;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* Submit button refinements */
.btn-newsletter-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto;
  padding: 14px 28px;
}
.btn-newsletter-submit svg { transition: transform .25s; }
.btn-newsletter-submit:hover svg { transform: translateX(3px); }

.newsletter-status {
  margin: 12px 0 0; font-size: 0.88rem;
  min-height: 18px;
}
.newsletter-status.ok { color: #2eaa57; }
.newsletter-status.err { color: #c53b37; }

.newsletter-fineprint {
  margin: 14px 0 0;
  font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.55;
}
.newsletter-fineprint a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }

/* Make phone field span 2 cols on the 3-col grid so the picker fits cleanly */
@media (min-width: 761px) {
  .newsletter-fields { grid-template-columns: 1fr 1fr; }
  .field-phone { grid-column: 1 / -1; max-width: 420px; }
}
