/* ============================================================
   Yevheniia Tsys — Portfolio
   Design system: warm paper · ink · cobalt accent
   Type: Unbounded (display) · Manrope (text) · JetBrains Mono (labels)
   ============================================================ */

:root {
  /* palette */
  --paper:    #F0F2F3;
  --paper-2:  #E5E9EA;
  --paper-3:  #D8DDDE;
  --ink:      #15191B;
  --ink-80:   rgba(21, 25, 27, 0.80);
  --ink-55:   rgba(21, 25, 27, 0.55);
  --ink-35:   rgba(21, 25, 27, 0.35);
  --line:     rgba(21, 25, 27, 0.16);
  --line-2:   rgba(21, 25, 27, 0.10);

  /* project-image treatment (kept on-palette; tweakable) */
  --img-sat:  0.7;
  --img-tint: 0.22;
  --accent:   #2B40DB;
  --on-accent:#F0F2F3;

  /* fonts */
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --rise: 34px;
  --dur: 0.85s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 84px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 170px); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 86px);
}
.section-head .idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.5em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 12px;
  border-bottom: 1px solid var(--line-2);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.nav__brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-55);
  transition: color 0.25s;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.cta {
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 9px 18px;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.nav__links a.cta:hover { background: var(--ink); color: var(--paper); }
.nav__menu-links { display: flex; gap: clamp(14px, 2vw, 34px); align-items: center; }
@media (max-width: 760px) {
  .nav__menu-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 40px;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vw, 60px);
}
.hero__top .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-55);
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.hero__top .meta b { color: var(--ink); font-weight: 500; }

.hero__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 13.5vw, 14rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__name .ln { display: block; }
.hero__name em {
  font-style: normal;
  color: var(--accent);
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-top: clamp(34px, 6vw, 72px);
}
.hero__lede {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.45;
  max-width: 30ch;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__lede .hl { color: var(--accent); }
.hero__portrait-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 18px;
}
.hero__scroll {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  writing-mode: vertical-rl;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
}
@media (max-width: 820px) {
  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .hero__portrait-wrap { justify-content: flex-start; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
  background: var(--ink);
  color: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  padding-inline: 0.55em;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.about__lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.2em;
}
.about__lede em { font-style: normal; color: var(--accent); }
.about__body p { margin: 0 0 1.1em; color: var(--ink-80); max-width: 54ch; }
.about__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.fact dd { margin: 0; font-weight: 500; text-align: right; }
.fact dd .sub { display: block; font-size: 0.85rem; color: var(--ink-55); font-weight: 400; }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORKS
   ============================================================ */
.works { background: var(--paper-2); }
.works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 2.4vw, 38px);
}
.work {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.work.tall { grid-column: span 3; }
.work.wide { grid-column: span 6; }
.work.third { grid-column: span 2; }

.work__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.work__media image-slot {
  width: 100%;
  display: block;
  filter: saturate(var(--img-sat)) contrast(0.97) brightness(1.01);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
/* warm unifying veil so varied photos sit in the paper palette */
.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240,242,243,0) 55%, rgba(21,25,27,0.10) 100%),
    var(--paper-3);
  mix-blend-mode: soft-light;
  opacity: var(--img-tint);
  transition: opacity 0.6s var(--ease);
}
.work:hover .work__media image-slot { transform: scale(1.035); filter: saturate(1) contrast(1) brightness(1); }
.work:hover .work__media::after { opacity: 0; }

/* tweak levels */
.img-soft { --img-sat: 0.85; --img-tint: 0.12; }
.img-full { --img-sat: 1;    --img-tint: 0; }
.work__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 11px;
  border-radius: 100px;
  pointer-events: none;
}
.work__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}
.work__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 2px 0 8px;
}
.work.wide .work__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.work__view {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-55);
  transition: color 0.3s var(--ease);
}
.work:hover .work__view { color: var(--accent); }
.work__foot {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.work .work__foot .arrow {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease);
  color: var(--ink-35);
}
.work:hover .work__foot .arrow { transform: translate(4px, -4px); color: var(--accent); }

@media (max-width: 900px) {
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work.tall, .work.wide, .work.third { grid-column: span 1; }
  .work.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .works__grid { grid-template-columns: 1fr; }
  .work.wide { grid-column: span 1; }
}

/* ---------- work card affordance ---------- */
.work { cursor: pointer; }
.work:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }
.work__title { transition: color 0.25s var(--ease); }
.work:hover .work__title { color: var(--accent); }

/* ============================================================
   PROJECT PAGE
   ============================================================ */
body.proj-page { background: var(--paper); }
.nav--solid { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proj-hero {
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.proj-hero__crumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.proj-hero__crumb b { color: var(--accent); font-weight: 500; }
.proj-hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.proj-hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 52ch;
  margin: 26px 0 0;
}
.proj-hero__media {
  position: relative;
  margin-top: clamp(34px, 5vw, 56px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.proj-hero__media image-slot { width: 100%; display: block; }

.proj-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line-2);
}
.proj-meta__item dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-35);
  margin-bottom: 8px;
}
.proj-meta__item dd { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }

.proj-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
  align-items: start;
}
.proj-overview p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-80);
  margin: 0 0 22px;
  max-width: 58ch;
}
.proj-overview p:last-child { margin-bottom: 0; }
.proj-side { display: flex; flex-direction: column; gap: 28px; }
.proj-side h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-35);
  font-weight: 500;
  margin: 0 0 14px;
}
.proj-side ul { list-style: none; margin: 0; padding: 0; }
.proj-side li {
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  font-size: 1rem;
  font-weight: 500;
}
.proj-side li:first-child { border-top: none; padding-top: 0; }
.proj-hl {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  text-wrap: pretty;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 12px 22px;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s;
}
.proj-link:hover { background: var(--ink); color: var(--paper); }

/* gallery */
.proj-gallery { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(48px, 7vw, 96px); }
.proj-gallery .eyebrow { display: block; margin-bottom: 28px; }
.proj-gallery__intro {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-80);
  max-width: 58ch;
  margin: -12px 0 28px;
}
.proj-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.proj-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-shot.full { grid-column: span 2; }
.proj-shot__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.proj-shot__frame image-slot { width: 100%; display: block; }
.proj-shot__cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-55);
}

/* gallery slider (e.g. instagram-format posts) */
.proj-slider__frame {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}
.proj-slider .proj-shot__cap { text-align: center; }
.proj-slider__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.proj-slider__track .slot { flex: 0 0 100%; }
.proj-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(21, 25, 27, 0.55);
  color: var(--paper);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease);
}
.proj-slider__btn:hover { background: var(--accent); }
.proj-slider__btn.prev { left: 12px; }
.proj-slider__btn.next { right: 12px; }
.proj-slider__count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(21, 25, 27, 0.55);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 100px;
}

/* next project */
.proj-next {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.proj-next a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.proj-next .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-35);
}
.proj-next .ttl {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  transition: color 0.3s var(--ease);
}
.proj-next a:hover .ttl { color: var(--accent); }

@media (max-width: 820px) {
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
  .proj-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .proj-gallery__grid { grid-template-columns: 1fr; }
  .proj-shot.full { grid-column: span 1; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__list { border-top: 1px solid var(--line); }
.srv {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 1.1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color 0.4s var(--ease);
}
.srv__num { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-35); }
.srv__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: transform 0.45s var(--ease);
}
.srv__desc { color: var(--ink-55); font-size: 0.96rem; line-height: 1.5; }
.srv__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s;
  color: var(--ink-55);
}
.srv:hover { color: var(--ink); }
.srv:hover .srv__name { transform: translateX(14px); }
.srv:hover .srv__icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(45deg); }
@media (max-width: 760px) {
  .srv { grid-template-columns: auto 1fr auto; }
  .srv__desc { display: none; }
}

/* ============================================================
   SKILLS / TOOLS
   ============================================================ */
.skills { background: var(--ink); color: var(--paper); }
.skills .eyebrow { color: rgba(240,242,243,0.6); }
.skills .eyebrow::before { background: var(--accent); }
.skills .section-title { color: var(--paper); }
.skills .section-head .idx { color: var(--accent); }
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
}
.skills__col h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,242,243,0.5);
  margin: 0 0 22px;
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid rgba(240,242,243,0.22);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.tools { display: flex; flex-direction: column; }
.tool {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(240,242,243,0.14);
}
.tool:first-child { border-top: 1px solid rgba(240,242,243,0.14); }
.tool__name { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.tool__lvl { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(240,242,243,0.5); text-transform: uppercase; }
@media (max-width: 760px) { .skills__grid { grid-template-columns: 1fr; } }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp__row {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.exp__row:last-child { border-bottom: 1px solid var(--line); }
.exp__when { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-55); letter-spacing: 0.02em; }
.exp__when .place {
  display: block;
  margin-top: 6px;
  color: var(--ink-35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}
.exp__role {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 4px;
}
.exp__org { font-weight: 600; color: var(--accent); margin-bottom: 18px; display: inline-block; }
.exp__org .type { color: var(--ink-35); font-weight: 400; font-size: 0.85rem; }
.exp__points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.exp__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-80);
  max-width: 60ch;
  line-height: 1.5;
}
.exp__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.exp__points li b { color: var(--ink); font-weight: 700; }
@media (max-width: 700px) { .exp__row { grid-template-columns: 1fr; gap: 14px; } }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu { background: var(--paper-2); }
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.edu__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.edu__year { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.edu__deg { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.edu__school { color: var(--ink-55); margin-top: auto; line-height: 1.45; }
@media (max-width: 700px) { .edu__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--accent); color: var(--on-accent); }
.contact .eyebrow { color: rgba(240,242,243,0.75); }
.contact .eyebrow::before { background: var(--on-accent); }
.contact__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0.2em 0 0.4em;
}
.contact__big a { display: inline-block; transition: transform 0.4s var(--ease); }
.contact__big a:hover { transform: translateX(18px); }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 70px);
  border-top: 1px solid rgba(240,242,243,0.3);
  padding-top: 34px;
}
.contact__item .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,242,243,0.7);
  display: block;
  margin-bottom: 8px;
}
.contact__item .val { font-size: 1.1rem; font-weight: 500; }
.contact__item .val:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(40px, 6vw, 70px);
}
.footer__grid { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.footer__name { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -0.02em; line-height: 0.9; }
.footer__meta { font-family: var(--mono); font-size: 0.72rem; color: rgba(240,242,243,0.55); letter-spacing: 0.04em; line-height: 1.9; text-align: right; }
.footer__meta a:hover { color: var(--paper); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* animation intensity tweak */
html.anim-bold { --rise: 60px; --dur: 1s; }
html.anim-subtle { --rise: 18px; --dur: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}

/* ============================================================
   PRODUCTION ADDITIONS (real images, lang switcher, a11y)
   Appended on top of the original design system — these only
   add the bits the static prototype faked with <image-slot>.
   ============================================================ */

/* real <img> inside the design's media frames — inherits the
   same warm veil + hover treatment the slots had */
.media-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.work__media .media-img {
  filter: saturate(var(--img-sat)) contrast(0.97) brightness(1.01);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.work:hover .work__media .media-img { transform: scale(1.035); filter: saturate(1) contrast(1) brightness(1); }

/* empty-state placeholder that keeps the layout (and aspect) intact
   when a photo has not been uploaded yet */
.imgph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 16px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--paper-3) 0 12px, var(--paper-2) 12px 24px);
  color: var(--ink-35);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ---------- language switcher ---------- */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
}
.nav__lang a {
  color: var(--ink-55);
  padding: 4px 9px;
  border-radius: 100px;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s;
}
.nav__lang a:hover { color: var(--ink); }
.nav__lang a.active { background: var(--ink); color: var(--paper); }

/* ---------- skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .nav__lang { margin-left: auto; }
}

/* aspect-ratio box that holds either a real <img> or the empty placeholder,
   so filled and unfilled states occupy identical space (no layout shift) */
.slot { display: block; width: 100%; }
.slot > .media-img, .slot > .imgph { width: 100%; height: 100%; }
