/* ═══════════════════════════════════════════════════════════════════════
   Flyification — brand site stylesheet  v5
   Version C · Auric Wing / Aero Signal / Digital AI Refinement · 2026-07-03
   Static, dependency-free, privacy-first (no external fonts / requests).
   Deep navy base · aurora teal → neon cyan → auric gold · silver-white type.
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0a1020;
  --bg-deep:     #05080f;
  --surface:     #101b30;
  --surface-2:   #14203a;
  --surface-3:   #1b2b47;
  --border:      #223452;
  --border-soft: #182740;
  --teal:        #3fd8c2;
  --teal-bright: #7ff0e2;
  --teal-dim:    #2ba896;
  --cyan:        #9becff;
  --teal-glow:   rgba(63, 216, 194, 0.22);
  --gold:        #eab84c;
  --gold-bright: #f7dd93;
  --amber:       #d99a3d;
  --blue:        #7bb4ea;
  --text:        #eaf0f9;
  --muted:       #97a6bf;
  --muted-dim:   #66768f;
  --max-w:       1220px;
  --radius-lg:   22px;
  --radius:      16px;
  --radius-sm:   11px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1200px 620px at 84% -6%, rgba(63, 216, 194, 0.13), transparent 58%),
    radial-gradient(1000px 520px at 8% 2%, rgba(123, 180, 234, 0.08), transparent 56%),
    radial-gradient(1000px 520px at 62% 116%, rgba(234, 184, 76, 0.05), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine grain texture — premium depth, extremely subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 26px; width: 100%; }

/* ─── Eyebrow label ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  flex-shrink: 0;
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(7, 11, 20, 0.74);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--gold) 70%, transparent);
  opacity: 0.6;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 13px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-tile {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, #16233c 0%, #0c1424 100%);
  border: 1px solid rgba(63, 216, 194, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.4);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand-tile img { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(63,216,194,0.35)); }
.brand:hover .brand-tile {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(63,216,194,0.5), 0 8px 24px rgba(63,216,194,0.24);
  transform: translateY(-1px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c4d3ea 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.82;
  margin-top: 3px;
}

.site-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c3d0e6;
  padding: 5px 0;
  position: relative;
  transition: color 0.18s var(--ease), text-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 10px rgba(63, 216, 194, 0.55);
  transition: right 0.28s var(--ease);
}
.site-nav a:hover { color: var(--teal-bright); text-shadow: 0 0 14px rgba(127, 240, 226, 0.4); }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--teal-bright); text-shadow: 0 0 16px rgba(127, 240, 226, 0.5); }
.site-nav a[aria-current="page"]::after { right: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: 1; }

.lang-switch {
  order: 2;
  margin-left: auto;
  display: flex;
  gap: 3px;
  background: rgba(16, 27, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch a {
  display: inline-block;
  padding: 5px 15px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: 999px;
  line-height: 1.4;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] {
  background: linear-gradient(135deg, var(--teal-dim), var(--teal));
  color: #04201b;
  box-shadow: 0 2px 12px rgba(63, 216, 194, 0.3);
}

@media (min-width: 960px) {
  .site-nav { order: 2; width: auto; flex: 1; justify-content: center; gap: 26px; }
  .lang-switch { order: 3; margin-left: 0; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-dim) 0%, var(--teal) 55%, var(--teal-bright) 100%);
  color: #04201b;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(63, 216, 194, 0.24);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { color: #04201b; box-shadow: 0 12px 34px var(--teal-glow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover {
  color: var(--teal-bright);
  border-color: rgba(63, 216, 194, 0.5);
  background: rgba(63, 216, 194, 0.07);
}
.btn-ghost svg { color: var(--gold-bright); }
.btn-sm { padding: 10px 20px; font-size: 0.83rem; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 62px;
  padding-bottom: 70px;
  min-height: 528px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* Near-black cinematic canvas the wing melts into — matches the asset's dark edges */
  background:
    radial-gradient(1180px 800px at 82% 34%, rgba(63, 216, 194, 0.09), transparent 60%),
    radial-gradient(760px 520px at 99% 4%, rgba(234, 184, 76, 0.05), transparent 60%),
    linear-gradient(180deg, #070c15 0%, #05080f 60%, var(--bg-deep) 100%);
}
/* Directional scrim: anchors the copy on near-black at the left, lets the wing
   stay luminous on the right — keeps text off the busy image, not a boxed frame */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(5, 8, 15, 0.95) 0%,
    rgba(5, 8, 15, 0.78) 26%,
    rgba(5, 8, 15, 0.34) 46%,
    rgba(5, 8, 15, 0.04) 62%,
    transparent 72%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}
.hero-inner > * { min-width: 0; }

/* Full-bleed luminous Aero Signal wing — fused into the canvas, no frame, no box */
.hero-art {
  position: absolute;
  z-index: 0;
  top: -4%;
  right: -1%;
  bottom: 2%;
  width: 55%;
  pointer-events: none;
  background-image: url("/assets/brand/hero-wing.jpg");
  background-image: -webkit-image-set(url("/assets/brand/hero-wing.webp") type("image/webp"), url("/assets/brand/hero-wing.jpg") type("image/jpeg"));
  background-image: image-set(url("/assets/brand/hero-wing.webp") type("image/webp"), url("/assets/brand/hero-wing.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  /* Crop toward the wing itself — pushes the horizon/water/mountain out of frame */
  background-position: 60% 30%;
  background-size: cover;
  /* Feather every edge so it dissolves into the hero background instead of sitting in a rectangle */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%),
    radial-gradient(120% 116% at 64% 42%, #000 54%, transparent 94%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 40%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%),
    radial-gradient(120% 116% at 64% 42%, #000 54%, transparent 94%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: saturate(0.99) contrast(1.0) brightness(0.97);
  animation: heroFloat 12s ease-in-out infinite;
  will-change: transform;
}
/* soft luminous bloom at the wing's core, ties the two halves together */
.hero-art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 46% at 54% 50%, rgba(63, 216, 194, 0.16), rgba(63, 216, 194, 0) 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: rgba(63, 216, 194, 0.06);
  border: 1px solid rgba(63, 216, 194, 0.24);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 9px 1px rgba(63, 216, 194, 0.8);
  animation: livepulse 2.4s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 216, 194, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(63, 216, 194, 0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 20px;
  color: var(--text);
  overflow-wrap: break-word;
}
.hero h1 .hl {
  font-style: italic;
  background: linear-gradient(104deg, var(--teal) 4%, var(--cyan) 46%, var(--gold) 104%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 466px;
  margin: 0 0 30px;
  line-height: 1.68;
}
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-trust .tt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-trust .tt svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.hero-trust .tt:nth-child(2) svg { color: var(--gold); }
.hero-trust .tt:nth-child(3) svg { color: var(--blue); }

.hero-content { max-width: 528px; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (min-width: 1280px) {
  .hero { min-height: 560px; }
  .hero-art { width: 54%; right: -1%; }
  .hero-content { max-width: 552px; }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 52px;
    text-align: center;
  }
  .hero-content { max-width: 560px; margin: 0 auto; }
  .hero-content .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  /* Wing becomes a faint atmospheric halo in the upper hero — the copy sits on
     near-black below it, never fighting a busy image line by line */
  .hero-art {
    top: -6%;
    right: -20%;
    bottom: auto;
    width: 128%;
    height: 58%;
    opacity: 0.30;
    background-position: 56% 24%;
    filter: saturate(0.95) brightness(0.9);
    -webkit-mask-image: radial-gradient(72% 66% at 62% 26%, #000 30%, transparent 78%);
    mask-image: radial-gradient(72% 66% at 62% 26%, #000 30%, transparent 78%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: none;
  }
  .hero-art-glow { display: none; }
  /* Even vertical scrim so centred copy stays crisp over the halo */
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(5, 8, 15, 0.62) 0%,
      rgba(5, 8, 15, 0.80) 46%,
      rgba(5, 8, 15, 0.90) 100%
    );
  }
}

/* ─── Compact premium mobile header + hero (≤720px) ──────────────────── */
@media (max-width: 720px) {
  /* Header: tight logo row + smaller EN/TR + a full-width wrapping pill nav.
     No JS — every route is a rounded pill that wraps onto two centred rows, so
     all 7 items stay fully visible with no clipped labels or horizontal scroll. */
  .header-inner { padding: 10px 18px; gap: 6px 12px; }
  .brand { gap: 10px; }
  .brand-tile { width: 38px; height: 38px; border-radius: 11px; }
  .brand-tile img { width: 25px; height: 25px; }
  .brand-name { font-size: 1.06rem; }
  .brand-tag { font-size: 0.48rem; letter-spacing: 0.18em; margin-top: 2px; }

  .lang-switch { padding: 3px; gap: 2px; }
  .lang-switch a { padding: 4px 11px; font-size: 0.68rem; }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
  }
  .site-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(16, 27, 48, 0.55);
    border: 1px solid var(--border-soft);
    color: var(--text-soft, var(--muted));
    white-space: nowrap;
  }
  /* Pills carry their own state colour — drop the sliding underline here so it
     never floats oddly inside a rounded pill. */
  .site-nav a::after { display: none; }
  .site-nav a:hover {
    color: var(--text);
    border-color: rgba(63, 216, 194, 0.4);
  }
  .site-nav a[aria-current="page"] {
    color: #04201b;
    background: linear-gradient(135deg, var(--teal-dim), var(--teal));
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(63, 216, 194, 0.28);
  }

  /* Hero: smaller, calmer type — strong hierarchy without oversized blocks */
  .hero-badge {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    padding: 6px 13px 6px 11px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 16px;
  }
  .hero .lede {
    font-size: 0.97rem;
    line-height: 1.6;
    max-width: 430px;
    margin-bottom: 26px;
  }
  .hero-cta { gap: 11px; }
  .hero-cta .btn { padding: 12px 24px; font-size: 0.86rem; }
  .hero-trust { gap: 12px 20px; margin-top: 24px; }
  .hero-trust .tt { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: 78px 0; position: relative; }
.section-alt {
  background: rgba(14, 23, 40, 0.42);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 380px at 82% 0%, rgba(63,216,194,0.05), transparent 60%);
}
.section-head { max-width: 640px; margin-bottom: 40px; position: relative; }
.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head.split > div:first-child { max-width: 560px; }
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section .section-sub { font-size: 1.04rem; color: var(--muted); max-width: 560px; }
.section-head.split .section-sub { text-align: right; }
.accent-teal {
  background: linear-gradient(100deg, var(--teal) 18%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.accent-gold {
  background: linear-gradient(100deg, var(--gold) 8%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#projects, #projeler, #capabilities, #yetenekler { scroll-margin-top: 84px; }

/* ─── Projects grid — 4 luminous cards ───────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(20, 32, 58, 0.62) 0%, rgba(10, 17, 32, 0.74) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* faint luminous edge sheen */
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(63, 216, 194, 0.38), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  z-index: 3;
}
.proj-card:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 216, 194, 0.42);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(63, 216, 194, 0.16), 0 0 34px rgba(63, 216, 194, 0.08);
}
.proj-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.proj-thumb picture { position: absolute; inset: 0; }
.proj-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 10, 20, 0.62) 100%);
  pointer-events: none;
}

/* Flagship badge on the artwork */
.proj-flag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #1c1403;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 999px;
  padding: 5px 11px 5px 10px;
  box-shadow: 0 4px 14px rgba(234, 184, 76, 0.4);
}
.proj-flag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1c1403;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Coming-soon plus node */
.proj-plus {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal-bright);
  background: rgba(8, 14, 26, 0.62);
  border: 1px solid rgba(63, 216, 194, 0.42);
  box-shadow: 0 0 16px rgba(63, 216, 194, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proj-plus svg { width: 15px; height: 15px; }

.proj-info {
  position: relative;
  z-index: 1;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-info h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.proj-info > p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.platform-icons { display: flex; gap: 8px; }
.platform-icons span {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.platform-icons svg { width: 15px; height: 15px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(63, 216, 194, 0.06);
  border: 1px solid rgba(63, 216, 194, 0.24);
  color: var(--teal);
}

.proj-coming-chip {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal-bright);
  border: 1px solid rgba(63, 216, 194, 0.34);
  background: rgba(63, 216, 194, 0.07);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 18px;
}

.proj-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-bright);
}
.proj-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.proj-link:hover svg { transform: translateX(4px); }
.proj-link.secondary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.proj-link.secondary:hover { color: var(--teal-bright); }

/* Flagship variant — warm gold emphasis */
.proj-card.flagship { border-color: rgba(234, 184, 76, 0.44); }
.proj-card.flagship::before {
  background: linear-gradient(155deg, rgba(234, 184, 76, 0.5), transparent 48%);
  opacity: 0.85;
}
.proj-card.flagship:hover {
  border-color: rgba(234, 184, 76, 0.62);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(234, 184, 76, 0.3), 0 0 40px rgba(234, 184, 76, 0.14);
}
.proj-card.flagship .proj-link:first-child { color: var(--gold-bright); }

@media (max-width: 1080px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ─── Capabilities ───────────────────────────────────────────────────── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cap-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface) 0%, rgba(14, 23, 40, 0.6) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 22px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.cap-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(63, 216, 194, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.cap-card:hover {
  border-color: rgba(63, 216, 194, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  transform: translateY(-4px);
}
.cap-card:hover::after { opacity: 1; }
.cap-num {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.cap-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--surface-3) 0%, var(--surface) 100%);
  margin: 0 auto 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 16px rgba(0,0,0,0.28), 0 0 22px rgba(63, 216, 194, 0.1);
}
.cap-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(63, 216, 194, 0.7), rgba(234, 184, 76, 0.35) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cap-icon svg { width: 23px; height: 23px; color: var(--teal-bright); position: relative; z-index: 1; }
.cap-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cap-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.cap-arrow {
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  opacity: 0.7;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.cap-arrow svg { width: 18px; height: 18px; }
.cap-card:hover .cap-arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 1080px) { .caps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .caps-grid { grid-template-columns: repeat(2, 1fr); } .section-head.split .section-sub { text-align: left; } }
@media (max-width: 440px)  { .caps-grid { grid-template-columns: 1fr; } }

/* ─── Inner pages ────────────────────────────────────────────────────── */
.page-main { flex: 1; }
.page-header { padding-top: 66px; padding-bottom: 12px; position: relative; }
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 320px at 18% 0%, rgba(63,216,194,0.07), transparent 62%);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 15px;
  line-height: 1.08;
}
.page-header .sub { font-size: 1.05rem; color: var(--muted); max-width: 620px; }
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  position: relative;
}
.page-header-inner > div:first-child { min-width: 0; }
.page-header-visual { flex-shrink: 0; width: 320px; max-width: 40%; }
.page-header-visual .ph-art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}
.page-header-visual .ph-art img { width: 100%; display: block; }
@media (max-width: 760px) {
  .page-header-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .page-header-visual { width: 100%; max-width: 360px; }
}

.prose { padding-top: 38px; padding-bottom: 84px; }
.prose > * { max-width: 740px; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 38px 0 13px; color: var(--text); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 0.98rem; color: var(--text); margin-bottom: 15px; line-height: 1.74; }
.prose p.small { font-size: 0.86rem; color: var(--muted); }
.prose ul { margin: 0 0 18px 22px; }
.prose li { font-size: 0.96rem; margin-bottom: 9px; color: var(--text); }
.prose .muted, .prose li .muted { color: var(--muted); }

.info-box {
  position: relative;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 24px 0 34px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.info-box::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--teal); }
.info-box.gold::before { background: var(--gold); }
.info-box h2, .info-box h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin: 0 0 11px;
}
.info-box.gold h2, .info-box.gold h3 { color: var(--gold-bright); }
.info-box p { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.62; }
.info-box p:last-child { margin-bottom: 0; }
.info-box .email-link { font-size: 1.2rem; font-weight: 800; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #03060c 100%);
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--gold) 70%, transparent);
  opacity: 0.5;
}
.site-footer::after {
  content: '';
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 460px;
  max-width: 120vw;
  background: radial-gradient(circle at 50% 100%, rgba(63,216,194,0.06), transparent 62%);
  pointer-events: none;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 46px 0 34px;
  position: relative;
}
.footer-brand .brand-tile { width: 40px; height: 40px; }
.footer-brand .brand-tile img { width: 26px; height: 26px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  flex: 1;
}
.footer-nav a { font-size: 0.88rem; color: var(--muted); transition: color 0.16s var(--ease); }
.footer-nav a:hover { color: var(--teal-bright); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-social a:hover { color: var(--teal-bright); border-color: rgba(63,216,194,0.45); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 30px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.footer-bottom .copy { font-size: 0.8rem; color: var(--muted); opacity: 0.75; }
.footer-meta { font-size: 0.8rem; color: var(--muted-dim); }
.footer-meta a { color: var(--muted); font-weight: 600; }
.footer-meta a:hover { color: var(--teal-bright); }

@media (max-width: 780px) {
  .footer-main { flex-direction: column; text-align: center; gap: 24px; padding: 40px 0 28px; }
  .footer-nav { order: 3; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── Responsive tuning ──────────────────────────────────────────────── */
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .proj-info { padding: 20px 20px 22px; }
  /* keep the very-narrow headline tight — governed alongside the ≤720px block */
  .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
}

/* ═══════════════════════════════════════════════════════════════════════
   v6 · Luminous polish — a single glow language across the whole page.
   Faint teal/gold particle field, ambient section blooms, luminous dividers.
   Restrained on purpose: readability and mobile quality come first.
   ═══════════════════════════════════════════════════════════════════════ */

/* Sparse teal/gold particle field — fixed, extremely subtle, behind content */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(127, 240, 226, 0.55) 0.6px, transparent 1.6px),
    radial-gradient(circle at 50% 50%, rgba(247, 221, 147, 0.45) 0.6px, transparent 1.6px);
  background-size: 128px 128px, 196px 196px;
  background-position: 0 0, 64px 96px;
  opacity: 0.32;
}

/* Content sits above every ambient layer */
.section > .wrap { position: relative; z-index: 1; }

/* Ambient corner blooms — teal top-left, gold bottom-right — tied to the wing */
.section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 300px at 4% 2%, rgba(63, 216, 194, 0.055), transparent 60%),
    radial-gradient(600px 280px at 97% 98%, rgba(234, 184, 76, 0.05), transparent 62%);
}

/* Luminous hairline dividers framing the featured section */
.section-alt {
  border-top: none;
  border-bottom: none;
}
.section-alt::after {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(63, 216, 194, 0.4) 32%, rgba(234, 184, 76, 0.34) 68%, transparent) 1;
}

/* Section-head with a trailing action (Projects → View all) */
.section-head.with-action {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 40px;
  flex-wrap: wrap;
}
.section-head.with-action > div { max-width: 620px; }
.section-head.with-action .view-all { flex-shrink: 0; margin-bottom: 4px; }

@media (max-width: 620px) {
  .section-head.with-action .view-all { display: none; }
  body::after { opacity: 0.24; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}
