/* ==========================================================================
   Mahmoud Ali A. Elsayed — personal brand site
   Design system: calm authority. Deep-navy hero, light minimalist sections,
   azure accent. Space Grotesk (display) / Manrope (body), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #070d1a;
  --ink-2: #0c1526;
  --paper: #f7f9fc;
  --card: #ffffff;
  --text: #16202e;
  --muted: #5b6678;
  --line: #e3e9f2;
  --accent: #2172e5;
  --accent-2: #38bdf8;
  --accent-soft: #eaf2fe;
  --green: #34d399;
  --amber: #fbbf24;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 40px -12px rgba(12, 33, 66, .14);
  --shadow-lg: 0 24px 70px -20px rgba(12, 33, 66, .25);
  --ease: cubic-bezier(.22, .8, .26, .99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; color: var(--ink-2); }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal, .reveal-h {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in, .reveal-h.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .26s; } .d4 { transition-delay: .36s; } .d5 { transition-delay: .48s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(7, 13, 26, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav.on-light.scrolled { background: rgba(255,255,255,.85); box-shadow: 0 1px 0 var(--line); }
.nav-inner {
  width: min(1180px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; transition: padding .35s var(--ease);
}
.nav.scrolled .nav-inner { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(56, 189, 248, .7);
  box-shadow: 0 4px 14px -4px rgba(33, 114, 229, .6);
}
.brand-name { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.02rem; letter-spacing: -.01em; transition: color .35s; }
.brand-sub { font-weight: 400; opacity: .6; font-size: .85em; }
.nav.on-light .brand-name { color: var(--ink-2); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; font-size: .92rem; font-weight: 600; }
.nav-links a { color: rgba(255,255,255,.78); position: relative; transition: color .3s; padding: .3rem 0; }
.nav.on-light .nav-links a { color: var(--muted); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent-2); transition: right .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav.on-light .nav-links a:hover, .nav.on-light .nav-links a.active { color: var(--ink-2); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .42rem 1.1rem !important;
  color: #fff !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }
.nav.on-light .nav-cta { border-color: var(--ink-2); color: var(--ink-2) !important; }
.nav.on-light .nav-cta:hover { background: var(--ink-2); color: #fff !important; }

.nav-burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; margin: 5px 8px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav.on-light .nav-burger span { background: var(--ink-2); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: .2rem;
  background: rgba(7,13,26,.96); backdrop-filter: blur(16px);
  padding: .8rem 4vw 1.4rem;
}
.mobile-menu a { color: #fff; font-weight: 600; padding: .7rem .4rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 65% at 50% 42%, rgba(7,13,26,0) 0%, rgba(7,13,26,.55) 68%, rgba(7,13,26,.92) 100%),
    linear-gradient(180deg, rgba(7,13,26,.5) 0%, rgba(7,13,26,.1) 30%, rgba(7,13,26,.25) 78%, var(--paper) 99.5%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  width: min(1180px, 92vw);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: 7.5rem 0 4.5rem;
}
.hero-content { position: relative; text-align: left; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: .5rem 1.1rem; margin-bottom: 1.6rem;
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  55% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 600; letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}
.hero-title span { display: block; }
.accent-line {
  background: linear-gradient(92deg, var(--accent-2) 0%, #7dd3fc 55%, #a5b4fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(226, 234, 245, .82);
  max-width: 34em; margin: 0 0 2.1rem; font-weight: 450;
}
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(33, 114, 229, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(33, 114, 229, .7); }
.btn-ghost { border: 1px solid rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: clamp(1.3rem, 3.5vw, 3rem); flex-wrap: wrap;
}
.hero-stats div { text-align: left; }
.hero-stats dt.stat, .stat-inline {
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; letter-spacing: -.02em;
}
.hero-stats dd { font-size: .82rem; color: rgba(226,234,245,.6); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; margin-top: .1rem; }
.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 999px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollNudge 2s var(--ease) infinite;
}
@keyframes scrollNudge { 0%,100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* ---------- Hero portrait ---------- */
.hero-portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative; border-radius: 24px; overflow: hidden;
  width: min(380px, 78vw);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(56, 189, 248, .25);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(200deg, rgba(56,189,248,.14) 0%, transparent 35%, transparent 70%, rgba(7,13,26,.55) 100%);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.14);
}
.portrait-frame img { width: 100%; height: auto; display: block; }
.p-chip {
  position: absolute; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: .8rem; white-space: nowrap;
  color: #fff; background: rgba(12, 21, 38, .82); backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, .35); border-radius: 999px;
  padding: .45rem .95rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  animation: chipFloat 5.5s ease-in-out infinite;
}
.pc-1 { top: 8%; left: -9%; animation-delay: 0s; }
.pc-2 { bottom: 26%; right: -5%; animation-delay: 1.4s; }
.pc-3 { bottom: -4%; left: 6%; animation-delay: 2.6s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Snapshot strip ---------- */
.snapshot {
  background: var(--ink-2); color: #fff;
  border-top: 1px solid rgba(56,189,248,.18);
  position: relative; z-index: 3;
}
.snap-inner {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
  gap: 1rem 2.5rem; padding: 1.1rem 0;
}
.snap-item { display: flex; flex-direction: column; gap: .1rem; }
.snap-label {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
}
.snap-value { font-size: .92rem; font-weight: 600; color: rgba(230, 238, 248, .92); }
.snap-value a { color: #fff; border-bottom: 1px solid var(--accent-2); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.snap-value a:hover { color: var(--accent-2); }

/* ---------- Career ---------- */
.career { background: var(--paper); }
.career-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.3rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.c-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-2); }
.c-logo {
  height: 54px; display: grid; place-items: center;
  filter: saturate(.85);
  transition: filter .3s, transform .3s var(--ease);
}
.c-card:hover .c-logo { filter: saturate(1.15); transform: scale(1.06); }
.c-logo img { max-height: 44px; max-width: 130px; width: auto; height: auto; border-radius: 7px; }
.logo-chip.lc-img { display: grid; place-items: center; padding: .7rem 1.2rem; }
.logo-chip.lc-img img {
  max-height: 30px; max-width: 118px; width: auto; height: auto;
  filter: saturate(.9);
  transition: filter .3s, transform .3s var(--ease);
}
.logo-chip.lc-img:hover img { filter: saturate(1.15); transform: scale(1.06); }
.c-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink-2); }
.c-role { font-size: .8rem; color: var(--muted); line-height: 1.35; }

.ventures { margin-top: 2.4rem; text-align: center; }
.ventures-title {
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.ventures-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.venture {
  display: flex; flex-direction: column; align-items: flex-start; gap: .05rem;
  background: var(--ink-2); color: #fff; border-radius: 14px; padding: .9rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.venture:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #101c33; }
.venture b { font-family: var(--display); font-size: 1.05rem; }
.venture span { font-size: .78rem; color: rgba(226,234,245,.65); }
.venture::after { content: "↗"; position: absolute; }
.venture { position: relative; }
.venture::after { top: .6rem; right: .8rem; font-size: .8rem; color: var(--accent-2); opacity: 0; transition: opacity .25s; }
.venture:hover::after { opacity: 1; }

.nda-note.slim {
  display: inline-flex; margin-top: 1.8rem; text-align: left;
}
.x-accent {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-avatar {
  border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem;
  border: 2px solid rgba(56,189,248,.6);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}

/* ---------- Section scaffolding ---------- */
.kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.kicker.light { color: var(--accent-2); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-badge {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: .95rem;
}
.ab-left { color: var(--ink-2); }
.ab-x { color: var(--accent); font-size: 1.5rem; }
.ab-right { background: linear-gradient(92deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-copy p { margin-bottom: 1.15rem; color: #3c4657; }
.about-copy .lead { font-size: 1.35rem; font-family: var(--display); font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.about-copy strong { color: var(--ink-2); }
.nda-note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .93rem; color: var(--muted) !important;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; margin-top: 1.6rem;
}
.nda-note svg { flex-shrink: 0; margin-top: .2rem; color: var(--accent); }

/* ---------- Expertise ---------- */
.expertise { background: linear-gradient(180deg, var(--paper), #eef3fa 60%, var(--paper)); }
.duo {
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 1rem; align-items: stretch;
}
.duo-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.duo-col h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; color: var(--ink-2); }
.duo-tag {
  font-size: .68rem; letter-spacing: .16em; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
}
.duo-tag.build { background: var(--ink-2); color: #fff; }
.duo-tag.grow { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.duo-list { list-style: none; }
.duo-list li {
  padding: .78rem .9rem; border-radius: 12px; cursor: default;
  display: flex; flex-direction: column; gap: .1rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.duo-list li strong { font-size: .99rem; color: var(--ink-2); font-weight: 700; }
.duo-list li span { font-size: .85rem; color: var(--muted); }
.duo-list li:hover, .duo-list li.linked { background: var(--accent-soft); transform: translateX(4px); }
.duo-list li.linked strong { color: var(--accent); }

.duo-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; }
.bridge-line { width: 2px; flex: 1; background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: .5; }
.bridge-node {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -6px rgba(33,114,229,.55);
  animation: breathe 3.5s var(--ease) infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.why-works {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem;
}
.why-works > div {
  background: var(--ink-2); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why-works > div:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-works h4 { font-size: 1.02rem; margin-bottom: .5rem; color: var(--accent-2); }
.why-works p { font-size: .9rem; color: rgba(226,234,245,.75); }

/* ---------- Ecosystem ---------- */
.eco-group { margin-bottom: 2.6rem; }
.eco-group h3 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; font-weight: 700; }
.logo-wall { display: flex; flex-wrap: wrap; gap: .7rem; }
.logo-chip {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .8rem 1.4rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.logo-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.lc-featured { border-width: 2px; border-color: var(--ink-2); }
.lc-muted { color: var(--muted); font-weight: 500; font-style: italic; border-style: dashed; }
.cert-frameworks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.framework-pill {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: .35rem .95rem;
  transition: background .25s, color .25s;
}
.framework-pill:hover { background: var(--accent); color: #fff; }

/* ---------- Global ---------- */
.global { background: linear-gradient(180deg, var(--paper), #eef3fa 55%, var(--paper)); }
.map-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(.8rem, 2.5vw, 2rem);
  min-height: 280px; display: grid; place-items: center; overflow: hidden;
}
.map-loading { color: var(--muted); font-size: .9rem; }
.map-wrap svg { width: 100%; height: auto; max-height: 560px; }
.map-wrap .landxx { fill: #dfe6f0 !important; stroke: #fff !important; stroke-width: .6 !important; transition: fill .4s; }
.map-wrap .coastxx { fill: #dfe6f0 !important; }
.map-wrap .oceanxx, .map-wrap #ocean { fill: transparent !important; }
h2 .stat-inline { color: inherit; font-size: inherit; }
.map-wrap .served { fill: var(--accent) !important; animation: mapIn 1.2s var(--ease) both; }
.map-wrap .served:hover { fill: var(--accent-2) !important; }
@keyframes mapIn { from { opacity: .2; } to { opacity: 1; } }

.regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1.6rem; }
.region {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region h4 { color: var(--accent); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.region p { font-size: .85rem; color: var(--muted); line-height: 1.5; }

.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1.6rem; }
.sector {
  background: var(--ink-2); border-radius: 14px; padding: 1.4rem 1.2rem; color: #fff;
  transition: transform .3s var(--ease), background .3s;
}
.sector:hover { transform: translateY(-4px); background: #101c33; }
.sector svg { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: .8rem; }
.sector h4 { font-size: .98rem; margin-bottom: .35rem; }
.sector p { font-size: .8rem; color: rgba(226,234,245,.65); line-height: 1.5; }

/* ---------- CV cards ---------- */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  transform-style: preserve-3d; will-change: transform;
}
.cv-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-2); }
.cv-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem;
}
.cv-icon svg { width: 26px; height: 26px; }
.cv-icon.sec { background: #eef2ff; color: #4f46e5; }
.cv-icon.sales { background: #ecfdf5; color: #059669; }
.cv-icon.adv { background: #fff7ed; color: #ea580c; }
.cv-card h3 { color: var(--ink-2); margin-bottom: .4rem; font-size: 1.28rem; }
.cv-for { font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 1rem; }
.cv-card ul { list-style: none; margin-bottom: 1.6rem; flex: 1; }
.cv-card li {
  font-size: .9rem; color: var(--muted); padding: .34rem 0 .34rem 1.4rem; position: relative;
}
.cv-card li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-card {
  background: var(--ink-2); color: #fff; justify-content: center; font-size: .95rem;
}
.btn-card:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(33,114,229,.5); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.contact-card {
  background: radial-gradient(120% 160% at 10% 0%, #12203c 0%, var(--ink) 62%);
  border-radius: 26px; color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 65%);
  pointer-events: none;
}
.contact-left h2 { color: #fff; }
.contact-sub { color: rgba(226,234,245,.7); margin-top: 1.1rem; max-width: 34em; }
.contact-right { display: flex; flex-direction: column; gap: .7rem; justify-content: center; }
.contact-row {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1rem 1.2rem; cursor: pointer;
  font-family: var(--body); font-size: 1rem; color: #fff; width: 100%;
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.contact-row:hover { background: rgba(255,255,255,.1); transform: translateX(5px); border-color: rgba(56,189,248,.5); }
.cr-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); min-width: 62px;
}
.cr-value { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(226,234,245,.55); padding: 1.6rem 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-tag { font-family: var(--display); letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .regions, .sectors { grid-template-columns: repeat(3, 1fr); }
  .why-works { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .career-grid { grid-template-columns: repeat(3, 1fr); }
  .snap-inner { grid-template-columns: 1fr 1fr; justify-content: start; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .duo-bridge { flex-direction: row; height: 54px; }
  .bridge-line { width: auto; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
  .cv-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 6.5rem; gap: 2.6rem; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: min(300px, 70vw); margin: 0 auto; }
  .pc-1 { left: 2%; } .pc-2 { right: 0; } .pc-3 { left: 10%; }
  .hero-content { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-stats div { text-align: center; }
  .career-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .regions, .sectors { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.2rem 1.8rem; }
  .brand-sub { display: none; }
  .snap-inner { grid-template-columns: 1fr; gap: .8rem; }
  .career-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .c-logo { height: 44px; }
  .c-logo img { max-height: 36px; max-width: 105px; }
}
