:root {
  --cream: #fff8f3;
  --blush: #f1d1d9;
  --mauve: #b86b82;
  --wine: #591b35;
  --gold: #d4b18c;
  --ink: #30252b;
  --editorial: "Cormorant Garamond", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(100% - 120px, 1312px); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: 8px; left: 8px; z-index: 10; width: auto; height: auto; clip-path: none; background: var(--cream); padding: 12px; }
.header { padding-top: 23px; }
.navigation {
  padding: 10px 12px 10px 23px;
  border: 1px solid #591b3526;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wordmark { font: 600 2.55rem/.85 var(--editorial); letter-spacing: -.075em; color: var(--wine); position: relative; padding-right: 13px; }
.wordmark span { color: var(--gold); position: absolute; top: 0; right: 0; font: .75rem var(--body); }
.nav-links { display: flex; gap: 34px; font-size: .87rem; font-weight: 600; }
.nav-links a { padding: 8px 0; }
.nav-links a[aria-current], .nav-links a:hover { color: var(--wine); box-shadow: 0 1px var(--mauve); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  min-height: 51px;
  border-radius: 80px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--cream);
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s, color .2s, translate .2s;
}
.pill-small { min-height: 43px; padding-inline: 22px; }
.pill-outline { background: transparent; color: var(--wine); }
.text-link { color: var(--wine); border: 0; padding: 12px 2px; background: transparent; font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--mauve); }
@media (hover: hover) {
  .pill:hover { translate: 0 -2px; background: var(--blush); color: var(--wine); }
  .pill-outline:hover { background: var(--wine); color: var(--cream); }
  .text-link:hover { text-decoration-color: currentColor; }
}
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.34fr 1fr; gap: clamp(18px, 3.2vw, 52px); align-items: center; padding-block: clamp(54px, 6.3vw, 102px) clamp(58px, 6.5vw, 100px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--wine); text-transform: uppercase; letter-spacing: .17em; font-size: .78rem; font-weight: 700; margin: 0 0 25px; }
.eyebrow span { background: var(--gold); width: 32px; height: 1px; }
h1 { color: var(--wine); font: 600 clamp(3.5rem, 6.24vw, 6.35rem)/.92 var(--editorial); letter-spacing: -.054em; margin: 0; }
h1 span, h1 em { display: block; }
h1 em { font-weight: 500; margin-top: .09em; }
.intro { max-width: 520px; font-size: clamp(1rem, 1.22vw, 1.12rem); line-height: 1.75; margin: 28px 0 29px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 15px; align-items: center; }
.portrait { margin: 0 10px 4px 0; position: relative; }
.portrait-frame { position: relative; border-radius: 48% 48% 14px 14px / 37% 37% 14px 14px; overflow: hidden; background: var(--blush); }
.portrait::before { content: ""; position: absolute; inset: -12px -12px 12px 12px; border: 1px solid var(--gold); border-radius: 48% 48% 14px 14px / 37% 37% 14px 14px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; display: block; }
.portrait-sparkle { position: absolute; right: -16px; top: 14%; font: 4rem/1 var(--editorial); color: var(--mauve); }
.experience-badge { position: absolute; bottom: 7%; left: -34px; display: flex; gap: 13px; align-items: center; max-width: 219px; padding: 11px 16px; border: 1px solid var(--gold); border-radius: 10px; background: var(--cream); color: var(--wine); box-shadow: 0 12px 35px #30252b20; }
.experience-badge strong { font: 600 3.3rem/.9 var(--editorial); letter-spacing: -.04em; white-space: nowrap; }
.experience-badge span { font-size: .76rem; line-height: 1.45; font-weight: 700; }
.metrics { background: var(--wine); color: var(--cream); scroll-margin-top: 14px; }
.metrics-inner { margin-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 22px; }
.metrics-inner div { display: flex; flex-direction: column-reverse; text-align: center; gap: 5px; padding: 5px 12px 8px; }
.metrics-inner div + div { border-left: 1px solid #d4b18c66; }
.metrics dt { font-weight: 600; font-size: .82rem; }
.metrics dd { color: var(--gold); margin: 0; font: 600 clamp(2.15rem, 4.3vw, 4rem)/1 var(--editorial); }
.footer { padding-block: 25px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer .wordmark { font-size: 2rem; }
dialog { border: 1px solid var(--gold); border-radius: 15px; padding: 0; width: min(92vw, 440px); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #30252b99; }
.dialog-inner { padding: 38px; position: relative; }
.dialog-inner h2 { color: var(--wine); font: 600 2.5rem/1 var(--editorial); margin: 0; }
.dialog-inner p { line-height: 1.6; margin-bottom: 0; }
.close { position: absolute; right: 9px; top: 9px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--wine); font-size: 1.5rem; }
.opening { display: none; }
.opening-active { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9; pointer-events: none; background: var(--wine); animation: curtain .52s .62s both; }
.opening .wordmark { color: var(--cream); font-size: 5rem; }
.opening .wordmark span { animation: twinkle .65s both; }
@keyframes curtain { to { clip-path: inset(0 0 100%); visibility: hidden; } }
@keyframes twinkle { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1.25); } }
@keyframes rise { from { opacity: 0; transform: translateY(15px); } }
@keyframes float { 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: no-preference) {
  h1 span, h1 em, .portrait { animation: rise .65s both; }
  h1 em { animation-delay: .12s; }
  .portrait { animation-delay: .15s; }
  .experience-badge { animation: float 5s 1s 2 ease-in-out; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 70px); }
  h1 { font-size: clamp(3.1rem, 6.35vw, 5.5rem); }
}
@media (max-width: 730px) {
  .shell { width: calc(100% - 36px); }
  .header { padding-top: 13px; }
  .navigation { padding-left: 15px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 43px 46px; gap: 42px; }
  h1 { font-size: clamp(2.45rem, 8.3vw, 4.6rem); }
  .intro { margin-block: 19px 21px; }
  .eyebrow { margin-bottom: 18px; }
  .portrait { width: min(92%, 460px); margin-inline: auto; }
  .experience-badge { left: -18px; }
  .metrics-inner { width: calc(100% - 20px); }
  .metrics dt { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .opening { display: none; }
}

/* Portfolio sections */
:root { scroll-padding-top: 96px; }
.header { position: sticky; z-index: 5; top: 0; }
.navigation { background: #fff8f3f2; backdrop-filter: blur(12px); }
.menu > summary { display: none; }
.menu:not([open]) > .nav-links { display: flex; }
.nav-links { gap: clamp(12px, 2vw, 34px); }
.scroll-progress { position: fixed; z-index: 8; height: 3px; inset: 0 0 auto; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.section { padding-block: clamp(60px, 8vw, 126px); }
.section h2 { margin: 0 0 32px; color: var(--wine); font: 600 clamp(3rem, 6.1vw, 6rem)/.95 var(--editorial); letter-spacing: -.045em; }
.section h2 em { font-weight: 500; }
.section h3 { color: var(--wine); font: 600 clamp(1.6rem, 2.8vw, 2.35rem)/1 var(--editorial); margin: 0 0 10px; }
.section p { line-height: 1.7; }
.section .eyebrow { line-height: 1.25; }
.impact-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.impact-grid article { padding: clamp(20px, 3vw, 40px); border: 1px solid #591b3535; border-radius: 14px; }
.impact-card { background: var(--blush); }
.impact-card > strong { display: block; color: var(--wine); font: 600 clamp(3.5rem, 6vw, 5.5rem)/.95 var(--editorial); font-variant-numeric: lining-nums; margin-bottom: 12px; }
.impact-card p, .growth p { margin-bottom: 0; }
.bars { margin-top: 23px; }
.bars div { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 12px; font-size: .87rem; }
.bars i { display: block; grid-column: span 2; width: var(--bar); height: 9px; background: var(--wine); border-radius: 100px; transform-origin: left; }
.growth.entered .bars i { animation: grow .8s both; }
@keyframes grow { from { transform: scaleX(.03); } }
.about-band { background: var(--blush); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 92px); }
.about-grid > img { display: block; width: 100%; height: auto; border-radius: 12px; }
.about-grid p { max-width: 58ch; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.skill { border: 1px solid #591b3535; border-radius: 14px; padding: 19px; min-height: 105px; }
.skill:nth-child(4n + 1) { background: var(--blush); }
.skill summary { cursor: pointer; color: var(--wine); font: 600 1.65rem/1 var(--editorial); }
.skill p { margin-bottom: 0; }
.work-band { background: color-mix(in srgb, var(--blush) 32%, var(--cream)); }
.case-grid, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.case-card, .gallery-card { border: 1px solid #591b3535; border-radius: 14px; overflow: hidden; background: var(--cream); }
.case-card { padding: 14px; }
.case-card > img { display: block; width: 100%; height: 188px; object-fit: contain; background: var(--blush); border-radius: 8px; padding: 12px; }
.case-card .asset-type { margin: 13px 0 6px; }
.gallery-title { margin-top: 46px !important; }
.filters, .filter-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.chip, .filter-list span { border: 1px solid #591b3560; border-radius: 99px; background: transparent; color: var(--wine); padding: 8px 13px; min-height: 38px; font: 600 .86rem/1.4 var(--body); }
.chip[aria-pressed="true"], .chip:hover { background: var(--wine); color: var(--cream); }
.gallery-card { text-align: left; padding: 12px; color: var(--wine); }
.gallery-card:hover { border-color: var(--wine); }
.gallery-card strong { display: block; margin: 11px 0 4px; }
.asset-type { font-size: .83rem; color: var(--wine); }
.work-frame { display: grid; place-items: center; min-height: 210px; height: clamp(210px, 21vw, 315px); padding: 14px; background: var(--blush); border-radius: 8px; }
.work-frame img { width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.work-frame.phone img { width: auto; max-width: 100%; border: 5px solid var(--ink); border-radius: 12px; }
.work-frame.screen img { height: auto; border: 4px solid var(--ink); border-radius: 6px; }
.global-band { background: var(--wine); color: var(--cream); }
.global-band .eyebrow, .global-band h2, .global-band h3 { color: var(--cream); }
.map-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; align-items: center; }
.map { position: relative; }
.map svg { display: block; width: 100%; }
.land { fill: #f1d1d953; }
.routes { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 5; }
.map.entered .routes { animation: routes 2s both; }
@keyframes routes { from { opacity: 0; stroke-dashoffset: 75; } }
.map-pin { position: absolute; translate: -50% -50%; width: clamp(19px, 3vw, 28px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cream); background: var(--wine); color: var(--gold); }
.map-pin[aria-pressed="true"], .map-pin:hover { background: var(--gold); color: var(--wine); }
.map-details .chip { color: var(--cream); border-color: var(--gold); }
.map-details .chip[aria-pressed="true"], .map-details .chip:hover { background: var(--gold); color: var(--wine); }
#country-detail { min-height: 140px; }
.country-count { font-weight: 700; }
.timeline { list-style: none; border-left: 1px solid var(--mauve); padding-left: clamp(18px, 5vw, 64px); margin-left: 8px; }
.timeline li { position: relative; padding-block: 8px 23px; }
.timeline li::before { content: ''; position: absolute; top: 13px; left: calc(clamp(18px, 5vw, 64px) * -1 - 6px); width: 11px; height: 11px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px var(--cream); }
.timeline li.entered::before { animation: rise .5s both; }
.timeline li p { margin: 3px 0; }
.timeline-date, .timeline-client { color: var(--wine); font-weight: 600; }
.timeline-date { display: block; margin-bottom: 5px; font-size: .87rem; }
.contact-grid form { display: grid; gap: 12px; }
.contact-grid form button { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-grid label { display: grid; gap: 6px; color: var(--wine); font-weight: 700; }
.contact-grid input, .contact-grid textarea { font: inherit; color: var(--ink); border: 1px solid #591b3577; border-radius: 8px; background: var(--cream); padding: 10px 12px; width: 100%; }
.contact-grid textarea { resize: vertical; }
#draft-panel { margin-top: 8px; }
#draft-panel button { margin-top: 8px; }
#detail-dialog { width: min(92vw, 690px); max-height: 86vh; }
#detail-body h3 { color: var(--wine); margin-bottom: 5px; }
#detail-body p { margin-top: 0; }
.related .chip { margin-right: 7px; }
#viewer { width: min(97vw, 1360px); height: 95vh; max-width: none; max-height: none; }
#viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-header, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; }
.viewer-header h2 { margin: 0; color: var(--wine); font: 600 clamp(1.3rem, 3vw, 2rem)/1 var(--editorial); }
.viewer-stage { overflow: auto; background: var(--ink); text-align: center; }
.viewer-stage img { display: block; margin-inline: auto; width: calc(100% * var(--zoom, 1)); height: calc(100% * var(--zoom, 1)); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer-controls { justify-content: center; }
.viewer-controls button { min-height: 39px; padding-inline: clamp(10px, 3vw, 22px); }
button:disabled { opacity: .55; cursor: default; }
@media (max-width: 950px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 790px) {
  .menu > summary { display: list-item; cursor: pointer; font-size: .9rem; color: var(--wine); font-weight: 700; }
  .menu:not([open]) > .nav-links { display: none; }
  .menu[open] > .nav-links { position: absolute; display: grid; gap: 2px; top: calc(100% + 6px); left: 0; right: 0; background: var(--cream); border: 1px solid #591b3550; border-radius: 14px; padding: 12px 21px; }
  .impact-grid, .gallery, .case-grid { grid-template-columns: 1fr 1fr; }
  .growth { grid-column: 1 / -1; }
  .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-grid, .case-grid { grid-template-columns: 1fr; }
  .contact-grid > img { width: min(100%, 360px); }
  .work-frame { min-height: 140px; height: 170px; padding: 8px; }
  .impact-grid article, .skill { padding: 14px; }
  .gallery-card { padding: 8px; }
}
@media (max-width: 345px) {
  .expertise-grid, .gallery, .impact-grid, .form-row { grid-template-columns: 1fr; }
}
.viewer-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-frame { position: relative; }
.work-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.case-analytics { margin: 6px 0 6px 8px; }
