/* ============================================================
   Vishnu Prakash Karunakaran — editorial portfolio
   ============================================================ */

:root {
  /* Color — warm paper + deep teal-black */
  --bg:        #ffffff;
  --paper:     #f4f1ea;   /* warm editorial neutral */
  --paper-2:   #efeae0;
  --ink:       #14201e;   /* near-black teal */
  --ink-soft:  #3a4a47;
  --muted:     #6a7976;
  --faint:     #95a29f;
  --line:      #e6e0d5;
  --line-2:    #ded7c9;

  --dark:      #0c1413;   /* dark section bg */
  --dark-2:    #101a18;
  --dark-line: rgba(255,255,255,0.10);
  --on-dark:   #eef3f1;
  --on-dark-soft: #9fb2ae;

  --accent:        #0e7c70;   /* teal */
  --accent-deep:   #0a5a51;
  --accent-bright: #2dd4bf;   /* for dark bg */
  --accent-soft:   #dcefec;
  --accent-tint:   #eff6f4;
  --sand:          #c98a3f;   /* warm secondary, used sparingly */
  --sand-soft:     #f5e7d4;

  /* Type */
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Instrument Sans", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Space Grotesk", ui-monospace, monospace;

  /* Metrics */
  --maxw: 1240px;
  --pad: clamp(22px, 5vw, 64px);
  --r: 16px;
  --r-lg: 26px;
  --nav-h: 74px;

  --sh-sm: 0 1px 2px rgba(20,32,30,.05), 0 3px 10px rgba(20,32,30,.05);
  --sh-md: 0 6px 20px rgba(20,32,30,.07), 0 18px 44px rgba(20,32,30,.08);
  --sh-lg: 0 30px 70px rgba(20,32,30,.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* section marker — big mono number + label */
.marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.marker__num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.marker__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.marker__rule { flex: 1; height: 1px; background: var(--line-2); }
.section--dark .marker__label { color: var(--on-dark-soft); }
.section--dark .marker__num { color: var(--accent-bright); }
.section--dark .marker__rule { background: var(--dark-line); }

.section-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 56ch;
  line-height: 1.5;
  margin-top: 18px;
}
.section--dark .section-lead { color: var(--on-dark-soft); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(20,32,30,.05);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 600; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 15px; font-weight: 600;
  transition: background .25s, width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), font-size .35s cubic-bezier(.22,1,.36,1);
}
.brand__name {
  font-family: var(--display); letter-spacing: -.02em; line-height: 1.0;
  font-size: clamp(24px, 3.2vw, 46px); font-weight: 700; white-space: nowrap;
  transition: font-size .35s cubic-bezier(.22,1,.36,1);
}
.brand__name span {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--muted); text-transform: none;
  letter-spacing: .01em; line-height: 1.2; margin-top: 4px; white-space: nowrap;
}
/* compact once scrolled — and on every section below the hero */
.nav.is-scrolled .brand__mark { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
/* uploadable logo badge (replaces monogram) */
.brand__link { display: flex; align-items: center; }
image-slot.brand__logo {
  width: 46px; height: 46px; flex: none; border-radius: 13px; overflow: hidden;
  background: var(--ink);
  transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), border-radius .35s, background .25s;
}
.brand__logo::part(frame) { background: transparent; }
.brand__logo::part(empty) { color: rgba(255,255,255,.6); }
.brand__logo::part(ring) { border-color: rgba(255,255,255,.3); }
.nav.is-scrolled image-slot.brand__logo { width: 38px; height: 38px; border-radius: 11px; }
.nav:not(.is-scrolled) image-slot.brand__logo { background: rgba(255,255,255,.12); }
@media (max-width: 1040px) { image-slot.brand__logo { width: 42px; height: 42px; } }
.nav.is-scrolled .brand__name { font-size: 20px; }
.nav.is-scrolled .brand__name span { font-size: 11px; margin-top: 2px; }
@media (max-width: 1040px) {
  .brand__mark { width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .nav.is-scrolled .brand__name { font-size: 17px; }
}
/* light text when over dark hero */
.nav:not(.is-scrolled) .brand__name { color: #fff; }
.nav:not(.is-scrolled) .brand__name span { color: rgba(255,255,255,.72); }
.nav:not(.is-scrolled) .brand__mark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.nav:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,.82); }
.nav:not(.is-scrolled) .nav__links a:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px;
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--accent); background: var(--accent-tint); }
.nav__cta {
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  color: #fff !important; background: var(--accent);
  padding: 10px 18px !important; border-radius: 11px !important;
  margin-left: 8px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--accent-deep) !important; transform: translateY(-1px); }
.nav:not(.is-scrolled) .nav__cta { background: #fff; color: var(--ink) !important; }
.nav:not(.is-scrolled) .nav__cta:hover { background: var(--accent-bright); color: var(--ink) !important; }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255,255,255,.9); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 600;
  padding: 14px 24px; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(14,124,112,.26); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,124,112,.3); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost-dark:hover { border-color: var(--accent-bright); color: var(--accent-bright); transform: translateY(-2px); }

/* ============================================================
   HERO — dark, full-height, editorial
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; top: -20%; right: -8%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(45,212,191,.18) 0%, rgba(45,212,191,0) 64%);
  filter: blur(8px);
}
.hero__glow2 {
  position: absolute; bottom: -28%; left: -10%;
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(14,124,112,.22) 0%, rgba(14,124,112,0) 66%);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: var(--accent-bright);
  margin-bottom: 26px;
}
.hero__eyebrow::before { content:""; width: 26px; height: 1.5px; background: var(--accent-bright); opacity: .7; }

.hero h1 {
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 26px;
}
.hero h1 .serif { color: var(--accent-bright); font-weight: 400; letter-spacing: -0.01em; }
.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--on-dark-soft);
  line-height: 1.55; max-width: 50ch;
  margin-bottom: 18px;
}
.hero__sub b { color: #fff; font-weight: 600; }
.hero__roles {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 34px;
}
.hero__roles span {
  font-size: 13px; font-weight: 500;
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  background: rgba(255,255,255,.04);
  padding: 7px 14px; border-radius: 999px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px 40px;
  padding-top: 28px; border-top: 1px solid var(--dark-line);
}
.hero__meta div { line-height: 1.3; }
.hero__meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 4px; }
.hero__meta dd { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }

.hero__photo { position: relative; justify-self: center; }
.hero__photo image-slot {
  width: clamp(240px, 30vw, 350px); height: clamp(240px, 30vw, 350px);
  border-radius: 50%;
  outline: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hero__ring {
  position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed rgba(45,212,191,.3);
  animation: spin 38s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__chip {
  position: absolute;
  background: rgba(12,20,19,.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  padding: 0; width: 54px; height: 54px;
  box-shadow: var(--sh-lg);
  display: grid; place-items: center;
}
.hero__chip b { font-size: 13.5px; color: #fff; display: block; line-height: 1.2; }
.hero__chip small { font-size: 11.5px; color: var(--on-dark-soft); }
.hero__chip .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(45,212,191,.16); color: var(--accent-bright); flex: none; }
.hero__chip .ic svg { width: 21px; height: 21px; }
.hero__chip--1 { top: 14%; left: -10%; }
.hero__chip--2 { bottom: 12%; right: -12%; }
.hero__chip--3 { top: 45%; right: -16%; }

/* ---------- editor-only management controls ---------- */
/* Hidden for public visitors; shown only in the editor or via a #edit link.
   Scoped to body:not(.edit-mode) so it outweighs each control's own
   display rule regardless of source order. */
body:not(.edit-mode) .del,
body:not(.edit-mode) .cert__del,
body:not(.edit-mode) .endorse__del,
body:not(.edit-mode) .add-row,
body:not(.edit-mode) .restore { display: none !important; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(var(--accent-bright), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0%,100% { opacity:.3; transform: scaleY(.6); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); } }

/* ---------- marquee strip ---------- */
.strip {
  background: var(--ink); color: var(--on-dark);
  overflow: hidden; border-block: 1px solid var(--dark-line);
  padding-block: 18px;
}
.strip__track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__track span {
  font-family: var(--display); font-size: 18px; font-weight: 500;
  letter-spacing: -.01em; padding-inline: 28px;
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.strip__track span::after { content: "✦"; color: var(--accent-bright); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.about__statement {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.18; letter-spacing: -0.025em; font-weight: 500;
  color: var(--ink);
}
.about__statement .serif { color: var(--accent); }
.about__body { margin-top: 28px; display: grid; gap: 16px; }
.about__body p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.65; }
.about__body strong { color: var(--ink); font-weight: 600; }

.about__side { display: grid; gap: 14px; align-content: start; }
.about__photo { width: 100%; height: 560px; }
.about__photo image-slot { width: 100%; height: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.fact {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-sm);
}
.fact dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.fact dd { margin: 0; font-weight: 600; font-size: 15.5px; }
.fact dd span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- focus cards ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.focus {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.focus:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.focus__ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.focus__ic svg { width: 21px; height: 21px; }
.focus h4 { font-size: 17px; margin-bottom: 8px; }
.focus p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   JOURNEY (experience + education)
   ============================================================ */
.journey { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 5vw, 64px); align-items: start; margin-top: 12px; }
.col-title {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.col-title::after { content:""; flex:1; height:1px; background: var(--line-2); }

.xp { position: relative; padding-left: 30px; padding-bottom: 34px; }
.xp:last-child { padding-bottom: 0; }
/* outer green circle with a small inner dot in the line colour */
.xp::before { content:""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; transform: translateX(-50%); z-index: 1; background: radial-gradient(circle at center, var(--line-2) 0 3.5px, var(--accent) 4.5px 100%); }
/* connecting line runs from this circle's centre down to the next circle's centre */
.xp::after { content:""; position: absolute; left: 0; top: 14px; height: 100%; width: 2px; transform: translateX(-50%); background: var(--line-2); }
.xp:last-child::after { display: none; }
.xp__date { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--accent-deep); margin-bottom: 6px; }
.xp__role { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 3px; }
.xp__org { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 13px; }
.xp__org .loc { color: var(--faint); font-weight: 400; }
.xp__org .loc::before { content:"·"; margin: 0 7px; color: var(--line-2); }
.xp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.xp li { position: relative; padding-left: 19px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.xp li::before { content:""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; }
.xp li strong { color: var(--ink); font-weight: 600; }

.edu {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--sh-sm); margin-bottom: 14px;
  transition: transform .22s, box-shadow .22s;
}
.edu:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.edu__date { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-deep); margin-bottom: 8px; }
.edu h4 { font-size: 16.5px; line-height: 1.25; margin-bottom: 6px; }
.edu__org { font-size: 14px; color: var(--muted); }
.edu p { font-size: 13.5px; color: var(--muted); margin-top: 9px; line-height: 1.5; }

/* ============================================================
   RESEARCH (dark)
   ============================================================ */
.research__head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.sub-title {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-bright); margin: 56px 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.sub-title::after { content:""; flex:1; height:1px; background: var(--dark-line); }
.sub-title .n { color: var(--on-dark-soft); }

.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.proj {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: var(--r); padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, background .25s;
}
.proj:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.4); background: #13201e; }
.proj__ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(45,212,191,.12); color: var(--accent-bright); display: grid; place-items: center; margin-bottom: 20px; }
.proj__ic svg { width: 22px; height: 22px; }
.proj__status { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent-bright); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.proj__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.proj h4 { font-size: 18.5px; color: #fff; line-height: 1.25; margin-bottom: 10px; }
.proj p { font-size: 14.5px; color: var(--on-dark-soft); line-height: 1.55; }
.proj em { color: var(--faint); font-style: italic; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.proj__tags span { font-family: var(--mono); font-size: 11px; color: var(--on-dark); background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 7px; }

/* publications */
.pub-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 26px;
  padding: 24px 0; border-top: 1px solid var(--dark-line);
  transition: padding-left .25s;
}
.pub-row:last-child { border-bottom: 1px solid var(--dark-line); }
.pub-row:hover { padding-left: 8px; }
.pub-row__year { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--accent-bright); padding-top: 2px; }
.pub-row__year small { display: block; color: var(--on-dark-soft); font-weight: 400; font-size: 12px; margin-top: 3px; }
.pub-row__type {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; margin-bottom: 10px;
}
.pub-row__type.journal { color: var(--accent-bright); background: rgba(45,212,191,.12); }
.pub-row__type.conf { color: #c9b3ff; background: rgba(160,120,255,.14); }
.pub-row__type.featured { color: #f0c27b; background: rgba(201,138,63,.18); }
.pub-row__title { font-family: var(--display); font-size: 18.5px; font-weight: 500; color: #fff; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 7px; }
.pub-row:hover .pub-row__title { color: var(--accent-bright); }
.pub-row__venue { font-size: 14.5px; color: var(--on-dark); }
.pub-row__venue em { font-style: italic; color: var(--on-dark-soft); }
.pub-row__authors { font-size: 13.5px; color: var(--on-dark-soft); margin-top: 6px; }
.pub-row__authors b { color: #fff; font-weight: 600; }
.pub-row__badges { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }
.pub-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--on-dark); border: 1px solid var(--dark-line); padding: 3px 9px; border-radius: 999px; }
.pub-pill svg { width: 12px; height: 12px; color: var(--accent-bright); }
.pub-pill--link { text-decoration: none; cursor: pointer; color: var(--accent-bright); border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.08); transition: background .2s, border-color .2s, transform .2s; }
.pub-pill--link:hover { background: rgba(45,212,191,.18); border-color: rgba(45,212,191,.7); transform: translateY(-1px); }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 12px; }
.skill {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--sh-sm);
}
.skill__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.skill__ic svg { width: 19px; height: 19px; }
.skill__top h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 9px;
  transition: all .18s;
}
.tag:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-tint); }

/* ---------- five-skill row ---------- */
.skills5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 12px; }
.skill5 {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.skill5:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--accent-soft); }
.skill5__ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.skill5__ic svg { width: 23px; height: 23px; }
.skill5 h4 { font-size: 17px; line-height: 1.22; letter-spacing: -.01em; }
.skill5 p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.skill5__no { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: auto; padding-top: 4px; }
@media (max-width: 1000px) { .skills5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .skills5 { grid-template-columns: 1fr 1fr; } }

/* ---------- delete / restore controls ---------- */
.proj, .pub-row { position: relative; }
.del {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--dark-line);
  background: rgba(255,255,255,.05); color: var(--on-dark-soft);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s;
}
.pub-row .del { top: 18px; right: 0; }
.proj:hover .del, .pub-row:hover .del { opacity: 1; transform: scale(1); }
.del:hover { background: rgba(239,90,90,.16); color: #ff8585; border-color: rgba(239,90,90,.5); }
.del:focus-visible { opacity: 1; outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.restore {
  display: none; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--on-dark); background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.restore:hover { background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.4); color: var(--accent-bright); }

/* ============================================================
   AWARDS
   ============================================================ */
.award-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 12px; }
.award {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-sm);
  transition: transform .22s, box-shadow .22s;
}
.award:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.award__medal { width: 46px; height: 46px; border-radius: 12px; flex: none; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.award--gold .award__medal { background: var(--sand-soft); color: var(--sand); }
.award__medal svg { width: 23px; height: 23px; }
.award h4 { font-size: 16.5px; line-height: 1.22; margin-bottom: 5px; }
.award p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.award__year { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-deep); margin-top: 8px; }

/* ============================================================
   OUTREACH
   ============================================================ */
.bl-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bl-logo { width: 54px; height: 54px; border-radius: 15px; flex: none; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 19px; }
.lang-pills { display: flex; gap: 8px; }
.lang-pill { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; color: var(--ink-soft); background: #fff; }

.bl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
.video {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s;
}
.video:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.video__thumb { position: relative; aspect-ratio: 16/9; background: var(--paper); }
.video__thumb image-slot { width: 100%; height: 100%; }
.video__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: var(--sh-md); pointer-events: none; }
.video__play svg { width: 21px; height: 21px; color: var(--accent); margin-left: 2px; }
.video__meta { padding: 16px 18px; }
.video__lang { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); margin-bottom: 7px; }
.video__meta h4 { font-size: 15.5px; line-height: 1.3; }
.video__meta small { color: var(--faint); font-size: 12.5px; display: block; margin-top: 7px; }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.channel { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 17px 20px; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.channel:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.channel--static { cursor: default; }
.channel--static:hover { transform: none; box-shadow: var(--sh-sm); border-color: var(--line); }
.channel__ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; }
.channel__ic svg { width: 23px; height: 23px; }
.channel__ic.yt { background: #ff0033; }
.channel__ic.ig { background: linear-gradient(45deg,#f09433,#e6683c 30%,#dc2743 50%,#cc2366 75%,#bc1888); }
.channel b { font-size: 15px; display: block; }
.channel small { color: var(--muted); font-size: 13px; }
.channel__arrow { margin-left: auto; color: var(--faint); }

/* ============================================================
   LINKEDIN
   ============================================================ */
.li-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 12px; }
.li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.li:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.li__head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.li__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.li__head b { font-size: 14.5px; display: block; line-height: 1.3; }
.li__head small { color: var(--faint); font-size: 12.5px; }
.li p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.li__tag { color: var(--accent); font-weight: 600; }
.li__stats { margin-top: auto; padding-top: 15px; display: flex; gap: 18px; font-size: 13px; color: var(--muted); font-weight: 500; }
.li__stats span { display: inline-flex; align-items: center; gap: 6px; }
.li__stats svg { width: 15px; height: 15px; }
.li-foot { display: flex; justify-content: center; margin-top: 30px; }

/* post image + auto-sync */
.li__img { margin: 0 -1px 14px; border-radius: 0; overflow: hidden; aspect-ratio: 16/10; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.li__img image-slot { width: 100%; height: 100%; }
.li__body { padding: 0 4px; }
.li-sync {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 13px; margin-top: 14px;
}
.li-sync .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.li-sync .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: .5; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .li-sync .pulse::after { animation: none; } }

/* ---------- EN/DE channel tabs ---------- */
.bl-tabs { display: inline-flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 6px; }
.bl-tab {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink-soft); background: transparent; border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.bl-tab[aria-selected="true"] { background: #fff; color: var(--accent-deep); box-shadow: var(--sh-sm); }
.bl-panel { display: none; }
.bl-panel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bl-about {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 30px; box-shadow: var(--sh-sm); margin-top: 26px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px;
}
.bl-about__lead { font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.bl-about__lead strong { color: var(--ink); }
.bl-learn { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.bl-learn li { font-size: 14.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 11px; }
.bl-learn .em { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-tint); display: grid; place-items: center; font-size: 14px; flex: none; }
.bl-side h5 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.bl-side__perfect { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.bl-side__perfect li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 9px; align-items: baseline; }
.bl-side__perfect li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.bl-friday { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 760px) { .bl-about { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT FORM (dark)
   ============================================================ */
.contact__layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; max-width: 1000px; margin: 0 auto 44px; text-align: left; align-items: start; }
.cform { display: grid; gap: 16px; }
.cfield { display: grid; gap: 7px; }
.cfield label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--on-dark-soft); }
.cinput, .cselect, .ctext {
  font-family: var(--sans); font-size: 15px; color: #fff;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s;
}
.cinput::placeholder, .ctext::placeholder { color: rgba(255,255,255,.32); }
.cinput:focus, .cselect:focus, .ctext:focus { outline: none; border-color: var(--accent-bright); background: #13201e; box-shadow: 0 0 0 3px rgba(45,212,191,.14); }
.cselect { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a9c2bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; cursor: pointer; }
.cselect option { background: var(--dark-2); color: #fff; }
.ctext { resize: vertical; min-height: 118px; line-height: 1.55; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.csend {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  background: var(--accent-bright); color: var(--dark); border: 0; border-radius: 12px;
  padding: 14px 24px; cursor: pointer; justify-self: start; margin-top: 4px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.csend:hover { transform: translateY(-2px); background: #5ee9d3; box-shadow: 0 10px 30px rgba(45,212,191,.25); }
.csend svg { width: 17px; height: 17px; }
.cform__note { font-size: 12.5px; color: var(--on-dark-soft); margin-top: 2px; }
.cform__err { font-size: 13.5px; color: #ff8f8f; font-weight: 500; margin-top: 4px; }
.cform__ok { display: none; align-items: center; gap: 9px; font-size: 14px; color: var(--accent-bright); font-weight: 600; margin-top: 4px; }
.cform__ok.show { display: flex; }
.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: flex; align-items: center; gap: 15px; text-align: left;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px;
  padding: 16px 18px; transition: transform .2s, border-color .2s, background .2s;
}
.contact-row:hover { transform: translateX(3px); border-color: rgba(45,212,191,.4); background: #13201e; }
.contact-row__ic { width: 44px; height: 44px; border-radius: 12px; flex: none; background: rgba(45,212,191,.12); color: var(--accent-bright); display: grid; place-items: center; transition: background .2s, color .2s; }
.contact-row:hover .contact-row__ic { background: var(--accent-bright); color: var(--dark); }
.contact-row__ic svg { width: 22px; height: 22px; }
.contact-row b { font-size: 14.5px; color: #fff; display: block; }
.contact-row small { font-size: 12.5px; color: var(--on-dark-soft); }
@media (max-width: 820px) { .contact__layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .crow { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT (dark)
   ============================================================ */
.contact { text-align: center; }
.contact__big {
  font-size: clamp(36px, 7vw, 80px); line-height: 1; letter-spacing: -.04em;
  font-weight: 600; color: #fff; margin-bottom: 22px;
}
.contact__big .serif { color: var(--accent-bright); }
.contact .section-lead { margin-inline: auto; color: var(--on-dark-soft); margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; max-width: 820px; margin-inline: auto; }
.contact-item {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r);
  padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 13px;
  transition: transform .22s, border-color .22s, background .22s;
}
.contact-item:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.4); background: #13201e; }
.contact-item__ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(45,212,191,.12); color: var(--accent-bright); display: grid; place-items: center; transition: background .22s, color .22s; }
.contact-item:hover .contact-item__ic { background: var(--accent-bright); color: var(--dark); }
.contact-item__ic svg { width: 23px; height: 23px; }
.contact-item b { font-size: 13.5px; color: #fff; }
.contact-item small { font-size: 11.5px; color: var(--on-dark-soft); word-break: break-word; }

/* ---------- footer ---------- */
.footer { background: var(--dark); border-top: 1px solid var(--dark-line); padding-block: 30px; }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer small { color: var(--on-dark-soft); font-size: 13.5px; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--on-dark-soft); font-size: 13.5px; font-weight: 500; transition: color .18s; }
.footer__links a:hover { color: var(--accent-bright); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__photo { order: -1; justify-self: center; }
  .about__grid { grid-template-columns: 1fr; }
  .about__side { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .proj-grid, .skill-grid, .award-grid, .bl-grid, .li-grid, .focus-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 18px; gap: 2px; box-shadow: var(--sh-md);
  }
  .nav.is-open .nav__links a { color: var(--ink-soft); padding: 12px 14px; }
  .nav.is-open .nav__cta { text-align: center; margin: 6px 0 0; }
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: repeat(3,1fr); max-width: 460px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .proj-grid, .skill-grid, .award-grid, .bl-grid, .li-grid, .focus-grid, .channels, .about__facts { grid-template-columns: 1fr; }
  .pub-row { grid-template-columns: 1fr; gap: 8px; }
  .pub-row__year { display: flex; align-items: baseline; gap: 8px; }
  .pub-row__year small { margin-top: 0; }
  .contact-grid { grid-template-columns: repeat(2,1fr); max-width: 340px; }
  .research__head { grid-template-columns: 1fr; }
}

/* On phones keep the chips hanging on the photo's outer edge, exactly
   like desktop (the centered photo leaves room for the negative offsets). */
@media (max-width: 1000px) {
  .hero__scroll { display: none; }
}
@media (max-width: 480px) {
  .hero__chip { width: 48px; height: 48px; }
  .hero__chip .ic { width: 40px; height: 40px; }
  .hero__chip .ic svg { width: 19px; height: 19px; }
  .hero__chip--1 { top: 12%; left: -6%; }
  .hero__chip--2 { bottom: 10%; right: -6%; }
  .hero__chip--3 { top: 44%; right: -10%; }
}

/* ============================================================
   ADD BUTTONS (reusable, light + dark)
   ============================================================ */
.add-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--accent); background: #fff;
  border: 1.5px dashed var(--line-2); border-radius: 999px;
  padding: 9px 17px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.add-btn svg { width: 16px; height: 16px; }
.add-btn:hover { border-color: var(--accent); background: var(--accent-tint); transform: translateY(-1px); }
.add-btn--dark { color: var(--accent-bright); background: rgba(255,255,255,.04); border-color: var(--dark-line); }
.add-btn--dark:hover { border-color: rgba(45,212,191,.5); background: rgba(45,212,191,.1); color: var(--accent-bright); }
.add-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 12px; }
.cert {
  position: relative; display: flex; gap: 15px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--sh-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.cert__logo {
  width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); padding: 5px;
}
.cert__logo image-slot { width: 100%; height: 100%; }
.cert__body { min-width: 0; }
.cert__title { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.cert__org { font-size: 13.5px; color: var(--ink-soft); margin-top: 7px; font-weight: 500; }
.cert__date { font-family: var(--mono); font-size: 11.5px; color: var(--accent-deep); margin-top: 8px; }
.cert__del {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--faint);
  font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s;
}
.cert:hover .cert__del { opacity: 1; transform: scale(1); }
.cert__del:hover { background: #fff0f0; color: #d9534f; border-color: #f3c9c9; }

/* ============================================================
   ENDORSEMENTS — chat style
   ============================================================ */
.endorse-list { display: grid; gap: 22px; margin-top: 14px; max-width: 880px; }
.endorse { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.endorse__avatar { position: relative; flex: none; }
.endorse__avatar image-slot { width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #fff, var(--sh-md); }
.endorse__logo {
  position: absolute; right: -8px; bottom: -8px;
  width: 42px; height: 30px; border-radius: 9px; overflow: hidden;
  background: transparent; border: 0; box-shadow: none;
}
.endorse__logo image-slot { width: 100%; height: 100%; }
.endorse__main { flex: 1; min-width: 0; }
.endorse__bubble {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px; padding: 18px 22px; box-shadow: var(--sh-sm);
}
.endorse__bubble::before {
  content: ""; position: absolute; left: -8px; top: 16px;
  width: 16px; height: 16px; background: #fff;
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 0 0 0 4px;
}
.endorse__msg { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.endorse__who { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.endorse__name { font-family: var(--display); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.endorse__role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.endorse__role b { color: var(--accent-deep); font-weight: 600; }
.endorse__del {
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--faint);
  font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s;
}
.endorse:hover .endorse__del { opacity: 1; transform: scale(1); }
.endorse__del:hover { background: #fff0f0; color: #d9534f; border-color: #f3c9c9; }

/* ============================================================
   CONTACT — thank-you state
   ============================================================ */
.cform-thanks {
  display: none; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 48px 28px;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg);
}
.cform-thanks.show { display: flex; animation: fade .4s ease; }
.cform-thanks__check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(45,212,191,.14); color: var(--accent-bright);
  display: grid; place-items: center;
}
.cform-thanks__check svg { width: 32px; height: 32px; }
.cform-thanks h3 { font-size: 27px; color: #fff; letter-spacing: -.02em; }
.cform-thanks p { font-size: 16px; color: var(--on-dark-soft); max-width: 38ch; }
.cform-thanks .csub { display: block; margin-top: 6px; color: var(--accent-bright); font-weight: 600; }
.cform.is-sent { display: none; }

/* ============================================================
   ADD MODAL
   ============================================================ */
.addm {
  border: 0; border-radius: 20px; padding: 0; width: min(540px, 92vw);
  background: var(--bg); color: var(--ink); box-shadow: var(--sh-lg);
}
.addm::backdrop { background: rgba(8,14,13,.55); backdrop-filter: blur(3px); }
.addm__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.addm__head h3 { font-size: 20px; letter-spacing: -.02em; }
.addm__close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.addm__close:hover { background: var(--paper); color: var(--ink); }
.addm__body { padding: 24px 26px; display: grid; gap: 16px; max-height: 64vh; overflow: auto; }
.addm__field { display: grid; gap: 6px; }
.addm__field label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.addm__field input, .addm__field textarea, .addm__field select {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 11px 13px; width: 100%; transition: border-color .18s, box-shadow .18s;
}
.addm__field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.addm__field input:focus, .addm__field textarea:focus, .addm__field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.addm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addm__foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 20px 20px; }
.addm__foot .btn { padding: 11px 20px; font-size: 14.5px; }
.addm__note { font-size: 12px; color: var(--muted); margin-top: -4px; }
@media (max-width: 760px) { .cert-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .cert-grid { grid-template-columns: 1fr; } .addm__row { grid-template-columns: 1fr; } }

/* ============================================================
   SOFTWARE SKILL TAGS
   ============================================================ */
.skill-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 28px; }
.skill-tags__label {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 5px;
}
.skill-tags .tag {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-deep);
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  padding: 7px 13px; border-radius: 999px; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s;
}
.skill-tags .tag:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-1px); }

/* ============================================================
   MOBILE POLISH — keep the full desktop design, just fit it
   ============================================================ */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .brand__name { font-size: 19px !important; }
  .brand__name span { font-size: 10.5px !important; }
  .nav.is-scrolled .brand__name { font-size: 17px !important; }
  .nav.is-open .nav__links { top: 90px; }
  .skill-tags__label { width: 100%; margin: 0 0 2px; }
}
@media (max-width: 480px) {
  .brand__name { font-size: 16.5px !important; }
  .brand__name span { font-size: 10px !important; }
  .hero h1 { font-size: 30px; }
  .hero__roles span { font-size: 12px; }
  .skill-tags .tag { font-size: 12px; padding: 6px 11px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .brand__name { font-size: 15px !important; }
}
