:root {
  color-scheme: dark;
  --bg: #091316;
  --surface: #0f1f24;
  --surface-raised: #173139;
  --text: #f5f6ef;
  --muted: #b5c8c8;
  --line: #2c474a;
  --accent: #8df1d0;
  --accent-ink: #092024;
  --grid: #8df1d02e;
  --shadow: #0006;
  --reading: 1232px;
  --header-height: 76px;
  --gutter: clamp(20px, 5.5vw, 84px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6ef;
  --surface: #e7f0eb;
  --surface-raised: #dbe9e6;
  --text: #162527;
  --muted: #405b5d;
  --line: #aec6c1;
  --accent: #165c50;
  --accent-ink: #f3fff9;
  --grid: #165c502c;
  --shadow: #13323825;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--reading)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; padding: 12px 18px; top: 10px; left: var(--gutter); transform: translateY(-180%); background: var(--accent); color: var(--accent-ink); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 7;
  color: #f5f6ef;
  border-bottom: 1px solid #d8ffef25;
  background: linear-gradient(180deg, #061314e8, #0613147a);
  transition: background-color .28s ease, border-color .28s ease, color .28s ease;
}
.site-header.is-scrolled {
  color: var(--text);
  border-color: var(--line);
  background: var(--bg);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(18px);
  }
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: var(--header-height);
  align-items: center;
}
.brand {
  grid-area: 1 / 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(6px, .65vw, 10px);
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  font-size: clamp(.9375rem, 1.65vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.brand-symbol { display: block; flex: none; width: auto; height: clamp(27px, 3vw, 42px); }
.signature-period { fill: var(--signature-accent, #8df1d0); }
.site-header.is-scrolled .brand { --signature-accent: var(--accent); }
.main-nav { grid-area: 1 / 1; justify-self: center; display: flex; align-items: center; gap: clamp(15px, 2.25vw, 34px); }
.main-nav a { position: relative; padding-block: 9px; font-size: .9rem; text-decoration: none; white-space: nowrap; color: inherit; }
.main-nav a::after { content: ""; position: absolute; bottom: 2px; inset-inline: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .23s ease; }
.main-nav a:is(:hover,[aria-current]) { color: #9cf3d7; }
.main-nav a:is(:hover,[aria-current])::after { transform: scaleX(1); }
.site-header.is-scrolled :is(.main-nav a:hover,.main-nav a[aria-current]) { color: var(--accent); }
.menu-toggle { display: none; justify-self: end; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 13px; color: #9cf3d7; background: #09131655; border: 1px solid #a5e4d080; border-radius: 4px; text-decoration: none; font-weight: 650; font-size: .875rem; white-space: nowrap; transition: background-color .22s, color .22s, border-color .22s; }
.site-header.is-scrolled .menu-toggle { color: var(--text); background: var(--surface); border-color: var(--line); }
.site-header.is-scrolled .menu-toggle[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.menu-icon { width: 13px; height: 8px; border-block: 1px solid currentColor; }
.theme-control { position: relative; grid-area: 1 / 1; align-self: start; justify-self: end; height: 0; z-index: 1; }
.site-header:not(.nav-ready) .theme-control { display: none; }
.site-header.is-scrolled .theme-hint { visibility: hidden; }
.theme-hint { position: absolute; top: 63px; right: 51px; text-align: right; white-space: nowrap; font: .8125rem/1.3 ui-monospace, monospace; color: #ebf6f1; background: #091316c9; padding: 6px 8px; border-radius: 3px; }
.cord { --pull: 0px; width: 36px; height: calc(73px + var(--pull)); border: 0; padding: 0; background: transparent; position: relative; display: block; cursor: grab; touch-action: none; }
.cord:active { cursor: grabbing; }
.cord-form { display: block; position: absolute; inset: 0; transition: transform .35s cubic-bezier(.18,1.65,.52,1); transform: translateY(var(--pull)); }
.cord.is-dragging .cord-form { transition: none; }
.cord-anchor { position: absolute; display: block; z-index: 1; top: 0; left: 7px; width: 22px; height: 7px; border: 1px solid var(--line); background: var(--surface-raised); border-radius: 0 0 4px 4px; }
.cord-line { display: block; position: absolute; left: 17px; top: calc(-1 * var(--pull)); width: 2px; height: calc(44px + var(--pull)); background: repeating-linear-gradient(to bottom, #c1d7d2 0 2px, #546a67 2px 4px); }
.cord-handle { display: block; position: absolute; left: 10px; top: 43px; width: 16px; height: 22px; background: #8df1d0; border-radius: 24% 24% 45% 45%; box-shadow: inset 2px 0 0 #ffffff60, 0 3px 9px var(--shadow); }
.cord-handle::before { content: ""; display: block; margin: 4px auto 0; width: 6px; height: 1px; background: #092024; box-shadow: 0 3px #092024; }
.cord:is(:hover,.is-armed) .cord-handle { box-shadow: 0 0 0 5px var(--grid), 0 3px 12px var(--shadow); }

.hero {
  color: #f8f8f0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #091316;
  border-bottom: 1px solid #2c474a;
}
.hero-media, .hero-media::after, .hero-reel { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media {
  z-index: -1;
  background: #0a191c url("assets/hero-poster.webp") center center / cover no-repeat;
}
.hero-reel { object-fit: cover; object-position: 56% center; }
.hero-media::after {
  content: "";
  background: linear-gradient(90deg, #061314 0%, #061314db 29%, #06131425 66%, #0613140f 100%),
    linear-gradient(0deg, #061314d9 0%, transparent 28%, transparent 74%, #06131484 100%);
}
.hero-inner {
  min-height: clamp(640px, 100svh, 960px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(24px, 3vw, 38px);
  position: relative;
  padding-block: 136px 25px;
}
.hero-intro { align-self: center; max-width: min(660px, 61%); }
.eyebrow { color: var(--accent); font: 600 .875rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .065em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 6.8rem); font-weight: 720; line-height: .99; letter-spacing: -.077em; }
.hero h1 span { display: block; margin-top: .28em; color: #9cf3d7; font-size: .48em; line-height: 1.12; letter-spacing: -.04em; }
.hero-bio { max-width: 43ch; margin-top: clamp(14px, 2.2vw, 25px); color: #f5f6ef; font-size: clamp(.95rem, 1.35vw, 1.2rem); line-height: 1.5; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 5px; font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 14px var(--shadow); }
.primary { background: var(--accent); color: var(--accent-ink); }
.secondary { border-color: var(--line); color: var(--text); }
.secondary:hover { border-color: var(--accent); }
.hero .primary { background: #9cf3d7; color: #092024; }
.hero .secondary { background: #09131675; border-color: #c6e8df79; color: #f5f6ef; }
.hero .secondary:hover { border-color: #9cf3d7; }
.hero :focus-visible, .site-header :focus-visible, .theme-control :focus-visible { outline-color: #9cf3d7; }
.hero-bottom {
  --hero-action-gap: clamp(8px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hero-action-gap);
  border-top: 1px solid #d8ffef35;
  padding-top: 12px;
  color: #e3ece8;
  font: .875rem/1.4 ui-monospace, monospace;
}
.hero-bottom > .button { max-width: 100%; padding-inline: clamp(9px, 1.4vw, 19px); }
.js .hero-bottom > [hidden] { display: inline-flex !important; visibility: hidden; }
.reel-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; max-width: 100%; padding: 8px 11px; border: 1px solid #c6e8df66; border-radius: 5px; background: #071a1dc9; color: #f5f6ef; }
.reel-label { min-width: 0; overflow-wrap: anywhere; }
.reel-toggle:hover { border-color: #9cf3d7; }
.reel-icon { display: inline-block; flex: none; width: 11px; height: 12px; background: #9cf3d7; clip-path: polygon(0 0,100% 50%,0 100%); }
.reel-toggle.is-playing .reel-icon { background: transparent; border-inline: 3px solid #9cf3d7; clip-path: none; }
.about { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.4fr); align-items: center; gap: clamp(30px, 9vw, 130px); }
.portrait { max-width: 360px; width: 100%; background: var(--surface-raised); padding: 10px; border: 1px solid var(--line); }
.portrait img { width: 100%; aspect-ratio: 4 / 4.3; height: auto; object-fit: cover; object-position: center 29%; }
.about-copy h2 { text-wrap: balance; }
.about-copy > p:not(.eyebrow) { color: var(--muted); max-width: 580px; margin-top: 17px; }
:is(#work, #certifications) { scroll-margin-top: 14px; }
:is(.work, .tech-stack) { border-top: 1px solid var(--line); }
@keyframes section-entry { from { opacity: .65; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.section.in-view { animation: section-entry .6s both ease-out; }

.section { padding-block: clamp(66px, 8vw, 118px); scroll-margin-top: 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section h2, .contact h2, .case-dialog h2 { font-size: clamp(2.65rem, 5.1vw, 5.1rem); font-weight: 710; line-height: 1; letter-spacing: -.067em; }
.faq { border-top: 1px solid var(--line); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.faq-entry { padding: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.faq-entry h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.3; }
.faq-entry p { margin-top: .55rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 44px; padding: 7px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 19px; }
.project {
  --card-border: var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.project:focus-within, .project:target { --card-border: var(--accent); }
.project[id] { scroll-margin-top: 14px; }
@media (hover: hover) {
  .project:hover { --card-border: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 36px var(--shadow), 0 0 0 1px var(--grid); }
  .project:hover h3 { color: var(--accent); }
  .project:hover .visual-board { transform: translateY(-3px) rotate(0deg) scale(1.035); }
}
.project-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(16px,2vw,26px); }
.project h3 { transition: color .25s ease; }
.project-type { font: .8125rem/1.4 ui-monospace, monospace; color: var(--accent); text-transform: uppercase; letter-spacing: .075em; margin-bottom: 8px; }
.project h3, .experience h3 { font-size: clamp(1.35rem, 2.25vw, 2rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 670; }
.project h3 + p, .timeline h3 + p { margin-top: 10px; }
.project h3 + p, .timeline p, .experience-intro > p:last-of-type, .credentials p, .credentials li { color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 17px 0 12px; color: var(--muted); font: .75rem/1.4 ui-monospace, monospace; }
.stack li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.case-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: .9rem; font-weight: 650; }
.case-link:hover { color: var(--accent); }
.project-actions { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: auto; }
.project-body > p:last-of-type + .project-actions { padding-top: 12px; }
.project-visual { min-height: 174px; display: grid; place-items: center; margin: 8px 8px 0; padding: 15px; border-radius: 11px; overflow: hidden; color: #172716; background-color: #cedcb3; background-image: radial-gradient(#26371626 1px,transparent 1px); background-size: 16px 16px; }
.project-visual.assistant { color: #102d2b; background-color: #add7ce; }
.project-visual.commerce { color: #302117; background-color: #dec2a8; }
.project-visual.admissions { color: #27213d; background-color: #c9c2e1; }
.visual-board { width: min(100%, 360px); padding: clamp(12px, 2.4vw, 23px); border-radius: 9px; background: #ffffffe3; border: 1px solid #ffffffd9; box-shadow: 0 15px 35px #16241124; transform: rotate(-3deg); transition: transform .35s ease; }
.assistant .visual-board, .admissions .visual-board { transform: rotate(3deg); }
.project-visual.manager { color: #172b3d; background-color: #b6d0df; }
.visual-label { display: block; border-bottom: 1px solid #17271627; padding-bottom: 8px; margin-bottom: 12px; font: 650 .8125rem/1.3 ui-monospace, monospace; }
.visual-steps { display: flex; align-items: center; justify-content: space-between; }
.visual-steps span { padding: 7px 5px; background: #e4ecd9; font-size: clamp(.72rem, 1.3vw, .875rem); border-radius: 4px; font-weight: 620; }
.visual-steps i { display: block; flex: 1; min-width: 4px; height: 1px; background: #5d8149; }
.visual-meter { margin-top: 16px; height: 5px; background: #d5e2cb; border-radius: 9px; overflow: hidden; }
.visual-meter i { display: block; width: 87%; height: 100%; background: #5d8149; }
.bubble { font-size: .8125rem; padding: 5px 8px; background: #ccede5; border-radius: 5px; margin-bottom: 5px; width: fit-content; }
.bubble.response { margin-left: auto; background: #edf2f0; }
.chat-apps { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; font: .75rem ui-monospace, monospace; }
.mini-list > div { display: flex; align-items: center; gap: 7px; padding-block: 3px; font-size: .85rem; }
.node { display: inline-block; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }

.credential-verification { margin: 24px 0 42px; }
.credential-verification summary { cursor: pointer; font-weight: 650; }
.credential-verification ul { margin: 12px 0; padding-left: 22px; }
.credential-verification .case-link { min-height: 44px; }

.credentials h3 {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.tech-stack-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2.8vw, 33px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0%, var(--grid), transparent 65%), var(--surface);
}
.tech-stack-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 46px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
}
.tech-stack-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 680;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.tech-stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.tech-stack-card li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font: .875rem/1.4 ui-monospace, monospace;
}
@media (prefers-reduced-motion: no-preference) {
  .tech-stack-card.has-entered::before {
    animation: stack-accent-reveal .55s var(--reveal-delay, 0s) ease-out both;
  }
  .tech-stack-card.has-entered li {
    animation: stack-tag-reveal .4s cubic-bezier(.22,1,.36,1) both;
    animation-delay: calc(var(--reveal-delay, 0s) + var(--tag-delay, .12s));
  }
  .tech-stack-card li:nth-child(n+3) { --tag-delay: .18s; }
  .tech-stack-card li:nth-child(n+5) { --tag-delay: .24s; }
  .tech-stack-card li:nth-child(n+7) { --tag-delay: .30s; }
}
@keyframes stack-accent-reveal {
  from { transform: scaleX(0); }
}
@keyframes stack-tag-reveal {
  from { opacity: 0; transform: translateY(7px); }
}
@font-face {
  font-family: Caveat;
  src: url("assets/caveat-note.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
.expertise {
  --expertise-mint: #8ff0d0;
  --expertise-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  padding-top: clamp(96px, 11vw, 152px);
}
.expertise-wave { position: absolute; top: 0; inset-inline: 0; width: 100%; height: clamp(26px, 3.3vw, 48px); fill: var(--expertise-mint); }
.expertise-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: start; gap: clamp(20px, 4vw, 64px); }
.expertise-intro { position: sticky; top: max(calc(var(--header-height) + 28px), 25vh); padding-top: clamp(8px, 2.3vw, 34px); }
.expertise-label {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
}
.expertise h2 { margin-top: 13px; }
.expertise-arrow, .contact-webmail-arrow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.expertise-arrow { display: block; width: clamp(72px, 11vw, 138px); margin: 9px 0 0 auto; }
.expertise-board {
  position: relative;
  display: grid;
  gap: clamp(78px, 8.25vw, 116px);
  padding: 18px clamp(15px, 2.15vw, 30px) 23px;
}
.expertise-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.expertise-route path { fill: none; stroke-width: 2; stroke-linecap: round; }
.expertise-route-base { stroke: var(--muted); stroke-opacity: .33; stroke-dasharray: 4 9; }
.expertise-route-progress { stroke: var(--expertise-mint); stroke-dasharray: 1; }
.expertise-card {
  --tilt: 5deg;
  --idle-tilt: 9deg;
  --idle-shift: 15px;
  position: relative;
  justify-self: end;
  width: min(79%, 432px);
}
.expertise-card:nth-of-type(even) {
  --tilt: -5deg;
  --idle-tilt: -9deg;
  --idle-shift: -15px;
  justify-self: start;
}
.expertise-card-surface {
  --tag-bg: #0923211a;
  --tag-border: #09232129;
  --pin: #28554b;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 238px;
  padding: clamp(21px, 3.2vw, 39px);
  border: 1px solid #b8f7e2;
  border-radius: 24px;
  background: var(--expertise-mint);
  color: #092321;
  box-shadow: 0 10px 38px #8ff0d032, 0 3px 9px #0004;
  transform: rotate(var(--tilt));
  transform-origin: 50% 0;
}
.expertise-card-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  border: 2px solid #c5f9e8;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 3px 5px #0005;
}
.expertise-number { margin-bottom: 9px; font-family: Georgia, serif; font-size: .925rem; font-style: italic; line-height: 1; }
.expertise-card h3 { font-size: clamp(1.45rem, 2.65vw, 2.12rem); font-weight: 740; letter-spacing: -.05em; line-height: 1.12; text-wrap: balance; }
.expertise-card p { margin-block: 9px 17px; font-size: .96rem; line-height: 1.53; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.expertise-tags li {
  padding: 3px 8px;
  border: 1px solid var(--tag-border);
  border-radius: 100px;
  background: var(--tag-bg);
  font: .75rem/1.45 ui-monospace, monospace;
}
.expertise-note {
  width: fit-content;
  margin: 29px 10px 0 auto;
  transform: rotate(-4deg);
  color: var(--accent);
  font: 600 clamp(1.8rem, 3.7vw, 3rem)/1.05 Caveat, "Segoe Print", cursive;
}
@media (prefers-reduced-motion: no-preference) {
  .expertise-scroll .expertise-route-progress { stroke-dashoffset: var(--expertise-remaining, 1); }
  .expertise-scroll .expertise-card-surface {
    transition: transform .6s var(--expertise-ease), opacity .6s var(--expertise-ease), background-color .6s var(--expertise-ease),
      color .6s var(--expertise-ease), border-color .6s var(--expertise-ease), box-shadow .6s var(--expertise-ease);
  }
  .expertise-scroll .expertise-card:not([data-active]) .expertise-card-surface {
    --tag-bg: var(--bg);
    --tag-border: var(--line);
    --pin: var(--surface-raised);
    transform: translateX(var(--idle-shift)) rotate(var(--idle-tilt)) scale(.94);
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 10px 24px #0005;
  }
  .expertise-scroll .expertise-card[data-active] .expertise-card-surface { animation: expertise-float 4s ease-in-out; }
}
@keyframes expertise-float {
  50% { translate: 0 -6px; }
}
@media (max-width: 760px) {
  .expertise-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .expertise-intro { position: static; padding-top: 0; text-align: center; }
  .expertise-arrow { width: 48px; margin: 8px auto 0; transform: rotate(112deg); }
  .expertise-board { gap: 59px; padding-inline: 14px; }
  .expertise-card, .expertise-card:nth-of-type(even) { justify-self: center; width: min(100%, 430px); }
  .expertise-card { --tilt: 2deg; --idle-tilt: 4deg; --idle-shift: 5px; }
  .expertise-card:nth-of-type(even) { --tilt: -2deg; --idle-tilt: -4deg; --idle-shift: -5px; }
  .expertise-note { margin: 20px auto 0; text-align: center; }
}
.experience { display: grid; grid-template-columns: 1fr 1.65fr; align-items: start; gap: clamp(25px, 6vw, 85px); }
.experience-intro > p:last-child { margin-top: 24px; max-width: 340px; }
.timeline { list-style: none; margin: 0 0 0 5px; padding: 0 0 0 23px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 15px 0 23px; border-bottom: 1px solid var(--line); }
.timeline li + li { margin-top: 9px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 20px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.motion-items :is(.project,.tech-stack-card,.timeline > li,.footer-wordmark) { transition: opacity .7s ease, translate .7s cubic-bezier(.22,1,.36,1), transform .26s ease, border-color .26s ease, box-shadow .26s ease; transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s, 0s; }
.motion-items :is(.project,.tech-stack-card,.timeline > li,.footer-wordmark):not(.has-entered,:focus-within) { opacity: .22; translate: 0 32px; }
.timeline h3 { font-size: clamp(1.22rem,2.1vw,1.7rem); }
.timeline .dates { color: var(--accent); font: .8125rem/1.5 ui-monospace, monospace; margin-bottom: 8px; }
.timeline .organization { color: var(--text); margin: 7px 0; font-size: .9rem; }
.credentials { background: var(--surface); border-top: 1px solid var(--line); }
.credentials h3 { margin-top: clamp(28px, 4vw, 48px); }
.education-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.education-list li { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: clamp(16px,2.3vw,26px); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.education-list h4 { margin: 0; }
.education-list h4 { color: var(--text); font-size: clamp(1.1rem,1.85vw,1.5rem); line-height: 1.2; letter-spacing: -.03em; }
.education-list .education-period { color: var(--accent); font: .875rem/1.45 ui-monospace, monospace; }
.education-list .education-result { margin-top: auto; color: var(--text); font-weight: 640; }
.education-list p:last-child { font-size: .875rem; }
@font-face {
  font-family: "Credentials Caveat";
  src: url("assets/caveat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
.credential-slider {
  --credential-mint: #8ff0d0;
  --credential-gap: clamp(12px, 1.4vw, 20px);
  --credential-ease: cubic-bezier(.22, 1, .36, 1);
  min-width: 0;
}
.credential-symbols { position: absolute; }
.credential-header { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.credential-label { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: .8125rem; font-weight: 650; }
.credential-header h2 { margin-top: 11px; text-wrap: balance; }
.credential-header h2 > span { position: relative; display: inline-block; }
.credential-header h2 svg { position: absolute; inset: auto 0 -.13em; width: 100%; height: .2em; overflow: visible; fill: none; stroke: var(--credential-mint); stroke-width: 2; stroke-linecap: round; }
.credential-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-controls button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.credential-controls button:hover { border-color: var(--accent); }
.credential-controls button[aria-disabled="true"] { opacity: .5; cursor: default; }
.credential-controls .credential-motion { padding-inline: 12px; border-radius: 100px; font-size: .8125rem; }
.credential-controls svg, .credential-security svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#certificate-list-title { margin-top: clamp(24px, 3.2vw, 41px); color: var(--muted); font-size: .925rem; font-weight: 650; letter-spacing: 0; }
.credential-scroll {
  margin-top: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.credential-scroll::-webkit-scrollbar { display: none; }
.credential-scroll.is-marquee {
  --credential-fade: clamp(9px, 1.5vw, 21px);
  overflow: hidden;
  overflow: clip;
  scroll-snap-type: none;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  mask-image: linear-gradient(to right, transparent, #000 var(--credential-fade), #000 calc(100% - var(--credential-fade)), transparent);
}
.credential-scroll:not(.is-marquee) [data-credential-copy] { display: none; }
.credential-scroll.is-marquee[data-dragging] { cursor: grabbing; user-select: none; }
.credential-scroll.is-marquee .credential-list { transform: translateX(var(--credential-offset, 0px)); will-change: transform; }
.credential-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * var(--credential-gap)) / 4.18);
  gap: var(--credential-gap);
  position: relative;
  margin: 0;
  padding: 27px 0 18px;
  list-style: none;
}
.credential-card { position: relative; min-width: 0; perspective: 1000px; scroll-snap-align: start; }
.credential-card::before, .credential-card::after { content: ""; position: absolute; pointer-events: none; }
.credential-card::before { inset: -7px auto auto 0; width: calc(100% + var(--credential-gap)); border-top: 1px dashed var(--line); }
.credential-card:last-child::before { width: 100%; }
.credential-card::after {
  z-index: 2;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--credential-mint);
  border-radius: 50%;
  background: #214138;
}
.credential-faces { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--credential-ease); }
.credential-front, .credential-back {
  grid-area: 1 / 1;
  display: flex;
  min-height: 239px;
  flex-direction: column;
  gap: 12px;
  padding: clamp(15px, 1.65vw, 24px);
  border: 1px solid #34504e;
  border-radius: 24px;
  background: #14252a;
  color: #f5f6ef;
  box-shadow: 0 5px 16px #0003;
  backface-visibility: hidden;
}
.credential-identity, .credential-security { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.credential-identity .credential-category, .credential-status { color: var(--credential-mint); }
.credential-category, .credential-status, .credential-issuer > span, .credential-security span, .credential-proof > span, .credential-meta {
  font: .7rem/1.35 ui-monospace, monospace;
}
.credential-category, .credential-issuer > span, .credential-security span, .credential-proof > span:first-child { text-transform: uppercase; letter-spacing: .06em; }
.credential-number { color: #afc5c1; font: italic 1rem/1 Georgia, serif; }
.credential-front h4 { margin: 4px 0 0; overflow-wrap: anywhere; font-size: clamp(1.12rem, 1.7vw, 1.48rem); font-weight: 700; line-height: 1.16; letter-spacing: -.03em; }
.credential-issuer { margin-top: auto; padding-top: 9px; border-top: 1px solid #34504e; }
.credential-issuer > span, .credential-security span, .credential-proof > span:first-child { color: #adc1bf; }
.credentials .credential-issuer p { margin-top: 2px; color: #e4eeeb; font-size: .84rem; line-height: 1.35; }
.credential-back { transform: rotateY(180deg); border-color: #45665f; background: #080f12; box-shadow: 0 10px 22px #0006, 0 0 16px #8ff0d017; }
.credential-security { align-items: center; }
.credential-security svg { flex: none; color: var(--credential-mint); }
.credential-proof { margin: auto 0; text-align: center; }
.credentials .credential-proof-title { margin-block: 5px; color: #f5f6ef; font-weight: 700; font-size: .98rem; line-height: 1.2; overflow-wrap: anywhere; }
.credentials .credential-date { color: #bbcecb; font-size: .77rem; line-height: 1.4; }
.credential-unavailable { display: inline-block; margin-top: 8px; padding: 4px 8px; border: 1px solid #34504e; border-radius: 100px; color: #aac4bf; }
.credential-document {
  display: grid;
  grid-template-rows: 78px auto;
  width: fit-content;
  max-width: 100%;
  justify-items: center;
  gap: 5px;
  margin: 6px auto 0;
  border-radius: 6px;
  text-decoration: none;
}
.credential-document img { grid-row: 1; width: auto; height: 78px; max-width: 100%; object-fit: contain; border-radius: 4px; }
.credential-document span { grid-row: 2; display: grid; min-height: 32px; place-items: center; padding: 4px 9px; border-radius: 100px; background: var(--credential-mint); color: #092321; font-size: .71rem; font-weight: 650; }
.credential-document:hover span { text-decoration: underline; text-underline-offset: 2px; }
.credential-document:focus-visible { outline-color: var(--credential-mint); outline-offset: 3px; }
.credential-meta { min-height: 1em; color: #adc1bf; font-size: .65rem; overflow-wrap: anywhere; }
.credential-card.is-flipped .credential-faces { transform: translateY(-4px) rotateY(180deg); }
.credential-toggle { position: absolute; z-index: 1; inset: 0; width: 100%; border: 0; border-radius: 24px; background: transparent; cursor: inherit; }
.credential-toggle:focus-visible { outline-offset: -4px; }
.credential-card.is-flipped .credential-toggle { pointer-events: none; }
.credential-note { margin-top: 15px; text-align: center; font: 600 clamp(1.32rem, 2.45vw, 1.85rem)/1.2 "Credentials Caveat", cursive; }
.credential-slider + h3 { padding-top: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
@media (max-width: 1020px) {
  .credential-list { grid-auto-columns: calc((100% - 2 * var(--credential-gap)) / 2.18); }
}
@media (max-width: 560px) {
  .credential-list { grid-auto-columns: calc((100% - var(--credential-gap)) / 1.16); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-items .credential-card { transition: opacity .6s var(--credential-ease), translate .6s var(--credential-ease); transition-delay: var(--reveal-delay, 0s); }
  .motion-items .credential-card:not(.has-entered, :focus-within) { opacity: 0; translate: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .credential-scroll.is-marquee { cursor: default; touch-action: auto; }
  .credential-card.is-flipped .credential-faces, .credential-back { transform: none; }
  .credential-front, .credential-back { transition: opacity .18s ease !important; }
  .credential-back, .credential-card.is-flipped .credential-front { opacity: 0; pointer-events: none; }
  .credential-card.is-flipped .credential-back { opacity: 1; pointer-events: auto; }
}

.contact { border-top: 1px solid var(--line); background: var(--surface); padding-block: clamp(57px,8vw,108px); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 37%); gap: 26px; align-items: center; }
.contact h2 { max-width: 750px; }
.contact h2 + p { margin-top: 17px; color: var(--muted); }
.contact-actions { display: grid; width: fit-content; max-width: 100%; justify-self: center; gap: 13px; }
.whatsapp-availability { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.whatsapp-availability span { width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 9px #25d36680; }
.contact-button {
  --contact-button-ring: #25d36655;
  --contact-button-glow: #25d36630;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  max-width: 100%;
  padding: 12px clamp(15px, 2.2vw, 30px);
  overflow: hidden;
  border-radius: 100px;
  background: linear-gradient(105deg, #25d366, #9cf3d7);
  color: #092024;
  box-shadow: 0 0 0 3px var(--contact-button-ring), 0 8px 24px var(--contact-button-glow);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.contact-button svg { flex: none; }
.contact-email {
  --contact-button-ring: #ea43354d;
  --contact-button-glow: #ea43352b;
  background: linear-gradient(105deg, #ff8175, #ffb297 53%, #ffe0a0);
}
.contact-email-icon {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}
.contact-webmail { display: grid; min-height: 44px; place-items: center; color: var(--muted); font-size: .9rem; text-underline-offset: .25em; }
.contact-webmail-label { position: relative; }
.contact-webmail-arrow {
  position: absolute;
  right: calc(100% + 5px);
  bottom: 4px;
  width: clamp(76px, 8vw, 108px);
  height: auto;
  pointer-events: none;
}
@media (hover: hover) {
  .contact-button:hover { --contact-button-ring: #25d36690; --contact-button-glow: #25d36660; }
  .contact-email:hover { --contact-button-ring: #ea433580; --contact-button-glow: #ea43354d; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact.in-view .contact-actions { animation: contact-actions-enter .55s ease-out both; }
  .whatsapp-availability span { animation: whatsapp-blink 2s ease-in-out 2; }
  .contact-button { transition: transform .2s ease; }
  .contact-button:not(.contact-email) { animation: contact-button-pulse 2s ease-out 2; }
  .contact-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, #fff8 50%, transparent 65%);
    transform: translateX(-110%);
    pointer-events: none;
  }
  @media (hover: hover) {
    .contact-button:hover { transform: translateY(-4px); }
    .contact-button:hover svg { animation: contact-button-wiggle .48s ease-in-out; }
    .contact-button:hover::before { animation: contact-button-shine .65s ease-out; }
  }
  .contact-button:active { transform: scale(.96); transition-duration: .1s; }
}
@keyframes contact-actions-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes whatsapp-blink {
  50% { opacity: .4; }
}
@keyframes contact-button-pulse {
  0% { box-shadow: 0 0 0 0 var(--contact-button-ring), 0 8px 24px var(--contact-button-glow); }
  80%, 100% { box-shadow: 0 0 0 14px transparent, 0 8px 24px var(--contact-button-glow); }
}
@keyframes contact-button-wiggle {
  30% { transform: translateY(-3px) rotate(-12deg); }
  65% { transform: translateY(-1px) rotate(9deg); }
}
@keyframes contact-button-shine {
  to { transform: translateX(110%); }
}
.site-footer {
  padding-block: clamp(36px, 6vw, 76px) 24px;
  border-top: 1px solid #2e5054;
  background: radial-gradient(ellipse at 78% 105%, #12353a, transparent 65%), #071416;
  color: #e4eeeb;
}
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 26px; }
.footer-top { padding-bottom: clamp(14px, 2.5vw, 30px); border-bottom: 1px solid #325052; }
.footer-top p { font-weight: 640; }
.footer-top p span { display: block; color: #b1c8c5; font-size: .875rem; font-weight: 400; }
.footer-wordmark { display: flex; align-items: baseline; justify-content: space-between; gap: .12em; margin-block: clamp(27px, 6vw, 84px); color: #e9f6ef; font-size: clamp(2.25rem, 12.7vw, 11.6rem); font-weight: 710; letter-spacing: -.085em; line-height: .86; }
.footer-wordmark span:last-child { color: #8df1d0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.09em; }
.footer-bottom { padding-top: 17px; border-top: 1px solid #325052; color: #b1c8c5; font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 17px; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer a:hover { color: #8df1d0; }
.footer-work { color: #8df1d0; font-size: .9rem; font-weight: 650; }
.footer-email { overflow-wrap: anywhere; }
.site-footer :focus-visible { outline-color: #9cf3d7; }

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.music-sound, .music-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #a5e4d080;
  border-radius: 5px;
  background: #071a1dc9;
  color: #f5f6ef;
  font-size: .875rem;
}
.music-glyph {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 25px;
  height: 25px;
  color: #9cf3d7;
}
.music-glyph::before {
  content: "";
  width: 13px;
  height: 16px;
  margin-right: 8px;
  background: currentColor;
  clip-path: polygon(0 31%, 32% 31%, 100% 0, 100% 100%, 32% 69%, 0 69%);
}
.music-glyph::after {
  content: "";
  position: absolute;
  left: calc(50% + 3px);
  width: 8px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}
.music-sound:hover, .music-pause:hover { border-color: #9cf3d7; }
.music-sound[data-muted="true"] .music-glyph::after {
  width: 10px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: currentColor;
}
.case-dialog { color: var(--text); background: var(--surface); padding: 0; border: 1px solid var(--line); border-radius: 9px; width: min(calc(100% - 32px), 675px); max-height: calc(100% - 32px); box-shadow: 0 20px 70px #0006; }
.case-dialog[open] { animation: case-enter .38s cubic-bezier(.22,1,.36,1) both; }
.case-dialog::backdrop { background: #071417d1; }
@keyframes case-enter { from { opacity: 0; transform: translateY(20px) scale(.985); } }
.dialog-actions { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px 12px; background: var(--surface); }
.dialog-inner { padding: 0 clamp(20px, 5vw, 54px) clamp(22px, 5vw, 54px); }
.case-dialog h2 { font-size: clamp(2rem,5vw,3.6rem); }
.case-dialog .eyebrow { padding-right: 32px; }
.dialog-close { display: grid; place-content: center; width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.dialog-close:hover { border-color: var(--accent); }
#case-body p, #case-body ul { margin-top: 15px; color: var(--muted); }
#case-body ul { padding-left: 1.25em; }
#case-body .button { margin-top: 21px; }
:root:has(.case-dialog[open]) { overflow: hidden; }
:root.theme-animating::view-transition-old(root), :root.theme-animating::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-animating::view-transition-new(root) { z-index: 1; }
:root.theme-animating::view-transition-old(root) { z-index: 0; }

@media (max-width: 950px) {
  .main-nav { gap: clamp(10px, 1.4vw, 17px); }
  .hero h1 { font-size: clamp(3.3rem, 7vw, 5.2rem); }
  .hero-intro { max-width: 65%; }
}
@media (max-width: 910px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1120px) {
  :root { --header-height: 64px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .main-nav { grid-area: auto; justify-self: stretch; position: absolute; top: 100%; inset-inline: var(--gutter); max-height: calc(100dvh - var(--header-height) - 12px); overflow: auto; display: grid; align-items: stretch; gap: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 0 0 7px 7px; background: var(--surface); color: var(--text); box-shadow: 0 8px 22px var(--shadow); }
  .main-nav a { padding: 10px 5px; }
  .main-nav a + a { border-top: 1px solid var(--line); }
  .main-nav a:is(:hover,[aria-current]) { color: var(--accent); }
  .main-nav a::after { inset-inline: 5px auto; width: 21px; }
  .nav-ready .menu-toggle { display: inline-flex; grid-area: 1 / 2; }
  .nav-ready .menu-toggle[aria-expanded="true"] .menu-icon { height: 1px; border-bottom: 0; }
  .js .main-nav:not(.is-open) { display: none; }
  :root:not(.js) .site-header { position: relative; }
  :root:not(.js) .header-inner { display: flex; flex-wrap: wrap; padding-block: 10px; }
  :root:not(.js) .main-nav { position: static; display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 4px 14px; padding: 0; background: none; color: inherit; border: 0; box-shadow: none; max-height: none; }
  :root:not(.js) .main-nav a + a { border-top: 0; }
  .theme-control { grid-area: 1 / 3; }
  .theme-hint { display: none; }
  .cord { height: calc(63px + var(--pull)); }
  .cord-line { height: calc(36px + var(--pull)); }
  .cord-handle { top: 35px; }
}
@media (max-width: 720px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-actions { width: 100%; }
  .contact-webmail-arrow { width: 56px; stroke-width: 3.4; }
  .hero-inner { min-height: 100svh; padding-block: clamp(100px, 21svh, 180px) 24px; }
  .hero-intro { align-self: end; max-width: 550px; }
  .hero-bottom { align-items: stretch; flex-wrap: wrap; }
  .hero-bottom > * { flex: 0 0 calc((100% - var(--hero-action-gap)) / 2); min-width: 0; }
  .music-sound, .music-pause { flex: 1 1 auto; }
  .hero h1 { font-size: clamp(2.2rem, 10.6vw, 4.7rem); }
  .hero-media { background-position: 78% 35%; }
  .hero-reel { object-position: 78% 35%; }
  .hero-media::after { background: linear-gradient(0deg, #061314 2%, #061314f2 25%, #061314d9 60%, #06131420 85%, #06131450 100%); }
  .about { grid-template-columns: minmax(128px, 1fr) 1.45fr; gap: clamp(18px, 4vw, 35px); }
  .experience { grid-template-columns: 1fr; }
  .experience-intro > p:last-child { max-width: 520px; }
  .education-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 510px) {
  .project-grid, .tech-stack-grid, .about, .education-list, .faq-list { grid-template-columns: 1fr; }
  .about .portrait { max-width: 235px; }
  .about-copy h2 { font-size: clamp(2.15rem, 9vw, 2.65rem); }
  .section-head { align-items: start; }
  .hero h1 { letter-spacing: -.072em; }
  .footer-wordmark { font-size: clamp(2.25rem, 12.25vw, 7rem); }
}
@media (max-width: 360px) {
  .hero-bottom, .reel-toggle { font-size: .75rem; }
}
@media (max-width: 390px) {
  .brand { white-space: normal; line-height: 1.05; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner { min-height: 100svh; padding-block: calc(var(--header-height) + 17px) 16px; gap: 18px; }
  .hero-intro { align-self: center; max-width: min(550px, 75%); }
  .hero h1 { font-size: clamp(2rem, 6.5vw, 3.5rem); }
  .hero-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr)); }
  .reel-toggle { gap: 6px; padding-inline: 7px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
  .motion-items :is(.project,.tech-stack-card,.timeline > li,.footer-wordmark):not(.has-entered,:focus-within) { opacity: 1; translate: none; }
}

button.case-link { background: transparent; border: 0; padding: 0; text-decoration-line: underline; }

/* Education flip card layout alignment */
.education-list.credential-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  overflow: visible;
}
.education-list.credential-list::before,
.education-list.credential-list::after,
.education-list.credential-list > li::before,
.education-list.credential-list > li::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 960px) {
  .education-list.credential-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .education-list.credential-list {
    grid-template-columns: 1fr;
  }
}
.education-list.credential-list > li.credential-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  perspective: 1200px;
  cursor: pointer;
}
.education-list .credential-faces {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.education-list .credential-card.is-flipped .credential-faces {
  transform: rotateY(180deg) !important;
}
.education-list .credential-front,
.education-list .credential-back {
  grid-area: 1 / 1;
  min-height: 239px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 24px;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  opacity: 1 !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.education-list .credential-front h4 {
  margin: 4px 0 0;
  font-size: clamp(1.12rem, 1.7vw, 1.48rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.education-list .credential-back {
  transform: rotateY(180deg) !important;
}
.education-list .credential-card:hover .credential-front,
.education-list .credential-card:hover .credential-back {
  border-color: #5b8c82;
}
.education-list .credential-card.is-flipped .credential-front {
  pointer-events: none;
}
.education-list .credential-card.is-flipped .credential-back {
  pointer-events: auto;
}
.education-list .credential-toggle {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.edu-issued-meta {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Unified Section Heading Style (Pill Badge + Hand-Drawn Mint Underline) */
.unified-sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}
.section-head .unified-sec-head,
.credential-header .unified-sec-head,
.contact-inner .unified-sec-head {
  margin-bottom: 0;
}
.unified-sec-head .credential-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid var(--line, #2c474a);
  border-radius: 100px;
  background: rgba(141, 241, 208, 0.05);
  color: var(--text, #f5f6ef);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.section h2.unified-sec-h2,
.contact h2.unified-sec-h2,
.about-copy h2.unified-sec-h2 {
  display: block;
  margin: 0 !important;
  font-size: clamp(2.45rem, 4.7vw, 4.55rem) !important;
  font-weight: 710 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.055em !important;
  text-wrap: balance;
}
.unified-sec-h2 > span {
  position: relative;
  display: inline-block;
}
.unified-sec-h2 > span > svg {
  position: absolute;
  inset: auto 0 -0.14em;
  width: 100%;
  height: 0.22em;
  overflow: visible;
  fill: none;
  stroke: var(--accent, #8df1d0);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}

/* FAQ Accordion Styling matching site theme */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.faq-item {
  border: 1px solid #34504e;
  border-radius: 20px;
  background: #14252a;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  transition: border-color 0.25s ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: #5b8c82;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 680;
  color: var(--text, #f5f6ef);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line, #2c474a);
  display: grid;
  place-items: center;
  color: var(--accent, #8df1d0);
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: 12px;
  color: var(--muted, #b5c8c8);
  line-height: 1.6;
  max-width: 78ch;
}

/* Harmonized Card Heading Hierarchy */
.project h3,
.experience h3,
.timeline h3,
.tech-stack-card h3,
.expertise-card h3 {
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

/* Footer Left Copyright & Centered Lighted Social Icons */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-copy {
  justify-self: start;
  color: var(--muted, #b5c8c8);
  font-size: 0.9rem;
}
.footer-socials {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #34504e;
  background: #102024 !important;
  color: #f5f6ef !important;
  text-decoration: none !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.22s ease,
              color 0.22s ease,
              box-shadow 0.22s ease;
}
.footer-icon-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid #8df1d0;
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.footer-icon-btn:hover,
.footer-icon-btn:focus-visible {
  background: #142a2f !important;
  color: #8df1d0 !important;
  border-color: #8df1d0 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(141, 241, 208, 0.16),
              0 0 20px rgba(141, 241, 208, 0.55);
}
.footer-icon-btn:hover::after,
.footer-icon-btn:focus-visible::after {
  opacity: 0.65;
  transform: scale(1);
}
.footer-icon-btn:active {
  transform: scale(0.94);
  background: #163238 !important;
  color: #b8ffea !important;
  box-shadow: 0 0 0 5px rgba(141, 241, 208, 0.28),
              0 0 28px rgba(141, 241, 208, 0.85);
}
.footer-icon-btn:active::after {
  opacity: 1;
  transform: scale(1.24);
}
.footer-top-link {
  justify-self: end;
  color: var(--text, #f5f6ef);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-top-link:hover {
  color: var(--accent, #8df1d0);
}
@media (max-width: 720px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-copy,
  .footer-socials,
  .footer-top-link {
    justify-self: center;
  }
}
