/* ============================================================
   FXerkan.com — DESIGN SYSTEM
   3 tema: gulf (Gulf livery) · neon (FX Neon) · paper (Daylight)
   ============================================================ */

:root {
  --font-display: "Saira Condensed", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;
  --maxw: 1140px;
  --radius: 10px;
}

/* ---- THEME: GULF (default) — asfalt + Gulf mavisi + turuncu ---- */
[data-theme="gulf"] {
  --bg:      #11161B;
  --panel:   #1A222A;
  --panel2:  #212B35;
  --acc1:    #F2730A;            /* imza / primary  */
  --acc1-hi: #FF8A1F;
  --acc2:    #8FD0E4;            /* ikincil / data  */
  --text:    #EDF2F4;
  --muted:   #93A1AD;
  --line:    rgba(143, 208, 228, 0.14);
  --nav-bg:  rgba(17, 22, 27, 0.82);
  --canvas-alpha: 0.55;
}

/* ---- THEME: NEON — FX logosu elektrik mavisi + neon mor ---- */
[data-theme="neon"] {
  --bg:      #0A0E1C;
  --panel:   #11172B;
  --panel2:  #171F38;
  --acc1:    #2E9BFF;
  --acc1-hi: #5CB2FF;
  --acc2:    #C26BFF;
  --text:    #EEF2FF;
  --muted:   #8E97B8;
  --line:    rgba(120, 140, 255, 0.16);
  --nav-bg:  rgba(10, 14, 28, 0.82);
  --canvas-alpha: 0.6;
}

/* ---- THEME: PAPER — aydınlık, mürekkep + sinyal mavisi ---- */
[data-theme="paper"] {
  --bg:      #F4F7FA;
  --panel:   #FFFFFF;
  --panel2:  #EBF0F5;
  --acc1:    #E8590C;
  --acc1-hi: #FF6B1A;
  --acc2:    #0B66E4;
  --text:    #14202B;
  --muted:   #5A6B7A;
  --line:    rgba(20, 50, 90, 0.14);
  --nav-bg:  rgba(244, 247, 250, 0.85);
  --canvas-alpha: 0.4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s, color 0.35s;
}

.mono { font-family: var(--font-mono); }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--acc1); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc1); color: var(--bg); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; color: var(--text); letter-spacing: 0.02em;
}
.fx { color: var(--acc1); }
.nav__logo .fx { color: var(--acc1); }

.nav__links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav__links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--acc2); }
.nav__cv { color: var(--acc2) !important; font-family: var(--font-mono); }
.nav__cta {
  color: var(--acc1) !important;
  border: 1px solid var(--acc1);
  padding: 6px 16px; border-radius: 999px;
}
.nav__cta:hover { background: var(--acc1); color: var(--bg) !important; }

.nav__controls { display: flex; gap: 8px; align-items: center; }
.ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 6px 10px; cursor: pointer; transition: all 0.2s;
}
.ctrl:hover { color: var(--acc1); border-color: var(--acc1); }
.theme-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc1) 50%, var(--acc2) 50%);
}
.nav__toggle { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 0;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--canvas-alpha); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 25%, transparent 75%);
}

.hero__inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 48px; align-items: center;
}

.hero__eyebrow { color: var(--acc2); font-size: 0.78rem; letter-spacing: 0.26em; margin-bottom: 16px; }

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.hero__name .accent { color: var(--acc1); }

.hero__tagline { margin-top: 16px; font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--acc2); min-height: 1.6em; }
.caret { animation: blink 1s steps(1) infinite; color: var(--acc1); }
@keyframes blink { 50% { opacity: 0; } }

.hero__slogan {
  margin-top: 10px;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acc1); font-weight: 700;
}
.hero__slogan::before { content: "// "; color: var(--muted); }

.hero__summary { margin-top: 20px; max-width: 600px; color: var(--muted); font-size: 1rem; }

.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500;
  padding: 13px 26px; border-radius: 6px;
  transition: transform 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn--primary { background: var(--acc1); color: var(--bg); border: 1px solid var(--acc1); }
.btn--primary:hover { transform: translateY(-2px); background: var(--acc1-hi); }
.btn--ghost { border: 1px solid var(--line); color: var(--acc2); }
.btn--ghost:hover { border-color: var(--acc2); transform: translateY(-2px); }
.btn--lg { font-size: 1.02rem; padding: 16px 32px; }

.hero__social { display: flex; gap: 14px; margin-top: 32px; }
.hero__social a, .contact__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.hero__social a:hover, .contact__social a:hover { color: var(--acc1); border-color: var(--acc1); transform: translateY(-2px); }
.hero__social svg, .contact__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero figure (diorama) */
.hero__figure {
  position: relative;
  justify-self: end;
  width: min(100%, 320px);
  animation: float 7s ease-in-out infinite;
}
.hero__figure img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--line),
    0 0 44px color-mix(in srgb, var(--acc1) 22%, transparent);
}
.hero__figure figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- PITBOARD ---------- */
.pitboard {
  position: relative;
  max-width: var(--maxw); margin: 56px auto 0; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.pitboard__cell { padding: 20px 16px; border-right: 1px solid var(--line); text-align: center; }
.pitboard__cell:last-child { border-right: none; }
.pitboard__value { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--acc1); line-height: 1; }
.pitboard__label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); overflow: hidden; padding: 15px 0;
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 48s linear infinite; }
.marquee__item {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee__item::before { content: "◆ "; color: var(--acc1); font-size: 0.6rem; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 105px 24px; max-width: calc(var(--maxw) + 48px); margin: 0 auto; }
.section--alt {
  max-width: none;
  background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { margin-bottom: 52px; }
.section__eyebrow { color: var(--acc1); font-size: 0.8rem; letter-spacing: 0.18em; margin-bottom: 12px; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  text-transform: uppercase; line-height: 1.02;
}
.section__sub { color: var(--muted); margin-top: 14px; max-width: 580px; }

/* ---------- CLICKABLE CARD BASE ---------- */
.clickable { cursor: pointer; }
.card-hint {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--acc1);
  opacity: 0; transition: opacity 0.2s;
}
.clickable:hover .card-hint, .clickable:focus-visible .card-hint { opacity: 1; }

/* ---------- PIPELINE ---------- */
.pipeline { position: relative; padding-left: 38px; }
.pipeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--acc2), var(--acc1)); opacity: 0.45;
}

.stage {
  position: relative; padding: 0 0 26px; margin-bottom: 26px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border-radius: var(--radius);
}
.stage.visible { opacity: 1; transform: none; }
.stage:last-child { margin-bottom: 0; padding-bottom: 0; }

.stage::before {
  content: ""; position: absolute; left: -37px; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--acc1);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc1) 14%, transparent);
}
.stage:first-child::before {
  background: var(--acc1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--acc1) 60%, transparent);
}

.stage__card { border-radius: var(--radius); padding: 4px 10px; margin: -4px -10px; transition: background 0.2s; }
.stage.clickable:hover .stage__card { background: color-mix(in srgb, var(--panel) 60%, transparent); }

/* NextEraLabs — featured freelance chapter (acc2 teal variant) */
.stage--featured2 .stage__card {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--acc2) 9%, var(--panel)) 0%,
    var(--panel) 70%);
  border: 1px solid color-mix(in srgb, var(--acc2) 45%, transparent);
  padding: 22px 24px; margin: 0;
  box-shadow: 0 0 36px color-mix(in srgb, var(--acc2) 14%, transparent);
}
.stage--featured2::before {
  background: var(--acc2);
  border-color: var(--acc2);
  box-shadow: 0 0 16px color-mix(in srgb, var(--acc2) 70%, transparent);
  animation: pulse2 2.4s ease-in-out infinite;
}
@keyframes pulse2 {
  50% { box-shadow: 0 0 4px color-mix(in srgb, var(--acc2) 30%, transparent); }
}
.stage--featured2 .stage__founder {
  color: var(--bg);
  background: var(--acc2);
}
.stage--featured .stage__card {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--acc1) 9%, var(--panel)) 0%,
    var(--panel) 70%);
  border: 1px solid color-mix(in srgb, var(--acc1) 45%, transparent);
  padding: 22px 24px; margin: 0;
  box-shadow: 0 0 36px color-mix(in srgb, var(--acc1) 14%, transparent);
}
.stage--featured::before {
  background: var(--acc1);
  box-shadow: 0 0 16px color-mix(in srgb, var(--acc1) 70%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 4px color-mix(in srgb, var(--acc1) 30%, transparent); }
}
.stage__founder {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--bg);
  background: var(--acc1); border-radius: 4px; padding: 4px 10px;
  margin-bottom: 10px;
}

.stage__meta {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem;
}
.stage__period { color: var(--acc1); font-weight: 700; letter-spacing: 0.08em; }
.stage__location { color: var(--muted); }
.stage__company {
  font-family: var(--font-display); font-weight: 700; font-size: 1.65rem;
  text-transform: uppercase; margin-top: 8px; letter-spacing: 0.01em;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.stage__role { color: var(--acc2); font-weight: 600; font-size: 0.96rem; margin-top: 2px; }
.stage__highlights { margin: 13px 0 0; padding-left: 18px; color: var(--muted); }
.stage__highlights li { margin-bottom: 7px; font-size: 0.93rem; }
.stage__highlights li::marker { color: var(--acc1); }
.stage__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--acc2);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--acc2) 6%, transparent);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- STACK ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.stack__card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color 0.25s, transform 0.25s;
}
.stack__card:hover { border-color: color-mix(in srgb, var(--acc1) 45%, transparent); transform: translateY(-3px); }
.stack__group {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  text-transform: uppercase; color: var(--acc1); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.stack__group::before { content: ""; width: 22px; height: 2px; background: var(--acc2); }
.stack__items { list-style: none; }
.stack__items li {
  font-size: 0.9rem; color: var(--muted); padding: 7px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--acc2) 12%, transparent);
}
.stack__items li:last-child { border-bottom: none; }

/* ---------- PROJECTS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px;
  cursor: pointer; transition: all 0.2s;
}
.filters button:hover { color: var(--acc2); border-color: var(--acc2); }
.filters button.active { background: var(--acc1); border-color: var(--acc1); color: var(--bg); font-weight: 700; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.project::after {
  content: attr(data-year);
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: color-mix(in srgb, var(--acc2) 14%, transparent);
}
.project:hover { border-color: color-mix(in srgb, var(--acc1) 50%, transparent); transform: translateY(-3px); }
.project__client {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--acc1);
}
.project__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.project__desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project.hidden { display: none; }

/* ---------- CERTS ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel2);
  border: 1px solid var(--line); border-left: 3px solid var(--acc1);
  border-radius: 8px; padding: 18px 20px;
  transition: transform 0.2s;
}
.cert:hover { transform: translateX(4px); }
.cert__badge {
  width: 56px; height: 56px; flex-shrink: 0;
  object-fit: contain; border-radius: 8px;
}
.cert__code { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; color: var(--acc2); white-space: nowrap; margin-bottom: 2px; }
.cert__name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.cert__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

/* ---------- STORY ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.story__badge {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 30px;
}
.story__badge img {
  width: 130px; height: 130px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px color-mix(in srgb, var(--acc2) 28%, transparent);
}
.story__equation {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  font-size: 0.94rem; letter-spacing: 0.1em; color: var(--muted);
}
.story__equation b { color: var(--acc1); }
.story__equation .op { color: var(--acc2); font-weight: 700; }
.story__equation .result { color: var(--text); font-weight: 700; }
.story__text p { color: var(--muted); margin-bottom: 18px; font-size: 1rem; }
.story__text strong { color: var(--text); }
.story__text em { color: var(--acc2); font-style: normal; }

.story__milestones {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 52px;
}
.milestone {
  border: 1px solid var(--line); border-top: 3px solid var(--acc2);
  border-radius: 8px; padding: 18px 20px; background: var(--panel);
}
.milestone__year { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: var(--acc1); text-transform: uppercase; }
.milestone__text { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* ---------- PIT LANE ---------- */
.pitlane { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.pit {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.pit:hover { border-color: var(--acc2); transform: translateY(-3px); }
.pit__badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--acc1);
  border: 1px solid color-mix(in srgb, var(--acc1) 40%, transparent);
  border-radius: 4px; padding: 3px 8px;
}
.pit__icon { width: 34px; height: 34px; color: var(--acc2); margin-bottom: 14px; }
.pit__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pit__title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.pit__desc { color: var(--muted); font-size: 0.9rem; }
.pit .card-hint { display: inline-block; margin-top: 12px; }

/* ---------- CONTACT ---------- */
.section--contact { padding-top: 120px; padding-bottom: 120px; }
.contact {
  display: grid; grid-template-columns: 0.62fr 1.38fr;
  gap: 56px; align-items: center;
}
.contact__portrait img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 40px color-mix(in srgb, var(--acc1) 16%, transparent);
}
.contact__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase; line-height: 1; margin: 14px 0 18px;
}
.contact__sub { color: var(--muted); max-width: 480px; margin-bottom: 34px; }
.contact__social { display: flex; gap: 16px; margin-top: 34px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 24px; text-align: center;
  color: var(--muted); font-size: 0.76rem; letter-spacing: 0.06em;
}
.footer .mono:first-child { color: var(--acc1); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.footer__copy { margin-top: 8px; opacity: 0.75; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 78%, black);
  opacity: 0.86; backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 86vh; overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line); border-top: 3px solid var(--acc1);
  border-radius: 14px;
  padding: 34px 36px 32px;
  animation: modalIn 0.28s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(0.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s;
}
.modal__close:hover { color: var(--acc1); border-color: var(--acc1); }
/* Modal header row: logo left OR badge center */
.modal__header-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; min-height: 0; }
.modal__header-row:empty { display: none; }
.modal__logo-wrap { flex-shrink: 0; }
.modal__logo { width: 68px; height: 68px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.modal__logo-text {
  width: 68px; height: 68px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--bg);
}
.modal__badge { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 auto 20px; }
.modal__image { border-radius: 10px; border: 1px solid var(--line); margin-bottom: 22px; }
/* Website / Credly link */
.modal__website-wrap { margin-bottom: 14px; }
.modal__website {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--acc2); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--acc2) 35%, transparent);
  border-radius: 6px; padding: 6px 14px;
  transition: background 0.18s, color 0.18s;
}
.modal__website:hover { background: color-mix(in srgb, var(--acc2) 12%, transparent); color: var(--acc2); }
.modal__eyebrow { color: var(--acc1); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }
.modal__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 8px 0 4px; }
.modal__subtitle { color: var(--acc2); font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.modal__body { color: var(--muted); font-size: 0.96rem; }
.modal__body p { margin-bottom: 12px; }
.modal__body ul { padding-left: 18px; margin-bottom: 12px; }
.modal__body li { margin-bottom: 7px; }
.modal__body li::marker { color: var(--acc1); }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
body.modal-open { overflow: hidden; }

/* hidden attribute her zaman kazansın — class display:block ezmesin */
[hidden] { display: none !important; }

/* ── Per-tip modal stiller ──────────────────────────────────────────
   data-modal-type her kart tipine özgü alanları açar/kapatır.
   Gelecekte video, hyperlink vb. eklemek için buraya stil ekle.     */

/* Timeline / Career: logo göster, resim/badge gizle */
.modal__dialog[data-modal-type="timeline"] .modal__logo-wrap { display: block; }

/* Proje: logo yok, resim yok */
.modal__dialog[data-modal-type="project"] .modal__logo-wrap { display: none; }
.modal__dialog[data-modal-type="project"] .modal__header-row { display: none; }

/* Cert: badge merkezde, logo yok */
.modal__dialog[data-modal-type="cert"] .modal__logo-wrap { display: none; }
.modal__dialog[data-modal-type="cert"] .modal__badge {
  display: block; margin: 0 auto 20px; width: 140px; height: 140px;
}

/* Pit Lane: tam genişlik resim varsa, logo yok */
.modal__dialog[data-modal-type="pit"] .modal__logo-wrap { display: none; }
.modal__dialog[data-modal-type="pit"] .modal__image {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 10px; margin-bottom: 16px;
}
.modal__dialog[data-modal-type="pit"] .modal__header-row {
  display: block; /* resim varsa full-width göster, yoksa header-row gizlenir hidden ile */
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__figure { justify-self: center; width: min(70%, 280px); }
  .story { grid-template-columns: 1fr; }
  .story__badge { position: static; }
  .contact { grid-template-columns: 1fr; }
  .contact__portrait { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav__toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.25s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 20px 0; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__controls { margin-top: 8px; }

  .hero { padding-top: 96px; }
  .pitboard { grid-template-columns: repeat(2, 1fr); }
  .pitboard__cell { border-bottom: 1px solid var(--line); }
  .section { padding: 78px 20px; }
  .pipeline { padding-left: 30px; }
  .stage::before { left: -29px; }
  .modal__dialog { padding: 26px 22px; }
}

/* Pit lane card inline image */
.pit__cardimg {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px;
  border: 1px solid var(--line);
}

/* Marquee employer marker */
.marquee__item--emp { color: var(--acc1); }
.marquee__item--emp::before { content: "⚙ "; color: var(--acc2); font-size: 0.6rem; vertical-align: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
