/* ============================================================
   Yunus Emre Edizer — Portfolio
   "Engineering Atelier" — quiet-luxury / editorial-technical
   Deep ink · champagne accent · monospace metadata
   ============================================================ */

:root {
  /* Neutrals — deep cool ink, warm off-white text */
  --bg: #0a0b0e;
  --bg-soft: #0f1116;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(236, 233, 226, 0.09);
  --border-strong: rgba(236, 233, 226, 0.18);
  --hairline: rgba(255, 255, 255, 0.14);
  --text: #ece9e2;
  --text-dim: #98968e;
  --text-faint: #605e58;

  /* Single accent — champagne gold */
  --accent: #cbab72;
  --accent-bright: #e6cf9a;
  --accent-soft: rgba(203, 171, 114, 0.12);
  --on-accent: #14120c;
  --live: #6fca8f;
  --grad: linear-gradient(100deg, #e9d6a6 0%, #cbab72 38%, #f2e6c4 62%, #b8955c 100%);

  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-soft: #fbfaf6;
  --surface: rgba(24, 22, 16, 0.028);
  --surface-hover: rgba(24, 22, 16, 0.055);
  --border: rgba(24, 22, 16, 0.11);
  --border-strong: rgba(24, 22, 16, 0.22);
  --hairline: rgba(24, 22, 16, 0.12);
  --text: #17161b;
  --text-dim: #55534c;
  --text-faint: #8f8d84;
  --accent: #997a3c;
  --accent-bright: #7d6330;
  --accent-soft: rgba(153, 122, 60, 0.12);
  --on-accent: #fbfaf6;
  --live: #2e9c5c;
  --grad: linear-gradient(100deg, #8a6c31 0%, #b08f4c 45%, #7a5f2b 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

::selection { background: rgba(203, 171, 114, 0.28); color: #fff; }
:root[data-theme="light"] ::selection { color: #17161b; }
a { color: inherit; text-decoration: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 1000;
  box-shadow: 0 0 12px rgba(203, 171, 114, 0.5);
  transition: width 0.08s linear;
}

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.orb-1 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(203,171,114,0.5), transparent 70%); top: -160px; left: -100px; opacity: 0.4; animation: float1 24s var(--ease) infinite; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(70,90,130,0.45), transparent 70%); top: 44%; right: -180px; opacity: 0.35; animation: float2 28s var(--ease) infinite; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(150,120,80,0.35), transparent 70%); bottom: -140px; left: 32%; opacity: 0.3; animation: float3 32s var(--ease) infinite; }
:root[data-theme="light"] .orb { opacity: 0.22 !important; filter: blur(120px); }
@keyframes float1 { 50% { transform: translate(110px, 70px) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(-90px, -50px) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(50px, -80px) scale(1.15); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(236,233,226,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,233,226,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}
:root[data-theme="light"] .grid-overlay { background-image: linear-gradient(rgba(24,22,16,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(24,22,16,0.03) 1px, transparent 1px); }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; padding: 18px 24px; transition: padding 0.4s var(--ease); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 11px 22px;
  border-radius: 100px;
  background: rgba(15, 17, 22, 0.5);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hairline);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: all 0.4s var(--ease);
}
:root[data-theme="light"] .nav-inner { background: rgba(251, 250, 246, 0.6); }
.nav.scrolled .nav-inner { background: rgba(15, 17, 22, 0.78); border-color: var(--border-strong); box-shadow: inset 0 1px 0 var(--hairline), 0 16px 44px rgba(0,0,0,0.42); }
:root[data-theme="light"] .nav.scrolled .nav-inner { background: rgba(251, 250, 246, 0.9); box-shadow: inset 0 1px 0 var(--hairline), 0 14px 40px rgba(24,22,16,0.1); }

.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.brand-text { font-size: 16px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 15px; border-radius: 100px; font-size: 13.5px; color: var(--text-dim); transition: all 0.25s var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-cta { padding: 9px 20px; border-radius: 100px; font-size: 13.5px; font-weight: 500; background: var(--text); color: var(--bg); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236,233,226,0.16); }

.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 8px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: all 0.3s var(--ease); }
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--accent); transform: rotate(20deg); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; gap: 4px; max-width: 1200px; margin: 10px auto 0; padding: 14px; border-radius: 22px; background: rgba(15,17,22,0.92); border: 1px solid var(--border); backdrop-filter: blur(20px); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all 0.35s var(--ease); }
:root[data-theme="light"] .nav-mobile { background: rgba(251,250,246,0.95); }
.nav-mobile.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile a { padding: 12px 16px; border-radius: 14px; color: var(--text-dim); font-size: 16px; }
.nav-mobile a:hover { background: var(--surface-hover); color: var(--text); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 70px; position: relative; }
.hero-content { max-width: 920px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 100px; margin-bottom: 34px; background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--hairline); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-dim); backdrop-filter: blur(10px); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(203,171,114,0.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(203,171,114,0); } 100% { box-shadow: 0 0 0 0 rgba(203,171,114,0); } }

.hero-title { font-size: clamp(3.4rem, 11.5vw, 8.4rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em; margin-bottom: 30px; text-wrap: balance; }
.hero-title .line { display: block; }
.grad { background-image: linear-gradient(100deg, #b8955c 0%, #e9d6a6 18%, #cbab72 34%, #fff7e0 50%, #cbab72 66%, #e9d6a6 82%, #b8955c 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }

.hero-sub { font-size: clamp(1.05rem, 2.1vw, 1.32rem); color: var(--text-dim); max-width: 620px; margin: 0 auto 42px; line-height: 1.6; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-role { font-family: var(--mono); font-size: clamp(0.95rem, 2vw, 1.18rem); letter-spacing: 0.01em; color: var(--text-dim); margin: -12px 0 30px; min-height: 1.5em; }
.hero-role .type-text { color: var(--accent); }
.type-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 4px; vertical-align: -0.18em; background: var(--accent); animation: caretBlink 1.05s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Cursor spotlight (added via JS) */
.cursor-glow { position: fixed; top: 0; left: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(203,171,114,0.13), rgba(203,171,114,0) 60%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s var(--ease); will-change: transform; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(203,171,114,0.28), rgba(203,171,114,0) 62%); mix-blend-mode: multiply; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 74px; }
.btn { display: inline-flex; align-items: center; padding: 15px 30px; border-radius: 100px; font-size: 14.5px; font-weight: 500; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(236,233,226,0.2); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); box-shadow: inset 0 1px 0 var(--hairline); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-num { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.12em; }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--text-dim), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -20px; left: 0; width: 1px; height: 20px; background: var(--accent); animation: scrolldot 2.2s var(--ease) infinite; }
@keyframes scrolldot { to { top: 46px; } }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 130px 24px; }
.section-head { margin-bottom: 66px; max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.section-title { font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-lead { font-size: clamp(1.15rem, 2.3vw, 1.55rem); line-height: 1.5; color: var(--text); letter-spacing: -0.02em; }
.about-points { display: flex; flex-direction: column; gap: 12px; }
.point { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--hairline); transition: all 0.35s var(--ease); }
.point:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateX(6px); }
.point-ico { color: var(--accent); font-size: 11px; margin-top: 6px; }
.point h4 { font-size: 15.5px; margin-bottom: 5px; }
.point p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ---------- Stack ---------- */
.stack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.stack-card { flex: 1 1 320px; max-width: 400px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--hairline); transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.stack-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.4s var(--ease); }
.stack-card:hover { transform: translateY(-5px); background: var(--surface-hover); border-color: var(--border-strong); }
.stack-card:hover::after { opacity: 0.7; }
.stack-card h4 { font-size: 14.5px; margin-bottom: 18px; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 5px 11px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); transition: all 0.25s var(--ease); }
:root[data-theme="light"] .chips span { background: rgba(24,22,16,0.04); }
.stack-card:hover .chips span { border-color: var(--border-strong); color: var(--text); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; }
.filter { padding: 9px 19px; border-radius: 100px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; transition: all 0.3s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }

/* ---------- Projects ---------- */
.projects { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.project { flex: 1 1 345px; max-width: 400px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--hairline); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); display: flex; flex-direction: column; cursor: pointer; transform-style: preserve-3d; will-change: transform; }
.project:hover { border-color: var(--border-strong); box-shadow: inset 0 1px 0 var(--hairline), 0 32px 64px rgba(0,0,0,0.5); }
:root[data-theme="light"] .project:hover { box-shadow: inset 0 1px 0 var(--hairline), 0 28px 56px rgba(24,22,16,0.14); }
.project.hide { display: none; }
.project.filtering { animation: cardIn 0.5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.project-media { height: 148px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.project-emoji { font-size: 47px; opacity: 0.92; filter: grayscale(1) sepia(0.55) saturate(1.6) hue-rotate(2deg) brightness(1.02) contrast(0.97) drop-shadow(0 10px 22px rgba(0,0,0,0.45)); transition: transform 0.5s var(--ease), filter 0.5s var(--ease), opacity 0.5s var(--ease); }
.project:hover .project-emoji { transform: scale(1.12) rotate(-4deg); opacity: 1; filter: grayscale(0.12) sepia(0.12) saturate(1.25) brightness(1.06) drop-shadow(0 12px 26px rgba(0,0,0,0.5)); }
:root[data-theme="light"] .project-emoji { filter: grayscale(1) sepia(0.6) saturate(1.8) hue-rotate(0deg) brightness(0.72) contrast(1.02) drop-shadow(0 8px 16px rgba(24,22,16,0.18)); }
:root[data-theme="light"] .project:hover .project-emoji { filter: grayscale(0.1) sepia(0.1) saturate(1.3) brightness(0.95) drop-shadow(0 10px 20px rgba(24,22,16,0.22)); }
.project-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-top h3 { font-size: 20px; letter-spacing: -0.025em; }
.tag { font-family: var(--mono); font-size: 10.5px; padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
:root[data-theme="light"] .tag { background: rgba(24,22,16,0.05); }
.tag-live { color: var(--live); border-color: rgba(111,202,143,0.32); background: rgba(111,202,143,0.08); }
:root[data-theme="light"] .tag-live { border-color: rgba(46,156,92,0.35); background: rgba(46,156,92,0.09); }
.project-body p { font-size: 14px; color: var(--text-dim); line-height: 1.58; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tech span { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 7px; background: var(--accent-soft); border: 1px solid rgba(203,171,114,0.22); color: var(--accent-bright); }
:root[data-theme="light"] .project-tech span { color: var(--accent-bright); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,6,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; padding: 42px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 var(--hairline), 0 44px 96px rgba(0,0,0,0.6); transform: translateY(24px) scale(0.96); transition: transform 0.4s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; font-size: 13px; transition: all 0.25s var(--ease); }
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-emoji { font-size: 54px; margin-bottom: 18px; filter: grayscale(1) sepia(0.5) saturate(1.5) brightness(1.05) drop-shadow(0 12px 26px rgba(0,0,0,0.4)); }
:root[data-theme="light"] .modal-emoji { filter: grayscale(1) sepia(0.6) saturate(1.7) brightness(0.75) drop-shadow(0 10px 20px rgba(24,22,16,0.2)); }
.modal-tag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 5px 12px; border-radius: 7px; background: var(--accent-soft); border: 1px solid rgba(203,171,114,0.25); color: var(--accent); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-card h3 { font-size: 28px; letter-spacing: -0.035em; margin-bottom: 13px; }
.modal-card > p#modalDesc { color: var(--text-dim); line-height: 1.62; margin-bottom: 22px; font-size: 15px; }
.modal-note { font-size: 13px; color: var(--text-faint); font-style: italic; margin-top: 18px; }
.modal-note:empty { display: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.modal-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; transition: all 0.3s var(--ease); }
.modal-actions .m-live { background: var(--accent); color: var(--on-accent); }
.modal-actions .m-live:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(203,171,114,0.32); }
.modal-actions .m-code { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.modal-actions .m-code:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: var(--accent); color: var(--accent); }
body.modal-open { overflow: hidden; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; max-width: 800px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--accent), var(--border), transparent); }
.tl-item { position: relative; padding: 0 0 44px 8px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.03em; }
.tl-item h4 { font-size: 19px; margin: 9px 0 2px; letter-spacing: -0.025em; }
.tl-org { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 8px; }
.tl-item p:last-child { font-size: 14px; color: var(--text-dim); line-height: 1.56; }

/* ---------- Contact ---------- */
.contact { display: flex; justify-content: center; }
.contact-card { text-align: center; max-width: 780px; padding: 68px 40px; border-radius: var(--radius-lg); background: linear-gradient(165deg, var(--surface-hover), var(--surface)); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--hairline); backdrop-filter: blur(20px); position: relative; overflow: hidden; }
.contact-card::before { content: ''; position: absolute; top: -55%; left: 50%; transform: translateX(-50%); width: 620px; height: 420px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.contact-sub { font-size: 1.05rem; color: var(--text-dim); margin: 22px 0 38px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.c-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 var(--hairline); font-size: 14px; transition: all 0.3s var(--ease); }
.c-link span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); border: 1px solid rgba(203,171,114,0.3); color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.c-link:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--accent); box-shadow: inset 0 1px 0 var(--hairline), 0 12px 30px rgba(0,0,0,0.35); }

/* ---- Contact form ---- */
.contact-form { text-align: left; max-width: 560px; margin: 8px auto 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 var(--hairline);
  color: var(--text); font-family: var(--font); font-size: 15px;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-hover);
  box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 3px var(--accent-soft);
}
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; cursor: pointer; border: none; font-family: var(--font); }
.contact-form .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.form-status { min-height: 20px; margin-top: 14px; text-align: center; font-size: 14px; }
.form-status.ok { color: var(--live); }
.form-status.err { color: #e0796b; }

.contact-divider { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 6px auto 26px; color: var(--text-faint); }
.contact-divider::before,
.contact-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.contact-divider span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 54px 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.footer-note { font-family: var(--mono); font-size: 12px; opacity: 0.75; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  .orb, .pulse, .scroll-line::after, .grad, .stat-num, .type-caret { animation: none !important; }
  .cursor-glow { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Hide scroll cue whenever the hero is too short to fit it without overlap */
@media (max-height: 880px) {
  .hero-scroll { display: none; }
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-stats { gap: 40px; }
  .section { padding: 96px 20px; }
  .section-head { margin-bottom: 46px; }
}
@media (max-width: 520px) {
  .nav { padding: 12px 14px; }
  .nav-inner { padding: 9px 10px 9px 16px; }
  .hero { padding: 116px 20px 56px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
  .hero-stats { gap: 26px; width: 100%; }
  .stat { flex: 1; min-width: 88px; }
  .project, .stack-card { max-width: none; }
  .contact-card { padding: 46px 24px; }
  .contact-links { flex-direction: column; }
  .c-link { justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
