:root {
  --ink: oklch(18% 0.012 50);
  --paper: oklch(97% 0.012 80);
  --accent: oklch(52% 0.15 38);
  --line: oklch(87% 0.015 70);
  --rail-line: oklch(85% 0.015 70);
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Source Serif 4', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
.link-oh { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: oklch(52% 0.15 38 / 0.4); transition: color 0.15s, text-decoration-color 0.15s; }
.link-oh:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: oklch(88% 0.06 40); }

/* 300px rail + 980px content — capped and centered so the page doesn't hug the left on wide screens. */
.shell { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; max-width: 1280px; margin-inline: auto; }

/* LEFT RAIL */
.rail { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--rail-line); display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem 1.8rem; }
.rail-brand { display: flex; align-items: center; gap: 0.6rem; }
.rail-brand img { width: 30px; height: 30px; object-fit: contain; }
.rail-brand span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.rail-role { margin: 0.6rem 0 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(45% 0.02 60); line-height: 1.7; }
.rail-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.rail-nav a { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.45rem 0; font-size: 0.9rem; font-weight: 500; }
.rail-nav a:hover { color: var(--accent); }
.rail-nav a .num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.rail-foot { display: flex; flex-direction: column; gap: 0.6rem; }
.copy { margin: 0.6rem 0 0; font-size: 0.7rem; color: oklch(50% 0.015 60); }

/* LANGUAGE SWITCH */
.lang-switch { display: inline-flex; border: 1px solid var(--rail-line); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.lang-btn { background: none; border: none; cursor: pointer; padding: 0.3rem 0.6rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: oklch(45% 0.02 60); }
.lang-btn + .lang-btn { border-left: 1px solid var(--rail-line); }
.lang-btn:hover { color: var(--accent); }
.lang-btn.active { background: var(--accent); color: var(--paper); }

/* MOBILE BAR */
/* Bar + dropdown are one sticky unit, so the menu opens at the current scroll position. */
.mobile-header { display: none; }
.mobile-bar { display: flex; background: oklch(97% 0.012 80 / 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rail-line); padding: 0.9rem 1.3rem; align-items: center; justify-content: space-between; }
.mobile-bar .brand { display: flex; align-items: center; gap: 0.5rem; }
.mobile-bar .brand img { width: 26px; height: 26px; object-fit: contain; }
.mobile-bar .brand span { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.mobile-actions { display: flex; align-items: center; gap: 0.7rem; }
.burger { background: none; border: none; cursor: pointer; padding: 0.3rem; display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.mobile-nav { display: none; flex-direction: column; padding: 0.5rem 1.3rem 1rem; border-bottom: 1px solid var(--rail-line); background: var(--paper); max-height: calc(100dvh - 4rem); overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.6rem 0; font-size: 0.92rem; border-bottom: 1px solid oklch(90% 0.012 70); }
.mobile-nav a .num { font-family: var(--mono); color: var(--accent); margin-right: 0.5rem; }

/* CONTENT */
main { padding: 4rem clamp(1.5rem, 5vw, 5rem) 6rem; max-width: 980px; }
section { margin-top: 6rem; }
.kicker { margin: 0 0 0.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0 0 1.5rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }

/* HERO */
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; margin-top: 0; }
.hero-grid h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
.hero-grid p.lead { margin: 1.4rem 0 0; font-size: 1.08rem; line-height: 1.65; color: oklch(34% 0.015 60); max-width: 540px; }
blockquote.pull { margin: 0.3rem 0 0; padding-left: 1.3rem; border-left: 1px solid var(--accent); transition: border-left-width 0.15s ease; }
blockquote.pull p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: oklch(30% 0.02 50); transition: color 0.15s ease; }
a.pull-link { display: block; cursor: pointer; }
a.pull-link:hover blockquote.pull { border-left-width: 3px; }
a.pull-link:hover blockquote.pull p { color: var(--accent); }

/* APPROACH */
.approach-h2 { margin: 0 0 2.2rem; max-width: 680px; }
.pillars-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar-cell { padding: 0 1.8rem; border-left: 1px solid var(--line); }
.pillar-cell .idx { display: block; font-family: var(--mono); font-size: 0.8rem; margin-bottom: 0.5rem; }
.pillar-cell h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.pillar-cell p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: oklch(40% 0.015 60); }

/* SKILLS */
.skill-row { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.skill-row h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.skill-row p { margin: 0; font-size: 0.95rem; line-height: 1.8; color: oklch(30% 0.015 60); }

/* EXPERIENCE / EDU / OUTSIDE */
.exp-row { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.exp-row .period { margin: 0; font-family: var(--mono); font-size: 0.82rem; color: oklch(45% 0.02 60); padding-top: 0.15rem; }
.exp-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.exp-head h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.exp-head .co { font-size: 0.9rem; color: oklch(40% 0.02 60); }
.exp-head img { width: 18px; height: 18px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; }
.tagline { font-style: italic; color: oklch(40% 0.015 60); margin: 0.45rem 0 0.6rem; font-size: 0.92rem; }
.exp-row .body { margin: 0.3rem 0; font-size: 0.9rem; line-height: 1.6; color: oklch(28% 0.012 50); max-width: 640px; }
.exp-row .more { margin: 0.4rem 0 0; font-size: 0.88rem; }
.exp-row .more a { border-bottom: 1px solid var(--accent); color: var(--accent); }
.edu-row { padding: 1.4rem 0; }
.edu-row strong { font-size: 0.95rem; }
.edu-row .school { margin: 0.2rem 0 0; font-size: 0.9rem; color: oklch(35% 0.015 60); }
.edu-row .why { margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.6; color: oklch(28% 0.012 50); max-width: 640px; }
.trainings { padding: 1.4rem 0 0; }
.trainings .lbl { margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 600; }
.trainings p { margin: 0; font-size: 0.92rem; line-height: 1.9; color: oklch(35% 0.015 60); }

/* SLIDESHOW */
/* Slides stack on one another; only .active is visible, so the band keeps a fixed height. */
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease; }
.slide.active { opacity: 1; visibility: visible; }
.slide-label { margin: 0 0 0.7rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.slide-media { aspect-ratio: 16 / 9; background: oklch(96% 0.005 60); display: grid; place-items: center; overflow: hidden; border-radius: 14px; }
.slide-media img { display: block; }
.slide-photo .slide-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.25s ease; }
.slide-photo .slide-media img:hover { filter: grayscale(0%); }
.slide-logo .slide-media img { max-width: 38%; max-height: 62%; object-fit: contain; filter: grayscale(100%); opacity: 0.8; }
.slide-media.zoomable img { cursor: zoom-in; }
.slide figcaption { margin-top: 0.7rem; font-size: 0.88rem; color: oklch(45% 0.02 60); }

.slide-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.slide-arrow { background: none; border: 1px solid var(--line); color: inherit; font: inherit; line-height: 1; padding: 0.35rem 0.7rem; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.slide-arrow:hover { border-color: var(--accent); color: var(--accent); }
.slide-dots { display: flex; gap: 0.45rem; }
.slide-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: oklch(80% 0.01 60); cursor: pointer; transition: background 0.2s ease; }
.slide-dots button.active { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* TESTIMONIALS */
.testi { padding: 2rem 0; border-top: 1px solid var(--line); }
.testi p.q { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.7; color: oklch(24% 0.015 50); max-width: 720px; }
.testi p.by { margin: 0.8rem 0 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: oklch(45% 0.02 60); }

/* CONTACT */
.contact-lead { margin: 0 0 2rem; font-size: 1rem; line-height: 1.65; color: oklch(34% 0.015 60); max-width: 560px; }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contact-cell { display: block; padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); }
.contact-cell:first-child { padding-left: 0; }
.contact-cell:last-child { border-right: none; padding-right: 0; }
.contact-cell .lbl { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.contact-cell .val { font-size: 1rem; font-weight: 600; }
.contact-cell .val.u { border-bottom: 1px solid var(--ink); }
button.contact-cell { display: block; background: none; border: none; border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
.contact-legal { margin: 1.4rem 0 0; font-size: 0.9rem; color: oklch(45% 0.02 60); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; background: oklch(15% 0.01 50 / 0.88); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 90vh; }

/* FOOTER */
footer.page { margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
footer.page p { margin: 0; font-size: 0.8rem; color: oklch(45% 0.02 60); }
footer.page img { width: 44px; height: auto; opacity: 0.85; }

@media (max-width: 900px) {
  .shell { display: block; }
  .rail { display: none; }
  .mobile-header { display: block; position: sticky; top: 0; z-index: 500; }
  main { max-width: 100%; padding: 2.4rem 1.3rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillar-cell { border-left: none; border-top: 1px solid var(--line); padding: 1.2rem 0 0; }
  .skill-row, .exp-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .slide-media { aspect-ratio: 4 / 3; }
  .slide-logo .slide-media img { max-width: 60%; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-cell { border-right: none; padding: 1.2rem 0; border-top: 1px solid var(--line); }
  .contact-cell:first-child { border-top: none; }
}
