/* Claude editorial reference: see ../DESIGN.md. All layout is plain CSS. */
:root {
  --canvas: #faf9f5;
  --surface: #f5f0e8;
  --card: #efe9de;
  --cream-strong: #e8e0d2;
  --ink: #141413;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --line: #e6dfd8;
  --coral: #cc785c;
  --coral-deep: #a9583e;
  --dark: #181715;
  --dark-raised: #252320;
  --dark-muted: #b9b5ad;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--cream-strong); color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h1, h2 { line-height: 1.05; }
h2 { font-size: clamp(38px, 4.4vw, 54px); }
h3 { line-height: 1.15; }
h4 { font-size: 18px; font-weight: 500; line-height: 1.4; text-wrap: balance; }
p { color: var(--body); text-wrap: pretty; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: #cc785c22; }
a, button, summary, [tabindex] { scroll-margin-top: 100px; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 5px; }
button:focus-visible { outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--canvas); border-radius: 8px; }
.skip-link:focus { top: 12px; }
/* Navigation */
.header { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 25px; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-monogram { display: grid; place-items: center; width: 34px; height: 36px; background: var(--card); color: var(--coral-deep); font-size: 27px; border-radius: 6px; }
nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--body); font-size: 13px; font-weight: 500; }
nav a[aria-current='location'] { text-decoration: underline; text-decoration-color: var(--coral-deep); text-decoration-thickness: 2px; text-underline-offset: 7px; color: var(--ink); }
.nav-contact { min-height: 40px; display: inline-flex; align-items: center; gap: 20px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.menu-toggle { display: none; }
/* Introduction */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 80px; padding-block: 96px 72px; }
.hero > *, .section-top > *, .experience-layout > *, .credential > *, .contact-bottom > * { min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .13em; line-height: 1.6; color: var(--muted); }
.hero h1 { margin: 24px 0; font-size: clamp(52px, 5.3vw, 72px); }
.hero h1 > span { color: var(--body); }
.hero-intro { max-width: 510px; font-size: 16px; line-height: 1.8; }
.hero-intro strong { font-weight: 500; color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { min-height: 46px; display: inline-flex; gap: 24px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 12px 19px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.button:hover { text-decoration: none; }
/* The darker coral token gives small white button text sufficient contrast. */
.primary { color: #fff; background: var(--coral-deep); }
.primary:hover, .primary:active { background: #91462f; }
.secondary { border-color: #c4bcb0; background: var(--canvas); }
.secondary:hover { border-color: var(--muted); }
.button span { font-size: 18px; }
.hero-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.hero-socials a { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.hero-visual { border-radius: 16px; background: var(--dark); color: var(--canvas); overflow: hidden; }
.notes-header { min-height: 54px; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #3d3831; font: 11px var(--mono); color: var(--dark-muted); }
.notes-header > span:last-child { margin-left: auto; }
.note-dots { display: inline-flex; gap: 5px; }
.note-dots i { width: 6px; height: 6px; border-radius: 50%; background: #756a60; }
.note-dots i:first-child { background: var(--coral); }
.notes-body { padding: 32px; }
.notes-kicker { color: var(--dark-muted); font: 10px/1.6 var(--mono); }
.notes-body h2 { color: var(--canvas); font-size: 38px; line-height: 1.12; margin: 18px 0 28px; }
.engineering-notes { margin: 0; }
.engineering-notes > div { padding: 17px 0; border-top: 1px solid #3d3831; }
.engineering-notes dt { font-size: 13px; font-weight: 500; }
.engineering-notes dt span { display: inline-block; width: 32px; color: var(--dark-muted); font: 10px var(--mono); }
.engineering-notes dd { margin: 7px 0 0 32px; font: 11px/1.7 var(--mono); color: var(--dark-muted); }
.notes-footer { display: flex; justify-content: space-between; padding: 13px 24px; background: var(--dark-raised); color: var(--dark-muted); font: 10px var(--mono); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding-block: 28px; }
.stats > div { padding-inline: 30px; border-right: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font: 500 34px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 7px; font-size: 11px; line-height: 1.7; color: var(--muted); }
/* Selected work */
.section { padding-block: 96px; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.section-top .eyebrow { margin-bottom: 16px; }
.section-description { max-width: 340px; font-size: 14px; line-height: 1.8; padding-bottom: 3px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.featured-card { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.project-art { min-height: 294px; padding: 27px; display: flex; flex-direction: column; background: var(--card); }
.art-kicker { font-size: 9px; letter-spacing: .1em; font-weight: 500; color: var(--muted); }
.art-title { font: 500 30px/1.08 var(--display); color: var(--ink); margin: 20px 0; letter-spacing: -.02em; }
.art-rows { margin: auto 0 16px; }
.art-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid #d6ccbc; }
.art-rows dt { font-size: 11px; color: var(--ink); }
.art-rows dd { margin: 0; font-size: 9px; color: var(--muted); text-align: right; }
.art-caption { font: 9px/1.5 var(--mono); color: var(--muted); }
.cloud-art { background: var(--dark); color: var(--canvas); }
.cloud-art .art-title, .cloud-art dt { color: var(--canvas); }
.cloud-art .art-kicker, .cloud-art dd, .cloud-art .art-caption { color: var(--dark-muted); }
.cloud-art .art-rows > div { border-color: #484139; }
.travel-art { background: var(--cream-strong); }
.featured-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.featured-body h3 { font-size: 31px; margin-bottom: 12px; }
.featured-body > p:not(.card-kicker) { font-size: 13px; line-height: 1.8; }
.tags { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--card); color: var(--body); border-radius: 5px; font-size: 10px; line-height: 1.5; padding: 4px 8px; }
.featured-body .tags { margin-bottom: 24px; }
.project-metric { margin-top: auto; padding-top: 17px; border-top: 1px solid #dcd3c7; }
.project-metric strong { display: block; font: 500 30px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.project-metric span { display: block; font-size: 11px; color: var(--muted); margin: 5px 0 18px; }
.text-link { display: inline-flex; gap: 9px; align-items: center; align-self: flex-start; font-size: 12px; min-height: 32px; font-weight: 500; color: var(--coral-deep); }
.text-link [aria-hidden] { font-size: 16px; }
.archive-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 64px; margin-bottom: 24px; }
.archive-heading h3 { font-size: 34px; }
.archive-heading h3 span { display: inline-block; font: 11px var(--sans); color: var(--muted); padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; vertical-align: middle; margin-left: 12px; }
.archive-heading p { font-size: 12px; }
.filters { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.js .filters { display: flex; }
.filters button { min-height: 40px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.filters button:hover { text-decoration: underline; text-underline-offset: 4px; }
.filters button[aria-pressed='true'] { background: var(--card); border-color: #c8bbab; color: var(--ink); }
.project-count { color: var(--muted); font-size: 11px; margin: 0 0 22px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 8px; }
.archive-card { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 27px 0; min-width: 0; }
.archive-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); margin-bottom: 20px; }
.archive-meta > span:first-child { font-family: var(--mono); }
.archive-card h4 { font-family: var(--display); font-weight: 500; font-size: 27px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; overflow-wrap: anywhere; }
.archive-card .project-kind { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.archive-card > p:not(.project-kind) { font-size: 13px; line-height: 1.8; }
.archive-card .tags { margin-bottom: 14px; }
.archive-card .text-link, .archive-card .project-note { margin-top: auto; }
.project-note { color: var(--muted); font-size: 11px; line-height: 32px; }
/* Experience */
.experience-section { padding-block: 96px; background: var(--surface); border-block: 1px solid var(--line); }
.experience-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 96px; }
.experience-intro { position: sticky; top: 120px; align-self: start; }
.experience-intro .eyebrow { margin-bottom: 18px; }
.experience-intro > p:not(.eyebrow) { max-width: 310px; font-size: 14px; line-height: 1.8; margin: 24px 0 20px; }
.timeline { border-left: 1px solid #d1c4b3; }
.timeline-item { position: relative; margin-bottom: 32px; padding: 0 0 32px 32px; border-bottom: 1px solid #dcd3c7; }
.timeline-item:before { content: ''; position: absolute; left: -4px; top: 6px; height: 7px; width: 7px; border-radius: 50%; background: var(--coral-deep); }
.timeline-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.timeline-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; color: var(--muted); font-size: 10px; margin-bottom: 13px; }
.timeline-item h3 { font-size: 31px; line-height: 1.2; }
.timeline-item .role { margin: 8px 0 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.timeline-item > p:not(.role) { font-size: 13px; line-height: 1.8; }
.timeline-item .tags li { background: var(--cream-strong); }
.timeline-item details { border-top: 1px solid #dcd3c7; margin-top: 18px; }
.timeline-item summary { list-style: none; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 12px; font-weight: 500; }
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-item summary:hover { color: var(--coral-deep); }
.details-sign { font-size: 22px; font-weight: 400; }
details[open] .details-sign { transform: rotate(45deg); }
.role-details h4 { font-size: 13px; margin: 17px 0 8px; }
.role-details ul { margin: 0; padding-left: 18px; }
.role-details li { color: var(--body); font-size: 12px; line-height: 1.9; padding-left: 4px; margin-bottom: 10px; }
/* Skills and practice */
.skills-list { border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.skill-row h3 { display: flex; align-items: baseline; gap: 18px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; padding-top: 7px; }
.skill-row h3 span { font: 10px var(--mono); color: var(--muted); }
.skill-row .tags { margin: 0; gap: 7px; }
.skill-row .tags li { background: var(--surface); font-size: 11px; padding: 6px 9px; }
.coding-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-radius: 12px; background: var(--dark); color: var(--canvas); padding: 36px; margin-top: 40px; }
.coding-panel .eyebrow, .coding-panel p { color: var(--dark-muted); }
.coding-panel h3 { font-size: 33px; margin: 12px 0 9px; }
.coding-panel p:not(.eyebrow) { font-size: 12px; }
.coding-links { display: flex; align-items: center; align-content: center; gap: 8px 22px; flex-wrap: wrap; }
.coding-links .text-link { font-size: 11px; color: var(--canvas); }
/* Education and credentials */
.credentials-section { background: var(--surface); padding-block: 96px; }
.credential-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.credential { display: flex; gap: 16px; padding: 24px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.credential-mark { position: relative; display: grid; place-items: center; width: 40px; height: 42px; flex-shrink: 0; border-radius: 8px; background: var(--card); color: var(--body); font: 500 24px var(--display); }
.credential-mark span { display: none; }
.credential h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-wrap: pretty; }
.credential .card-kicker { font-size: 10px; margin-bottom: 7px; }
.credential-date { font-size: 11px; line-height: 1.7; margin-top: 8px; color: var(--muted); }
.credential .text-link { font-size: 11px; margin-top: 8px; }
.credential-note { display: inline-block; color: var(--muted); font-size: 11px; margin-top: 15px; }
.education { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 1px solid #d5cabb; padding-top: 42px; margin-top: 56px; }
.education h3 { font-size: 36px; max-width: 330px; margin-top: 15px; }
.education h4 { font-size: 15px; font-weight: 500; }
.education p:not(.eyebrow) { font-size: 12px; margin-top: 7px; }
.education span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }
.education span b { display: inline-block; background: var(--cream-strong); color: var(--body); padding: 4px 8px; border-radius: 4px; margin-left: 20px; font-weight: 500; }
.school { padding-top: 24px; margin-top: 24px; border-top: 1px solid #d5cabb; }
.school h4 { font-size: 13px; }
.school p { font-size: 11px !important; }
/* Contact and footer */
.contact-section { padding-block: 80px; }
.contact-section > .container { padding: 56px; border-radius: 16px; background: var(--coral); }
.contact-section .eyebrow { color: #30231d; }
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin: 24px 0 36px; }
.contact-heading h2 { color: var(--ink); font-size: clamp(42px, 5.6vw, 68px); line-height: 1.05; }
.contact-arrow { display: grid; place-items: center; width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; font-size: 40px; background: var(--canvas); }
.contact-arrow:hover { text-decoration: none; outline: 1px solid var(--ink); }
.contact-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid #9d5e47; }
.contact-bottom p { font-size: 12px; margin-bottom: 12px; color: #30231d; }
.email-link { font-size: 19px; letter-spacing: -.02em; overflow-wrap: anywhere; text-decoration: underline; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 12px; }
.contact-links a { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer { background: var(--dark); color: var(--canvas); padding-block: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer-brand { font-size: 27px; gap: 0; }
.footer p { font-size: 11px; color: var(--dark-muted); }
.footer-inner > a:last-child { min-height: 40px; display: flex; align-items: center; font-size: 12px; color: var(--canvas); }
/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & INTERACTIONS
   DOM-driven reveals, counters, cursor, and micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* Transitions for existing elements */
.featured-card { transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease; }
.archive-card { transition: border-color .3s ease; }
.archive-card h4 { transition: color .3s ease; }
.credential { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tags li { transition: background .2s ease, color .2s ease, transform .2s ease; cursor: default; }
.contact-arrow { transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
.text-link { transition: gap .3s ease; }
.skill-row { transition: background .3s ease; }
.button { transition: background .3s ease, border-color .3s ease, transform .2s ease; }
.nav-contact { transition: border-color .3s ease, transform .2s ease; }
.brand-monogram { transition: transform .3s ease, background .3s ease; }
nav a { position: relative; transition: color .3s ease; }

/* Scroll progress indicator */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral-deep));
  z-index: 100; pointer-events: none;
}

/* Custom cursor */
body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor summary, body.custom-cursor [tabindex] { cursor: none; }
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--coral-deep); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: width .3s, height .3s, margin .3s, opacity .3s, background .3s;
  mix-blend-mode: exclusion;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid var(--coral); border-radius: 50%;
  pointer-events: none; z-index: 9998; opacity: .45;
  transition: width .4s cubic-bezier(.18,.89,.32,1.28), height .4s cubic-bezier(.18,.89,.32,1.28),
              margin .4s, opacity .3s, border-color .3s;
}
.cursor-dot.hovering {
  width: 50px; height: 50px; margin: -21px 0 0 -21px;
  background: rgba(204,120,92,.12); mix-blend-mode: normal;
}
.cursor-ring.hovering {
  width: 50px; height: 50px; margin: -7px 0 0 -7px;
  border-color: var(--coral-deep); opacity: .9;
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-scale { transform: scale(.92); }
.reveal.visible    { opacity: 1; transform: translate(0) scale(1); }

.stagger-1 { transition-delay: .06s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .18s; }
.stagger-4 { transition-delay: .24s; }
.stagger-5 { transition-delay: .3s; }
.stagger-6 { transition-delay: .36s; }
.stagger-7 { transition-delay: .42s; }
.stagger-8 { transition-delay: .48s; }

/* Hero entrance */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate .eyebrow      { animation: heroEnter .9s cubic-bezier(.25,.46,.45,.94) .1s both; }
.hero-animate h1            { animation: heroEnter .9s cubic-bezier(.25,.46,.45,.94) .25s both; }
.hero-animate .hero-intro   { animation: heroEnter .9s cubic-bezier(.25,.46,.45,.94) .4s both; }
.hero-animate .hero-actions  { animation: heroEnter .9s cubic-bezier(.25,.46,.45,.94) .55s both; }
.hero-animate .hero-socials  { animation: heroEnter .9s cubic-bezier(.25,.46,.45,.94) .7s both; }

@keyframes visualEnter {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-animate .hero-visual { animation: visualEnter 1s cubic-bezier(.25,.46,.45,.94) .35s both; }

/* Stats pop */
@keyframes counterPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.stat-counted strong { animation: counterPop .5s cubic-bezier(.25,.46,.45,.94); }

/* Timeline dot pulse */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169,88,62,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(169,88,62,0); }
}
.timeline-item:before { animation: dotPulse 3s ease-in-out infinite; }

/* Enhanced hovers */
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(20,20,19,.08), 0 8px 24px rgba(20,20,19,.05);
}
.archive-card:hover     { border-color: var(--coral); }
.archive-card:hover h4  { color: var(--coral-deep); }
.credential:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20,20,19,.06); border-color: var(--coral);
}
.credential:hover .credential-mark { background: var(--coral); color: #fff; transform: scale(1.08); }
.credential-mark { transition: background .3s ease, color .3s ease, transform .3s ease; }
.tags li:hover   { background: var(--cream-strong); color: var(--ink); transform: translateY(-1px); }
.brand-monogram:hover { transform: scale(1.08); background: var(--cream-strong); }
.contact-arrow:hover  { transform: rotate(45deg) scale(1.05); }
.skill-row:hover      { background: rgba(245,240,232,.5); }

/* Button shine */
.button.primary { position: relative; overflow: hidden; }
.button.primary::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
}
@keyframes btnShine { to { left: 150%; } }
.button.primary:hover::after { animation: btnShine .6s ease; }

/* Nav animated underline */
nav a::after {
  content: ''; display: block; width: 0; height: 2px;
  background: var(--coral-deep); transition: width .3s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover        { text-decoration: none; color: var(--ink); }
nav a[aria-current='location']::after { display: none; }

/* Text link arrow nudge */
.text-link:hover { text-decoration: none; gap: 14px; }

/* Hero float */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-visual.float-active { animation: gentleFloat 6s ease-in-out infinite; }

/* Note dots blink */
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.note-dots i:first-child  { animation: dotBlink 2s ease-in-out infinite; }
.note-dots i:nth-child(2) { animation: dotBlink 2s ease-in-out .3s infinite; }
.note-dots i:nth-child(3) { animation: dotBlink 2s ease-in-out .6s infinite; }

/* Gradient section headings */
.section-top h2, .experience-intro h2, .credentials-section h2 {
  background: linear-gradient(135deg, var(--ink) 0%, var(--coral-deep) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Animated contact background */
@keyframes warmShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.contact-section > .container {
  background: linear-gradient(135deg, var(--coral), #d4876e, var(--coral-deep), var(--coral));
  background-size: 300% 300%; animation: warmShift 8s ease infinite;
}

/* Footer hover */
.footer-inner > a:last-child { transition: color .3s ease; }
.footer-inner > a:last-child:hover { color: var(--coral); }

/* Responsive layouts */
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .nav-wrap { gap: 22px; }
  nav { gap: 18px; }
  .brand { font-size: 22px; }
  .hero { gap: 40px; padding-top: 72px; }
  .hero h1 { font-size: 60px; }
  .hero-intro { font-size: 14px; }
  .notes-body { padding: 28px; }
  .notes-body h2 { font-size: 34px; }
  .button { font-size: 12px; gap: 15px; padding-inline: 15px; }
  .featured-grid { gap: 16px; }
  .featured-body, .project-art { padding: 24px; }
  .art-rows > div { display: block; }
  .art-rows dd { text-align: left; margin-top: 3px; }
  .art-title { font-size: 28px; }
  .project-grid { column-gap: 24px; }
  .experience-layout { gap: 56px; }
  .credential { padding: 20px; gap: 12px; }
  .credential-mark { width: 32px; height: 35px; font-size: 21px; }
  .contact-section > .container { padding: 40px; }
  .contact-bottom { display: block; }
  .contact-links { margin-top: 22px; }
}
@media (max-width: 900px) {
  .nav-wrap { gap: 20px; }
  .brand { font-size: 21px; }
  nav { gap: 15px; }
  nav a { font-size: 12px; }
  .nav-contact { gap: 10px; font-size: 12px; padding-inline: 12px; }
  .brand-monogram { display: none; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 50px; }
  .hero .eyebrow { font-size: 9px; }
  .notes-body { padding: 24px; }
  .notes-body h2 { font-size: 30px; }
  .notes-header { padding-inline: 18px; font-size: 9px; gap: 12px; }
  .engineering-notes dt { font-size: 12px; }
  .engineering-notes dd { font-size: 10px; margin-left: 0; }
  .notes-kicker { font-size: 9px; }
  .section-description { max-width: 280px; font-size: 13px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .project-art { min-height: 300px; }
  .art-rows > div { display: flex; }
  .art-rows dd { text-align: right; margin: 0; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-heading { display: block; }
  .archive-heading p { margin-top: 12px; }
  .experience-layout { grid-template-columns: 1fr; gap: 40px; }
  .experience-intro { position: static; }
  .experience-intro > p:not(.eyebrow) { max-width: 500px; }
  .timeline { margin-left: 5px; }
  .skill-row { grid-template-columns: 205px 1fr; gap: 20px; }
  .skill-row h3 { font-size: 12px; gap: 12px; }
  .credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coding-panel { gap: 28px; padding: 28px; }
  .coding-panel h3 { font-size: 29px; }
  .education { gap: 40px; }
  .education h3 { font-size: 32px; }
}
@media (max-width: 767px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: auto; }
  .hero-visual.float-active { animation: none; }
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 40px); }
  .nav-wrap { min-height: 68px; flex-wrap: wrap; gap: 0 16px; padding-block: 10px; }
  .brand { font-size: 24px; }
  .brand-monogram { display: grid; }
  .nav-contact { margin-left: auto; min-height: 44px; }
  nav { order: 4; margin: 0; width: 100%; display: flex; justify-content: space-between; gap: 8px; }
  nav a { font-size: 12px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 9px; justify-content: center; order: 3; min-height: 44px; border: 0; padding: 8px 0 8px 8px; background: transparent; font-size: 12px; color: var(--ink); }
  .menu-icon { position: relative; width: 16px; height: 10px; border-block: 1px solid currentColor; }
  .js nav { display: none; }
  .js .header[data-menu-open='true'] nav { display: flex; flex-direction: column; align-items: stretch; padding-block: 12px; }
  .js .header[data-menu-open='true'] nav a { font-size: 16px; padding: 8px; }
  .menu-toggle[aria-expanded='true'] .menu-icon { height: 0; transform: rotate(45deg); border-bottom: 0; }
  .menu-toggle[aria-expanded='true'] .menu-icon:after { content: ''; position: absolute; width: 16px; border-top: 1px solid; transform: rotate(90deg); top: -1px; }
  .hero { grid-template-columns: 1fr; padding-block: 56px; gap: 40px; }
  .hero h1 { font-size: 64px; margin-block: 20px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-intro { font-size: 15px; max-width: 550px; }
  .hero-actions { margin-top: 24px; }
  .button { font-size: 13px; gap: 20px; padding: 13px 18px; }
  .hero-socials { margin-top: 16px; }
  .hero-visual { width: 100%; }
  .notes-body { padding: 32px; }
  .notes-body h2 { font-size: 38px; }
  .notes-header { font-size: 11px; padding-inline: 24px; }
  .notes-kicker { font-size: 10px; }
  .engineering-notes dt { font-size: 14px; }
  .engineering-notes dd { margin-left: 32px; font-size: 11px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .stats > div { padding: 24px !important; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(odd) { padding-left: 0 !important; }
  .stats strong { font-size: 32px; }
  .stats span { font-size: 10px; }
  .section, .experience-section, .credentials-section { padding-block: 64px; }
  .section-top { display: block; margin-bottom: 32px; }
  .section-description { max-width: 520px; margin-top: 22px; font-size: 14px; }
  h2 { font-size: 46px; }
  .featured-body { padding: 25px; }
  .art-rows > div { display: block; }
  .art-rows dd { text-align: left; margin-top: 4px; }
  .project-art { min-height: 320px; }
  .archive-card { padding-block: 24px; }
  .filters button { min-height: 44px; }
  .skill-row { display: block; padding-block: 24px; }
  .skill-row h3 { font-size: 14px; margin-bottom: 16px; padding: 0; }
  .coding-panel { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .coding-panel h3 { font-size: 34px; }
  .coding-links { gap: 8px 24px; }
  .education { grid-template-columns: 1fr; gap: 24px; }
  .education h3 { max-width: none; }
  .contact-section { padding-block: 56px; }
  .contact-section > .container { padding: 32px; }
  .contact-heading { gap: 20px; }
  .contact-heading h2 { font-size: 48px; }
  .contact-arrow { width: 60px; height: 60px; font-size: 32px; }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-brand { width: 100%; }
  .footer p { margin-right: auto; }
}
@media (max-width: 550px) {
  .container { width: calc(100% - 32px); }
  .nav-wrap { gap: 0 14px; }
  .brand { font-size: 23px; }
  .brand-monogram { display: none; }
  .nav-contact { font-size: 11px; padding-inline: 10px; gap: 8px; }
  .js .menu-toggle { font-size: 11px; padding-left: 0; gap: 8px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(48px, 12.2vw, 64px); }
  .hero .eyebrow { font-size: 9px; letter-spacing: .09em; }
  .hero-intro { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .button { font-size: 12px; gap: 16px; padding-inline: 14px; }
  .hero-socials { gap: 24px; }
  .notes-body { padding: 26px; }
  .notes-body h2 { font-size: 36px; }
  .notes-header { font-size: 10px; padding-inline: 20px; }
  .engineering-notes dt { font-size: 13px; }
  .engineering-notes dd { font-size: 10px; margin-left: 0; }
  h2 { font-size: 42px; }
  .featured-grid, .project-grid { grid-template-columns: 1fr; }
  .featured-card:last-child { display: flex; grid-column: auto; }
  .project-art { min-height: 280px; padding: 28px; }
  .art-title { font-size: 34px; }
  .art-rows > div { display: flex; }
  .art-rows dt { font-size: 12px; }
  .art-rows dd { font-size: 10px; text-align: right; margin-top: 0; }
  .featured-body { padding: 28px; }
  .featured-body h3 { font-size: 35px; }
  .featured-body > p:not(.card-kicker) { font-size: 14px; }
  .project-metric { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .project-metric strong { flex-shrink: 0; font-size: 30px; }
  .project-metric span { font-size: 11px; margin: 0; }
  .archive-heading { margin-top: 48px; }
  .archive-heading h3 { font-size: 34px; }
  .filters { gap: 4px; }
  .filters button { font-size: 11px; padding-inline: 10px; }
  .archive-card h4 { font-size: 30px; }
  .archive-card > p:not(.project-kind) { font-size: 14px; }
  .archive-card .tags li { font-size: 11px; }
  .archive-meta { margin-bottom: 16px; font-size: 11px; }
  .text-link { font-size: 13px; min-height: 40px; }
  .timeline-item { padding-left: 22px; }
  .timeline-item h3 { font-size: 30px; }
  .timeline-meta { font-size: 10px; }
  .timeline-item .role { font-size: 12px; }
  .credential-grid { grid-template-columns: 1fr; gap: 12px; }
  .credential { padding: 24px; gap: 18px; }
  .credential-mark { width: 40px; height: 42px; font-size: 25px; }
  .credential h3 { font-size: 15px; }
  .credential .card-kicker { font-size: 11px; }
  .credential-date { font-size: 12px; }
  .credential .text-link { font-size: 12px; }
  .education span b { margin-left: 12px; }
  .contact-section > .container { padding: 30px 24px; }
  .contact-heading { align-items: flex-end; gap: 12px; }
  .contact-heading h2 { font-size: clamp(34px, 8.5vw, 44px); }
  .contact-arrow { width: 44px; height: 44px; font-size: 27px; }
  .email-link { font-size: 17px; }
  .contact-links { gap: 12px 22px; }
  .contact-links .text-link { font-size: 12px; }
  .footer { padding-block: 32px; }
  .footer p { font-size: 10px; }
  .footer-inner > a:last-child { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.custom-cursor, body.custom-cursor * { cursor: auto !important; }
}
@media print {
  .header, .hero-visual, .hero-actions, .hero-socials, .filters, .project-count, .project-art, .contact-arrow { display: none !important; }
  body, .experience-section, .credentials-section, .contact-section > .container, .footer, .coding-panel { background: white; color: black; }
  .container { width: 100%; }
  .hero, .section, .experience-section, .credentials-section, .contact-section { padding-block: 24px; }
  .hero, .experience-layout { display: block; }
  .experience-intro { position: static; margin-bottom: 24px; }
  .hero h1 { font-size: 38px; }
  h2, .contact-heading h2 { font-size: 30px; }
  .hero-intro { max-width: none; }
  .featured-grid, .project-grid, .credential-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-card, .featured-card:last-child { display: flex; grid-column: auto; }
  .archive-card, .credential, .timeline-item, .featured-card { break-inside: avoid; }
  .archive-card[hidden] { display: flex !important; }
  .timeline-item details::details-content { display: block; content-visibility: visible; }
  .contact-section > .container { padding: 0; }
  .coding-panel p, .coding-panel .eyebrow, .coding-panel a, .footer p, .footer a { color: black; }
}
