:root {
  --ivory: #f7f2ea;
  --paper: #fffdf9;
  --soft: #efe5dd;
  --blush: #f5e9e7;
  --ink: #1f2225;
  --muted: #625f5b;
  --line: #d9cec3;
  --burgundy: #7f1222;
  --burgundy-deep: #540b16;
  --rose: #d88f98;
  --dark: #12171c;
  --dark-soft: #1b2026;
  --dark-line: rgba(255,255,255,.16);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shell: min(1240px, calc(100% - 72px));
  --header-height: 80px;
  --shadow: 0 22px 60px rgba(45,31,26,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 10px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(3.4rem, 3.8vw, 4.35rem); line-height: 1.02; max-width: none; }
h2 { font-size: clamp(2.85rem, 3.75vw, 4.35rem); line-height: 1.02; }
h3 { font-size: clamp(1.8rem, 2.5vw, 2.65rem); line-height: 1.05; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 108px 0; }
.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: -60px; z-index: 999; background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.eyebrow { color: var(--burgundy); font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.is-scrolled { background: rgba(247,242,234,.94); border-color: rgba(31,34,37,.1); box-shadow: 0 12px 36px rgba(31,34,37,.05); backdrop-filter: blur(14px); }
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { color: var(--burgundy); font-family: var(--serif); font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.primary-nav { display: flex; align-items: center; gap: 31px; font-size: 13px; font-weight: 600; }
.primary-nav > a:not(.button) { position: relative; padding: 10px 0; }
.primary-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--burgundy); transition: right .22s; }
.primary-nav > a:hover::after, .primary-nav > a.is-active::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 11px; }
.menu-toggle span { display: block; height: 1.5px; margin: 5px 0; background: var(--ink); transition: .24s; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1px solid var(--burgundy); border-radius: 7px; background: var(--burgundy); color: white; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); background: var(--burgundy-deep); border-color: var(--burgundy-deep); }
.button-small { min-height: 46px; padding-inline: 21px; }
.button-ghost { background: transparent; color: var(--burgundy); }
.button-ghost:hover { color: white; }
.button-light { background: var(--ivory); color: var(--burgundy-deep); border-color: var(--ivory); }
.button-light:hover { background: white; border-color: white; color: var(--burgundy-deep); }
.button-outline-light { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.65); }
.button-outline-light:hover { background: var(--ivory); color: var(--burgundy-deep); border-color: var(--ivory); }
.text-link { display: inline-flex; align-items: center; color: var(--burgundy); font-size: 13px; font-weight: 700; }
.text-link-light { color: var(--rose); }

.hero { min-height: 100svh; padding-top: var(--header-height); display: flex; flex-direction: column; background: var(--ivory); }
.hero-grid { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(42px, 5vw, 72px); padding: 42px 0 34px; }
.hero-copy { align-self: center; }
.hero-copy h1 { margin-top: 28px; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-intro { max-width: 570px; margin-top: 25px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.hero-meta strong { color: var(--ink); }
.hero-meta span::before { content: "·"; margin-right: 24px; color: var(--burgundy); }
.hero-portrait { margin: 0; height: min(59vh, 575px); min-height: 445px; overflow: hidden; border-radius: 14px; background: #ded4ca; box-shadow: var(--shadow); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 47%; }
.hero-focus { border-top: 1px solid var(--line); background: rgba(255,253,249,.55); }
.focus-grid { min-height: 82px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.focus-grid span { display: flex; align-items: center; gap: 12px; min-height: 34px; padding-inline: 22px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.focus-grid span:first-child { padding-left: 0; }
.focus-grid span:last-child { border-right: 0; }
.focus-grid i { color: var(--burgundy); font-style: normal; font-size: 10px; letter-spacing: .12em; }

.section-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 80px; margin-bottom: 56px; }
.section-heading h2, .credentials-heading h2 { margin-top: 14px; max-width: 9ch; }
.section-heading > p, .credentials-heading > p { max-width: 500px; color: var(--muted); }

.work-section { background: var(--paper); }
.work-heading h2 { max-width: 11ch; }
.featured-work { display: grid; grid-template-columns: 1.55fr .85fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
.featured-media { min-height: 530px; overflow: hidden; background: #e8dfd4; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.work-number { color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.work-type { margin-top: 23px; color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.featured-copy h3 { margin-top: 10px; font-size: clamp(2.15rem, 3vw, 3.1rem); }
.featured-copy > p:not(.work-number):not(.work-type) { margin-top: 17px; color: var(--muted); }
.work-details { margin: 27px 0 0; }
.work-details div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.work-details dt { color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.work-details dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.project-button { align-self: flex-start; margin-top: 26px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; margin-top: 21px; }
.work-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card-media { aspect-ratio: 1.28 / 1; overflow: hidden; background: #e8dfd4; }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.work-card:hover img { transform: scale(1.025); }
.work-card-copy { padding: 24px 24px 28px; }
.work-card-copy .work-type { margin-top: 12px; }
.work-card-copy h3 { margin-top: 8px; font-size: 1.9rem; }
.work-card-copy > p:last-child { margin-top: 13px; color: var(--muted); font-size: 13px; }
.work-note { margin-top: 20px; color: var(--muted); font-size: 11px; }
.work-dialog { width: min(1100px, calc(100% - 30px)); max-height: 90vh; padding: 0; border: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.work-dialog::backdrop { background: rgba(10,11,13,.72); backdrop-filter: blur(5px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: rgba(255,253,249,.96); }
.dialog-head h2 { margin-top: 4px; font-size: 2.6rem; }
.dialog-head button { border: 0; background: transparent; color: var(--burgundy); font-weight: 700; }
.dialog-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px; overflow: auto; }
.dialog-gallery img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(31,34,37,.08); }

.expertise-section { position: relative; padding-bottom: 0; overflow: hidden; background: var(--ivory); }
.expertise-heading { margin-bottom: 48px; }
.expertise-heading h2 { margin-top: 14px; max-width: 14ch; }
.expertise-heading > p:last-child { max-width: 500px; margin-top: 16px; color: var(--muted); }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-row { display: grid; grid-template-columns: 120px 1fr 1.05fr 48px; align-items: center; gap: 42px; min-height: 180px; padding: 30px 30px 30px 20px; border-bottom: 1px solid var(--line); transition: background .25s, border-radius .25s; }
.expertise-row.is-featured, .expertise-row:hover { margin: 0 -1px; border: 1px solid #dcbfc0; border-radius: 12px; background: var(--blush); }
.expertise-number { color: var(--burgundy); font-family: var(--serif); font-size: clamp(4rem, 6vw, 6.4rem); line-height: .8; }
.expertise-main { padding-left: 34px; border-left: 1px solid var(--line); }
.expertise-main h3 { color: var(--burgundy); }
.expertise-main p { max-width: 430px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.expertise-row ul { display: flex; flex-wrap: wrap; gap: 8px 19px; margin: 0; padding: 0 0 0 36px; border-left: 1px solid var(--line); list-style: none; color: var(--burgundy); font-size: 12px; font-weight: 600; }
.expertise-row li:not(:last-child)::after { content: "·"; margin-left: 19px; }
.row-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--burgundy); border-radius: 50%; color: var(--burgundy); transition: .2s; }
.expertise-row.is-featured .row-arrow, .expertise-row:hover .row-arrow { background: var(--burgundy); color: white; }
.marquee { margin-top: 64px; overflow: hidden; background: var(--burgundy); color: white; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track > div { display: flex; align-items: center; min-height: 62px; }
.marquee span { white-space: nowrap; font-size: 13px; }
.marquee span::after { content: "·"; margin: 0 28px; color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

.about-section { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(58px, 8vw, 108px); }
.about-copy h2 { max-width: 13ch; margin-top: 15px; }
.about-copy > p:not(.eyebrow) { max-width: 590px; margin-top: 23px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 31px; }
.about-visual { position: relative; height: 640px; margin: 0; overflow: hidden; border-radius: 14px; background: #ded4ca; box-shadow: var(--shadow); }
.about-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 48%; }
.about-visual figcaption { position: absolute; inset: auto 24px 22px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; border-radius: 10px; background: rgba(255,253,249,.94); box-shadow: 0 16px 45px rgba(31,34,37,.15); backdrop-filter: blur(10px); }
.about-visual figcaption span { padding: 0 18px; border-right: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.35; }
.about-visual figcaption span:first-child { padding-left: 0; }
.about-visual figcaption span:last-child { padding-right: 0; border-right: 0; }
.about-visual figcaption small { display: block; margin-bottom: 5px; color: var(--burgundy); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

.experience-section { background: var(--dark); color: #f6efe6; }
.experience-section .eyebrow { color: var(--rose); }
.experience-layout { display: grid; grid-template-columns: .78fr 1.12fr; gap: clamp(60px, 8vw, 118px); align-items: start; }
.experience-intro { position: sticky; top: 130px; }
.experience-intro h2 { max-width: 13ch; margin-top: 17px; }
.experience-intro > p:not(.eyebrow) { max-width: 520px; margin-top: 23px; color: #c8c1ba; }
.experience-intro .text-link { margin-top: 34px; }
.timeline { position: relative; padding-left: 76px; }
.timeline-track { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.24); }
.timeline-track i { display: block; width: 100%; height: 0; background: var(--rose); transition: height .12s linear; }
.timeline-item { position: relative; min-height: 245px; padding: 0 0 54px; }
.timeline-item:last-child { min-height: 0; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -65px; top: 8px; width: 21px; height: 21px; border: 2px solid #f4eadf; border-radius: 50%; background: var(--dark); transition: .25s; }
.timeline-item.is-current .timeline-dot { border: 6px solid var(--dark-soft); background: var(--rose); box-shadow: 0 0 0 2px var(--burgundy); }
.timeline-period { color: var(--rose); font-size: 12px; font-weight: 700; }
.timeline-content h3 { margin-top: 8px; font-size: clamp(2rem, 3.2vw, 3.15rem); }
.timeline-company { margin-top: 5px; color: #f2ddd8; font-size: 13px; font-weight: 700; }
.timeline-company span { color: #aaa29b; font-weight: 500; }
.timeline-content > p:not(.timeline-period):not(.timeline-company) { max-width: 590px; margin-top: 16px; color: #c8c1ba; }
.timeline-content ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0 0; padding: 0; list-style: none; }
.timeline-content li { padding: 7px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; color: #e0d8d0; font-size: 11px; }

.credentials-section { background: var(--paper); }
.credentials-heading { margin-bottom: 38px; }
.credentials-heading h2 { max-width: 12ch; }
.credentials-heading > p { margin-top: 13px; }
.tool-groups { display: grid; gap: 17px; }
.tool-group { display: grid; grid-template-columns: 380px 1fr; align-items: center; min-height: 155px; padding: 19px 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); transition: box-shadow .25s, transform .25s; }
.tool-group:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-intro { display: grid; grid-template-columns: 95px 1fr; align-items: center; gap: 24px; padding-right: 28px; border-right: 1px solid var(--line); }
.tool-intro > span { color: #ded2c5; font-family: var(--serif); font-size: 5.7rem; line-height: .8; }
.tool-intro h3 { color: var(--burgundy); font-size: 2.2rem; }
.tool-intro p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.tool-logos { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); align-items: center; gap: 12px; padding-left: 28px; }
.tool-logos img { width: 100%; max-width: 150px; margin-inline: auto; }
.credential-grid { display: grid; grid-template-columns: 1.65fr repeat(3, 1fr); gap: 17px; margin-top: 26px; }
.credential-card { position: relative; min-height: 245px; overflow: hidden; padding: 32px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
.credential-card.is-featured { padding-left: 64px; background: linear-gradient(120deg, #fbf0e9 0%, #f8f2ea 72%); }
.credential-card.is-featured::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 28px; background: var(--burgundy); }
.credential-mark { position: absolute; right: 19px; top: 12px; color: #eadbd4; font-family: var(--serif); font-size: 4.3rem; line-height: 1; }
.featured-label { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #f1d9d8; color: var(--burgundy); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.credential-card h3 { max-width: 12ch; margin-top: 44px; font-size: 2rem; }
.credential-card.is-featured h3 { margin-top: 26px; font-size: 2.35rem; }
.credential-card p { margin-top: 13px; color: var(--muted); font-size: 12px; }
.credential-date { position: absolute; left: 28px; bottom: 28px; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--blush); color: var(--burgundy); font-size: 10px; font-weight: 700; }
.credential-card.is-featured .credential-date { left: 64px; }

.contact-section { padding: 104px 0 92px; background: radial-gradient(circle at 70% 15%, #66131f 0%, var(--burgundy-deep) 48%, #31050b 100%); color: white; }
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(65px, 8vw, 118px); }
.contact-section .eyebrow { color: #e7aeb4; }
.contact-copy h2 { max-width: 10ch; margin-top: 16px; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; margin-top: 22px; color: #e4cfd1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }
.contact-direct { margin-top: 39px; border-top: 1px solid rgba(255,255,255,.17); }
.contact-direct > * { display: block; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.17); color: #f3e6e7; font-size: 13px; }
.contact-direct span { display: block; margin-bottom: 2px; color: #d89ca4; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-form { display: grid; gap: 17px; }
.contact-form > div:first-child { margin-bottom: 2px; }
.contact-form h3 { font-size: 2.4rem; }
.contact-form > div:first-child p { margin-top: 8px; color: #e4cfd1; }
.contact-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; outline: 0; background: rgba(255,255,255,.055); color: white; padding: 14px 15px; font-weight: 400; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #cfaeb2; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.085); }
.contact-form textarea { resize: vertical; }
.contact-form .button { width: 100%; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 20px; color: #ffe8ea; font-size: 11px; }

.site-footer { padding: 42px 0 28px; border-top: 1px solid rgba(255,255,255,.15); background: #31050b; color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 55px; }
.brand-footer { color: white; font-size: 30px; }
.footer-grid > div:first-child p { margin-top: 6px; color: #d8aeb3; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.footer-social { color: #e1b7bc; }
.copyright { margin: 28px 0 0; text-align: center; color: #c7959d; font-size: 10px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-delay { transition-delay: .1s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
}

@media (max-width: 1080px) {
  :root { --shell: min(900px, calc(100% - 40px)); }
  .section { padding: 88px 0; }
  .menu-toggle { display: block; z-index: 120; }
  .primary-nav { position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: 22px; background: var(--ivory); font-family: var(--serif); font-size: 31px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav .button { margin-top: 7px; font-family: var(--sans); font-size: 13px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-portrait { width: 100%; max-width: 720px; height: 690px; }
  .focus-grid { grid-template-columns: repeat(3, 1fr); padding: 18px 0; }
  .focus-grid span { border-right: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .featured-work { grid-template-columns: 1fr; }
  .featured-media { min-height: 440px; }
  .dialog-gallery { grid-template-columns: repeat(2, 1fr); }
  .expertise-row { grid-template-columns: 95px 1fr 45px; gap: 24px; }
  .expertise-row ul { grid-column: 2 / 3; padding: 13px 0 0; border-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 760px; }
  .experience-layout { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
  .experience-intro h2 { max-width: 11ch; }
  .tool-group { grid-template-columns: 1fr; }
  .tool-intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 19px; }
  .tool-logos { padding: 18px 0 0; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --shell: min(580px, calc(100% - 28px)); --header-height: 72px; }
  body { font-size: 15px; }
  h1 { font-size: clamp(3rem, 13vw, 4.25rem); max-width: 10ch; }
  .hero-copy h1 span { display: inline; white-space: normal; }
  .hero-copy h1 span:not(:last-child)::after { content: " "; }
  h2 { font-size: clamp(2.65rem, 12vw, 3.7rem); }
  .section { padding: 72px 0; }
  .brand { font-size: 26px; }
  .hero-grid { gap: 36px; padding: 46px 0 30px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; gap: 4px; }
  .hero-meta span::before { display: none; }
  .hero-portrait { height: auto; min-height: 0; aspect-ratio: .86; }
  .focus-grid { grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .focus-grid span { padding: 8px 0; }
  .featured-media { min-height: 270px; }
  .featured-copy { padding: 30px 23px; }
  .work-details div { grid-template-columns: 1fr; gap: 4px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-media { aspect-ratio: 1.22 / 1; }
  .dialog-gallery { grid-template-columns: 1fr; }
  .dialog-head { padding: 19px; }
  .dialog-head h2 { font-size: 2rem; }
  .expertise-row { grid-template-columns: 62px 1fr 40px; padding: 25px 12px; }
  .expertise-number { font-size: 3.6rem; }
  .expertise-main { padding-left: 18px; }
  .expertise-main h3 { font-size: 2rem; }
  .expertise-row ul { grid-column: 2 / -1; gap: 6px 12px; }
  .expertise-row li:not(:last-child)::after { margin-left: 12px; }
  .about-visual { height: auto; aspect-ratio: .8; }
  .about-visual figcaption { inset: auto 12px 12px; grid-template-columns: 1fr; gap: 10px; padding: 15px; }
  .about-visual figcaption span { padding: 0 0 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-visual figcaption span:last-child { padding-bottom: 0; border-bottom: 0; }
  .timeline { padding-left: 45px; }
  .timeline-track { left: 10px; }
  .timeline-dot { left: -44px; }
  .timeline-content h3 { font-size: 2.25rem; }
  .tool-intro { grid-template-columns: 66px 1fr; gap: 15px; }
  .tool-intro > span { font-size: 4.2rem; }
  .tool-logos { grid-template-columns: repeat(2, 1fr); }
  .credential-grid { grid-template-columns: 1fr; }
  .credential-card { min-height: 220px; }
  .contact-actions { display: grid; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links, .footer-social { gap: 18px; }
}

/* V5 refinements: first-person portfolio voice, non-clickable expertise rows,
   vetted local brand marks, and a mobile-first hero composition. */
.expertise-row {
  grid-template-columns: 120px 1fr 1.05fr;
  cursor: default;
}
.expertise-row:hover {
  background: #f7ece9;
}
.expertise-row ul {
  padding-right: 8px;
}

.tool-logos {
  grid-template-columns: repeat(5, minmax(104px, 1fr));
}
.tool-badge {
  min-width: 0;
  display: grid;
  grid-template-rows: 92px auto;
  justify-items: center;
  align-items: start;
  gap: 9px;
}
.tool-mark {
  width: 100%;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(45, 31, 24, .035);
}
.tool-mark img {
  width: 100%;
  height: 100%;
  max-width: 132px;
  max-height: 72px;
  object-fit: contain;
  margin: 0;
}
.tool-badge.is-wide .tool-mark img {
  max-width: 145px;
  max-height: 48px;
}
.tool-badge.has-no-label {
  grid-template-rows: 112px;
}
.tool-name {
  color: #423a35;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 1080px) {
  .expertise-row { grid-template-columns: 95px 1fr; gap: 24px; }
  .expertise-row ul { grid-column: 2 / 3; padding: 13px 0 0; border-left: 0; }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 36px);
    --header-height: 64px;
  }
  html, body { overflow-x: hidden; }
  .site-header { background: rgba(247,242,234,.96); border-bottom-color: rgba(31,34,37,.08); }
  .nav-wrap { min-height: 64px; }
  .brand { font-size: 24px; }
  .menu-toggle { width: 40px; height: 40px; padding: 9px; }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 22px;
  }
  .hero-copy h1 {
    max-width: none;
    margin-top: 17px;
    font-size: clamp(2.55rem, 11vw, 2.85rem);
    line-height: .95;
    letter-spacing: -.045em;
  }
  .hero-copy h1 span {
    display: block;
    white-space: normal;
  }
  .hero-copy h1 span:not(:last-child)::after { content: none; }
  .hero-intro {
    max-width: 35rem;
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.55;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 21px;
  }
  .hero-actions .button {
    min-height: 46px;
    width: 100%;
    padding-inline: 10px;
    font-size: 11px;
  }
  .hero-meta {
    display: flex;
    gap: 5px 14px;
    margin-top: 18px;
    font-size: 10.5px;
    line-height: 1.4;
  }
  .hero-meta span::before { display: none; }
  .hero-portrait {
    width: 100%;
    height: 230px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(45,31,26,.09);
  }
  .hero-portrait img {
    object-position: 50% 37%;
  }
  .hero-focus { overflow: hidden; }
  .focus-grid {
    width: 100%;
    min-height: 58px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 18px;
    scrollbar-width: none;
  }
  .focus-grid::-webkit-scrollbar { display: none; }
  .focus-grid span {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0 18px;
    border-right: 1px solid var(--line);
    font-size: 11px;
    white-space: nowrap;
  }
  .focus-grid span:first-child { padding-left: 0; }

  .section { padding: 66px 0; }
  h2 { font-size: clamp(2.45rem, 11vw, 3.2rem); }
  .section-heading, .expertise-heading, .credentials-heading { margin-bottom: 34px; }
  .section-heading { gap: 16px; }
  .section-heading h2, .credentials-heading h2 { max-width: 11ch; }

  .featured-media { min-height: 245px; }
  .featured-copy { padding: 27px 20px; }
  .featured-copy h3 { font-size: 2rem; }
  .work-card-copy { padding: 21px 20px 24px; }
  .work-card-copy h3 { font-size: 1.75rem; }

  .expertise-heading h2 { max-width: 8ch; }
  .expertise-row {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 23px 4px;
  }
  .expertise-number { font-size: 3.15rem; }
  .expertise-main { padding-left: 14px; }
  .expertise-main h3 { font-size: 1.72rem; }
  .expertise-main p { font-size: 12.5px; }
  .expertise-row ul {
    grid-column: 2 / 3;
    gap: 5px 10px;
    padding: 11px 0 0 14px;
  }
  .expertise-row li { font-size: 9px; }
  .expertise-row li:not(:last-child)::after { margin-left: 10px; }
  .marquee { height: 44px; }

  .about-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .about-actions .button { min-height: 46px; padding-inline: 10px; font-size: 11px; }
  .about-visual { aspect-ratio: .9; }

  .timeline-content h3 { font-size: 2rem; }
  .timeline-content > p:not(.timeline-period):not(.timeline-company) { font-size: 13px; }

  .tool-group { padding: 19px 18px; }
  .tool-logos { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding-top: 16px; }
  .tool-badge { grid-template-rows: 88px auto; }
  .tool-mark { height: 88px; }
  .tool-mark img { max-width: 124px; max-height: 66px; }
  .tool-badge.has-no-label { grid-template-rows: 108px; }

  .contact-section { padding: 72px 0 64px; }
  .contact-copy h2 { max-width: 12ch; }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 2.35rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-portrait { height: 205px; }
  .about-actions { grid-template-columns: 1fr; }
}

/* V6 mobile-first patch ---------------------------------------------------- */
/* Keep credential content in normal flow on every viewport. */
.credential-card {
  display: flex;
  flex-direction: column;
}
.credential-card p {
  position: relative;
  z-index: 1;
}
.credential-date,
.credential-card.is-featured .credential-date {
  position: static;
  left: auto;
  bottom: auto;
  align-self: flex-start;
  margin-top: auto;
}

/* The hero meta is now a real grid item so mobile can place it after the portrait. */
.hero-grid {
  grid-template-areas:
    "copy portrait"
    "meta portrait";
  grid-template-rows: auto auto;
  column-gap: clamp(42px, 5vw, 72px);
  row-gap: 0;
}
.hero-copy { grid-area: copy; }
.hero-portrait { grid-area: portrait; }
.hero-meta { grid-area: meta; align-self: start; }
.hero-portrait picture { display: block; width: 100%; height: 100%; }
.hero-portrait picture img { width: 100%; height: 100%; object-fit: cover; }

/* Desktop focus row remains static; the duplicated set is only used on mobile. */
.focus-track { width: var(--shell); margin-inline: auto; }
.focus-grid[aria-hidden="true"] { display: none; }

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 40px);
    --header-height: 66px;
  }

  body { font-size: 15px; }
  .shell { width: var(--shell); }
  .site-header { background: rgba(247,242,234,.97); }
  .nav-wrap { min-height: var(--header-height); }
  .brand { font-size: 26px; }
  .menu-toggle { width: 42px; height: 42px; padding: 9px; }

  /* HERO */
  .hero {
    min-height: auto;
    padding-top: var(--header-height);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "portrait"
      "meta";
    gap: 0;
    padding: 34px 0 30px;
  }
  .hero-copy h1 {
    max-width: 100%;
    margin-top: 20px;
    font-size: clamp(2.45rem, 10.8vw, 2.85rem);
    line-height: .98;
    letter-spacing: -.042em;
  }
  .hero-copy h1 span { display: block; white-space: nowrap; }
  .hero-intro {
    max-width: 36rem;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.58;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 10px;
    font-size: 11px;
  }
  .hero-portrait {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 26px;
    aspect-ratio: 1.055 / 1;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(45,31,26,.10);
  }
  .hero-portrait img { object-position: center; }
  .hero-meta {
    display: flex;
    align-items: flex-start;
    gap: 7px 16px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .hero-meta strong { flex: 0 0 auto; }
  .hero-meta span::before { content: "·"; margin-right: 16px; color: var(--burgundy); }

  .hero-focus {
    width: 100%;
    overflow: hidden;
    border-top: 0;
    background: var(--burgundy);
    color: #fff;
  }
  .focus-track {
    display: flex;
    width: max-content;
    margin: 0;
    animation: marquee 24s linear infinite;
  }
  .focus-track:hover { animation-play-state: paused; }
  .focus-grid,
  .focus-grid[aria-hidden="true"] {
    display: flex;
    width: auto;
    min-height: 54px;
    margin: 0;
    padding: 0;
  }
  .focus-grid span {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0;
    border: 0;
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .focus-grid span::after {
    content: "·";
    margin: 0 21px;
    color: var(--rose);
  }

  /* GLOBAL MOBILE RHYTHM */
  .section { padding: 76px 0; }
  h2 { font-size: clamp(2.55rem, 11vw, 3.2rem); line-height: 1.02; }
  .section-heading,
  .credentials-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }
  .section-heading h2,
  .credentials-heading h2 { max-width: 11ch; }

  /* SELECTED WORK */
  .work-heading h2 { max-width: 10ch; }
  .featured-work { border-radius: 14px; }
  .featured-media {
    min-height: 0;
    aspect-ratio: 1.18 / 1;
  }
  .featured-copy { padding: 24px 20px 22px; }
  .featured-copy .work-number,
  .featured-copy .work-type,
  .featured-copy .work-details { display: none; }
  .featured-copy h3 {
    margin-top: 0;
    font-size: 1.82rem;
    line-height: 1.08;
  }
  .featured-copy > p:not(.work-number):not(.work-type) {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.55;
  }
  .project-button {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
  }
  .work-grid { gap: 12px; margin-top: 14px; }
  .work-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 176px;
    border-radius: 12px;
  }
  .work-card-media { height: 100%; min-height: 176px; aspect-ratio: auto; }
  .work-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 17px 16px;
  }
  .work-card-copy .work-number,
  .work-card-copy .work-type { display: none; }
  .work-card-copy h3 {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
  }
  .work-card-copy > p:last-child {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.55;
  }

  /* EXPERTISE */
  .expertise-heading h2 { max-width: 9ch; }
  .expertise-row {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 24px 4px;
  }
  .expertise-number { font-size: 3.15rem; }
  .expertise-main { padding-left: 14px; }
  .expertise-main h3 { font-size: 1.72rem; }
  .expertise-main p { font-size: 12.5px; }
  .expertise-row ul {
    grid-column: 2 / 3;
    gap: 5px 10px;
    padding: 11px 0 0 14px;
  }
  .expertise-row li { font-size: 9px; }

  /* ABOUT */
  .about-grid { gap: 36px; }
  .about-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .about-actions .button { min-height: 48px; padding-inline: 10px; font-size: 11px; }
  .about-visual {
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .about-visual > img {
    width: 100%;
    aspect-ratio: 1.04 / 1;
    object-fit: cover;
    object-position: 50% 48%;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .about-visual figcaption {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 12px;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
    background: var(--paper);
  }
  .about-visual figcaption span {
    padding: 0 9px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    font-size: 9.5px;
    text-align: center;
  }

  /* EXPERIENCE */
  .experience-layout { gap: 44px; }
  .experience-intro h2 { max-width: 11ch; }
  .timeline { padding-left: 43px; }
  .timeline-track { left: 9px; }
  .timeline-dot { left: -43px; }
  .timeline-item { min-height: 0; padding-bottom: 48px; }
  .timeline-content h3 { font-size: 1.95rem; }
  .timeline-content > p:not(.timeline-period):not(.timeline-company) {
    font-size: 13px;
    line-height: 1.6;
  }
  .timeline-content ul { gap: 7px; margin-top: 18px; }
  .timeline-content li { padding: 6px 10px; font-size: 10px; }

  /* TOOLS: flatten the desktop groups into one mobile-first grid. */
  .tool-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .tool-group,
  .tool-logos { display: contents; }
  .tool-intro { display: none; }
  .tool-badge,
  .tool-badge.has-no-label {
    min-width: 0;
    min-height: 124px;
    display: grid;
    grid-template-rows: 76px auto;
    align-content: center;
    gap: 7px;
    padding: 12px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 8px 20px rgba(45,31,24,.03);
  }
  .tool-mark {
    width: 100%;
    height: 76px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-mark img,
  .tool-badge.is-wide .tool-mark img {
    max-width: 82px;
    max-height: 60px;
  }
  .tool-name { font-size: 10px; line-height: 1.25; }

  /* CREDENTIALS */
  .credential-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .credential-card {
    min-height: 0;
    padding: 21px 20px;
  }
  .credential-card.is-featured {
    min-height: 210px;
    padding: 25px 22px 22px 72px;
  }
  .credential-card.is-featured::before { width: 42px; }
  .credential-mark { top: 12px; right: 16px; font-size: 3.5rem; }
  .credential-card h3,
  .credential-card.is-featured h3 {
    max-width: none;
    margin-top: 0;
    padding-right: 52px;
    font-size: 1.55rem;
    line-height: 1.08;
  }
  .credential-card.is-featured h3 { margin-top: 30px; font-size: 1.8rem; }
  .credential-card p { margin-top: 9px; font-size: 11.5px; }
  .credential-date,
  .credential-card.is-featured .credential-date {
    margin-top: 18px;
  }
  .credential-card:not(.is-featured) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }
  .credential-card:not(.is-featured) h3,
  .credential-card:not(.is-featured) p { grid-column: 1; }
  .credential-card:not(.is-featured) .credential-date {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    align-self: center;
  }
  .credential-card:not(.is-featured) .credential-mark { display: none; }

  /* CONTACT */
  .contact-section { padding: 78px 0 66px; }
  .contact-panel { gap: 50px; }
  .contact-copy h2 { max-width: 11ch; font-size: clamp(2.8rem, 12vw, 3.45rem); }
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .contact-actions .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 8px;
    font-size: 12px;
  }
  .contact-direct { margin-top: 34px; }
  .contact-direct > * {
    position: relative;
    min-height: 70px;
    padding: 16px 28px 16px 0;
    font-size: 13px;
  }
  .contact-direct a::after {
    content: "›";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: #f3dadd;
    font-size: 28px;
    font-weight: 300;
  }
  .contact-form { gap: 14px; }
  .contact-form h3 { font-size: 2.1rem; }
  .contact-form input,
  .contact-form textarea { min-height: 50px; }

  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 380px) {
  :root { --shell: calc(100% - 32px); }
  .hero-copy h1 { font-size: 2.3rem; }
  .hero-actions,
  .about-actions,
  .contact-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .button,
  .about-actions .button,
  .contact-actions .button { font-size: 10px; }
  .hero-meta { display: grid; gap: 3px; }
  .hero-meta span::before { display: none; }
  .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card { grid-template-columns: 39% 61%; }
}

@media (max-width: 330px) {
  .hero-actions,
  .about-actions,
  .contact-actions { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-card-media { min-height: 205px; }
  .credential-card:not(.is-featured) { grid-template-columns: 1fr; }
  .credential-card:not(.is-featured) .credential-date {
    grid-column: 1;
    grid-row: auto;
    margin-top: 14px;
    justify-self: start;
  }
}

/* V6 picture wrappers for mobile art direction. */
.about-visual > picture { display: block; width: 100%; height: 100%; }
.about-visual > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 48%; }
@media (max-width: 700px) {
  .about-visual > picture { height: auto; }
  .about-visual > picture img {
    aspect-ratio: 1.04 / 1;
    object-position: center;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
}

/* V7 polish patch: credential hierarchy + viewport-safe mobile navigation. */

/* Desktop navigation wrappers introduced in V7. */
.nav-list {
  display: flex;
  align-items: center;
  gap: 31px;
}
.nav-list > a {
  position: relative;
  padding: 10px 0;
}
.nav-list > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--burgundy);
  transition: right .22s;
}
.nav-list > a:hover::after,
.nav-list > a.is-active::after { right: 0; }
.nav-index,
.mobile-nav-heading,
.mobile-nav-meta { display: none; }
.nav-cta { flex: 0 0 auto; }

/* Credential card header: badge and number share one real row. */
.credential-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 18px;
}
.credential-card-head .credential-mark {
  position: static;
  flex: 0 0 auto;
  margin: -8px -2px -4px 0;
  color: #eadbd4;
  font-family: var(--serif);
  font-size: 4.1rem;
  line-height: .8;
}
.credential-card-head .featured-label {
  position: static;
  flex: 0 0 auto;
  max-width: max-content;
}
.credential-card h3,
.credential-card.is-featured h3 {
  margin-top: 24px;
}
.credential-card.is-featured h3 { margin-top: 20px; }

@media (max-width: 1080px) {
  body.menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* Avoid backdrop-filter creating a containing block for the fixed overlay. */
  body.menu-open .site-header,
  body.menu-open .site-header.is-scrolled {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.menu-open .site-header .brand { visibility: hidden; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    justify-items: stretch;
    gap: 0;
    padding: max(25px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .mobile-nav-heading {
    display: block;
    min-height: 60px;
    padding-right: 64px;
    border-bottom: 1px solid var(--line);
    color: var(--burgundy);
    font-family: var(--serif);
    font-size: clamp(1.9rem, 6vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.04em;
  }

  .nav-list {
    display: grid;
    align-content: center;
    width: min(100%, 620px);
    margin-inline: auto;
    gap: 0;
  }
  .nav-list > a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 68px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.025em;
  }
  .nav-list > a:first-child { border-top: 1px solid var(--line); }
  .nav-list > a::after { display: none; }
  .nav-list > a:hover,
  .nav-list > a:focus-visible,
  .nav-list > a.is-active { color: var(--burgundy); }
  .nav-index {
    display: inline-block;
    color: var(--burgundy);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .primary-nav .nav-cta {
    justify-self: start;
    width: auto;
    min-width: 200px;
    margin: 24px auto 0;
    font-family: var(--sans);
    font-size: 12px;
  }
  .mobile-nav-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    text-align: center;
  }
  .mobile-nav-meta > * + *::before {
    content: "·";
    margin-right: 18px;
    color: var(--burgundy);
  }

  .menu-toggle { z-index: 130; }
  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    border-radius: 50%;
    background: rgba(247,242,234,.92);
  }
}

@media (max-width: 700px) {
  .primary-nav {
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .mobile-nav-heading { min-height: 54px; font-size: 2rem; }
  .nav-list { align-content: center; }
  .nav-list > a {
    grid-template-columns: 34px 1fr;
    min-height: 60px;
    font-size: clamp(1.65rem, 8vw, 2rem);
  }
  .primary-nav .nav-cta {
    min-width: 185px;
    min-height: 46px;
    margin-top: 19px;
  }
  .mobile-nav-meta { margin-top: 18px; padding-top: 15px; }

  .credential-card-head { min-height: 26px; }
  .credential-card-head .credential-mark { display: none; }
  .credential-card-head .featured-label {
    padding: 5px 10px;
    font-size: 8px;
  }
  .credential-card.is-featured h3 {
    margin-top: 21px;
    padding-right: 0;
  }
}

@media (max-height: 650px) and (max-width: 1080px) {
  .primary-nav {
    grid-template-rows: auto auto auto auto;
  }
  .nav-list { align-content: start; margin-top: 18px; }
  .nav-list > a { min-height: 52px; font-size: 1.6rem; }
  .primary-nav .nav-cta { margin-top: 16px; }
  .mobile-nav-meta { margin-top: 14px; padding-top: 12px; }
}

/* V10 contact-form submission feedback. */
.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: .72;
}
.form-status {
  outline: none;
  transition: color .2s ease, opacity .2s ease;
}
.form-status.is-pending { color: #f4dfe1; }
.form-status.is-success { color: #fff5e9; font-weight: 700; }
.form-status.is-error { color: #ffd6da; font-weight: 700; }

/* V13 conversion-copy safeguards */
.work-heading h2 { max-width: 15ch; }
.expertise-heading h2 { max-width: 16ch; }
.about-copy h2 { max-width: 15ch; }
.experience-intro h2 { max-width: 15ch; }
.credentials-heading h2 { max-width: 16ch; }
.contact-copy h2 { max-width: 13ch; }

@media (max-width: 700px) {
  .hero-copy h1 { font-size: clamp(2.2rem, 10.2vw, 2.75rem); }
  .hero-copy h1 span { white-space: normal; }
  .work-heading h2,
  .expertise-heading h2,
  .about-copy h2,
  .experience-intro h2,
  .credentials-heading h2,
  .contact-copy h2 { max-width: 100%; }
}

/* V14 desktop section-heading rhythm -------------------------------------- */
/* Use available desktop width where the layout does not need a split column.
   About, Experience and Contact intentionally keep their split compositions. */
@media (min-width: 1081px) {
  .work-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 48px;
  }

  .work-heading > div {
    max-width: 100%;
  }

  .work-heading h2 {
    max-width: 1180px;
    font-size: clamp(3rem, 3.35vw, 4rem);
  }

  .work-heading > p {
    max-width: 780px;
  }

  .expertise-heading {
    max-width: 1180px;
    margin-bottom: 48px;
  }

  .expertise-heading h2 {
    max-width: 1120px;
    font-size: clamp(3rem, 3.35vw, 4rem);
  }

  .expertise-heading > p:last-child {
    max-width: 780px;
  }

  .credentials-heading {
    max-width: 1180px;
    margin-bottom: 40px;
  }

  .credentials-heading h2 {
    max-width: 1120px;
    font-size: clamp(3rem, 3.35vw, 4rem);
  }

  .credentials-heading > p {
    max-width: 780px;
  }
}

/* V17 contact-form feedback: make sending and success states unmistakable. */
.contact-form button[type="submit"] {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.contact-form button[type="submit"][aria-busy="true"] {
  cursor: wait;
  opacity: .78;
}
.form-status {
  min-height: 0;
  outline: none;
  font-size: 13px;
}
.form-status:empty {
  display: none;
}
.form-status.is-pending,
.form-status.is-success,
.form-status.is-error {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 2px;
  padding: 15px 17px;
  border-radius: 10px;
  text-align: left;
}
.form-status.is-pending {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: #fff5ee;
}
.form-status.is-success {
  border: 1px solid rgba(255,255,255,.7);
  background: var(--ivory);
  color: var(--charcoal);
  box-shadow: 0 10px 28px rgba(44, 4, 10, .16);
}
.form-status.is-error {
  border: 1px solid rgba(255,220,224,.55);
  background: rgba(255,255,255,.09);
  color: #fff7f7;
}
.form-status__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.form-status.is-success .form-status__icon {
  border-color: rgba(139, 19, 38, .28);
  background: #f3e4df;
  color: var(--burgundy);
}
.form-status__icon.is-loading {
  border-color: rgba(255,255,255,.28);
  border-top-color: #fff;
  font-size: 0;
  animation: form-status-spin .8s linear infinite;
}
.form-status__copy {
  display: grid;
  gap: 3px;
}
.form-status__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.form-status.is-success .form-status__title {
  color: var(--burgundy);
}
.form-status__detail {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  opacity: .9;
}
@keyframes form-status-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 700px) {
  .form-status.is-pending,
  .form-status.is-success,
  .form-status.is-error {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }
  .form-status__icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .form-status__title { font-size: 12.5px; }
  .form-status__detail { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .form-status__icon.is-loading { animation: none; }
}

/* V18 success notice timing and contrast. */
.form-status {
  transition: color .2s ease, opacity .28s ease, transform .28s ease;
}
.form-status.is-success {
  color: var(--ink);
}
.form-status.is-success .form-status__detail {
  color: #473a36;
  opacity: 1;
  font-weight: 600;
}
.form-status.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .form-status { transition: none; }
  .form-status.is-hiding { transform: none; }
}

/* V19 contact CTA polish -------------------------------------------------- */
.contact-actions [data-contact-start] span {
  display: inline-block;
  margin-left: 8px;
  transition: transform .18s ease;
}
.contact-actions [data-contact-start]:hover span,
.contact-actions [data-contact-start]:focus-visible span {
  transform: translateX(3px);
}

.contact-form {
  scroll-margin-top: 92px;
}
.contact-form input,
.contact-form textarea {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.contact-form.is-invited input[name="name"] {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}

@media (max-width: 1080px) {
  .contact-form { scroll-margin-top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-actions [data-contact-start] span { transition: none; }
  .contact-actions [data-contact-start]:hover span,
  .contact-actions [data-contact-start]:focus-visible span { transform: none; }
}


/* V20 WhatsApp floating contact shortcut ---------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(84,11,22,.12);
  border-radius: 999px;
  background: rgba(127,18,34,.98);
  color: #fff;
  box-shadow: 0 18px 36px rgba(49,5,11,.22);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: var(--burgundy-deep);
  box-shadow: 0 20px 42px rgba(49,5,11,.28);
}
.whatsapp-float:focus-visible {
  outline: 2px solid rgba(255,255,255,.92);
  outline-offset: 3px;
}
.whatsapp-float__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
}
.whatsapp-float__icon svg {
  width: 22px;
  height: 22px;
}
.whatsapp-float__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.whatsapp-float__copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .01em;
}
.whatsapp-float__copy small {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(255,255,255,.82);
}
@media (max-width: 1080px) {
  .whatsapp-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    padding: 9px 14px 9px 10px;
  }
  .whatsapp-float__icon {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 700px) {
  .whatsapp-float {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    min-height: 54px;
    max-width: calc(100vw - 24px);
    padding: 9px 14px 9px 10px;
  }
  .whatsapp-float__copy strong {
    font-size: 12px;
  }
  .whatsapp-float__copy small {
    font-size: 10.5px;
  }
}
@media (max-width: 380px) {
  .whatsapp-float {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    padding-right: 12px;
  }
  .whatsapp-float__copy small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    transform: none;
  }
}

/* V21 WhatsApp floater behaviour polish ---------------------------------- */
.whatsapp-float.is-hidden,
body.menu-open .whatsapp-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(.97);
}

/* Desktop keeps the shortcut quieter; mobile/tablet retain the visible
   phone number where direct contact is most useful. */
@media (min-width: 1081px) {
  .whatsapp-float {
    min-height: 54px;
    gap: 9px;
    padding: 8px 14px 8px 9px;
  }
  .whatsapp-float__icon {
    width: 34px;
    height: 34px;
  }
  .whatsapp-float__icon svg {
    width: 20px;
    height: 20px;
  }
  .whatsapp-float__copy small {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float {
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease,
      box-shadow .18s ease, background-color .18s ease;
  }
}
