/* =========================================================================
   Çağrı Kaya — kayacagri.com
   Dark navy base with warm gold accents (matches the current site)
   ========================================================================= */

:root {
  --bg: #09101D;
  --bg-soft: #0C1526;
  --surface: #0F172B;
  --surface-2: #131D35;
  --line: #1D2842;
  --ink: #E7ECF4;
  --muted: #8E9AB0;
  --gold: #D6A84E;
  --gold-soft: #241E14;
  --gold-ring: #3A2F1B;
  --gold-ink: #F0CF8A;
  --on-gold: #1A1406;
  --field: #0C1424;
  --danger: #F2958D;
  --success: #86D7AA;
  --dot: rgba(231, 236, 244, .07);

  --card-a: #0E1A30;
  --card-b: #1B2A4A;
  --card-text: #EEF2F8;

  --font-display: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F5F9;
  --bg-soft: #EBEFF5;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --line: #DCE2EC;
  --ink: #0F1B2E;
  --muted: #5A667C;
  --gold: #A87A1F;
  --gold-soft: #F4EAD3;
  --gold-ring: #E6D3A6;
  --gold-ink: #7A5612;
  --on-gold: #FFFFFF;
  --field: #FFFFFF;
  --danger: #B3261E;
  --success: #1E7A4C;
  --dot: rgba(15, 27, 46, .08);
  color-scheme: light;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

img, svg { max-width: 100%; }
a { color: var(--gold-ink); text-underline-offset: .2em; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: .6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex: none;
}

/* ---- Eyebrow + section titles (same system as the current site) -------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .85;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  max-width: 18ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.mini-title {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--muted);
  margin-bottom: .75rem;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 .88rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.icon-btn:hover { border-color: var(--gold); }

.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--gold); }

.main-nav {
  display: flex;
  gap: .15rem;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: .5rem .7rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.lang-switch a:hover { color: var(--ink); border-color: var(--muted); }
.lang-switch a[aria-current="true"] {
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-color: var(--gold-ring);
}

.menu-btn { display: none; }
.menu-btn { gap: 4px; align-content: center; }
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

@media (max-width: 1000px) {
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .2s ease, transform .25s var(--ease);
  }
  .main-nav a { padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.is-active::after { display: none; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 420px) {
  .lang-switch a span { display: none; }
  .lang-switch a { padding: .5rem; }
  .header-inner { gap: .75rem; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

/* dotted grid, fading out towards the edges */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-name {
  font-size: clamp(3.8rem, 12vw, 7.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
  margin-bottom: 1.5rem;
}
.hero-name span { display: block; }

.hero-tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 32ch;
  margin-bottom: .9rem;
}

.hero-lead {
  color: var(--muted);
  max-width: 52ch;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.hero-social {
  display: flex;
  gap: .6rem;
}
.hero-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-ring);
  color: var(--gold-ink);
  transition: background-color .2s ease, color .2s ease;
}
.hero-social a:hover { background: var(--gold); color: var(--on-gold); }
.hero-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* stats: same cards as the current site */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}
.stats li {
  display: grid;
  gap: .35rem;
  padding: 1.6rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* page-load sequence */
.js .hero-text > *,
.js .hero-card,
.js .stats {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s var(--ease) forwards;
}
.js .hero-text > :nth-child(2) { animation-delay: .06s; }
.js .hero-text > :nth-child(3) { animation-delay: .14s; }
.js .hero-text > :nth-child(4) { animation-delay: .2s; }
.js .hero-text > :nth-child(5) { animation-delay: .26s; }
.js .hero-text > :nth-child(6) { animation-delay: .32s; }
.js .hero-card { animation-delay: .3s; animation-duration: 1s; }
.js .stats { animation-delay: .45s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:last-child { grid-column: 1 / -1; }
  .stats li { padding: 1.3rem 1.4rem; }
}

/* ---- Card --------------------------------------------------------------- */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.card-stage {
  width: min(430px, 100%);
  perspective: 1200px;
  cursor: pointer;
}
.card-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.card-stage.is-tracking .card-tilt { transition: transform .08s linear; }

.card-inner {
  position: relative;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.card-inner.is-flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--card-text);
  border: 1px solid rgba(214, 168, 78, .28);
  background:
    repeating-radial-gradient(circle at 115% -20%, transparent 0 14px, rgba(214,168,78,.05) 14px 15px),
    linear-gradient(135deg, var(--card-a) 0%, var(--card-b) 100%);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7), 0 10px 20px -12px rgba(0, 0, 0, .5);
}

.card-front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.1rem, 4.5%, 1.6rem);
}
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.16), transparent 45%);
  opacity: var(--glare, .5);
  transition: opacity .3s ease;
}
.card-top { display: flex; align-items: center; gap: .75rem; }

.card-chip {
  position: relative;
  width: 48px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(135deg, #EED592, #D6A84E 45%, #9A7428);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  padding: 6px 0;
}
.card-chip i { border-top: 1px solid rgba(80, 58, 10, .45); margin-inline: 8px; }
.card-chip::after {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px; left: 50%;
  border-left: 1px solid rgba(80, 58, 10, .45);
}
.card-wave {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  opacity: .75;
}
.card-logo {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
}
.card-logo span { color: #D6A84E; }

.card-number {
  align-self: center;
  display: flex;
  gap: clamp(.9rem, 5%, 1.6rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  letter-spacing: .14em;
  text-shadow: 0 1px 0 rgba(0,0,0,.4), 0 -1px 0 rgba(255,255,255,.14);
}
.card-bottom { display: flex; align-items: flex-end; gap: 1rem; font-size: .85rem; }
.card-holder {
  font-weight: 500;
  letter-spacing: .14em;
  font-size: clamp(.8rem, 3vw, .95rem);
}
.card-since { display: flex; flex-direction: column; line-height: 1.15; font-weight: 500; letter-spacing: .06em; }
.card-since small { font-size: .65rem; opacity: .7; letter-spacing: .02em; }
.card-brand { margin-left: auto; display: flex; }
.card-brand i { width: 28px; height: 28px; border-radius: 50%; background: #D6A84E; }
.card-brand i + i { margin-left: -11px; background: #E9EEF3; opacity: .7; mix-blend-mode: screen; }

.card-back { transform: rotateY(180deg); display: flex; flex-direction: column; }
.card-stripe { height: 20%; margin-top: 8%; background: #03070E; }
.card-sign { display: flex; align-items: center; gap: .75rem; margin: 5% 6% 0; }
.card-signature {
  flex: 1;
  padding: .35rem .7rem;
  background: repeating-linear-gradient(-45deg, #F4F1E6 0 6px, #E9E4D2 6px 12px);
  color: #1D2B40;
  font-style: italic;
  font-size: 1.05rem;
  border-radius: 3px;
}
.card-cvv { font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.card-back-info { margin: auto 6% 6%; display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; }
.card-back-info small { opacity: .7; }
.card-back-info strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.card-back-cta {
  align-self: flex-start;
  margin-top: .5rem;
  padding: .4rem .9rem;
  border-radius: 8px;
  background: #D6A84E;
  color: #1A1406;
  font-weight: 600;
  text-decoration: none;
}

.flip-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 .92rem var(--font-body);
  cursor: pointer;
}
.flip-btn:hover { color: var(--gold-ink); }
.flip-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.prose { display: grid; gap: 1.1rem; max-width: 62ch; }
.prose p { color: var(--muted); font-weight: 300; }
.prose p:first-child { color: var(--ink); font-size: 1.2rem; font-weight: 400; line-height: 1.6; }

.spoken { display: grid; margin-bottom: 2rem; }
.spoken li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
}
.spoken-name { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.spoken-level { color: var(--muted); font-size: .9rem; text-align: right; }

.facts { display: grid; margin: 0; }
.facts > div { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 500; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Skills */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.skill-group {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.skill-group h3 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.skill-group ul { display: grid; gap: .85rem; }
.skill-group li { display: flex; align-items: center; gap: .9rem; }
.dot {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-ring);
}
.dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--gold-ink);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}
@media (max-width: 860px) { .skill-groups { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: .8rem;
  bottom: .8rem;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 2.5rem 3.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  max-width: 820px;
}
.tl-item:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .35rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-ring);
  box-shadow: 0 0 0 5px var(--bg);
}
.tl-item.is-current::before { background: var(--gold); border-color: var(--gold); }

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin-bottom: .75rem;
}
.pill {
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-ring);
  color: var(--gold-ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tl-company { font-weight: 600; letter-spacing: .04em; }
.tl-place { color: var(--muted); font-size: .9rem; }

.tl-item h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
}
.tl-item ul { margin-top: 1rem; display: grid; gap: .55rem; }
.tl-item li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-weight: 300;
}
.tl-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.js .tl-item.is-older { display: none; }
.js .timeline.is-expanded .tl-item.is-older { display: block; animation: rise .5s var(--ease); }
.js .timeline:not(.is-expanded) .tl-item:nth-child(4) { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.timeline-toggle { margin-top: 2.5rem; margin-left: 3.25rem; }
html:not(.js) .timeline-toggle { display: none; }

/* Certificates */
.cert-list {
  counter-reset: cert;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.cert-list li {
  counter-increment: cert;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cert-list li::before {
  content: counter(cert, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold);
}
.cert-list strong { display: block; font-weight: 500; }
.cert-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .cert-list { grid-template-columns: 1fr; } }

/* Education */
.edu-list { display: grid; }
.edu-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  max-width: 820px;
}
.edu-list li:first-child { border-top: 1px solid var(--line); }
.edu-year {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.edu-type {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: .2rem;
}
.edu-list strong { display: block; font-size: 1.1rem; font-weight: 600; }
.edu-school { color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) {
  .edu-list li { grid-template-columns: 1fr; gap: .4rem; }
}

/* ---- Contact ------------------------------------------------------------ */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact-title { max-width: 14ch; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro > p { color: var(--muted); font-weight: 300; max-width: 42ch; margin-bottom: 2rem; }

.contact-links { display: grid; gap: 1.5rem; }
.contact-links li { display: flex; align-items: center; gap: 1.1rem; }
.c-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold-ink);
}
.c-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.c-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-links a, .c-value {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}
.contact-links a:hover { color: var(--gold-ink); }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field .opt { color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .7; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .87rem; }
.field-error:empty { display: none; }

.btn-submit { width: 100%; margin-top: .25rem; }
.btn-submit[disabled] { opacity: .65; cursor: progress; }

.form-status { font-size: .95rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.75rem;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold-ink); }

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .hero-text > *, .js .hero-card, .js .stats { opacity: 1; transform: none; }
}
