/* ==========================================================================
   Tokens — Wise-inspired palette on a Tabfolio-style layout
   ========================================================================== */
:root {
  --forest: #2b1247; /* theme dark: aubergine (token names kept from the first theme) */
  --lime: #cdb0ff; /* theme accent: lilac */
  --lime-pale: #f0e7ff;
  --ink: #0e0f0c;
  --ink-2: #454745;
  --ink-3: #6a6c6a;
  --bg: #ffffff;
  --surface: #f6f3fa;
  --line: rgba(14, 15, 12, 0.1);
  --pink: #ffd6e4;
  --orange: #ffe2b8;
  --blue: #bfe9f0;
  --wrap: 1152px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 10px; }
.muted { color: var(--ink-3); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.word, .char { display: inline-block; }

/* Buttons & pills (Wise: fully rounded, bold labels) */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  transition: background-color .3s var(--ease), color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateY(2px); }
.btn:active { transform: scale(0.97); }
.btn--forest { background: var(--forest); color: var(--lime); }
.btn--forest:hover { background: #3d1c63; box-shadow: 0 10px 30px rgba(43,18,71,0.25); }
.btn--lime { background: var(--lime); color: var(--forest); }
.btn--ghost { background: var(--surface); color: var(--forest); }
.btn--ghost:hover { background: var(--lime-pale); }
.btn--outline { border: 2px solid var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--lime); }
.btn--lg { height: 60px; padding: 0 28px; font-size: 17px; }
/* Reveal buttons: the pill widens and an icon grows into the new space */
.btn--reveal { gap: 0; }
.btn__icon { flex: none; display: inline-grid; place-items: center; width: 0; height: 18px; margin-left: 0; opacity: 0; transform: scale(.4); transition: width .4s var(--ease), margin .4s var(--ease), opacity .18s ease-out, transform .45s var(--ease); }
.btn__icon svg { width: 18px; height: 18px; flex: none; }
.btn .btn__icon--spark svg { fill: currentColor; stroke: none; }
.btn--reveal:hover .btn__icon, .btn--reveal:focus-visible .btn__icon { width: 18px; margin-left: 10px; opacity: 1; transform: none; transition: width .4s var(--ease), margin .4s var(--ease), opacity .25s ease-out .06s, transform .5s var(--spring) .04s; }
.btn__icon--disc { height: 32px; border-radius: 50%; background: var(--forest); color: #fff; }
.btn__icon--disc svg { width: 15px; height: 15px; stroke-width: 2; }
.btn--reveal:hover .btn__icon--disc, .btn--reveal:focus-visible .btn__icon--disc { width: 32px; margin: 0 -14px 0 12px; }
/* While hovered the icons keep moving: the sparkle spins in, then twinkles; the phone rings */
.btn--reveal:hover .btn__icon--spark svg, .btn--reveal:focus-visible .btn__icon--spark svg { animation: spark-in .6s var(--ease) both, spark-twinkle 1.8s .6s ease-in-out infinite; }
.btn--reveal:hover .btn__icon--disc svg, .btn--reveal:focus-visible .btn__icon--disc svg { animation: phone-ring 1.5s .3s ease-in-out infinite; }
@keyframes spark-in { from { transform: rotate(-180deg) scale(.2); } to { transform: rotate(0) scale(1); } }
@keyframes spark-twinkle { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.78); } 100% { transform: rotate(90deg) scale(1); } }
@keyframes phone-ring { 0%, 42%, 100% { transform: rotate(0); } 6% { transform: rotate(-18deg); } 12% { transform: rotate(16deg); } 18% { transform: rotate(-14deg); } 24% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 36% { transform: rotate(3deg); } }
/* These are small, hover-triggered icon motions, so they stay on under reduced motion */

.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill--avail { background: var(--lime-pale); color: var(--forest); font-weight: 600; }
.pill--clock { font-variant-numeric: tabular-nums; }
.pill--dark { background: rgba(0,0,0,0.45); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2ead4b; }
.ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2ead4b; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ==========================================================================
   Loader + progress + cursor
   ========================================================================== */
/* Avatar iris: a ring draws around the photo, a circle opens to reveal the page, the photo flies to the header */
.loader { --r: 0px; position: fixed; inset: 0; z-index: 100; background: var(--forest); -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px)); mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px)); }
.loader__ring { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: rgba(205,176,255,.18); stroke-width: 3; }
.loader__ring .loader__arc { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 565.5; stroke-dashoffset: 565.5; }
.loader__label { position: absolute; left: 0; right: 0; top: calc(50% + 130px); text-align: center; color: var(--lime); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.loader__av { position: fixed; z-index: 101; left: calc(50% - 66px); top: calc(50% - 66px); width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--forest); pointer-events: none; }
.loader__av img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }

/* Pointer label: shown only over cards and the reel; the system cursor is never hidden */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; will-change: transform; }
.has-cursor .cursor { display: block; }
.cursor__label { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0 14px; padding: 7px 13px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 6px 20px rgba(43,18,71,0.22); opacity: 0; transform: translateY(4px) scale(.92); transform-origin: 0 0; transition: opacity .16s ease-out, transform .24s var(--ease); }
.cursor.is-link .cursor__label::after { content: '\2192'; font-weight: 500; }
.cursor.is-on .cursor__label { opacity: 1; transform: none; }
.cursor.is-on.is-down .cursor__label { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .cursor__label { transition: opacity .12s linear; transform: none; } }

/* ==========================================================================
   Intro (Tabfolio header)
   ========================================================================== */
.intro { padding-top: clamp(28px, 5vw, 56px); }
.intro__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); flex: none; }
.avatar__mono { font: 900 20px/1 var(--display); color: var(--forest); letter-spacing: -0.02em; }
.avatar__ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed rgba(43,18,71,0.25); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar--sm { width: 44px; height: 44px; }
.avatar--sm .avatar__mono { font-size: 14px; }

.tabs { position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tabs__pill { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); border-radius: 999px; background: var(--forest); box-shadow: 0 6px 18px rgba(43,18,71,0.25); transition: transform .55s var(--spring), width .55s var(--spring); }
.tabs__btn { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.tabs__btn:hover { color: var(--forest); }
.tabs__btn.is-active { color: var(--lime); }
.tabs.is-floating { position: fixed; z-index: 70; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.82); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(14,15,12,0.12); animation: drop .5s var(--spring); }
@keyframes drop { from { transform: translate(-50%, -24px); opacity: 0; } }
.tabs-ghost { visibility: hidden; }

.intro__name { font: 800 clamp(40px, 5.4vw, 64px)/1 var(--display); letter-spacing: -0.035em; color: var(--forest); }
.intro__role { max-width: 560px; margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.intro__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ==========================================================================
   Panels
   ========================================================================== */
.panels { position: relative; margin-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(80px, 10vw, 120px); scroll-margin-top: 80px; }
.panel[hidden] { display: none; }

/* Projects grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.card { display: block; }
.card__frame { position: relative; aspect-ratio: 1440 / 1024; border-radius: var(--r-md); overflow: hidden; isolation: isolate; background: var(--surface); transform: translateZ(0); }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(14,15,12,0.06); pointer-events: none; }
.card:hover .card__frame img { transform: scale(1.045); }
/* Video thumbnail: shown whole (labels included) on a background matching the video's own */
.card__frame--video { background: #0c0c0c; }
.card__video { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.card:hover .card__video { transform: scale(1.045); }
.card__video--fill { object-fit: cover; } /* reel rendered at the card's 1440:1024 shape */
.card__metric {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; max-width: calc(100% - 28px);
  display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 14px; border-radius: 999px;
  background: var(--forest); color: #fff; font-size: 13px; font-weight: 500;
  transform: translateY(14px); opacity: 0; transition: transform .5s var(--spring), opacity .3s;
}
.card__metric b { color: var(--lime); font-weight: 700; }
.card:hover .card__metric, .card:focus-visible .card__metric { transform: none; opacity: 1; }
.card__cap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.card__cap .muted { font-weight: 500; white-space: nowrap; }
.card__frame--lime { background: var(--lime-pale); }
.card__frame--pink { background: var(--pink); }
.card__frame--orange { background: var(--orange); }
.card__frame--blue { background: var(--blue); }

/* Playground */
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); margin-bottom: 24px; }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__meta { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.masonry { columns: 3; column-gap: 24px; }
.tile { break-inside: avoid; margin: 0 0 24px; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.tile figcaption { padding: 12px 16px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tile__img { width: 100%; transition: transform 1s var(--ease); }
.tile:hover .tile__img { transform: scale(1.04); }
.tile .phone { width: 62%; margin: 28px auto 6px; aspect-ratio: 390 / 844; border-radius: 30px; padding: 6px; background: #111; box-shadow: 0 24px 50px rgba(14,15,12,0.25); transition: transform .8s var(--spring); }
.tile .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.tile:hover .phone { transform: translateY(-8px) rotate(-2deg); }
.tile--lime { background: var(--lime); }
.tile--pale { background: var(--lime-pale); }
.tile--forest { background: var(--forest); }
.tile--forest figcaption { color: var(--lime); }
.tile--orange { background: var(--orange); }
.tile--blue { background: var(--blue); }
.tile--lime figcaption, .tile--orange figcaption, .tile--blue figcaption, .tile--pale figcaption { color: var(--forest); }

/* About */
.about { max-width: 920px; }
.about__lead { font: 700 clamp(24px, 2.8vw, 36px)/1.25 var(--display); letter-spacing: -0.025em; color: var(--forest); margin-bottom: 40px; }
.about__lead .word { opacity: 0.2; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { border-radius: var(--r-md); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; justify-content: space-between; }
.stat__num { font: 900 clamp(56px, 7vw, 88px)/0.85 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 600; font-size: 15px; }
.stat--lime { background: var(--lime); color: var(--forest); }
.stat--forest { background: var(--forest); color: var(--lime); }
.stat--forest .stat__label { color: #fff; }
.stat--pink { background: var(--pink); color: var(--forest); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.principle { padding: 24px; border-radius: var(--r-md); background: var(--surface); transition: transform .5s var(--spring), background-color .3s; }
.principle:hover { transform: translateY(-6px); background: var(--lime-pale); }
.principle__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--lime); font: 800 14px/1 var(--display); }
.principle h3 { margin: 18px 0 8px; font: 800 20px/1.15 var(--display); letter-spacing: -0.02em; color: var(--forest); }
.principle p { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--spring); }
.chip:hover { background: var(--forest); color: var(--lime); border-color: var(--forest); transform: translateY(-3px); }

/* Resume */
.jobs { list-style: none; margin: 0; padding: 0; max-width: 920px; }
.job { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 16px; margin: 0 -16px; border-radius: var(--r-sm); transition: background-color .35s; }
.job:hover { background: var(--surface); }
.job + .job::before { content: ''; position: absolute; top: 0; left: 80px; right: 16px; height: 1px; background: var(--line); }
.job__logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--forest); font: 900 18px/1 var(--display); transition: transform .5s var(--spring); }
.job:hover .job__logo { transform: rotate(-8deg) scale(1.06); }
.job__logo--lime { background: var(--lime); }
.job__logo--pink { background: var(--pink); }
.job__logo--blue { background: var(--blue); }
.job__logo--orange { background: var(--orange); }
.job__logo--forest { background: var(--forest); color: var(--lime); }
.job h3 { font: 800 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--forest); }
.job .at { font-weight: 600; color: var(--ink-3); }
.job__meta { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.job__desc { margin-top: 8px; color: var(--ink-2); max-width: 680px; }
.job--compact { padding-top: 16px; padding-bottom: 16px; }
.resume-cta { margin-top: 32px; }
.resume-cta .btn:hover svg { transform: translate(2px, -2px); }

/* ==========================================================================
   Impact band (Wise forest + lime display)
   ========================================================================== */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.display { font: 900 clamp(56px, 10vw, 148px)/0.85 var(--display); letter-spacing: -0.055em; text-transform: uppercase; }
.display .word { margin-right: 0.16em; }
.display .word:last-child { margin-right: 0; }
.display--lime { color: var(--lime); }
.display--forest { color: var(--forest); }
.impact { position: relative; background: var(--forest); color: #fff; padding: clamp(80px, 11vw, 140px) 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.impact .eyebrow { color: rgba(255,255,255,0.6); }
.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(48px, 6vw, 80px); background: rgba(205,176,255,0.18); border-radius: var(--r-md); overflow: hidden; }
.metric { background: var(--forest); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.metric__num { font: 900 clamp(48px, 5.6vw, 76px)/0.9 var(--display); letter-spacing: -0.05em; color: var(--lime); font-variant-numeric: tabular-nums; }
.metric__label { color: rgba(255,255,255,0.75); font-weight: 500; }
.logos { margin-top: clamp(64px, 8vw, 100px); padding: 26px 0; border-top: 1px solid rgba(205,176,255,0.18); overflow: hidden; }
.logos__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font: 900 clamp(28px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.035em; color: rgba(255,255,255,0.9); text-transform: uppercase; }
.logos__track i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Contact (lime field)
   ========================================================================== */
.contact { background: var(--lime); color: var(--forest); padding: clamp(80px, 11vw, 140px) 0 28px; overflow: hidden; }
.contact__title { margin-bottom: clamp(40px, 5vw, 64px); }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(80px, 10vw, 120px); }
.contact__text { max-width: 440px; font-size: 18px; font-weight: 500; }
.contact__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1.5px solid rgba(43,18,71,0.2); font-size: 14px; font-weight: 500; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .avatar { background: var(--forest); }
.footer__brand .avatar__mono { color: var(--lime); }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand span { opacity: 0.7; }
.footer__links { display: flex; gap: 6px; }
.footer__links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; transition: background-color .3s, color .3s; }
.footer__links a:hover { background: var(--forest); color: var(--lime); }
.footer__copy { display: inline-flex; align-items: center; gap: 6px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; font-weight: 600; transition: background-color .3s, color .3s; -webkit-tap-highlight-color: transparent; }
.to-top__label { display: inline-block; }
.to-top__arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--forest); color: var(--lime); transition: background-color .3s, color .3s; }
.to-top__arrow i { grid-area: 1 / 1; font-style: normal; font-size: 13px; line-height: 1; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.to-top__arrow i + i { transform: translateY(160%); }
.to-top:hover, .to-top:focus-visible { background: var(--forest); color: var(--lime); }
.to-top:hover .to-top__arrow, .to-top:focus-visible .to-top__arrow { background: var(--lime); color: var(--forest); }
.to-top:hover .to-top__arrow i:first-child { transform: translateY(-160%); }
.to-top:hover .to-top__arrow i + i { transform: translateY(0); }

.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translate(-50%, 220%); padding: 14px 22px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,0.25); transition: transform .5s var(--spring); }
.toast::before { content: '✓'; color: var(--lime); margin-right: 10px; }
.toast.is-on { transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .masonry { columns: 2; }
  .stats, .principles { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .intro__top { flex-direction: column; align-items: flex-start; }
  .tabs__btn { padding: 8px 12px; font-size: 13px; }
  .tabs.is-floating { top: 10px; }
  .grid { grid-template-columns: 1fr; }
  .card__metric { opacity: 1; transform: none; font-size: 12px; padding: 8px 12px; }
  .card__cap { flex-direction: column; gap: 2px; }
  .masonry { columns: 1; }
  .impact__grid { grid-template-columns: 1fr; }
  .contact__actions, .contact__actions .btn { width: 100%; justify-content: center; }
  .btn--lg { height: 56px; font-size: 15px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Hover transitions and small CSS animations stay on for everyone; main.js leaves out
   only the large scroll-linked movement when the OS asks for reduced motion. */

/* ==========================================================================
   About (Tabfolio /about structure)
   ========================================================================== */
.ab, .rs { max-width: 920px; }
.ab-carousel { margin: 0 0 48px; }
.ab-carousel__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); }
.ab-carousel__track { display: flex; height: 100%; transition: transform .9s var(--ease); }
.ab-carousel__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .55; transform: scale(1.08); }
.ab-carousel__track img.is-on { opacity: 1; transform: scale(1); }
.ab-carousel__ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.ab-carousel__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.9); color: var(--forest); backdrop-filter: blur(8px); transition: transform .4s var(--spring), background-color .3s; }
.ab-carousel__btn:hover { background: var(--lime); transform: scale(1.08); }
.ab-carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ab-carousel__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.ab-carousel__dots { display: flex; gap: 6px; }
.ab-carousel__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .5s var(--ease), background-color .3s; }
.ab-carousel__dots i.is-on { width: 22px; background: var(--forest); }

.ab-intro { max-width: 760px; }
.ab-h2 { font: 800 clamp(26px, 3.2vw, 38px)/1.12 var(--display); letter-spacing: -0.035em; color: var(--forest); text-wrap: balance; }
.ab-copy { margin-top: 24px; display: grid; gap: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.ab-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 56px; }
.ab-cta .btn:hover svg { transform: translate(2px, -2px); }
.ab-sec { margin-top: 72px; }
.ab-h3 { font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 24px; }
.rs > .ab-h3:first-child { margin-bottom: 8px; }

.ab-into { display: grid; gap: 10px; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ab-into__row { display: flex; gap: 10px; width: max-content; }
.ab-chip { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; transition: background-color .3s, transform .4s var(--spring); }
.ab-chip:hover { background: var(--lime-pale); transform: translateY(-3px); }
.ab-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.ab-chip__dot { width: 36px; height: 36px; border-radius: 50%; display: block; }
.ab-chip__dot--lime { background: var(--lime); } .ab-chip__dot--pink { background: var(--pink); } .ab-chip__dot--orange { background: var(--orange); } .ab-chip__dot--blue { background: var(--blue); }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { position: relative; padding: 28px; border-radius: var(--r-md); background: var(--surface); overflow: hidden; isolation: isolate; transition: transform .5s var(--spring); }
.value::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tint); clip-path: circle(0% at 44px 44px); transition: clip-path .7s var(--ease); }
.value:hover { transform: translateY(-4px); }
.value:hover::before { clip-path: circle(150% at 44px 44px); }
.value--lime { --tint: var(--lime-pale); } .value--pink { --tint: var(--pink); } .value--orange { --tint: var(--orange); } .value--blue { --tint: var(--blue); }
.value__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--forest); transition: transform .5s var(--spring); }
.value:hover .value__ico { transform: rotate(-10deg) scale(1.08); }
.value__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.value h4 { margin: 22px 0 0; font: 800 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--forest); }
.value p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Resume extras */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); transition: border-color .3s, transform .45s var(--spring); }
.tool:hover { border-color: var(--forest); transform: translateY(-3px); }
.tool__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font: 900 15px/1 var(--display); color: var(--forest); transition: transform .5s var(--spring); }
.tool:hover .tool__ico { transform: rotate(-8deg) scale(1.06); }
.tool__ico--forest { background: var(--forest); color: var(--lime); } .tool__ico--pink { background: var(--pink); } .tool__ico--orange { background: var(--orange); } .tool__ico--lime { background: var(--lime); } .tool__ico--blue { background: var(--blue); } .tool__ico--ink { background: var(--ink); color: #fff; }
.tool h4 { margin: 0; font-size: 15px; font-weight: 700; }
.tool p { margin-top: 2px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .values, .tools { grid-template-columns: 1fr; }
  .ab-carousel__frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .ab-sec { margin-top: 56px; }
}
.impact[hidden] { display: none !important; }
.page-veil { position: fixed; inset: 0; z-index: 100; background: var(--forest); pointer-events: none; }

/* About photo: same footprint as the old carousel frame */
.ab-photo { margin: 0 0 48px; }
/* About photo fills the wide frame */
.ab-photo__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: #c9a25e; }
.ab-photo__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transition: transform 1.4s var(--ease); }
.ab-photo:hover .ab-photo__frame img { transform: scale(1.03); }
@media (max-width: 640px) {
  .ab-photo__frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
}

/* "What I'm into" chip illustrations */
.ab-chip__art { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--forest); transition: transform .5s var(--spring); }
.ab-chip:hover .ab-chip__art { transform: rotate(-12deg) scale(1.1); }
.ab-chip__art svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ab-chip__art--lime { background: var(--lime); } .ab-chip__art--pink { background: var(--pink); } .ab-chip__art--orange { background: var(--orange); } .ab-chip__art--blue { background: var(--blue); }
.ab-chip__art--forest { background: var(--forest); color: var(--lime); }

/* Profile photo in the avatar circle */
.avatar__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 18%; transition: transform .6s var(--spring); }
.avatar:hover .avatar__img { transform: scale(1.06); }
