:root {
  --ink: #0a0a0a;
  --paper: #f6f4ef;
  --accent: #ec2c2c;
  --rule: rgba(10,10,10,.18);
  --muted: rgba(10,10,10,.7);
  --soft: rgba(10,10,10,.55);
}
[data-theme="dark"] {
  --ink: #f6f4ef;
  --paper: #0a0a0a;
  --rule: rgba(246,244,239,.18);
  --muted: rgba(246,244,239,.75);
  --soft: rgba(246,244,239,.55);
}
[data-palette="yellow"] { --accent: #f5cd2c; }
[data-palette="cyan"] { --accent: #2cd6ec; }
[data-palette="magenta"] { --accent: #ec2cb5; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.55; }
html { overflow-x: clip; }
body { overflow-x: clip; }
p, li { font-family: "Manrope", system-ui, sans-serif; }
section[id] { scroll-margin-top: 80px; }
.serif { font-family: "DM Serif Display", "Times New Roman", serif; letter-spacing: -0.02em; }
.mono { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--paper); }

/* HEADER (masthead style) */
.masthead {
  border-bottom: 1px solid var(--ink);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; background: color-mix(in oklab, var(--paper) 94%, transparent); backdrop-filter: blur(10px); z-index: 30;
}
.masthead .brand { font-family: "DM Serif Display", serif; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.masthead .brand em { font-style: italic; color: var(--accent); font-weight: 400; }
.masthead-nav { display: flex; gap: 22px; }
.masthead-nav a {
  color: var(--ink); text-decoration: none;
  font-family: "Manrope", sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .02em;
  padding: 6px 0; position: relative;
}
.masthead-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.masthead-nav a:hover { color: var(--accent); }
.masthead-nav a:hover::after { transform: scaleX(1); }
.masthead .right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; flex-shrink: 0; }
.lang-toggle button { background: transparent; border: 0; color: var(--ink); padding: 4px 8px; cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .08em; }
.lang-toggle button.active { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lang-toggle .sep { color: var(--muted); padding: 0 2px; }
.menu-btn {
  display: none; background: transparent; border: 1px solid var(--ink); color: var(--ink);
  width: 40px; height: 36px; cursor: pointer; padding: 0;
  position: relative; flex-shrink: 0;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn::before { top: 10px; }
.menu-btn span { top: 17px; }
.menu-btn::after { top: 24px; }
.menu-btn[aria-expanded="true"]::before { top: 17px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { top: 17px; transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] span { opacity: 0; }

@media (max-width: 1180px) {
  .masthead-nav { gap: 16px; }
  .masthead-nav a { font-size: 12px; }
}
@media (max-width: 1000px) {
  .masthead { padding: 14px 24px; }
  .menu-btn { display: block; }
  .masthead-nav {
    position: fixed; top: 65px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    padding: 12px 24px 24px;
    transform: translateY(-110%); transition: transform .28s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .masthead-nav.open { transform: translateY(0); }
  .masthead-nav a {
    font-family: "DM Serif Display", serif; font-size: 22px;
    padding: 14px 0; border-bottom: 1px solid var(--rule);
    letter-spacing: -.01em;
  }
  .masthead-nav a::after { display: none; }
  .masthead-nav a:last-child { border-bottom: 0; }
}

/* HERO */
.hero { padding: 60px 40px 40px; position: relative; border-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: stretch; }
.hero-grid > * { min-width: 0; }
.hero-left { display: flex; flex-direction: column; justify-content: space-between; }
.hero .issue { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 32px; }
.hero .issue strong { color: var(--ink); font-weight: 600; }
.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(56px, 9vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
.hero-sub {
  margin-top: 22px;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .crop {
  aspect-ratio: 3/4; width: 100%;
  background-color: #d8d4cb;
  background-image: url('assets/CvPictureYona.PNG');
  background-size: cover;
  background-position: center 20%;
  position: relative; overflow: hidden;
  filter: grayscale(.15) contrast(1.02);
}
[data-theme="dark"] .hero .crop { background-color: #2a2826; filter: grayscale(.25) contrast(1.05) brightness(.92); }
.hero .photo-frame {
  position: relative;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  width: 100%;
  max-width: 360px;
  justify-self: end;
  align-self: end;
}
.hero .photo-frame::before {
  content: ""; position: absolute;
  top: 14px; left: -14px; bottom: -14px; right: 14px;
  background: var(--accent);
  z-index: -1;
}
.hero .photo-frame .credit {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.hero .photo-frame .credit em { font-family: "DM Serif Display", serif; font-style: italic; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--accent); }

/* TICKER */
.ticker { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; overflow: hidden; background: var(--paper); }
.ticker-track { display: flex; gap: 48px; animation: tick 40s linear infinite; white-space: nowrap; }
.ticker-track span { font-family: "DM Serif Display", serif; font-style: italic; font-size: 28px; }
.ticker-track .dot { color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* SECTION CHROME */
section { padding: 96px 40px; position: relative; }
.sec-rule { display: flex; align-items: baseline; gap: 16px; margin-bottom: 56px; border-top: 1px solid var(--ink); padding-top: 14px; }
.sec-rule .kicker { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.sec-rule h2 { font-family: "DM Serif Display", serif; font-size: clamp(48px, 8vw, 120px); line-height: 0.95; letter-spacing: -0.03em; }
.sec-rule h2 em { font-style: italic; font-weight: 400; }

/* PROFILE */
.prof-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 64px; align-items: start; }
.prof-body p { font-family: "Manrope", sans-serif; font-weight: 400; font-size: 19px; line-height: 1.6; max-width: 56ch; color: var(--ink); }
.pullquote {
  margin-top: 40px; padding: 32px 0 32px 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: "DM Serif Display", serif; font-style: italic; font-size: 24px; line-height: 1.4;
  position: relative; color: var(--ink);
}
.pullquote::before { content: "\201C"; font-family: "DM Serif Display", serif; font-size: 96px; line-height: 0; position: absolute; top: 36px; left: -8px; color: var(--accent); font-style: normal; }

/* STYLES — index list */
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  align-items: baseline; gap: 24px; cursor: default;
  transition: padding .2s;
}
.index-row:hover { padding-left: 16px; background: var(--ink); color: var(--paper); }
.index-row:hover .nm, .index-row:hover .mono, .index-row:hover .lvl { color: var(--paper); }
.index-row .nm { font-family: "DM Serif Display", serif; font-size: clamp(28px, 4vw, 52px); letter-spacing: -.02em; color: var(--ink); }
.index-row .nm em { font-style: italic; font-weight: 400; }
.index-row .lvl { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--soft); letter-spacing: .12em; text-transform: uppercase; }

/* EXPERIENCE — articles */
.articles { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.article {
  border-top: 1px solid var(--rule); padding-top: 18px;
}
.article .yr { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.article h3 { font-family: "DM Serif Display", serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 8px; color: var(--ink); }
.article .place { font-family: "Manrope", sans-serif; font-weight: 500; color: var(--soft); margin-bottom: 20px; font-size: 15px; letter-spacing: .02em; }
.article ul { list-style: none; }
.article li { padding: 10px 0; border-bottom: 1px dotted var(--rule); font-size: 16px; line-height: 1.55; color: var(--ink); display: flex; gap: 12px; }
.article li::before { content: "—"; color: var(--accent); flex-shrink: 0; font-weight: 700; }

/* TRAINING / ACADEMIC two-column */
.train-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.train-cols h3 { font-family: "DM Serif Display", serif; font-style: italic; font-size: 28px; margin-bottom: 24px; color: var(--ink); }
.train-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.train-row:last-child { border-bottom: 1px solid var(--rule); }
.train-row .y { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .08em; }
.train-row .t { font-size: 16px; line-height: 1.55; color: var(--ink); }

/* MENTORS — type sea */
.mentors-sea {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline;
  font-family: "DM Serif Display", serif;
}
.mentors-sea span { font-size: clamp(24px, 3.4vw, 44px); line-height: 1.1; color: var(--ink); }
.mentors-sea span:nth-child(2n) { font-style: italic; font-weight: 400; }
.mentors-sea span:nth-child(3n) { color: var(--accent); }
.mentors-sea .star { color: var(--accent); font-size: 22px; font-weight: 400; }
.mentors-intro { font-family: "Manrope", sans-serif; font-size: 18px; max-width: 56ch; margin-bottom: 40px; line-height: 1.6; color: var(--muted); }

/* SKILLS — three columns w/ big numbers */
.skills-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.skill {
  border-top: 1px solid var(--rule); padding-top: 18px;
}
.skill .num { font-family: "DM Serif Display", serif; font-size: 96px; line-height: .9; color: var(--accent); margin-bottom: 18px; letter-spacing: -.04em; }
.skill h4 { font-family: "DM Serif Display", serif; font-size: 26px; margin-bottom: 10px; color: var(--ink); letter-spacing: -.01em; }
.skill p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 32ch; }

/* GALLERY — filters */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.g-filter {
  background: transparent; border: 1px solid var(--rule); color: var(--muted);
  padding: 9px 18px; cursor: pointer;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.g-filter:hover { border-color: var(--ink); color: var(--ink); }
.g-filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* GALLERY — grid of cards */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.g-card {
  position: relative; aspect-ratio: 4/5; overflow: hidden; cursor: pointer;
  display: block; width: 100%; padding: 0; border: 0; background: #d8d4cb;
}
[data-theme="dark"] .g-card { background: #2a2826; }
.g-card video, .g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.5) 100%); }
.g-card:hover video, .g-card:hover img { transform: scale(1.05); }
.g-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.g-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.9);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(246,244,239,.92); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.g-play::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.g-card:hover .g-play, .g-card:focus-visible .g-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.g-meta { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.g-label { background: var(--paper); color: var(--ink); padding: 4px 10px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.g-badge { background: var(--accent); color: var(--paper); padding: 4px 10px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 80px 24px; background: rgba(10,10,10,.88); backdrop-filter: blur(16px); }
.lightbox[hidden] { display: none; }
.lb-stage { display: flex; align-items: center; justify-content: center; max-width: min(92vw, 1100px); max-height: 80vh; }
.lb-stage video, .lb-stage img { max-width: 100%; max-height: 80vh; display: block; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-caption { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 16px; color: #fff; }
.lb-label { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.lb-count { font-family: "JetBrains Mono", monospace; font-size: 11px; opacity: .6; }
.lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 30px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-left h3 { font-family: "Manrope", sans-serif; font-weight: 400; font-size: 18px; margin-bottom: 20px; color: var(--muted); line-height: 1.55; max-width: 42ch; }
.contact-left .big { font-family: "DM Serif Display", serif; font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.contact-left .big a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 4px; }
.contact-left .big a:hover { color: var(--accent); }
form { display: flex; flex-direction: column; gap: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
form button:disabled { opacity: .6; cursor: progress; }
form label .mono { display: block; margin-bottom: 6px; color: var(--muted); }
form input, form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); color: var(--ink); padding: 12px 0; font-family: "Manrope", sans-serif; font-size: 17px; resize: vertical; }
form input::placeholder, form textarea::placeholder { color: var(--soft); }
form input:focus, form textarea:focus { outline: 0; border-bottom-color: var(--accent); border-bottom-width: 2px; }
form button { margin-top: 12px; padding: 16px 0; background: var(--ink); color: var(--paper); border: 0; font-family: "DM Serif Display", serif; font-size: 22px; font-style: italic; cursor: pointer; transition: background .2s; }
form button:hover { background: var(--accent); }
.sent { display: none; color: var(--accent); margin-top: 8px; font-family: "DM Serif Display", serif; font-style: italic; font-size: 18px; }
.sent.is-error { color: var(--muted); }

/* FOOTER */
footer { padding: 36px 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.socials { display: flex; gap: 24px; }
.socials a { color: var(--ink); text-decoration: none; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.socials a:hover { border-bottom-color: var(--accent); color: var(--accent); }
footer .copy { font-family: "DM Serif Display", serif; font-style: italic; color: var(--soft); font-size: 14px; }


@media (max-width: 900px) {
  section { padding: 64px 24px; }
  .hero { padding: 40px 24px 24px; }
  .hero-left { justify-content: flex-start; gap: 28px; }
  .hero .issue { flex-direction: column; gap: 6px; }
  .hero-sub { font-size: 16px; margin-top: 16px; }
  .hero h1 { font-size: clamp(64px, 14vw, 120px); overflow-wrap: anywhere; hyphens: auto; }
  .sec-rule { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 36px; }
  .sec-rule h2 { font-size: clamp(40px, 11vw, 64px); }
  .pullquote { padding-left: 20px; font-size: 20px; margin-top: 28px; }
  .pullquote::before { left: -4px; top: 30px; font-size: 72px; }
  .ticker-track span { font-size: 22px; }
  .index-row { grid-template-columns: 38px 1fr auto; gap: 12px; padding: 18px 0; }
  .index-row .nm { font-size: clamp(22px, 6vw, 32px); }
  .article h3 { font-size: clamp(22px, 5vw, 28px); }
  .skill .num { font-size: 72px; }
  .mentors-sea span { font-size: clamp(20px, 5vw, 28px); }
  .mentors-intro { font-size: 16px; }
  .hero-grid, .prof-grid, .articles, .train-cols, .skills-cols, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .train-row { grid-template-columns: 90px 1fr; gap: 12px; }
  .contact-left .big { font-size: 24px; }
  .photo-frame::before { left: -8px; bottom: -8px; right: 8px; top: 14px; }
}
@media (max-width: 540px) {
  section { padding: 56px 18px; }
  .hero { padding: 32px 18px 24px; }
  .masthead { padding: 12px 18px; }
  .hero h1 { font-size: clamp(44px, 13vw, 76px); letter-spacing: -.03em; }
  .sec-rule h2 { font-size: clamp(34px, 11vw, 52px); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 24px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .photo-frame::before { left: -4px; bottom: -4px; right: 4px; top: 14px; }
}
