/* ============================================================
   HIRE NEXT — Editorial Consultancy Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Navy retained for buttons, headers, hero backgrounds only */
  --navy-950: #050b26;
  --navy-900: #0a1340;
  --navy-800: #14215c;
  --navy-700: #2d2d8e;
  /* Aqua/cyan = primary accent */
  --cyan-500: #00a3c4;
  --cyan-400: #2bbdde;
  --cyan-300: #7fd5ed;
  --cyan-50:  #e6f7fb;
  /* Cream tokens repurposed as neutral whites (kept for compatibility) */
  --cream-50:  #ffffff;
  --cream-100: #f6fafc;
  --cream-200: #eef4f8;
  --cream-300: #d9e3eb;
  /* Ink scale tilted bluer to match aqua/blue theme */
  --ink-900: #0a1340;
  --ink-700: #232842;
  --ink-500: #4a5275;
  --ink-400: #7b85a1;
  --ink-300: #aab4c8;
  --line:    #e5edf3;
  --line-dark: rgba(255,255,255,0.12);
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 19, 64, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 19, 64, 0.08);
  --shadow-lg: 0 22px 60px rgba(10, 19, 64, 0.12);
  --shadow-xl: 0 32px 80px rgba(10, 19, 64, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--cream-50);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink-900);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); font-variation-settings: 'opsz' 144, 'SOFT' 30; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-variation-settings: 'opsz' 96, 'SOFT' 25; line-height: 1.08; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-variation-settings: 'opsz' 48; line-height: 1.2; }
h4 { font-size: 1.2rem; font-weight: 500; font-variation-settings: 'opsz' 36; line-height: 1.25; }
h5 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-family: 'IBM Plex Sans', sans-serif; color: var(--cyan-500); }
em, .serif-italic { font-style: italic; font-variation-settings: 'opsz' 144; font-weight: 400; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-500); font-weight: 300; }

.eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-500);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--cyan-500); display: inline-block;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all .3s var(--ease);
  white-space: nowrap;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.btn .arr { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn-cyan { background: var(--cyan-500); color: var(--white); }
.btn-cyan:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.btn-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.875rem; }

/* --- Scroll progress indicator --- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--navy-700));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 999;
  pointer-events: none;
  will-change: transform;
}

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--navy-950); color: var(--cream-200); font-size: 0.78rem; padding: 0.5rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; gap: 1.4rem; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--cream-200); }
.topbar a:hover { color: var(--cyan-400); }
.topbar svg { opacity: 0.8; }

.nav-wrap { background: rgba(250,246,239,0.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: all .3s var(--ease); }
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--navy-900); color: #fff;
  padding: 0.6rem 1rem; border-radius: 6px;
  z-index: 10000; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 2px; border-radius: 3px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.brand img, .brand-mark { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark svg, .brand-svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 500; color: var(--navy-900); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; }

.primary-nav { display: flex; align-items: center; gap: 0.35rem; }
.primary-nav > a, .primary-nav .has-dropdown > a {
  padding: 0.6rem 1rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-700); border-radius: 8px; display: inline-flex; align-items: center; gap: 0.3rem;
}
.primary-nav > a:hover, .primary-nav .has-dropdown > a:hover { color: var(--navy-900); background: rgba(13,18,64,0.04); }
.primary-nav a.active { color: var(--navy-900); }
.primary-nav a.active::after,
.primary-nav .has-dropdown.active > a::after {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500); margin-left: 0.3rem;
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.5rem; min-width: 290px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease);
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; font-size: 0.9rem; color: var(--ink-700);
  border-radius: 8px; transition: all .15s var(--ease);
}
.dropdown a::after { content: '→'; opacity: 0; transition: all .2s var(--ease); transform: translateX(-4px); }
.dropdown a:hover { background: var(--cream-50); color: var(--navy-900); }
.dropdown a:hover::after { opacity: 1; transform: translateX(0); color: var(--cyan-500); }
.caret { font-size: 0.6em; opacity: 0.5; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy-900); transition: all .25s var(--ease); }

/* --- Sections --- */
.section { padding: clamp(2rem, 4vw, 3.5rem) 0; position: relative; }
/* Adjacent section collapse: when two .section blocks sit back-to-back,
   the second one's top padding gets halved (no double gutter). */
.section + .section { padding-top: clamp(1rem, 2vw, 2rem); }
/* If a section explicitly sets padding-top:0 (CTA case), don't override */
.section[style*="padding-top:0"] { padding-top: 0 !important; }
.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-num {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem); color: var(--cream-300);
  position: absolute; top: 1.5rem; right: clamp(1.5rem, 4vw, 4rem); opacity: 0.7;
  pointer-events: none; user-select: none;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: var(--white); position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(58,174,219,0.18) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(58,174,219,0.12) 0%, transparent 45%);
  z-index: -1;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  z-index: -1;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--cyan-400); }
.hero .eyebrow::before { background: var(--cyan-400); }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; font-size: clamp(2.1rem, 4.5vw, 3.75rem); }
.hero h1 em { color: var(--cyan-400); }
.hero .lead { color: var(--cream-200); max-width: 640px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.75rem; border-top: 1px solid var(--line-dark);
}
.hero-stat .num {
  font-family: 'Fraunces', serif; font-size: clamp(2rem, 3.6vw, 3.25rem);
  color: var(--white); display: block; line-height: 1;
  font-variation-settings: 'opsz' 144; letter-spacing: -0.02em;
}
.hero-stat .num .plus { color: var(--cyan-400); }
.hero-stat .label { font-size: 0.82rem; color: var(--cream-300); letter-spacing: 0.05em; margin-top: 0.5rem; display: block; }

.hero-marquee {
  position: absolute; bottom: 1rem; left: 0; right: 0;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(7rem, 18vw, 14rem); color: rgba(255,255,255,0.04);
  white-space: nowrap; pointer-events: none; user-select: none;
  z-index: 1; letter-spacing: -0.04em;
}

/* --- Hero split layout & visuals --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-content h1 { margin-bottom: 1.4rem; }
.hero-trust {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  max-width: 480px;
}
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--navy-900);
  margin-left: -12px;
}
.avatar-stack .avatar:first-child { margin-left: 0; }
.trust-text { display: flex; flex-direction: column; line-height: 1.3; }
.trust-text strong { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.trust-text span { font-size: 0.82rem; color: var(--cream-300); }

.hero-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}
.hero-video-wrap {
  position: relative;
  width: 100%; height: 100%;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--navy-900);
  border-radius: 24px;
  box-shadow: 0 35px 90px rgba(0,0,0,0.45);
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,18,64,0.05) 0%, rgba(13,18,64,0.0) 30%, rgba(13,18,64,0.25) 100%);
  pointer-events: none; z-index: 1;
  border-radius: 24px;
}
.hero-video-toggle {
  position: absolute; right: 1rem; bottom: 1rem;
  z-index: 4;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(13,18,64,0.55);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.hero-video-toggle:hover { background: var(--cyan-500); border-color: var(--cyan-500); transform: scale(1.05); }
.hero-video-toggle svg { width: 14px; height: 14px; }

.hero-tag {
  position: absolute;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  color: var(--ink-900);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.6) inset;
  font-size: 0.85rem; line-height: 1.3;
  z-index: 3;
  animation: floaty 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.4);
  white-space: nowrap;
}
.hero-tag-top {
  top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.hero-tag-top .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #10b981; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero-tag-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-tag-eyebrow {
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-500);
  font-weight: 600;
}
.hero-tag-value {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 500;
  color: var(--navy-900);
  font-variation-settings: 'opsz' 36;
  margin-top: 1px;
  letter-spacing: -0.005em;
}

.hero-tag-bottom {
  bottom: 1rem; left: 1rem;
  display: flex; align-items: center; gap: 0.9rem;
  animation-delay: -3s;
  padding: 0.95rem 1.2rem;
}
.hero-tag-bottom .metric-num {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem; font-weight: 500;
  color: var(--navy-900); line-height: 1;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.02em;
}
.hero-tag-bottom .metric-num small {
  font-size: 1rem; color: var(--cyan-500); margin-left: 1px;
  font-weight: 600;
}
.hero-tag-bottom .metric-divider {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.hero-tag-bottom .metric-label-wrap {
  display: flex; flex-direction: column; line-height: 1.2;
}
.hero-tag-bottom .metric-label-line1 {
  font-size: 0.78rem; color: var(--ink-700);
  font-weight: 600; letter-spacing: 0.02em;
}
.hero-tag-bottom .metric-label-line2 {
  font-size: 0.68rem; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 500; margin-top: 1px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}

/* --- Intro / About Strip --- */
.intro-strip {
  background: var(--cream-100);
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.intro-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.intro-stat .num {
  font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--navy-900); display: block; line-height: 1;
}
.intro-stat .label { font-size: 0.82rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; display: block; }

/* --- Pillars (Hire Developers) --- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-grid .pillar:nth-child(1),
.pillar-grid .pillar:nth-child(2) { grid-row: span 1; }
.pillar {
  background: var(--white); border: 1px solid var(--line);
  padding: 2rem 1.75rem; border-radius: var(--radius-md);
  transition: all .4s var(--ease); position: relative; overflow: hidden;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.pillar .label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan-500); font-weight: 600; margin-bottom: 1rem; display: block;
}
.pillar h4 {
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 400;
  font-variation-settings: 'opsz' 48; margin-bottom: 0.7rem;
}
.pillar p { color: var(--ink-500); font-size: 0.95rem; }
.pillar::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-300) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.pillar:hover::after { opacity: 0.4; }

/* --- Dual Practice Strip --- */
.dual-practice { background: linear-gradient(180deg, var(--cream-50), var(--cream-100)); }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.practice-card {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 0.85rem;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.practice-hr  { background: var(--white); color: var(--ink-900); }
.practice-tech {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.practice-tech::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,174,219,0.18), transparent 70%);
  pointer-events: none;
}
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.practice-mark {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(58,174,219,0.12); color: var(--cyan-500);
  margin-bottom: 0.4rem;
}
.practice-tech .practice-mark { background: rgba(58,174,219,0.2); color: var(--cyan-400); }
.practice-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--cyan-500);
}
.practice-tech .practice-eyebrow { color: var(--cyan-400); }
.practice-card h3 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.practice-tech h3 { color: var(--white); }
.practice-card > p { color: var(--ink-500); font-size: 1.02rem; }
.practice-tech > p { color: var(--cream-200); }

.practice-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem; margin: 0.6rem 0 1.3rem;
  list-style: none; padding: 0;
}
.practice-list li {
  font-size: 0.92rem; padding-left: 1.2rem; position: relative;
  color: var(--ink-700);
}
.practice-tech .practice-list li { color: var(--cream-200); }
.practice-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-500);
}
.practice-tech .practice-list li::before { background: var(--cyan-400); }

.practice-card .arrow-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 500; color: var(--navy-900);
  align-self: flex-start;
  padding-top: 0.4rem;
}
.practice-tech .arrow-link { color: var(--cyan-400); }
.practice-card .arrow-link .arr { transition: transform .25s var(--ease); }
.practice-card:hover .arrow-link .arr { transform: translateX(4px); }

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .practice-list { grid-template-columns: 1fr; }
}

/* --- Service Cards --- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 2.5rem 2rem; border-radius: var(--radius-md);
  transition: all .4s var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 320px;
}
.service-card .idx {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.1rem; color: var(--cyan-500); margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.8rem; }
.service-card p { color: var(--ink-500); margin-bottom: 1.5rem; flex-grow: 1; }
.service-card .arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 500; color: var(--navy-900);
  align-self: flex-start;
}
.service-card .arrow-link::after { content: '→'; transition: transform .25s var(--ease); }
.service-card:hover {
  transform: translateY(-6px); border-color: var(--navy-700);
  box-shadow: var(--shadow-lg);
}
.service-card:hover .arrow-link::after { transform: translateX(4px); }
.service-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--navy-700));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }

/* --- Industry Tiles (image-backed) --- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.industry-tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 190px;
  display: block;
  text-decoration: none;
  transition: all .4s var(--ease);
  border: 1px solid var(--line);
  isolation: isolate;
  background: var(--navy-900);
}
.industry-tile-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--ind-bg);
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  transform: scale(1.02);
}
.industry-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(7,10,42,0.15) 0%,
    rgba(7,10,42,0.45) 50%,
    rgba(7,10,42,0.92) 100%);
  transition: background .4s var(--ease);
  pointer-events: none;
}
.industry-tile-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem 1.5rem 1.4rem;
  color: var(--white);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.industry-tile h4 {
  font-size: 1.25rem; font-weight: 500;
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 48;
  color: var(--white); margin: 0;
  letter-spacing: -0.01em;
}
.industry-tile p {
  font-size: 0.88rem; color: rgba(255,255,255,0.78);
  margin: 0; line-height: 1.45;
  max-height: 0; opacity: 0;
  transition: max-height .4s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
  overflow: hidden;
}
.industry-tile-arrow {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
  transition: all .35s var(--ease);
}
.industry-tile:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-500);
  box-shadow: 0 30px 60px rgba(13,18,64,0.25);
}
.industry-tile:hover .industry-tile-bg { transform: scale(1.1); filter: brightness(1.05); }
.industry-tile:hover::after {
  background: linear-gradient(180deg,
    rgba(7,10,42,0.05) 0%,
    rgba(13,18,64,0.55) 45%,
    rgba(13,18,64,0.98) 100%);
}
.industry-tile:hover p {
  max-height: 4.5em; opacity: 1; margin-top: 0.3rem;
}
.industry-tile:hover .industry-tile-arrow {
  background: var(--cyan-500); border-color: var(--cyan-500);
  transform: rotate(-45deg);
}

/* --- Founder Section --- */
.founder {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.founder-image {
  position: relative; aspect-ratio: 450 / 560;
}
.founder-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,18,64,0.5));
  z-index: 1;
  border-radius: var(--radius-md);
  pointer-events: none;
}
.founder-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.founder-image .badge {
  position: absolute; left: 1rem; bottom: 1.25rem; z-index: 2;
  background: var(--cyan-500); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.founder blockquote {
  font-family: 'Fraunces', serif; font-style: normal;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: var(--ink-700); margin: 1.5rem 0;
  position: relative; padding-left: 1.5rem; border-left: 2px solid var(--cyan-500);
}
.founder p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: var(--ink-700);
}
.founder-name { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--navy-900); }
.founder-title { font-size: 0.85rem; color: var(--ink-500); letter-spacing: 0.05em; }

/* --- Technologies Banner --- */
.tech-banner {
  background: var(--cream-100); padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tech-banner .tech-image {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}

/* --- Clients Strip --- */
.clients-strip {
  background: var(--white); padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients-strip img { border-radius: var(--radius-sm); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }

.client-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
  min-height: 84px;
}
.client-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c-color);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.client-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-color);
  box-shadow: 0 14px 36px rgba(13,18,64,0.08);
}
.client-card:hover::before { transform: scaleY(1); }

.client-mono {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-color);
  color: var(--white);
  border-radius: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.client-mono-img {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 4px;
}
.client-mono-img img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.client-card > div { display: flex; flex-direction: column; min-width: 0; }
.client-card .client-name {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--navy-900);
  line-height: 1.2;
  font-variation-settings: 'opsz' 36;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-card .client-sector {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-top: 2px;
  font-weight: 500;
}

/* --- CTA --- */
.cta {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-800));
  color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(58,174,219,0.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(58,174,219,0.15), transparent 50%);
}
.cta > * { position: relative; }
.cta .eyebrow { color: var(--cyan-400); justify-content: center; }
.cta .eyebrow::before { background: var(--cyan-400); }
.cta h2 { color: var(--white); margin-bottom: 1.2rem; }
.cta h2 em { color: var(--cyan-400); }
.cta .lead { color: var(--cream-200); max-width: 560px; margin: 0 auto 2rem; }

/* --- Detail Page Hero --- */
.detail-hero {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: var(--white); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(58,174,219,0.18), transparent 55%);
}
.detail-hero .container { position: relative; }
.detail-hero .eyebrow { color: var(--cyan-400); }
.detail-hero .eyebrow::before { background: var(--cyan-400); }
.detail-hero h1 { color: var(--white); max-width: 900px; }
.detail-hero .lead { color: var(--cream-200); max-width: 700px; margin-top: 1.5rem; }
.crumb { font-size: 0.85rem; color: var(--cream-300); margin-bottom: 1.5rem; }
.crumb a { color: var(--cyan-400); }
.crumb a:hover { color: var(--white); }

/* Image-backed detail hero variant (used on industry pages) */
.detail-hero-image { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.detail-hero-image::before {
  background:
    linear-gradient(135deg, rgba(7,10,42,0.92) 0%, rgba(13,18,64,0.78) 50%, rgba(26,33,104,0.65) 100%),
    var(--hero-bg, linear-gradient(150deg, var(--navy-900), var(--navy-700))) center / cover no-repeat,
    var(--navy-900);
}
.detail-hero-image::after {
  content: ''; position: absolute; right: -10%; bottom: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(58,174,219,0.25), transparent 70%);
  pointer-events: none;
}

/* --- Two-column detail body --- */
.detail-body {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.detail-body .prose p { font-size: 1.08rem; line-height: 1.75; color: var(--ink-700); }
.detail-body .prose p:first-of-type::first-letter {
  font-family: 'Fraunces', serif; font-size: 4.2em; float: left; line-height: 0.85; padding: 0.1em 0.1em 0 0; color: var(--navy-900); font-variation-settings: 'opsz' 144;
}
.detail-sidebar { background: var(--cream-100); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--line); position: sticky; top: 130px; align-self: start; }
.detail-sidebar h5 { color: var(--navy-900); margin-bottom: 1.2rem; font-family: 'Fraunces', serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; }
.detail-sidebar ul { display: flex; flex-direction: column; gap: 0.7rem; }
.detail-sidebar li { font-size: 0.95rem; color: var(--ink-700); padding-left: 1.5rem; position: relative; }
.detail-sidebar li::before { content: '→'; position: absolute; left: 0; color: var(--cyan-500); }

/* --- Process steps --- */
.process { background: var(--cream-100); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 3rem; }
.process-step {
  background: var(--white); padding: 1.75rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); position: relative;
}
.process-step .num {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.2rem;
  color: var(--cyan-500); margin-bottom: 0.7rem; display: block;
}
.process-step h4 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--ink-500); }

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-info-block { background: var(--navy-900); color: var(--white); padding: 2.5rem; border-radius: var(--radius-md); }
.contact-info-block h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-item svg { color: var(--cyan-400); flex-shrink: 0; margin-top: 4px; }
.contact-info-item .label { font-size: 0.78rem; color: var(--cream-300); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.2rem; }
.contact-info-item .value { color: var(--white); }
.contact-info-item .value a:hover { color: var(--cyan-400); }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: var(--radius-md); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field label { font-size: 0.82rem; font-weight: 500; color: var(--ink-700); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 0.85rem 1rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--cream-50); color: var(--ink-900);
  transition: all .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(58,174,219,0.12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field.field-error input, .form-field.field-error select, .form-field.field-error textarea {
  border-color: #d14343; background: #fdf3f3;
}
.form-status { font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--navy-700); }
.form-submit { width: 100%; }

/* --- Footer --- */
.site-footer { background: var(--navy-950); color: var(--cream-200); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-logo { width: 44px; height: 44px; flex-shrink: 0; }
.site-footer .brand { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--ink-300); }
.footer-brand p { color: var(--ink-300); margin: 1.5rem 0; font-size: 0.95rem; max-width: 380px; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-dark); display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--cyan-500); border-color: var(--cyan-500); transform: translateY(-2px); }
.site-footer h5 { color: var(--white); font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 500; margin-bottom: 1.2rem; letter-spacing: 0; text-transform: none; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.7rem; }
.site-footer ul a { color: var(--ink-300); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--cyan-400); }
.footer-contact li { color: var(--ink-300); font-size: 0.92rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--line-dark); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.85rem; color: var(--ink-400); margin: 0; }

/* --- Reveal animations --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* --- Router behaviour --- */
section[data-page] { display: none; }
section[data-page].active { display: block; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .primary-nav { display: none; }
  body.menu-open .primary-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 88%; max-width: 380px;
    background: var(--white); padding: 6rem 2rem 2rem;
    gap: 0.4rem; align-items: stretch;
    box-shadow: -10px 0 50px rgba(0,0,0,0.18);
    z-index: 200; overflow-y: auto;
  }
  body.menu-open .primary-nav > a,
  body.menu-open .primary-nav .has-dropdown > a {
    width: 100%; padding: 0.9rem 1.1rem; font-size: 1.05rem;
  }
  body.menu-open .primary-nav .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0.25rem 0 0.5rem 1rem; min-width: 0;
  }
  body.menu-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(13,18,64,0.5); z-index: 150;
  }
  body.menu-open .hamburger { position: fixed; right: 1.5rem; top: 1.5rem; z-index: 210; }
  body.menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  body.menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

  .pillar-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .founder, .intro-grid { grid-template-columns: 1fr; }
  .founder-image { max-width: 420px; margin: 0 auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .topbar { font-size: 0.7rem; }
  .topbar-left a:nth-child(2) { display: none; }
  .pillar-grid, .service-grid, .industry-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .intro-stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .brand-sub { display: none; }
  .section-num { font-size: 2.5rem; top: 1rem; right: 1rem; }
  .hero-tag-top { left: 0.75rem; top: 0.75rem; padding: 0.6rem 0.85rem; font-size: 0.78rem; }
  .hero-tag-bottom { left: 0.75rem; bottom: 0.75rem; padding: 0.65rem 0.9rem; }
  .hero-tag-bottom .metric-num { font-size: 1.5rem; }
  .hero-visual { aspect-ratio: 16 / 9; }
  .hero-video-toggle { width: 34px; height: 34px; right: 0.75rem; bottom: 0.75rem; }
  .client-card { min-height: 72px; padding: 0.9rem; gap: 0.7rem; }
  .client-mono { width: 38px; height: 38px; font-size: 0.9rem; }
  .client-card .client-name { font-size: 0.9rem; }
  .client-card .client-sector { font-size: 0.62rem; }
}

/* Reduce motion: pause hero video for users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation-play-state: paused; }
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Tech Grid — with real brand logos
   ============================================================ */
.tech-section {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.tech-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(58,174,219,0.06), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(155,93,229,0.05), transparent 40%);
  pointer-events: none;
}
.tech-section .container { position: relative; }

.tech-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.tech-meta .count {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy-900); line-height: 1;
  font-variation-settings: 'opsz' 144;
}
.tech-meta .count-label {
  font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-500); font-weight: 500;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
}

.tech-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1rem;
  display: flex; align-items: center; gap: 0.9rem;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}

.tech-card .tech-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
  background: color-mix(in srgb, var(--tech-color) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--tech-color) 20%, transparent);
  position: relative; overflow: hidden;
}
.tech-card .tech-logo img {
  width: 24px; height: 24px; object-fit: contain; display: block;
}
.tech-card .tech-logo svg {
  width: 22px; height: 22px; color: var(--tech-color);
}

.tech-card .tech-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tech-card .tech-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.93rem; font-weight: 500;
  color: var(--ink-900); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tech-card .tech-cat {
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-400); font-weight: 500;
}

.tech-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--tech-color);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.tech-card:hover {
  transform: translateY(-3px);
  border-color: var(--tech-color);
  box-shadow: 0 14px 30px rgba(13,18,64,0.08);
}
.tech-card:hover::after { transform: scaleX(1); }
.tech-card:hover .tech-logo { transform: rotate(-4deg) scale(1.06); }

.tech-card.reveal { transition-delay: calc(var(--i, 0) * 18ms); }

@media (max-width: 680px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .tech-card { padding: 0.9rem; gap: 0.65rem; }
  .tech-card .tech-logo { width: 36px; height: 36px; border-radius: 8px; }
  .tech-card .tech-logo img { width: 20px; height: 20px; }
  .tech-card .tech-logo svg { width: 18px; height: 18px; }
  .tech-card .tech-name { font-size: 0.86rem; }
  .tech-card .tech-cat { font-size: 0.6rem; }
}

.tech-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem; color: var(--ink-700); font-weight: 500;
  letter-spacing: 0.02em;
}
.tech-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tech-color); flex-shrink: 0;
}

/* ============================================================
   Hire Next Chatbot
   ============================================================ */
#hn-chat-bubble {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.40), 0 4px 10px rgba(10,19,64,0.18);
  z-index: 9998;
  transition: all .3s var(--ease);
  isolation: isolate;
}
#hn-chat-bubble:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.50); }
#hn-chat-bubble .bubble-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0;
  animation: hn-pulse 2.6s ease-out infinite;
  pointer-events: none; z-index: -1;
}
@keyframes hn-pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.4);  opacity: 0; }
}
#hn-chat-bubble .bubble-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: #ef4444; color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 0 0 2px var(--white);
}
body.hn-chat-open #hn-chat-bubble .bubble-badge { display: none; }
body.hn-chat-open #hn-chat-bubble .bubble-icon-chat { display: none; }
body.hn-chat-open #hn-chat-bubble .bubble-icon-close { display: block !important; }

#hn-chat-panel {
  position: fixed;
  bottom: 5.5rem; right: 1.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 8rem));
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 19, 64, 0.22), 0 4px 14px rgba(10,19,64,0.08);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
body.hn-chat-open #hn-chat-panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

.hn-chat-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.hn-chat-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 30%, rgba(0,163,196,0.25), transparent 60%);
  pointer-events: none;
}
.hn-chat-header-info {
  display: flex; align-items: center; gap: 0.75rem;
  position: relative;
}
.hn-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cyan-500); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem;
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.hn-chat-avatar-dot {
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px var(--navy-900);
}
.hn-chat-avatar-initials { letter-spacing: 0.02em; }
.hn-chat-header-text { display: flex; flex-direction: column; line-height: 1.2; }
.hn-chat-header-name {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 500; color: var(--white);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hn-chat-online {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: #10b981;
  padding: 2px 6px; border-radius: 10px;
  background: rgba(16,185,129,0.15);
  font-weight: 600;
}
.hn-chat-header-role {
  font-size: 0.72rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.hn-chat-close {
  background: rgba(255,255,255,0.08); color: var(--white);
  border: none; width: 30px; height: 30px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s var(--ease);
  position: relative;
}
.hn-chat-close:hover { background: rgba(255,255,255,0.2); }

.hn-chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  background: var(--cream-100);
  display: flex; flex-direction: column; gap: 0.65rem;
  scroll-behavior: smooth;
}
.hn-chat-messages::-webkit-scrollbar { width: 6px; }
.hn-chat-messages::-webkit-scrollbar-thumb { background: var(--cream-300); border-radius: 6px; }

.hn-msg {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
  animation: hn-msg-in .25s var(--ease);
}
@keyframes hn-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hn-msg-bot {
  background: var(--white);
  color: var(--ink-700);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.hn-msg-user {
  background: var(--navy-900);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.hn-msg-bot strong { color: var(--navy-900); font-weight: 600; }
.hn-msg-bot a { color: var(--cyan-500); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.hn-msg-bot a:hover { color: var(--navy-700); }

.hn-msg-typing {
  background: var(--white);
  align-self: flex-start;
  padding: 0.7rem 0.95rem;
  border-radius: 16px; border-bottom-left-radius: 4px;
  display: inline-flex; gap: 4px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.hn-msg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-400);
  animation: hn-typing 1.2s ease-in-out infinite;
}
.hn-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.hn-msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hn-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.hn-chat-quick {
  padding: 0.6rem 1rem 0.4rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.hn-quick-btn {
  background: var(--white); color: var(--ink-700);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: inherit;
}
.hn-quick-btn:hover {
  background: var(--cyan-500); color: var(--white);
  border-color: var(--cyan-500);
  transform: translateY(-1px);
}

.hn-chat-input-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; background: var(--white);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.hn-chat-input-wrap input {
  flex: 1; padding: 0.65rem 0.9rem;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit; font-size: 0.88rem;
  color: var(--ink-900);
  transition: all .2s var(--ease);
}
.hn-chat-input-wrap input:focus {
  outline: none; border-color: var(--cyan-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,163,196,0.12);
}
.hn-chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cyan-500); color: var(--white);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.hn-chat-send:hover { background: var(--navy-700); transform: scale(1.05); }
.hn-chat-send:disabled { opacity: 0.4; cursor: default; }

.hn-chat-footer {
  text-align: center;
  font-size: 0.66rem;
  color: var(--ink-400);
  padding: 0.5rem 1rem 0.7rem;
  background: var(--white);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #hn-chat-bubble { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  #hn-chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 88vh;
    border-radius: 20px 20px 0 0;
    transform-origin: bottom center;
  }
}
