/* =====================================================================
   SIGNAL — Data Scientist Portfolio Template
   Plain HTML5 + CSS3. No frameworks. No build step.
   ---------------------------------------------------------------------
   Clean, technical aesthetic: dark navy surfaces, a teal accent, light
   text, tidy metric cards and monospace accents. Project covers and
   charts are real images (picsum) and people are avatars (pravatar).

   REBRAND TIP: edit the CSS variables in :root below. Swap --accent for
   your primary color and update --font-head / --font-body / --font-mono
   plus the Google Fonts <link> in each HTML file. Everything else cascades.
   ===================================================================== */

:root {
  /* --- Palette (edit these to rebrand) --- */
  --bg:        #0b1220;   /* page background (dark navy) */
  --surface:   #111a2e;   /* cards / panels             */
  --surface-2: #16213b;   /* raised panels / inputs     */
  --ink:       #e8eefc;   /* primary light text         */
  --accent:    #14b8a6;   /* teal accent (one bold hue) */
  --accent-dark: #0d9488; /* darker teal for hovers     */
  --accent-soft: rgba(20,184,166,.14);
  --muted:     #8a99b8;   /* secondary text             */
  --line:      #223049;   /* borders / dividers         */

  /* --- Fonts --- */
  --font-head: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* --- Shape & motion --- */
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.35);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.5);
  --ease:      .4s cubic-bezier(.16,.84,.44,1);

  /* --- Layout --- */
  --maxw: 1200px;
  --gutter: 28px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }
svg { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #04231f; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 108px 0; }
.section--soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 70px 0; }

.section-head {
  max-width: 760px;
  margin: 0 0 60px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lead { font-size: 1.16rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #04231f; }
.btn-primary:hover { background: var(--accent-dark); color: #04231f; }

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

.btn-light { background: var(--accent); color: #04231f; border-color: transparent; }
.btn-light:hover { background: var(--accent-dark); color: #04231f; }

.btn-line { background: transparent; color: var(--ink); border-color: rgba(232,238,252,.32); }
.btn-line:hover { background: rgba(232,238,252,.08); color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, .8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: grid; place-items: center;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: 8px 15px;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: rgba(232,238,252,.06); color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.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); }

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 380px at 88% 12%, rgba(20,184,166,.16), transparent 70%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-name .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20,184,166,.22); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* Headline metric cards */
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px;
}
.metric-card strong {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-card .m-up { color: var(--accent); }
.metric-card span { font-size: .82rem; color: var(--muted); display: block; margin-top: 8px; }

/* Hero visual — framed chart image */
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .hv-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}
.hero-visual .hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.hero-visual .hv-bar i:first-child { background: var(--accent); }
.hero-visual .hv-bar span { margin-left: auto; }
.hero-visual img {
  width: 100%; height: 360px; object-fit: cover;
}
.hero-visual .hv-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
}
.hero-visual .hv-foot b { color: var(--accent); }

/* ---------------------------------------------------------------------
   STACK / LOGO STRIP (text)
   --------------------------------------------------------------------- */
.clients { padding: 42px 0; border-bottom: 1px solid var(--line); }
.clients p {
  text-align: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 44px;
}
.logo-strip span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: .5;
  letter-spacing: -.01em;
  transition: opacity var(--ease), color var(--ease);
}
.logo-strip span:hover { opacity: 1; color: var(--accent); }

/* ---------------------------------------------------------------------
   SECTION HEADER ROW (title + link)
   --------------------------------------------------------------------- */
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 46px; flex-wrap: wrap;
}
.head-row .lead { margin: 0; }
.text-link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.text-link span { transition: transform var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover span { transform: translateX(5px); }

/* ---------------------------------------------------------------------
   WORK GRID + CARDS (real cover images)
   --------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.work-card:hover { color: var(--ink); transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-num {
  position: absolute; top: 14px; left: 16px; z-index: 1;
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem;
  letter-spacing: .08em; color: #eafffb;
  background: rgba(4,35,31,.55); padding: 4px 9px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.work-metric {
  position: absolute; bottom: 14px; left: 16px; z-index: 1;
  font-family: var(--font-mono); font-weight: 500; font-size: .82rem;
  color: #04231f; background: var(--accent);
  padding: 5px 11px; border-radius: 6px;
}
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-info h3 { font-size: 1.35rem; margin-bottom: 4px; }
.work-cat {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0;
}
.work-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.05rem; color: var(--ink);
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.work-card:hover .work-arrow { background: var(--accent); color: #04231f; border-color: var(--accent); transform: rotate(-45deg); }
.work-desc { color: var(--muted); font-size: .95rem; margin: 12px 0 16px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tech-chips li {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 400;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px;
}

/* Work filters (work.html) */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px;
}
.filter-chip {
  font-family: var(--font-mono); font-weight: 500; font-size: .86rem;
  padding: 9px 18px; border-radius: 8px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #04231f; }
.work-card.is-hidden { display: none; }

/* ---------------------------------------------------------------------
   SPLIT (about teaser / bio) — real images
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}
.split-media .sm-tag {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono); font-size: .74rem;
  color: #eafffb; background: rgba(4,35,31,.6);
  padding: 6px 12px; border-radius: 7px; backdrop-filter: blur(4px);
}
.about-list { margin-top: 26px; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about-list li .tick {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 3px;
}

/* ---------------------------------------------------------------------
   GENERIC GRIDS + CARDS
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.skill-card .skill-icon { font-size: 1.8rem; display: block; margin-bottom: 16px; }
.skill-card h3 { margin-bottom: 8px; }
.skill-card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }

/* Tool / tech tags */
.tool-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-tags li {
  font-family: var(--font-mono); font-weight: 400; font-size: .88rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px;
}

/* Skill bars */
.skill-bars { display: grid; gap: 20px; }
.skill-bar h4 { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; margin: 0 0 8px; display: flex; justify-content: space-between; }
.skill-bar h4 span { color: var(--accent); }
.bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }

/* ---------------------------------------------------------------------
   STATS BAND
   --------------------------------------------------------------------- */
.stats-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band .eyebrow { color: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat strong {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  display: block; line-height: 1; letter-spacing: -.03em;
  color: var(--ink);
}
.stat span { color: var(--muted); font-size: .9rem; }
.stat .accent { color: var(--accent); }

/* ---------------------------------------------------------------------
   TESTIMONIALS (real avatars)
   --------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.quote-card .mark { font-family: var(--font-mono); font-size: 2.6rem; line-height: .7; color: var(--accent); display: block; margin-bottom: 14px; }
.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 1.06rem; color: var(--ink);
  font-weight: 400; line-height: 1.55;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-author img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.quote-author b { display: block; font-family: var(--font-head); color: var(--ink); }
.quote-author span { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 22px;
  padding: 70px 54px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; top: -40%; right: -8%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.4), transparent 68%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 320px at 90% 0%, rgba(20,184,166,.14), transparent 70%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  pointer-events: none;
}
.page-banner .container { position: relative; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .82rem; font-weight: 400;
  color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--line); }
.page-banner h1 { margin-bottom: 16px; }
.page-banner .lead { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   TIMELINE + VALUES (about / resume)
   --------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline-item {
  position: relative; padding-left: 44px; padding-bottom: 38px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline-period {
  font-family: var(--font-mono); font-weight: 500; font-size: .8rem;
  letter-spacing: .04em; color: var(--accent); margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1.22rem; margin-bottom: 2px; }
.timeline-org { font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.timeline-item p { color: var(--muted); margin-bottom: 0; }

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--ease), border-color var(--ease);
}
.value-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.value-card .v-num {
  font-family: var(--font-mono); font-weight: 500; font-size: .88rem;
  color: var(--accent); letter-spacing: .04em; display: block; margin-bottom: 14px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }

/* ---------------------------------------------------------------------
   RESUME / CV PAGE (services.html)
   --------------------------------------------------------------------- */
.resume-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.resume-head .lead { margin: 0; }
.cv-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.cv-block { margin-bottom: 44px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-block > .eyebrow { margin-bottom: 26px; }

.edu-item { padding: 18px 0; border-top: 1px solid var(--line); }
.edu-item:last-child { border-bottom: 1px solid var(--line); }
.edu-item .timeline-period { margin-bottom: 6px; }
.edu-item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.edu-item p { color: var(--muted); font-size: .92rem; margin: 0; }

.cert-list { display: grid; gap: 12px; }
.cert-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .95rem; color: var(--ink);
}
.cert-list li::before { content: "▹"; color: var(--accent); font-family: var(--font-mono); }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 24px;
}
.aside-card h4 { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.aside-card p { font-size: .94rem; color: var(--muted); margin: 0; }
.fact-list { display: grid; gap: 12px; }
.fact-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.fact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-list b { font-family: var(--font-mono); color: var(--muted); font-weight: 400; }
.fact-list span { color: var(--ink); text-align: right; }

/* FAQ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq-q .ic { flex: 0 0 auto; font-size: 1.4rem; color: var(--accent); transition: transform var(--ease); line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--ease); }
.faq-a p { color: var(--muted); padding: 0 0 24px; margin: 0; max-width: 700px; }
.faq-item.open .faq-a { max-height: 280px; }

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details { display: grid; gap: 18px; margin-top: 28px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-details b { font-family: var(--font-head); color: var(--ink); display: block; font-size: .92rem; }
.contact-details span { font-size: .95rem; color: var(--muted); }
.contact-details a { color: var(--accent); }
.contact-socials { display: flex; gap: 12px; margin-top: 28px; }
.contact-socials a {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--ink); font-size: 1rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.contact-socials a:hover { background: var(--accent); color: #04231f; border-color: var(--accent); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: .85rem; color: var(--ink); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5d6c8c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 4px rgba(20,184,166,.18);
}
.field select { color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #ff6b6b; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-status {
  display: none; margin-top: 18px; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid rgba(20,184,166,.4);
  color: var(--accent); font-weight: 500;
}
.form-status.show { display: block; }

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer { background: #070d18; color: var(--muted); padding: 74px 0 28px; border-top: 1px solid var(--line); }
.footer-cta { text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.footer-cta h2 { color: var(--ink); font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 22px; }
.footer-cta .btn { font-size: 1rem; padding: 15px 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px;
}
.site-footer .brand { color: var(--ink); margin-bottom: 14px; }
.site-footer .brand:hover { color: var(--ink); }
.site-footer .brand .logo-mark { background: var(--accent); }
.footer-about p { font-size: .94rem; color: var(--muted); max-width: 300px; }
.footer-col h4 { color: var(--ink); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .94rem; }
.footer-col a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: .95rem; color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.social a:hover { background: var(--accent); color: #04231f; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: .82rem; color: var(--muted);
}
.footer-bottom a { color: var(--ink); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .cv-cols { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 74px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 16px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split-media { order: 0; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cta-band { padding: 50px 28px; }
  .form-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .head-row, .resume-head { align-items: flex-start; }
}
