/* ===========================================================
   ElmaWeb.net — Tema CSS
   Kurumsal yazılım hizmetleri – minimal, navy + warm white
   =========================================================== */

/* --- Tokens --- */
:root {
  /* Crimson kırmızı tema — eski "navy-*" değişken adları korundu */
  --navy-900: #8A0F1F;   /* deep crimson — primary */
  --navy-800: #A01428;
  --navy-700: #B81832;
  --navy-100: #FAE4E7;   /* very light crimson tint */

  --bg:       #FAF7F6;   /* warm off-white */
  --bg-2:    #F2ECEA;
  --surface: #FFFFFF;
  --border:  #E8DEDC;
  --border-strong: #CFBFBC;

  --ink:     #2A0A0E;    /* near-black with red undertone */
  --ink-2:   #4A1D24;
  --muted:   #8A6F71;
  --muted-2: #B09A9C;

  --accent:    #D63B4A;  /* bright crimson accent */
  --accent-2:  #FBE5E8;

  --ok:    #15803D;
  --warn:  #B45309;
  --err:   #B91C1C;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11,27,58,.04), 0 1px 1px rgba(11,27,58,.03);
  --shadow:    0 4px 16px -6px rgba(11,27,58,.10), 0 2px 4px -2px rgba(11,27,58,.06);
  --shadow-lg: 0 24px 48px -16px rgba(11,27,58,.18), 0 8px 16px -8px rgba(11,27,58,.08);

  --container: 1200px;
  --pad: clamp(20px, 4vw, 40px);

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Layout helpers --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--border-strong);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}

/* --- Top bar --- */
.topbar {
  background: var(--navy-900);
  color: #F2D5D9;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar a { color: #fff; }
.topbar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #34D399;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-tld { color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: #6E0A18; }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-2); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }

.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* --- Hero --- */
.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--ink);
  position: relative;
  display: inline;
  background-image: linear-gradient(transparent 70%, rgba(39, 71, 214, .15) 70%);
  background-repeat: no-repeat;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta .item small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta .item strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}

/* --- Dashboard mockup (in hero) --- */
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: perspective(1600px) rotateY(-3deg) rotateX(2deg);
  transform-origin: center center;
  transition: transform .4s ease;
}
.mockup:hover { transform: perspective(1600px) rotateY(-1deg) rotateX(0deg); }
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #FBFBF9;
}
.mockup-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #E5E4DD;
}
.mockup-bar .url {
  flex: 1;
  margin-left: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.mockup-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 360px;
}
.mockup-side {
  background: #FBFBF9;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
}
.mockup-side .logo {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 8px 10px;
}
.mockup-side ul li {
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  border-radius: 6px;
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}
.mockup-side ul li::before {
  content: ""; width: 6px; height: 6px; background: var(--border-strong); border-radius: 2px;
}
.mockup-side ul li.active { background: var(--navy-900); color: #fff; }
.mockup-side ul li.active::before { background: #fff; }

.mockup-main { padding: 16px; }
.mockup-main .title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.mockup-main .title .pill {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--accent-2); color: var(--accent);
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em;
}
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px;
  background: #FDFDFB;
}
.kpi small {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.kpi strong {
  display: block; font-size: 18px; font-weight: 600; margin-top: 4px; color: var(--ink);
  letter-spacing: -0.02em;
}
.kpi .delta { font-family: var(--font-mono); font-size: 10px; color: var(--ok); }
.kpi .delta.dn { color: var(--err); }

.chart {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  background: #FDFDFB;
  margin-bottom: 12px;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.chart-head small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 80px;
}
.bars span {
  background: var(--navy-100);
  border-radius: 2px;
  height: 30%;
}
.bars span.hi { background: var(--navy-900); }

.mockup-table {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  font-size: 11.5px;
}
.mockup-table .row {
  display: grid; grid-template-columns: 1fr 80px 60px;
  padding: 8px 10px; border-top: 1px solid var(--border);
  align-items: center;
}
.mockup-table .row:first-child {
  border-top: 0;
  background: #FBFBF9;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-2); color: var(--ink-2);
  display: inline-block;
}
.tag.ok { background: #DCFCE7; color: #166534; }
.tag.warn { background: #FEF3C7; color: #92400E; }

/* Floating chip near mockup */
.mockup-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  z-index: 2;
}
.mockup-chip .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
}
.mockup-chip.top { top: -14px; right: -10px; }
.mockup-chip.bot { bottom: -14px; left: -10px; }

/* --- Logos / trust strip --- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.trust-wrap {
  display: flex; gap: 32px; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
}
.trust small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trust-logos {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.01em;
  opacity: .8;
}

/* --- Service cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--surface);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: background .2s;
  position: relative;
}
.service:hover { background: #FDFDFB; }
.service .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.service h3 {
  font-size: 19px;
  margin: 14px 0 8px;
}
.service p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.service .stack {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* --- Project cards --- */
.projects-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 10px;
}
.filters button {
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.filters button:hover { background: var(--bg-2); }
.filters button.active { background: var(--navy-900); color: #fff; }

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-thumb .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.05em;
}
/* Diagonal stripe placeholder */
.project-thumb.stripes {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(11,27,58,.04) 10px 11px
  ), linear-gradient(180deg, #F4F3EE, #ECEBE5);
}
.project-thumb.navy {
  background: var(--navy-900);
}
.project-thumb.navy .label { color: rgba(255,255,255,.55); }
.project-thumb.navy.stripes {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(255,255,255,.04) 10px 11px
  ), linear-gradient(180deg, #0E2148, #0B1B3A);
}
.project-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.project-body .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-body h3 { font-size: 18px; }
.project-body p { color: var(--muted); font-size: 14.5px; }
.project-body .stack { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* --- "Neden ElmaWeb" --- */
.why {
  background: var(--navy-900);
  color: #F2D5D9;
}
.why h2 { color: #fff; }
.why .section-head p { color: #E0B8BD; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-cell {
  background: var(--navy-900);
  padding: 28px 28px 30px;
}
.why-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #D89AA1;
}
.why-cell h4 {
  color: #fff;
  font-size: 18px;
  margin: 14px 0 8px;
}
.why-cell p {
  color: #E5C5C9;
  font-size: 14.5px;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 36px 32px;
  text-align: left;
}
.stat strong {
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.stat strong sup {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 2px;
  color: var(--accent);
  vertical-align: super;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
  display: block;
}

/* --- Blog cards --- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.post:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post .cat {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase;
}
.post h3 { font-size: 19px; line-height: 1.3; }
.post p { color: var(--muted); font-size: 14.5px; }
.post .date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.04em;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-card small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 500;
  margin-top: 4px;
}
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--accent); }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  background: var(--surface);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--err);
}
.field .err-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--err);
  display: none;
}
.field.error .err-msg { display: block; }
textarea { resize: vertical; min-height: 130px; }
.form .submit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}
.form .submit-row small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.form-ok {
  display: none;
  background: #DCFCE7; color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 16px;
}
.form-ok.show { display: block; }

/* --- CTA banner --- */
.cta-banner {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; line-height: 1.15; }
.cta-banner p { color: #E5C5C9; font-size: 16px; max-width: 50ch; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-banner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.08); }
.cta-banner .btn-primary { background: #fff; color: var(--navy-900); }
.cta-banner .btn-primary:hover { background: #f0f0e8; }

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 38ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-2);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* --- Page hero (sub-pages) --- */
.page-hero {
  padding: clamp(60px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0;
  max-width: 18ch;
}
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
}
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 6px; color: var(--border-strong); }

/* --- About --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(11,27,58,.06) 12px 13px),
    linear-gradient(180deg, #F4F3EE, #E8E7E1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.about-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 18px;
  line-height: 1.15;
}
.about-body p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin-bottom: 16px;
  max-width: 60ch;
}
.skills {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px;
}
.skill {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 14px 16px;
}
.skill strong { font-weight: 500; font-size: 14.5px; }
.skill small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.timeline {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.timeline-item h4 { font-size: 16px; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); font-size: 14.5px; }

/* --- Blog page --- */
.blog-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 48px;
}
.blog-featured .img {
  aspect-ratio: auto;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(11,27,58,.05) 10px 11px),
    linear-gradient(180deg, #0E2148, #0B1B3A);
  min-height: 280px;
}
.blog-featured .body { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.blog-featured .cat { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.blog-featured h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; }
.blog-featured p { color: var(--muted); font-size: 16px; }

/* --- Article / Blog detail --- */
.article-hero {
  padding: clamp(60px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}
.article-hero .meta-row {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 24px;
}
.article-hero .meta-row .cat {
  color: var(--accent);
  font-weight: 500;
}
.article-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 18px 0 18px;
  max-width: 24ch;
}
.article-hero p.lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}

.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.article-cover .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.05em;
}
.article-cover.stripes {
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(11,27,58,.05) 10px 11px),
    linear-gradient(180deg, #F4F1F0, #EAE3E1);
}
.article-cover.navy {
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.04) 10px 11px),
    linear-gradient(180deg, #A01428, #6F0A18);
}
.article-cover.navy .label { color: rgba(255,255,255,.5); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.prose {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 56px 0 18px;
  line-height: 1.22;
  color: var(--ink);
}
.prose h3 {
  font-size: 19px;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
  display: block;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--ink);
  font-size: 18.5px;
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.prose pre {
  background: #1A0D10;
  color: #F2D5D9;
  padding: 18px 20px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.prose .callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.prose .callout strong { display: block; margin-bottom: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.article-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-side .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.article-side .panel h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.article-side .toc a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--border);
}
.article-side .toc a:last-child { border-bottom: 0; }
.article-side .toc a:hover { color: var(--accent); }

.article-side .author {
  display: flex; align-items: center; gap: 12px;
}
.article-side .author .av {
  width: 42px; height: 42px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.article-side .author strong {
  display: block; font-size: 14.5px; font-weight: 500;
}
.article-side .author small {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}

.article-side .share {
  display: flex; gap: 8px;
}
.article-side .share a {
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.article-side .share a:hover { background: var(--bg-2); color: var(--ink); }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
}

/* --- Utility --- */
.hidden { display: none !important; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .why-grid, .projects, .posts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .actions { justify-content: flex-start; }
  .blog-featured { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 3 / 2; max-width: 320px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .why-grid, .projects, .posts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .topbar .container > :last-child { display: none; }
  .skills { grid-template-columns: 1fr; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 16px; align-self: flex-start; }
