/* Layout idea: a construction grid (the one Jagno was drawn on) runs under everything;
   content sits in one 1120px column; the journey is a single vertical line of years. */
:root {
  --bg: #EDE7DC;
  --surface: #F7F2E9;
  --ink: #1F1A16;
  --muted: #6B6054;
  --line: #DAD0C1;
  --accent: #B23C25;
  --header: rgba(237, 231, 220, 0.86);
  --grid: rgba(31, 26, 22, 0.06);
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.10);
  --paper: #FBF7EF;
  --sec-grad: var(--surface);
  --glow: 0;
  --font-display: "Jagno", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C0C; --surface: #171414; --ink: #F4F1F0; --muted: #A39A97; --line: #2E2828;
    --accent: #FF5A36; --header: rgba(14, 12, 12, 0.86); --grid: rgba(244, 241, 240, 0.045);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.5); --paper: #EFEAE4;
    --sec-grad: linear-gradient(180deg, #0E0C0C 0%, #1D1919 55%, #141111 100%); --glow: 1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0C0C; --surface: #171414; --ink: #F4F1F0; --muted: #A39A97; --line: #2E2828;
    --accent: #FF5A36; --header: rgba(14, 12, 12, 0.86); --grid: rgba(244, 241, 240, 0.045);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.5); --paper: #EFEAE4;
    --sec-grad: linear-gradient(180deg, #0E0C0C 0%, #1D1919 55%, #141111 100%); --glow: 1;
  color-scheme: dark;
}

@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Jagno"; src: url("../fonts/Jagno.woff2") format("woff2"); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.ph { border-bottom: 1.5px dashed var(--accent); color: var(--accent); font-style: italic; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.hdr.scrolled { background: var(--header); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--font-display); font-size: 30px; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; line-height: 1; }
.logo i { width: 7px; height: 7px; background: var(--accent); display: inline-block; margin-left: 4px; align-self: flex-end; margin-bottom: 4px; transition: transform .3s ease; }
.logo:hover i { transform: rotate(45deg); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; position: relative; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after, .nav a:hover::after { transform: scaleX(1); }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.icon-btn:hover { transform: rotate(-12deg); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sun { display: block; } :root:not([data-theme="light"]) .moon { display: none; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--font-body); padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s ease; margin: 0; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .menu-btn { display: grid; }
  .hdr-actions { margin-left: auto; }
  .hdr-cv span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; margin-top: -72px; padding-top: 128px; }
.gridbg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(560px circle at var(--mx, 70%) var(--my, 30%), #000 0%, rgba(0,0,0,.35) 60%, transparent 100%);
          mask-image: radial-gradient(560px circle at var(--mx, 70%) var(--my, 30%), #000 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.name {
  font-family: var(--font-display); font-weight: 400; line-height: .92; letter-spacing: .01em;
  font-size: clamp(58px, 12.5vw, 176px); margin: 22px 0 8px;
  display: flex; flex-wrap: wrap; column-gap: .35em;
}
.name .w { display: inline-flex; }
.name .ch { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes rise { from { transform: translateY(28%) rotate(-4deg); } to { transform: none; } }
.name-plain { font-size: 15px; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; margin-top: 36px; }
.lede { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.45; max-width: 34ch; letter-spacing: -.01em; }
.lede .rot { color: var(--accent); display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.lede .rot.out { opacity: 0; transform: translateY(-6px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.stat { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
.stat b { display: block; font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 48px; }
.marquee span { font-size: 22px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section[id] { scroll-margin-top: 84px; }
.sec { padding: 104px 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 56px; align-items: start; }
.sec-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.sec-num::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.sec-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.sec-intro { margin-top: 16px; color: var(--muted); max-width: 62ch; font-size: 18px; }
@media (max-width: 820px) { .sec { padding: 76px 0; } .sec-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; } .sec-num { padding-top: 0; } }

/* about */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.about-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.about-body p + p { margin-top: 16px; }
.about-text { font-size: 19px; max-width: 60ch; }
.facts { display: grid; gap: 22px; align-content: start; }
.fact h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
@media (max-width: 820px) { .about, .about-body { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- journey timeline ---------- */
.journey { background: var(--surface); border-block: 1px solid var(--line); }
.tl { position: relative; display: grid; gap: 72px; padding: 8px 0; }
.tl::before, .tl-progress { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: var(--line); }
.tl-progress { background: var(--accent); transform-origin: top; transform: translateX(-1px) scaleY(var(--p, 0)); }
.tl-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; position: relative; align-items: center; }
.tl-item > * { min-width: 0; }
.tl-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; background: var(--surface); border: 2px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg); z-index: 1; }
.tl-text { max-width: 440px; }
.tl-item:nth-child(odd) .tl-text { grid-column: 1; justify-self: end; text-align: right; }
.tl-item:nth-child(odd) .tl-media { grid-column: 2; justify-self: start; }
.tl-item:nth-child(even) .tl-text { grid-column: 2; }
.tl-item:nth-child(even) .tl-media { grid-column: 1; grid-row: 1; justify-self: end; }
.tl-item.no-media .tl-media { visibility: hidden; }
.tl-year { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.tl-year small { font-size: .32em; letter-spacing: .02em; color: var(--muted); font-weight: 500; display: block; margin-top: 6px; }
.tl-title { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 14px 0 8px; }
.tl-text p { color: var(--muted); }
.tl-text .tl-year { color: var(--ink); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl-item:nth-child(odd) .tl-tags { justify-content: flex-end; }
.tl-tags span { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

.mems { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 12px 20px; width: min(560px, 100%); scrollbar-width: none; }
.mems::-webkit-scrollbar { display: none; }
.mems > .memory { flex: 0 0 min(290px, 78%); scroll-snap-align: center; }
.mems.single { width: auto; overflow: visible; }
.mems.single > .memory { flex-basis: min(330px, 100%); }
.mem-ctl { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item:nth-child(odd) .mem-ctl { justify-content: flex-start; }
.tl-item:nth-child(even) .mem-ctl { justify-content: flex-end; }
.mem-ctl .icon-btn { width: 34px; height: 34px; }
.memory { margin: 0; width: min(330px, 100%); background: var(--paper); padding: 12px 12px 16px; border-radius: 4px; box-shadow: var(--shadow); color: #2A2422; transform: rotate(var(--tilt, -2deg)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tl-item:nth-child(even) .memory { --tilt: 2deg; }
.memory:hover, .memory:focus-within, .memory:focus { transform: rotate(0deg) scale(1.03); }
.photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: #d8cfc6; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.32) saturate(.72) contrast(.92) brightness(1.02) blur(.9px); transform: scale(1.02); transition: filter .7s ease, transform .7s ease; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 70px rgba(40, 24, 10, .45); mix-blend-mode: multiply; }
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.memory:hover .photo img, .memory:focus .photo img, .memory:focus-within .photo img { filter: sepia(.08) saturate(.95) contrast(1) blur(0); transform: scale(1.06); }
.memory figcaption { padding: 12px 4px 0; font-size: 14px; line-height: 1.45; text-align: left; }
.memory figcaption b { display: block; font-weight: 600; font-size: 15px; color: #1A1515; }
.memory figcaption span { font-size: 13px; color: #6B605B; }
.memory figcaption .ph { color: #B8391B; border-color: #B8391B; font-size: 13.5px; }
.focus-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 820px) {
  .tl::before, .tl-progress { left: 7px; }
  .tl-item { grid-template-columns: minmax(0,1fr); gap: 20px; padding-left: 36px; }
  .tl-item::before { left: 8px; top: 34px; }
  .tl-item:nth-child(odd) .tl-text, .tl-item:nth-child(even) .tl-text { grid-column: 1; justify-self: start; text-align: left; }
  .tl-item:nth-child(odd) .tl-media, .tl-item:nth-child(even) .tl-media { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .mems.single { width: 100%; }
  .mems.single > .memory { flex-basis: min(320px, 100%); }
  .tl-item:nth-child(odd) .tl-tags { justify-content: flex-start; }
  .tl-item.no-media .tl-media { display: none; }
  .tl { gap: 52px; }
  .tl-item:nth-child(even) .mem-ctl { justify-content: flex-start; }
  .mems { margin-left: -12px; }
}

/* ---------- experience ---------- */
.xp { display: grid; border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.xp-when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.xp-when b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.xp-co { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.xp-co h3 { font-size: 26px; letter-spacing: -.025em; font-weight: 600; }
.xp-co .role { color: var(--accent); font-weight: 600; font-size: 16px; }
.xp-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.xp ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 72ch; }
.xp li { position: relative; padding-left: 20px; }
.xp li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }
.sub-role { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sub-role:first-of-type { margin-top: 14px; }
.sub-role .head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.sub-role .head b { font-weight: 600; }
.sub-role .head span { color: var(--muted); font-size: 14px; }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.edu-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.edu-card h3 { font-size: 20px; letter-spacing: -.015em; }
.edu-card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.edu-card .yrs { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--accent); font-weight: 600; }
@media (max-width: 820px) { .xp-row { grid-template-columns: 1fr; gap: 8px; } .edu { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 22px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 15px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.empty { border-style: dashed; background: transparent; }
.cover { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 18px; overflow: hidden; position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.cover.art { padding: 0; background: #F3EEE6; }
.cover.art::after { display: none; }
.cover.art img { width: 100%; height: 100%; object-fit: cover; }
.cover b { font-size: 26px; letter-spacing: -.02em; line-height: 1.05; position: relative; z-index: 1; }
.cover span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; position: relative; z-index: 1; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* type lab */
.typelab { margin-top: 72px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.typelab h3 { font-size: 30px; letter-spacing: -.03em; }
.typelab p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.tester { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.tester-out { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 84px); line-height: 1.05; padding: 28px 24px; min-height: 180px; word-break: break-word; text-transform: uppercase; }
.tester-ctl { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 12px 16px; background: var(--surface); flex-wrap: wrap; }
.tester-ctl label { font-size: 13px; color: var(--muted); }
.tester-ctl input[type="text"] { flex: 1 1 200px; min-width: 0; font: 500 16px var(--font-body); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.tester-ctl input[type="range"] { accent-color: var(--accent); width: 120px; }
.alphabet { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
:root[data-theme="dark"] .alphabet img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alphabet img { filter: invert(1) hue-rotate(180deg); } }
:root[data-theme="dark"] .alphabet { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alphabet { background: #000; } }
@media (max-width: 820px) { .typelab { grid-template-columns: 1fr; } }

/* ---------- certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 10px; text-align: left; cursor: zoom-in; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: transform .3s ease, border-color .3s ease; }
.cert:hover { transform: translateY(-4px); border-color: var(--ink); }
.cert img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; }
.cert b { font-size: 15px; font-weight: 600; line-height: 1.3; padding: 0 4px; }
.cert span { font-size: 13px; color: var(--muted); padding: 0 4px 4px; }
.lb { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: #fff; }
.lb::backdrop { background: rgba(10, 8, 8, .86); backdrop-filter: blur(6px); }
.lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.lb-bar p { font-size: 15px; }
.lb-bar .ctl { display: flex; gap: 8px; }
.lb .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.lb[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* ---------- contact / footer ---------- */
.contact { text-align: left; }
.big-cta { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.045em; line-height: .98; font-weight: 600; }
.big-cta a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 4px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s ease; }
.big-cta a:hover { background-size: 100% 4px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 10px; }
.foot .logo { color: var(--ink); font-size: 24px; }

/* ---------- reveal ---------- */
.pre { opacity: 0; transform: translateY(26px); }
.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }

/* page transitions (cross-document view transitions, with a fade-in fallback) */
@view-transition { navigation: auto; }
.hdr { view-transition-name: site-header; }
::view-transition-old(root) { animation: 260ms ease both vt-out; }
::view-transition-new(root) { animation: 460ms cubic-bezier(.2,.8,.2,1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
html.theme-vt .hdr { view-transition-name: none; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html:not(.vt) main { animation: pagein .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pagein { from { opacity: .001; transform: translateY(18px); } }

/* name: letters flip between Jagno and DM Sans */
.name { perspective: 900px; min-height: calc(2 * .92em + .1em); }
.name .ch { transform-origin: 50% 60%; backface-visibility: hidden; }
.name .ch.sans { font-family: var(--font-body); font-weight: 700; letter-spacing: -.045em; }
.name .ch.sans.sp { width: .1em; }

/* page heads for inner pages */
.page-first { padding-top: 72px; }
.page-first .sec-title { font-size: clamp(44px, 7.4vw, 100px); letter-spacing: -.045em; }

/* home: explore cards */
.explore { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.xcard { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease; }
.xcard:hover { transform: translateY(-6px); border-color: var(--ink); }
.xcard .ximg { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.xcard .ximg { position: relative; }
.xcard .ximg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.32) saturate(.72) contrast(.92) brightness(1.02) blur(.9px); transform: scale(1.02); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.xcard .ximg::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(40, 24, 10, .45); mix-blend-mode: multiply; }
.xcard:hover .ximg img, .xcard:focus-visible .ximg img { transform: scale(1.07); filter: sepia(.08) saturate(.95) contrast(1) blur(0); }
.xcard .xbody { padding: 18px 18px 20px; display: grid; gap: 6px; }
.xcard h3 { font-size: 22px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; }
.xcard h3 svg { width: 20px; height: 20px; transition: transform .3s ease; }
.xcard:hover h3 svg { transform: translate(3px, -3px); }
.xcard p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }
.cards.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards.solo { grid-template-columns: minmax(0, 620px); }
@media (max-width: 620px) { .cards.two { grid-template-columns: 1fr; } }

/* blog */
.posts { display: grid; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.15; }
.post p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.post:hover h2 { color: var(--accent); }
.blog-empty { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0 8px; border-top: 1px solid var(--line); }
.blog-empty h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; }
.blog-empty p { color: var(--muted); margin-top: 14px; max-width: 56ch; }
.blog-empty .chips { margin-top: 22px; }
.blog-empty .btn { margin-top: 28px; }
.blog-mark { font-family: var(--font-display); font-size: 120px; line-height: .8; color: var(--accent); }
@media (max-width: 820px) { .post, .blog-empty { grid-template-columns: 1fr; gap: 10px; } .blog-mark { font-size: 80px; } }
.home-intro { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 48px; }
.home-intro p.big { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -.02em; max-width: 30ch; }
@media (max-width: 820px) { .home-intro { grid-template-columns: 1fr; gap: 12px; } }

/* next-page strip */
.next { border-top: 1px solid var(--line); }
.next a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0; text-decoration: none; }
.next small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.next b { font-size: clamp(36px, 6vw, 80px); letter-spacing: -.045em; line-height: 1; font-weight: 600; }
.next svg { width: clamp(36px, 5vw, 64px); height: auto; flex: none; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.next a:hover svg { transform: translateX(10px); }
.next a:hover b { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  body::before { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { width: auto; }
  .mq-set { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding: 0 20px; }
  .mq-set[aria-hidden="true"] { display: none; }
  .marquee span { font-size: 17px; gap: 20px; }
  .mq-set { gap: 10px 20px; }
  .pre { opacity: 1; transform: none; }
}


/* ---------- hero: name left, highlights right ---------- */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 22px; }
.hero-top .name { font-size: clamp(58px, 12.5vw, 176px); margin: 0 0 10px; }
.hero-top .stats { align-self: center; }
.hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.hero-grid .lede { max-width: 44ch; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; gap: 32px; } .hero-top .name { font-size: clamp(54px, 15vw, 112px); } }

/* ---------- Calmtown cover ---------- */
.cover.photo-cover { background: #4F8F6E url("../img/calmtown-cover.jpg") center 60% / cover no-repeat; color: #fff; }
.cover.photo-cover::after { background-image: linear-gradient(180deg, rgba(20, 45, 38, .35) 0%, rgba(20, 45, 38, 0) 30%, rgba(20, 45, 38, 0) 50%, rgba(18, 42, 34, .72) 100%); background-size: auto; }
.cover.photo-cover span { opacity: .9; }
.cover.photo-cover b, .cover.photo-cover span { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.card:hover .cover.photo-cover { background-size: 108%; }
.cover.photo-cover { transition: background-size .8s cubic-bezier(.2,.8,.2,1); }

/* ---------- logo: FZ opens to FUAT ZARIFOGLU ---------- */
.hdr .logo-type { display: inline-flex; align-items: baseline; white-space: nowrap; }
.lt-x { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; vertical-align: bottom; transition: max-width .8s cubic-bezier(.7,0,.2,1), opacity .45s ease; }
.hdr .logo.open .lt-x { max-width: 6em; opacity: 1; transition: max-width .9s cubic-bezier(.2,.8,.2,1), opacity .6s ease .15s; }
@media (max-width: 560px) { .hdr .logo.open .lt-x { max-width: 0; opacity: 0; } }

/* ---------- collapsible experience ---------- */
.xp-row.has-more { cursor: pointer; }
.xp-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease; opacity: 0; }
.xp-more > div { overflow: hidden; min-height: 0; }
.xp-row.open .xp-more { grid-template-rows: 1fr; opacity: 1; }
.xp-toggle { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background-color .2s ease, color .2s ease; }
.xp-toggle svg { width: 16px; height: 16px; }
.xp-row:hover .xp-toggle { border-color: var(--ink); }
.xp-row.open .xp-toggle { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sub-role .head { cursor: inherit; }

/* ---------- language switch ---------- */
.lang-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.lang-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); transform: translateY(-1px); }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; width: 50px; height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.to-top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--sp, 0) * 100); }

/* ---------- owl logo ---------- */
.logo { gap: 8px; color: var(--ink); }
.logo .owl { width: 27px; height: 32px; flex: none; }
.logo .owl .eye { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.logo:hover .owl .eye { animation: blink .5s ease; }
@keyframes blink { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
.logo-type { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: .02em; }
.foot .logo .owl { width: 23px; height: 28px; }
.foot .logo-type { font-size: 22px; }

/* ---------- logo tiles ---------- */
.xp-co { align-items: center; }
.ltile { position: relative; flex: none; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; overflow: hidden; }
.ltile b { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.ltile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.ltile.sm { width: 30px; height: 30px; border-radius: 8px; }
.ltile.sm b { font-size: 8.5px; }
.ltiles { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ltile:has(img) { width: auto; min-width: 46px; padding: 0 10px; background: #fff; border-color: transparent; box-shadow: 0 1px 0 var(--line); }
.ltile:has(img) b { display: none; }
.ltile:has(img) img { position: static; inset: auto; height: 26px; width: auto; max-width: 112px; padding: 0; object-fit: contain; background: transparent; }
.ltile.sm:has(img) { width: auto; min-width: 30px; padding: 0 8px; }
.ltile.sm:has(img) img { height: 16px; max-width: 104px; }
.sub-role .head { align-items: center; }
.edu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---------- quiz ---------- */
.quiz-sec { padding-top: 40px; }
.quiz { border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); max-width: 880px; margin-left: 252px; }
.q-top { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.q-text { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 26px 0 22px; }
.q-opts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.q-opt { font: 500 17px/1.3 var(--font-body); text-align: left; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: transform .2s ease, border-color .2s ease, background-color .25s ease, color .25s ease; }
.q-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink); }
.q-opt:disabled { cursor: default; }
.q-opt.right { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.q-opt.right::after { content: "✓"; font-weight: 700; }
.q-opt.wrong { border-color: var(--accent); color: var(--accent); text-decoration: line-through; }
.q-opt.dim { opacity: .5; }
.q-fact { min-height: 1.6em; margin-top: 18px; color: var(--muted); font-size: 16px; }
.q-fact b { color: var(--ink); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.q-actions [hidden] { display: none; }
.q-result { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.08; margin: 22px 0 8px; }
.q-anim { animation: qin .45s cubic-bezier(.2,.8,.2,1); }
@keyframes qin { from { opacity: .001; transform: translateY(10px); } }
@media (max-width: 960px) { .quiz { margin-left: 0; } }
@media (max-width: 560px) { .q-opts { grid-template-columns: 1fr; } }

/* ---------- dark: black to charcoal, with a slow drifting glow ---------- */
.journey, .work, .maxim, .marquee, .req { background: var(--sec-grad); }
.edu-card, .card, .cert, .xcard, .tester-ctl, .chip { background-image: none; }
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none; opacity: var(--glow);
  background:
    radial-gradient(38% 32% at 22% 18%, rgba(255, 255, 255, 0.055), transparent 70%),
    radial-gradient(34% 30% at 78% 62%, rgba(255, 90, 54, 0.045), transparent 70%),
    radial-gradient(30% 26% at 40% 90%, rgba(255, 255, 255, 0.035), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
  transition: opacity .5s ease;
}
@keyframes drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(4%, -3%, 0) rotate(6deg); } 100% { transform: translate3d(-3%, 4%, 0) rotate(-4deg); } }
.journey, .work, .maxim { position: relative; }
.maxim { border-top-color: var(--line); }

/* ---------- myth & philosophy ---------- */
.meander {
  height: 14px; background: var(--accent); opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 13H14V1H4V9H10V5H7' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M14 13H20' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 20px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 13H14V1H4V9H10V5H7' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M14 13H20' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 20px 14px;
}
.maxim { padding: 92px 0 96px; background: var(--surface); border-top: 1px solid var(--line); }
.maxim .meander { width: 200px; margin-bottom: 36px; }
.maxim figure { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.maxim .who { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.maxim blockquote { margin: 0; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; font-style: italic; max-width: 22ch; text-wrap: balance; }
.maxim blockquote::before { content: "“"; color: var(--accent); margin-right: .04em; }
.maxim blockquote::after { content: "”"; color: var(--accent); }
.maxim figcaption { margin-top: 22px; font-size: 16px; }
.maxim figcaption b { font-weight: 600; }
.maxim figcaption span { color: var(--muted); }
@media (max-width: 820px) { .maxim figure { grid-template-columns: 1fr; gap: 10px; } .maxim .who { padding-top: 0; } }

/* ---------- request form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-grid .big-cta { font-size: clamp(40px, 5.6vw, 80px); }
.contact-note { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 42ch; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.req h2 { font-size: 24px; letter-spacing: -.02em; }
.req .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .req legend { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field label i, .req legend i { color: var(--accent); font-style: normal; }
.field input, .field textarea { font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.req fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; transition: all .2s ease; }
.opts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req .btn { justify-self: start; }
.req-status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.req-status.err { color: var(--accent); }
.req-done { display: none; text-align: left; }
.req.sent > :not(.req-done) { display: none; }
.req.sent .req-done { display: grid; gap: 10px; }
.req-done b { font-size: 26px; letter-spacing: -.02em; }
.req-done p { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .req .row { grid-template-columns: 1fr; } .req { padding: 20px; } }


/* ---------- second accent: baby blue (light) / turquoise (dark) ---------- */
:root { --accent2: #24598A; --accent2-fill: #BFDDF2; --accent2-on: #1F1A16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent2: #3CCFB4; --accent2-fill: rgba(60, 207, 180, 0.14); --accent2-on: #EAFBF7; } }
:root[data-theme="dark"] { --accent2: #3CCFB4; --accent2-fill: rgba(60, 207, 180, 0.14); --accent2-on: #EAFBF7; }

/* quiz */
.q-bar i { background: var(--accent2); }
.q-opt.right { background: var(--accent2-fill); color: var(--accent2-on); border-color: var(--accent2); }
.q-opt.right::after { color: var(--accent2); }
/* timeline */
.tl-progress { background: var(--accent2); }
.tl-item::before { border-color: var(--accent2); }
.tl-year small { color: var(--accent2); font-weight: 600; }
.tl-tags span { background: var(--accent2-fill); border-color: transparent; color: var(--accent2-on); }
/* chips, education years, experience toggle */
.chip { background: var(--accent2-fill); border-color: transparent; color: var(--accent2-on); }
.edu-card .yrs { color: var(--accent2); }
.xp-row:hover .xp-toggle { border-color: var(--accent2); color: var(--accent2); }
.xp-row.open .xp-toggle { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }
/* links and small details */
.xcard:hover { border-color: var(--accent2); }
.xcard:hover h3 svg { color: var(--accent2); }
.cert:hover, .card:hover { border-color: var(--accent2); }
.mem-ctl .icon-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.to-top .ring circle { stroke: var(--accent2); }
.opts input:checked + span { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }
/* header: two-colour scroll line, nav underline and buttons */
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform: scaleX(var(--page-sp, 0)); transform-origin: left; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.hdr.scrolled::after { opacity: 1; }
.nav a::after { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.hdr .icon-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.lang-btn:hover { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }
/* footer: gradient rule, soft glow, coloured hovers */
.foot { position: relative; border-top: 0; overflow: hidden;
  background:
    radial-gradient(55% 140% at 92% 0%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%),
    radial-gradient(45% 120% at 6% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: .75; }
.foot .icon-btn:hover { background: var(--accent2); border-color: var(--accent2); color: var(--bg); transform: translateY(-2px); }
.foot .logo:hover .owl .eye { fill: var(--accent2); }

/* dark: one of the drifting lights turns turquoise */
body::before {
  background:
    radial-gradient(38% 32% at 22% 18%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(34% 30% at 78% 62%, rgba(255, 90, 54, 0.045), transparent 70%),
    radial-gradient(32% 28% at 40% 90%, rgba(60, 207, 180, 0.06), transparent 70%);
}
