/* ----------------------------------------------------------------------------
   Hagai Mozes — personal site
   Aesthetic: refined editorial × engineering notebook
   ---------------------------------------------------------------------------- */

:root {
  /* Light theme — warm paper */
  --bg:        #F7F4EE;
  --bg-elev:  #FFFDF8;
  --ink:       #14171C;
  --ink-soft:  #3C424B;
  --muted:     #6E7480;
  --rule:      #E0D9CC;
  --rule-soft: #ECE5D6;
  --accent:    #1F3A5F;   /* deep navy */
  --gold:      #B58A3D;   /* warm gold */
  --highlight: #FFF1C2;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --serif: "Fraunces", "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg:        #0E1116;
  --bg-elev:  #141921;
  --ink:       #ECE7DA;
  --ink-soft:  #C8C2B3;
  --muted:     #8A8676;
  --rule:      #262C36;
  --rule-soft: #1B202A;
  --accent:    #9FB7E0;
  --gold:      #D6B16E;
  --highlight: #2A2516;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

/* Subtle paper grain in light, faint static in dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 1;
  background-image:
    radial-gradient(circle at 25% 25%, var(--ink) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--ink) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 1px;
}
[data-theme="dark"] body::before { opacity: .06; }

/* --------- Layout containers --------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* --------- Navigation --------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  gap: 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: .02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand .mark {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .18rem .45rem;
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: .35rem 0;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  transition: color .25s, border-color .25s, transform .35s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* --------- Section primitives --------- */
/* Scope landing-page section spacing to top-level sections only — not the
   nested <section> elements inside the CV paper. */
main > section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
main > section + section { border-top: 1px solid var(--rule-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); font-style: italic; }
p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 62ch; }
p strong { color: var(--ink); font-weight: 600; }

/* --------- Hero --------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
/* Soft ambient glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  left: -20vmax;
  top: -25vmax;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(40px);
  opacity: .5;
  pointer-events: none;
  animation: drift 22s var(--ease) infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 45vmax;
  height: 45vmax;
  right: -18vmax;
  bottom: -20vmax;
  background: radial-gradient(circle, color-mix(in oklab, var(--gold) 14%, transparent), transparent 60%);
  filter: blur(50px);
  opacity: .4;
  pointer-events: none;
  animation: drift2 28s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 4vh) scale(1.08); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-6vw, -3vh) scale(1); }
}
[data-theme="dark"] .hero::before { opacity: .7; }
[data-theme="dark"] .hero::after  { opacity: .55; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: rise .9s var(--ease) .15s forwards;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); display: inline-block;
  position: relative;
}
.hero-meta .dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s ease-out 1.5s infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .9; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -.02em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero h1 .word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  /* Drop the mask after the reveal so descenders (g, y, j) aren't clipped */
  animation: unmask 0s linear 1.8s forwards;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 1.1s var(--ease) forwards;
}
.hero h1 .word.w1 > span { animation-delay: .35s; }
.hero h1 .word.w2 > span { animation-delay: .55s; }
@keyframes unmask {
  to { overflow: visible; }
}

@keyframes revealUp {
  0%   { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
@keyframes rise {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 .ink2 { color: var(--muted); font-style: italic; }

.hero-tag {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  opacity: 0;
  animation: rise 1s var(--ease) .9s forwards;
}
.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) 1.1s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s var(--ease);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--accent); color: var(--bg-elev); border-color: var(--accent); }
.btn.primary:hover { background: transparent; color: var(--accent); }
.btn svg { width: 14px; height: 14px; }

/* Portrait frame */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  opacity: 0;
  animation: rise 1.1s var(--ease) .8s forwards;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  z-index: 0;
  transition: inset .45s var(--ease);
  clip-path: inset(0 100% 0 0);
  animation: drawFrame 1.4s var(--ease) 1.2s forwards;
}
@keyframes drawFrame {
  0%   { clip-path: inset(0 100% 0 0); }
  50%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.portrait:hover::before { inset: 20px -20px -20px 20px; }
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
  border: 1px solid var(--rule);
  clip-path: inset(0 0 100% 0);
  animation: revealImg 1.3s var(--ease) .9s forwards;
  transition: transform 1.6s var(--ease), filter .6s var(--ease);
}
.portrait:hover img {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04);
}
@keyframes revealImg {
  0%   { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0% 0); }
}
.portrait .caption {
  position: absolute;
  bottom: -2.2rem; left: 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .7rem;
  opacity: 0;
  animation: rise 1s var(--ease) 1.6s forwards;
}
.portrait .caption::before {
  content: ""; width: 18px; height: 1px; background: var(--muted);
}

/* Marquee scroll cue at bottom of hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  opacity: 0;
  animation: rise 1s var(--ease) 1.8s forwards;
  z-index: 2;
  pointer-events: none;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .hero h1 .word > span, .hero-meta, .hero-tag, .hero-cta,
  .portrait, .portrait::before, .portrait img, .portrait .caption,
  .scroll-cue, .scroll-cue::after, .hero-meta .dot::after {
    animation: none !important;
  }
  .hero h1 .word { overflow: visible !important; }
  .hero h1 .word > span { transform: none !important; }
  .portrait img { clip-path: none !important; }
  .portrait::before { clip-path: none !important; }
  .hero-meta, .hero-tag, .hero-cta, .portrait, .portrait .caption, .scroll-cue { opacity: 1 !important; }
}

/* --------- About / Interests --------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.two-col h2 { position: sticky; top: 6rem; }
.two-col p { font-size: 1.05rem; }
.two-col p + p { margin-top: 1rem; }

/* Domains grid */
.domains {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.domain {
  background: var(--bg);
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  transition: background-color .35s var(--ease);
}
.domain:hover { background: var(--bg-elev); }
.domain .domain-no {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .15rem .45rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
.domain h3 {
  font-style: italic;
  font-size: 1.7rem;
  margin-bottom: .65rem;
  color: var(--ink);
}
.domain p {
  font-size: .98rem;
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* --------- Personal --------- */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.note {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.note .glyph {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
  line-height: 1;
}
.note h3 { font-style: italic; margin-bottom: .65rem; font-size: 1.5rem; }
.note p { font-size: .98rem; }

/* --------- Projects --------- */
.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.projects-head a.ghost {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .35rem;
  transition: color .25s, border-color .25s;
}
.projects-head a.ghost:hover { color: var(--accent); border-color: var(--accent); }

.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.repo {
  background: var(--bg);
  padding: 1.6rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: background-color .3s, transform .3s;
  position: relative;
}
.repo:hover { background: var(--bg-elev); }
.repo .repo-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: .45rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}
.repo .repo-name::before {
  content: "›";
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  transition: transform .25s;
}
.repo:hover .repo-name::before { transform: translateX(3px); }
.repo .repo-desc {
  font-size: .94rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1rem;
}
.repo .repo-meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
}
.repo .repo-meta .lang {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.repo .repo-meta .lang::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.repo .repo-meta .stars { color: var(--gold); }

.repos.loading { padding: 3rem; text-align: center; }
.repos .skel {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.repos .skel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--ink) 6%, transparent), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.repos-error {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
}

/* --------- Contact / Footer --------- */
.contact {
  text-align: center;
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.contact h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.contact .links {
  display: inline-flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact .links a {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  transition: color .3s, border-color .3s, gap .3s;
  color: var(--ink-soft);
}
.contact .links a:hover { color: var(--accent); border-color: var(--accent); gap: 1.2rem; }
.contact .links svg { width: 16px; height: 16px; }

footer {
  border-top: 1px solid var(--rule-soft);
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------- Reveal animations --------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* --------- CV page --------- */
.cv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0 1.2rem;
}
.cv-toolbar .lede { color: var(--muted); font-size: 1rem; }
.cv-toolbar .actions { display: flex; gap: .65rem; flex-wrap: wrap; }

.cv-paper {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  margin: 1rem 0 4rem;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  box-shadow: 0 1px 0 0 var(--rule-soft), 0 30px 60px -40px color-mix(in oklab, var(--ink) 40%, transparent);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}
.cv-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: .18em;
  text-align: center;
  font-weight: 400;
}
.cv-tag {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: .8rem auto 1rem;
  color: var(--ink-soft);
}
.cv-contact {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  margin-top: .9rem;
  letter-spacing: .06em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem 1rem;
}
.cv-contact span.sep { color: var(--rule); }
.cv-contact .item { white-space: nowrap; }
.cv-contact a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.cv-contact a:hover { border-color: var(--accent); }
.cv-rule { border: none; border-top: 1px solid var(--rule); margin: 1.6rem 0 0; }

.cv-section { margin-top: 2.2rem; }
.cv-section-head {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}

.cv-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.cv-role .who strong { font-weight: 600; color: var(--ink); }
.cv-role .who em { color: var(--muted); font-style: italic; margin-left: .35rem; font-weight: 400; }
.cv-role .when {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .12em;
  white-space: nowrap;
}
.cv-list { list-style: none; margin: .55rem 0 0; padding: 0; }
.cv-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .94rem;
  margin-top: .4rem;
  color: var(--ink-soft);
}
.cv-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.cv-skill {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  font-size: .94rem;
  margin-top: .55rem;
}
.cv-skill .label { font-weight: 600; color: var(--accent); font-size: .82rem; letter-spacing: .04em; padding-top: .15rem; }
.cv-skill .body { color: var(--ink-soft); }

/* --------- Responsive --------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.visible-mobile { display: flex; gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .two-col h2 { position: static; }
  .personal-grid { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; }
  .cv-skill { grid-template-columns: 1fr; gap: .15rem; }
}

/* --------- Print --------- */
@media print {
  .nav, .cv-toolbar, footer { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  body::before { display: none; }
  .cv-paper {
    border: none; box-shadow: none; padding: 0; margin: 0; background: white;
  }
  .shell { padding: 0; max-width: none; }
  a { color: black; }
}
