/* Layout: a small multi-page site. Home and My Work are landing pages that branch into
   About Me, Marketing Experience (and its three role pages), Course Projects, Passion
   Projects and Contact. Lace bands, cream panels and espresso-brown showcases carry
   over from the design. It commits to one look (cream, espresso, blush pink), so there is
   no dark theme. */
:root {
  --brown: #381305;
  --brown-soft: #381305;
  --cream: #faf4e6;
  --tan: #beb5a2;
  --pink: #f599b7;
  --white: #fffef8;
  --ink: #381305;
  --postcard: #faf4e6;
  --letterbox: #faf4e6;

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --hand: "Nothing You Could Do", "Bradley Hand", "Segoe Print", cursive;
  --marker: "Rock Salt", "Marker Felt", "Segoe Print", cursive;
  --label: "Jost", Futura, "Century Gothic", "Trebuchet MS", sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 62px;
  --lace-size: 1420px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
body::before { /* paints the phone status-bar strip above the sticky nav */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--tan);
}
main { flex: 1; display: flex; flex-direction: column; overflow-x: clip; }
main > section:last-child { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* Page-to-page transitions: the nav stays put while the old page fades up and away
   and the new one fades in and settles into place (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2, .7, .2, 1) .05s both; }
::view-transition-group(site-nav) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Loading screen (first page of a visit) ---------- */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--cream);
  padding: env(safe-area-inset-top, 0px) var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter-l);
  /* Safety net: fades out on its own even if the page never reports "loaded" */
  animation: intro-out .5s ease 2.8s forwards;
}
html.intro.intro-done .intro-screen { animation: intro-out .5s ease forwards; }
.loader-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.loader-logo {
  width: clamp(96px, 14vw, 150px); height: auto; aspect-ratio: 1; object-fit: cover; clip-path: circle(47.5%);
  animation: intro-pop .7s cubic-bezier(.2, .8, .2, 1.2) both;
}
.loader-name {
  margin-top: 10px; font-family: var(--script); font-size: clamp(48px, 7vw, 84px); line-height: 1.1; color: var(--brown);
  animation: intro-up .6s ease .2s both;
}
.loader-sub {
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(12px, 1.1vw, 14px); color: var(--brown);
  animation: intro-up .6s ease .35s both;
}
.loader-bar { display: block; width: min(220px, 60vw); height: 3px; margin-top: 22px; background: var(--tan); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; animation: intro-fill 1.1s cubic-bezier(.4, 0, .2, 1) .15s both; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-pop { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }
@keyframes intro-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes intro-fill { from { transform: scaleX(0); } }

/* Other browsers (html.no-vt, set in each page's head) get the same feel from CSS + main.js */
.no-vt main, .no-vt .footer { animation: page-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.no-vt.is-leaving main, .no-vt.is-leaving .footer { opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

.page-role { background: var(--brown); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--cream); padding: 10px 14px; font-weight: 700;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Outline in the background color for lettering that sits in front of other lettering */
.halo {
  --halo: var(--cream);
  --hw: .045em;
  text-shadow:
    var(--hw) 0 var(--halo),
    calc(var(--hw) * -1) 0 var(--halo),
    0 var(--hw) var(--halo),
    0 calc(var(--hw) * -1) var(--halo),
    calc(var(--hw) * .707) calc(var(--hw) * .707) var(--halo),
    calc(var(--hw) * -.707) calc(var(--hw) * .707) var(--halo),
    calc(var(--hw) * .707) calc(var(--hw) * -.707) var(--halo),
    calc(var(--hw) * -.707) calc(var(--hw) * -.707) var(--halo),
    calc(var(--hw) * .924) calc(var(--hw) * .383) var(--halo),
    calc(var(--hw) * -.924) calc(var(--hw) * .383) var(--halo),
    calc(var(--hw) * .924) calc(var(--hw) * -.383) var(--halo),
    calc(var(--hw) * -.924) calc(var(--hw) * -.383) var(--halo),
    calc(var(--hw) * .383) calc(var(--hw) * .924) var(--halo),
    calc(var(--hw) * -.383) calc(var(--hw) * .924) var(--halo),
    calc(var(--hw) * .383) calc(var(--hw) * -.924) var(--halo),
    calc(var(--hw) * -.383) calc(var(--hw) * -.924) var(--halo);
}

.lace {
  background-color: var(--tan);
  background-image: url("../images/lace.jpg");
  background-size: var(--lace-size) auto;
  background-position: center top;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(17px, 1.9vw, 26px);
  padding: .45em .5em .42em .6em;
  border: 3px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: .85em; height: .85em; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--brown); color: var(--cream); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream); }
.btn-framed { box-shadow: 0 0 0 4px var(--cream); }
.btn-sm { font-size: clamp(18px, 1.95vw, 26px); padding: .42em .55em .38em .62em; }
.btn-lg { font-size: clamp(20px, 2.4vw, 32px); border-width: 4px; padding: .4em .5em .37em .55em; }

/* "Next:" hand-offs */
.next {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  margin-top: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase;
}
.next span { font-size: clamp(13px, 1.25vw, 17px); letter-spacing: 0; line-height: 1; }
.next a {
  display: inline-flex; align-items: center; gap: .45em;
  border: 3px solid currentColor;
  padding: .35em .4em .32em .45em;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(15px, 1.4vw, 19px);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.next a svg { width: .9em; height: .9em; }
.next-light { color: var(--white); }
.next-light a:hover { background: var(--white); color: var(--brown); }
.next-dark { color: var(--brown); }
.next-dark a { background: var(--cream); }
.next-dark a:hover { background: var(--brown); color: var(--cream); }
.next-pink { color: var(--pink); }
.next-pink a:hover { background: var(--pink); color: var(--white); }

/* Back link on inner pages: sits in the nav bar beside the logo, so it takes no room on the page */
.nav-back {
  align-self: center;
  display: inline-flex; align-items: center; gap: .45em;
  margin: 0 auto 0 14px;
  padding: .5em .75em .45em .6em;
  border: 2px solid var(--white);
  color: var(--white); text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1;
  font-size: clamp(12px, 1.05vw, 14px);
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav-back svg { width: .95em; height: .95em; flex: none; transition: transform .2s; }
.nav-back:hover { background: var(--cream); border-color: var(--cream); color: var(--brown); }
.nav-back:hover svg { transform: translateX(-3px); }
.nav-back-short { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h);
  background: var(--tan);
}
.nav-inner { height: 100%; display: flex; align-items: stretch; justify-content: space-between; padding-left: var(--gutter-l); }
.nav-logo {
  align-self: flex-start;
  width: 54px; margin-top: 4px;
  border-radius: 50%;
}
.nav-logo img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  clip-path: circle(47.5%);
}
.nav-links { display: flex; }
.nav-links > a, .nav-item > a {
  display: flex; align-items: center; gap: 8px;
  padding: 0 clamp(12px, 1.45vw, 22px);
  color: var(--white); text-decoration: none;
  font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(17px, 1.8vw, 26px);
  transition: background-color .2s, color .2s;
}
.nav-links > a, .nav-item { border-left: 2px solid var(--cream); }
.nav-links > a:last-child { padding-right: max(clamp(12px, 1.45vw, 22px), env(safe-area-inset-right, 0px)); }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { background: var(--cream); color: var(--brown); }
.nav-icon svg { width: 1.05em; height: 1.05em; }
.nav-icon-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "My Work" with its dropdown */
.nav-item { position: relative; display: flex; }
.nav-item > a { padding-right: 4px; }
.submenu-toggle {
  display: flex; align-items: center;
  padding: 0 clamp(10px, 1.1vw, 16px) 0 4px;
  background: none; border: 0; color: var(--white); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-item:hover, .nav-item.is-open, .nav-item:has(> a[aria-current="page"]) { background: var(--cream); }
.nav-item:hover > a, .nav-item:hover > .submenu-toggle,
.nav-item.is-open > a, .nav-item.is-open > .submenu-toggle,
.nav-item:has(> a[aria-current="page"]) > a, .nav-item:has(> a[aria-current="page"]) > .submenu-toggle { color: var(--brown); }
.nav-item.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu {
  display: none;
  position: absolute; top: 100%; left: -2px; z-index: 60;
  min-width: 270px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--cream);
  border: 2px solid var(--brown);
  box-shadow: 0 14px 28px rgb(56 19 5 / .2);
}
.nav-item:hover .submenu, .nav-item.is-open .submenu { display: block; }
.submenu a {
  display: block; padding: 10px 18px;
  color: var(--brown); text-decoration: none;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2;
  font-size: 16px;
  transition: background-color .15s, color .15s;
}
.submenu-sub a { padding-left: 36px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--pink); color: var(--white); }
.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  margin-right: var(--gutter-r);
  background: none; border: 0; color: var(--white);
  font: 700 18px/1 var(--display); letter-spacing: 0; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* ---------- Home: intro ---------- */
.home-intro { padding-block: clamp(28px, 4.4vw, 60px) clamp(44px, 7vw, 96px); }
.intro { max-width: 1071px; }
.tags {
  list-style: none; margin: 0 0 clamp(10px, 1.1vw, 15px); padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
}
.tags li {
  background: var(--pink); color: var(--white);
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  font-size: clamp(13px, 1.35vw, 18px);
  padding: .55em .85em .5em;
}
.intro-card {
  background: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 32px) clamp(18px, 1.6vw, 21px) clamp(24px, 4.4vw, 60px) clamp(18px, 2.5vw, 34px);
}
.intro-text { min-width: 0; display: flex; flex-direction: column; }
.intro-name { display: flex; flex-direction: column; color: var(--brown); }
.intro-name .script {
  position: relative; z-index: 1;
  font-size: clamp(88px, 16vw, 220px);
  line-height: 1;
  margin: 0 0 -.22em -.15em; /* rests on top of "BROWN"; only the "y" tail dips in */
}
.intro-name .halo { --hw: .035em; }
.intro-last {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(60px, 10.6vw, 146px);
  letter-spacing: -0.045em; line-height: .86;
  margin-left: -.03em;
}
.intro-bio {
  margin-top: .9em; max-width: 30em;
  text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.2;
  font-size: clamp(15px, 1.6vw, 21px);
}
.intro-bio b, .about-copy b, .two-col b { font-weight: 800; }
.btn-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.3vw, 28px); margin-top: clamp(18px, 1.9vw, 26px); }
.photo-frame {
  margin: 0;
  border: 4px solid var(--pink);
  background: var(--pink);
  aspect-ratio: 369 / 459;
  overflow: hidden;
  max-width: 100%;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 80%; }
.intro-photo { align-self: center; margin-top: clamp(0px, 1.8vw, 26px); }

/* ---------- Section cards (Home + My Work) ---------- */
.explore {
  background: var(--tan);
  padding-block: clamp(36px, 3.9vw, 54px) clamp(22px, 2vw, 28px);
}
.home-intro + .explore { margin-top: clamp(14px, 2vw, 27px); }
.work { display: flex; flex-direction: column; }
.work .explore { flex: 1; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 1.8vw, 24px) clamp(16px, 1.8vw, 24px); }
.explore-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1060px; margin-inline: auto; gap: clamp(36px, 3vw, 40px) clamp(18px, 3vw, 40px); }
.ecard { position: relative; display: flex; flex-direction: column; background: var(--cream); margin-bottom: 24px; }
.ecard-img { border: 5px solid var(--brown); border-bottom: 0; aspect-ratio: 300 / 220; overflow: hidden; }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.94); transition: transform .5s ease, filter .35s ease; }
.ecard { cursor: pointer; }
.ecard:hover .ecard-img img, .ecard:focus-within .ecard-img img { transform: scale(1.04); filter: brightness(1.2); }
.ecard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px clamp(14px, 1.6vw, 20px) 50px; }
.ecard h3, .ecard h2 {
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: .95;
  font-size: clamp(27px, 2.6vw, 36px);
}
.ecard p { margin: 0; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: 0; line-height: 1.4; text-wrap: pretty; }
.ecard-btn { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); }

/* ---------- About ---------- */
.about { padding-block: clamp(20px, 2.6vw, 36px) clamp(28px, 2.5vw, 34px); }
.about-card {
  background: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 2.4vw, 32px) clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2vw, 28px) clamp(16px, 3vw, 40px) clamp(24px, 2.4vw, 32px);
}
.about-left { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.about-title { display: flex; align-items: baseline; justify-content: center; gap: .24em; color: var(--brown); font-weight: 400; line-height: .9; margin-bottom: clamp(14px, 1.4vw, 20px); }
.about-title .script { position: relative; z-index: 1; top: -.16em; font-size: clamp(84px, 11vw, 150px); } /* lifted so the "t" only grazes "ME" */
.about-me { font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(44px, 5.4vw, 74px); }
.about-photo {
  position: relative;
  width: min(100%, 369px);
  margin-bottom: clamp(104px, 9vw, 124px);
  container-type: inline-size;
}
.about-photo .photo-frame { width: 100%; }
.sticker {
  position: absolute; left: -1%; bottom: -24%; width: 80%;
  background: var(--brown-soft); color: var(--white);
  border-radius: 6cqw;
  padding: 3.4cqw 3.4cqw 3.6cqw;
  text-align: center;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgb(56 19 5 / .25);
}
.sticker p { margin: 0; }
.sticker-hello { font: 700 12cqw/0.95 var(--label); text-transform: uppercase; letter-spacing: .02em; }
.sticker-my { font: 700 5.4cqw/1.1 var(--label); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2.6cqw !important; }
.sticker-name {
  background: var(--white); color: var(--brown-soft);
  border-radius: 1.6cqw;
  font: 400 8cqw/1.25 var(--marker);
  padding: 3cqw 2cqw 4cqw;
  letter-spacing: 0;
}
.star { position: absolute; color: var(--white); filter: drop-shadow(0 1px 2px rgb(56 19 5 / .2)); }
.star-1 { width: 30cqw; height: 30cqw; right: 3%; bottom: 3%; transform: rotate(-10deg); }
.star-2 { width: 14cqw; height: 14cqw; right: -6%; bottom: 17%; transform: rotate(12deg); }
.star-3 { width: 18cqw; height: 18cqw; right: 1%; bottom: -10%; transform: rotate(-4deg); }

.about-right { min-width: 0; }
.about-copy { display: grid; gap: .65em; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.38; letter-spacing: -0.01em; }
.about-copy p { max-width: 42em; }
.skills-title {
  display: flex; align-items: center; gap: .3em;
  margin-top: clamp(22px, 2.2vw, 30px);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(22px, 2.8vw, 38px);
}
.skills-title::before, .skills-title::after { content: ""; flex: 1; min-width: 12px; height: .48em; background: var(--pink); }
.rule-title {
  display: flex; align-items: center; gap: .4em;
  margin-top: 8px;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em; line-height: 1;
  font-size: clamp(17px, 1.8vw, 24px);
}
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 3px; background: var(--pink); }
.software {
  list-style: none; margin: clamp(14px, 1.4vw, 20px) 0 0; padding: 0 clamp(0px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px) clamp(10px, 2vw, 28px);
  text-align: center;
  font-size: clamp(11px, 1vw, 13px); letter-spacing: 0; line-height: 1.2;
}
.software li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.icon {
  width: min(100%, 121px); aspect-ratio: 1;
  border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 2px 6px rgb(56 19 5 / .12);
  transition: transform .2s;
}
.software li:hover .icon { transform: translateY(-3px); }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-zoom img { transform: scale(1.26); }

.about-lists { grid-column: 1 / -1; display: grid; gap: clamp(10px, 1.2vw, 16px); }
.list-title {
  display: flex; align-items: center; gap: .3em;
  color: var(--pink);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(21px, 2.1vw, 29px);
  margin-inline: calc(-1 * clamp(16px, 3vw, 40px)) 0;
}
.list-title::before { content: ""; width: clamp(20px, 5.8vw, 80px); height: 3px; background: var(--pink); }
.list-title::after { content: ""; flex: 1; height: 3px; background: var(--pink); }
.two-col + .list-title { margin-top: 8px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); padding-left: clamp(0px, 2vw, 30px); }
.two-col ul { margin: 0; padding-left: 1.1em; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.38; letter-spacing: -0.01em; }
.two-col li::marker { color: var(--brown); }
.two-col ul ul { font-size: 1em; padding-left: 1.6em; list-style: circle; }

/* ---------- Banners ---------- */
.pink-banner {
  display: inline-block; max-width: 100%;
  background: var(--pink); color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(34px, 6.2vw, 84px);
  padding: .1em .25em .08em max(var(--gutter-l), 3.4vw);
}
.brown-banner {
  background: var(--brown); color: var(--white);
  text-align: center;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(38px, 6.3vw, 86px);
  padding: .12em var(--gutter-r) .12em var(--gutter-l);
}
.lace-band {
  height: clamp(40px, 5.3vw, 72px);
  background: var(--tan) url("../images/lace.jpg") center / var(--lace-size) auto;
}
.lace-band-thin { height: clamp(18px, 2.2vw, 30px); }

/* ---------- Marketing experience ---------- */
.experience { padding-block: clamp(22px, 2.6vw, 36px) clamp(24px, 2.2vw, 30px); }
.exp-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.8vw, 52px);
  max-width: 1194px; margin: clamp(40px, 4.2vw, 56px) auto 0;
}
.xcard { background: var(--tan); display: flex; flex-direction: column; min-width: 0; }
.xcard-img {
  position: relative; aspect-ratio: 364 / 205;
  background: var(--brown);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}
.xcard-img img {
  position: absolute; left: 4px; top: 4px;
  width: calc(100% - 8px); height: calc(100% - 9px);
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 81.5%, 50% 100%, 0 81.5%);
  filter: brightness(.86);
  transition: transform .5s ease, filter .35s ease;
}
.xcard { cursor: pointer; }
.xcard:hover .xcard-img img, .xcard:focus-within .xcard-img img { transform: scale(1.03); filter: brightness(1.08); }
.xcard-btn { align-self: center; margin-top: -1.15em; position: relative; z-index: 1; font-size: clamp(19px, 2.2vw, 30px); }
.xcard-text { padding: clamp(30px, 4.4vw, 58px) 6px 10px 6px; }
.xcard-role { text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; font-size: clamp(15px, 1.55vw, 21px); }
.xcard-org {
  margin-top: .1em;
  color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: .95;
  font-size: clamp(34px, 3.9vw, 54px);
}
.resume-row { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 54px); }

/* ---------- Role pages (brown) ---------- */
.role { background: var(--brown); color: var(--cream); padding-bottom: clamp(26px, 3vw, 40px); }
.role-head { text-align: center; padding-top: clamp(26px, 3.4vw, 46px); position: relative; }
.role-title {
  position: relative; z-index: 1;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: .9;
  font-size: clamp(44px, 6.6vw, 92px);
  color: var(--cream);
}
.role-title.halo { --halo: var(--brown); --hw: .04em; }
.role-sub { margin-top: .35em; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(16px, 2.1vw, 28px); }
.role-rule { border: 0; height: 4px; background: var(--pink); margin: clamp(16px, 1.8vw, 24px) 0 0; }
.role-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(20px, 5vw, 72px); align-items: start;
  padding-top: clamp(22px, 2.4vw, 32px);
}
/* One paragraph per role, key parts in bold */
.role-body:has(> .role-summary) { display: block; }
.role-summary {
  max-width: 900px; margin-inline: auto;
  font-size: clamp(18px, 1.75vw, 23px); line-height: 1.6; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.role-summary b { font-weight: 800; color: var(--white); }
.role-intro { min-width: 0; }
.role-meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.role-overview { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -0.01em; }
.role-points { margin: 0; padding-left: 1.2em; display: grid; gap: .7em; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; letter-spacing: -0.005em; }
.role-points li::marker { color: var(--pink); }

/* ---------- Gallery pages (cream) ---------- */
.gallery { padding-bottom: clamp(20px, 2.5vw, 34px); }
.gallery .carousel { --dim: brightness(.72) saturate(.85); }
.gallery .car-caption { color: var(--brown); }

/* ---------- Carousel ---------- */
.carousel {
  --w: clamp(210px, 27.8vw, 380px);
  --dim: brightness(.55);
  position: relative;
  height: calc(var(--w) * 1.25 + 24px);
  margin-top: clamp(20px, 2.6vw, 36px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
/* Each frame takes its piece's real shape (--ar = width / height, set per slide), fitted inside
   a box --w wide and 1.25 x --w tall. main.js spaces the frames by their actual widths. */
.slide {
  --ar: 4 / 5;
  position: absolute; left: 50%; top: 50%;
  width: min(var(--w), var(--w) * 1.25 * var(--ar));
  aspect-ratio: var(--ar);
  box-sizing: content-box;
  padding: 0; margin: 0;
  border: 4px solid var(--pink);
  background-color: var(--brown);
  cursor: pointer;
  transform: translate(-50%, -50%) translateX(var(--tx, 0px)) scale(var(--s, 1));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .45s;
}
.slide img, .slide video {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
  filter: var(--dim); transition: filter .45s;
}
.gallery .slide { background-color: var(--letterbox); }
.car-probe { position: absolute; width: var(--w); height: 0; visibility: hidden; pointer-events: none; }
.slide.is-video::after {
  content: "\25B6  Reel";
  position: absolute; left: 8px; top: 8px;
  padding: 4px 8px 3px;
  background: var(--pink); color: var(--white);
  font: 700 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.slide.is-active { cursor: zoom-in; }
.slide.is-active img, .slide.is-active video { filter: none; }
/* Hovering an image brightens it: dimmed side images light up fully, the center one lifts slightly */
@media (hover: hover) {
  .slide:hover img, .slide:hover video { filter: brightness(1); }
  .slide.is-active:hover img, .slide.is-active:hover video { filter: brightness(1.08); }
}
.slide:focus-visible img { filter: brightness(1); }
.slide.is-hidden { opacity: 0; pointer-events: none; }
.car-btn {
  position: absolute; top: 50%; z-index: 30;
  transform: translateY(-50%);
  width: clamp(40px, 4.3vw, 58px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--cream); color: var(--brown);
  border: 0; padding: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.car-btn svg { width: 72%; height: 72%; }
.car-btn:hover { background: var(--pink); color: var(--white); }
.car-prev { left: max(16px, 3.4vw, env(safe-area-inset-left, 0px)); }
.car-next { right: max(16px, 3.4vw, env(safe-area-inset-right, 0px)); }
/* Counter + thumbnail strip under each carousel (built by main.js) */
.car-meta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: clamp(12px, 1.3vw, 16px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.car-count { font-size: 14px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: .85; }
/* One scrolling row, so a 27-piece gallery doesn't stack into a wall of thumbnails */
.car-thumbs {
  display: flex; gap: 8px;
  max-width: min(100%, 940px);
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px 2px 8px;
  scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
}
.car-thumbs::-webkit-scrollbar { height: 6px; }
.car-thumbs::-webkit-scrollbar-thumb { background: var(--pink); }
/* Thumbnails share one height and keep each piece's shape (very wide banners are capped) */
.car-thumbs { align-items: center; }
.car-thumb {
  --ar: 4 / 5;
  position: relative; flex: none;
  height: clamp(50px, 4.4vw, 62px);
  aspect-ratio: var(--ar);
  max-width: calc(clamp(50px, 4.4vw, 62px) * 2.2);
  padding: 0; border: 2px solid transparent; background: none; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.car-thumb.is-video::after {
  content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--white); font-size: 13px; text-shadow: 0 1px 3px rgb(0 0 0 / .6); pointer-events: none;
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: filter .2s; }
.car-thumb:hover img, .car-thumb.is-active img, .car-thumb:focus-visible img { filter: none; }
.car-thumb:hover { transform: translateY(-2px); }
.car-thumb.is-active { border-color: var(--pink); }
.gallery .car-meta { color: var(--brown); }
.gallery .car-thumb img { filter: brightness(.75) saturate(.85); }
.gallery .car-thumb:hover img, .gallery .car-thumb.is-active img { filter: none; }

/* ---------- Image placeholders: a soft light sweeps across each frame until its picture loads ---------- */
@keyframes media-shimmer { from { background-position: 130% 0, 0 0; } to { background-position: -30% 0, 0 0; } }
@keyframes media-in { from { opacity: 0; } }
.media-wait {
  --shine: rgb(255 254 248 / .6);
  --wait-tint: rgb(190 181 162 / .3);
  background-image:
    linear-gradient(100deg, transparent 35%, var(--shine) 50%, transparent 65%),
    linear-gradient(var(--wait-tint), var(--wait-tint));
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: media-shimmer 1.4s ease-in-out infinite;
}
/* On the brown role pages the sweep is a faint cream glow instead */
.slide.media-wait, .car-thumb.media-wait { --shine: rgb(250 244 230 / .16); --wait-tint: rgb(250 244 230 / .06); }
.gallery .slide.media-wait, .gallery .car-thumb.media-wait { --shine: rgb(255 254 248 / .6); --wait-tint: rgb(190 181 162 / .3); }
.media-pending { opacity: 0; }
.media-in { animation: media-in .45s ease both; }

.car-caption {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  margin-top: clamp(14px, 1.6vw, 22px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.car-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pink);
}
.gallery .car-kicker { color: var(--brown); }
.car-tools { font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.car-title {
  font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.2;
  font-size: clamp(17px, 2vw, 26px);
  min-height: 1.2em; text-wrap: balance;
}
.car-desc {
  max-width: 58ch; min-height: 2.8em;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.4; letter-spacing: 0;
  opacity: .88; text-wrap: pretty;
}
.car-link a, .lb-link a {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--pink); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: underline; text-underline-offset: 3px;
}
.car-link a:hover, .lb-link a:hover { color: var(--white); }
.gallery .car-link a:hover { color: var(--brown); }

/* ---------- Contact / postcard ---------- */
.contact { padding-block: clamp(28px, 4.4vw, 60px) clamp(24px, 2.2vw, 30px); }
.postcard {
  position: relative;
  max-width: 1004px; margin: clamp(8px, 2vw, 28px) auto 0;
  aspect-ratio: 1934 / 1258;
  background: var(--postcard) url("../images/postcard.jpg") center / 100% 100% no-repeat;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgb(56 19 5 / .22);
  container-type: inline-size;
  color: var(--ink);
}
.pc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-stamp {
  position: absolute; left: 78.6%; top: 4.2%; width: 20.4%; height: auto;
  aspect-ratio: 1; object-fit: cover; clip-path: circle(46%);
  transform: rotate(-4deg);
}
.pc-message {
  position: absolute; left: 2.8%; top: 14.5%; width: 57%;
  font-family: var(--hand); font-size: 2.45cqw; line-height: 1.68; letter-spacing: .01em;
  transform: rotate(-1.6deg); transform-origin: left top;
  display: grid; gap: 1.2em;
}
.pc-sign { font-family: var(--hand); font-size: 2.7cqw; letter-spacing: .01em; }
.pc-line { position: absolute; left: 59.2%; width: 35.6%; text-align: center; line-height: 1.2; transform: rotate(-1deg); }
.pc-line-1 { top: calc(54.4% - 1.25em); }
.pc-line-2 { top: calc(64.1% - 1.25em); }
.pc-line-3 { top: calc(74.7% - 1.25em); }
.pc-line-4 { top: calc(85.5% - 1.25em); left: 64%; width: 30.8%; font-size: .78em; }
.pc-line a { text-decoration: none; }
.pc-line a:hover { text-decoration: underline; }
.contact .next { margin-top: clamp(18px, 2vw, 26px); }

/* Contact header + large contact buttons (above the postcard) */
.contact-head {
  max-width: 1004px; margin: 0 auto;
  background: var(--cream); padding: clamp(16px, 2.4vw, 28px) clamp(18px, 3vw, 36px) clamp(18px, 2.4vw, 26px);
}
.contact-title { display: flex; align-items: baseline; gap: .18em; font-weight: 400; color: var(--brown); line-height: .9; }
.contact-title .script { font-size: clamp(70px, 9vw, 124px); position: relative; z-index: 1; }
.contact-word { font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(42px, 5.6vw, 78px); margin-left: .05em; }
.contact-intro { margin-top: 10px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; max-width: 46ch; }
.contact-cards {
  list-style: none; max-width: 1004px; margin: clamp(14px, 2vw, 22px) auto 0; padding: 0;
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(10px, 1.6vw, 18px);
}
.ccard { display: flex; flex-direction: column; background: var(--brown); min-width: 0; }
.ccard-main {
  flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  color: var(--cream); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.ccard-icon { grid-row: 1 / span 2; width: clamp(34px, 3.4vw, 46px); height: clamp(34px, 3.4vw, 46px); color: var(--pink); transition: color .2s; }
.ccard-label { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(22px, 2.4vw, 32px); }
.ccard-value { font-size: clamp(14px, 1.3vw, 17px); opacity: .85; overflow-wrap: anywhere; }
.ccard-main:hover, .ccard-main:focus-visible { background: var(--pink); color: var(--white); }
.ccard-main:hover .ccard-icon, .ccard-main:focus-visible .ccard-icon { color: var(--brown); }
.ccard-copy {
  border: 0; border-top: 2px solid rgb(250 244 230 / .2);
  background: transparent; color: var(--cream); cursor: pointer;
  padding: 10px 14px; font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  transition: background-color .2s, color .2s;
}
.ccard-copy:hover { background: var(--cream); color: var(--brown); }
.contact .postcard { margin-top: clamp(24px, 3.4vw, 44px); }

/* Home: headline numbers teaser under the bio, links down to By the Numbers */
.teaser {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
  margin-top: clamp(14px, 1.6vw, 20px);
  text-decoration: none; color: var(--brown);
}
.teaser-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 9px; border: 2px solid var(--brown); background: var(--brown); color: var(--cream); transition: border-color .2s, background-color .2s; }
.teaser-stat b { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(20px, 2vw, 26px); line-height: 1; color: var(--pink); }
.teaser-stat span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.teaser-more { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.teaser-more svg { width: 16px; height: 16px; transition: transform .2s; }
.teaser:hover .teaser-stat, .teaser:focus-visible .teaser-stat { border-color: var(--pink); }
.teaser:hover .teaser-more svg { transform: translateY(3px); }
.numbers, .explore { scroll-margin-top: calc(var(--nav-h) + 8px); }
.numbers-next { margin-top: clamp(16px, 2vw, 24px); display: flex; justify-content: center; }
.numbers-next .teaser-more { color: var(--brown); text-decoration-color: var(--pink); }
.numbers-next .teaser-more:hover svg { transform: translateY(3px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.footer {
  background: var(--brown); color: var(--cream);
  border-top: 1px solid rgb(250 244 230 / .14);
  font-size: 14px; letter-spacing: .01em;
  padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: transparent; color: var(--cream);
  display: none;
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: rgb(56 19 5 / .92); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 8px 24px; max-height: 100%; }
.lb-figure img, .lb-figure video {
  max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px);
  width: auto; height: auto; object-fit: contain;
  border: 4px solid var(--pink); background: var(--brown);
}
.lb-cap { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 62ch; }
.lb-count { font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .7; font-variant-numeric: tabular-nums; }
.lb-title { text-transform: uppercase; letter-spacing: 0; font-size: clamp(15px, 1.7vw, 20px); font-weight: 800; }
.lb-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.lb-tools { font-size: 13px; font-weight: 600; opacity: .7; }
.lb-desc { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.4; opacity: .85; }
.lb-close {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border: 0; background: var(--cream); color: var(--brown);
  font: 400 32px/1 var(--display); cursor: pointer;
}
.lb-nav {
  width: clamp(40px, 4.3vw, 54px); aspect-ratio: 1; display: grid; place-items: center;
  margin-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  border: 0; background: var(--cream); color: var(--brown); cursor: pointer; padding: 0;
}
.lb-nav svg { width: 70%; height: 70%; }
.lb-close:hover, .lb-nav:hover { background: var(--pink); color: var(--white); }

/* ---------- Featured work (Home) ---------- */
.featured { padding-block: clamp(30px, 4vw, 52px) clamp(30px, 4vw, 52px); background: var(--cream); }
.featured-title { display: flex; align-items: baseline; gap: .2em; color: var(--brown); font-weight: 400; line-height: .9; margin-bottom: clamp(18px, 2.4vw, 30px); }
.featured-title .script { position: relative; z-index: 1; font-size: clamp(64px, 8.4vw, 118px); }
.featured-word { font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(36px, 4.6vw, 64px); margin-left: -.15em; }
.featured-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.fcard { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; color: var(--brown); }
.fcard-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 4px solid var(--pink); background: var(--brown); margin-bottom: 6px; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.94); transition: transform .5s ease, filter .35s ease; }
.fcard:hover .fcard-img img, .fcard:focus-visible .fcard-img img { transform: scale(1.04); filter: brightness(1.12); }
.fcard-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.fcard-title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(19px, 1.7vw, 24px); text-wrap: balance; }
.fcard-line { font-size: 15px; line-height: 1.4; opacity: .85; }
.fcard:hover .fcard-title { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- By the Numbers (Home) ---------- */
.numbers { padding-block: clamp(30px, 4vw, 52px); background: var(--cream); }
.numbers-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ntile {
  height: 100%; display: flex; flex-direction: column; gap: 4px;
  padding: clamp(16px, 2vw, 24px); text-decoration: none;
  background: var(--brown); color: var(--cream);
  border: 3px solid var(--brown);
  transition: background-color .2s, color .2s, border-color .2s;
}
.ntile b { font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(34px, 4.6vw, 64px); color: var(--pink); font-variant-numeric: tabular-nums; }
.numbers .featured-title { margin-bottom: clamp(20px, 2.6vw, 32px); gap: .3em; }
.numbers .featured-word { margin-left: .2em; }

/* Featured client results (KME.Digital) */
.featured-results { padding-top: clamp(14px, 2vw, 22px); scroll-margin-top: 80px; color: var(--cream); }
/* Compact: a slim row of results that doesn't push the gallery down */
.featured-results .results-title { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em; padding-bottom: 6px; border-bottom-width: 2px; }
.fr-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fr-grid li { border: 2px solid var(--pink); padding: 8px 12px 9px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fr-grid b { font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(24px, 2.4vw, 34px); color: var(--pink); font-variant-numeric: tabular-nums; }
.fr-grid span { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 12px; line-height: 1.2; }
.featured-results .results-source { margin-top: 6px; font-size: 12px; }

/* Centered, narrower results block under the centered page title */
.featured-results, .akpsi-results { max-width: 900px; margin-inline: auto; text-align: center; padding-top: clamp(18px, 2.2vw, 28px); }
.featured-results .results-title, .akpsi-results .results-period {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink); opacity: 1; border: 0; padding: 0; margin: 0;
}
.featured-results .results-title::before, .featured-results .results-title::after,
.akpsi-results .results-period::before, .akpsi-results .results-period::after { content: ""; flex: 1; height: 2px; background: var(--pink); opacity: .6; }
.fr-grid { margin-top: 14px; gap: 10px; }
.fr-grid li { align-items: center; text-align: center; padding: 12px 10px 13px; gap: 5px; }
.featured-results .results-source { margin-top: 10px; opacity: .55; }
.akpsi-results .big-stats { margin-top: 14px; max-width: 760px; margin-inline: auto; }
.akpsi-results .big-stats li { justify-content: center; text-align: center; padding: 12px 14px 13px; }
.featured-results { padding-bottom: clamp(10px, 1.4vw, 18px); }

/* Role page opening: what I did beside the results, then a labeled gallery */
.role-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px); align-items: center;
  padding-top: clamp(20px, 2.4vw, 32px);
}
.role-top .role-summary { max-width: none; margin: 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.role-top .featured-results { max-width: none; margin: 0; padding: 0; }
.role-top .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-top-single { display: block; }
.role-top-single .role-summary { max-width: 880px; margin-inline: auto; text-align: center; }
.samples-title {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(28px, 3.2vw, 44px);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
}
.samples-title::before, .samples-title::after { content: ""; flex: 1; height: 2px; background: var(--pink); opacity: .6; }
.samples-title + .carousel { margin-top: clamp(14px, 1.8vw, 24px); }
@media (max-width: 860px) {
  .role-top { grid-template-columns: minmax(0, 1fr); }
  .role-top .role-summary { text-align: center; }
}
.ntile-label { font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.2; margin-top: 6px; }
.ntile-src { font-size: 13px; letter-spacing: .02em; opacity: .75; }
.ntile:hover, .ntile:focus-visible { background: var(--cream); color: var(--brown); border-color: var(--pink); }

/* ---------- Client results (KME.Digital) ---------- */
.client-results { padding-top: clamp(28px, 3.6vw, 48px); scroll-margin-top: 80px; }
.results-title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1; font-size: clamp(32px, 4vw, 54px); color: var(--cream); padding-bottom: 10px; border-bottom: 3px solid var(--pink); }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.rcard { border: 2px solid var(--pink); padding: clamp(16px, 2vw, 22px); color: var(--cream); min-width: 0; }
.rcard h3 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.05; }
.results-period { margin-top: 4px; font-size: 13px; letter-spacing: .03em; opacity: .75; }
.rstats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.rstats li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid rgb(250 244 230 / .18); }
.rstats li:first-child { border-top: 0; padding-top: 0; }
.rstats b { font-weight: 800; letter-spacing: -0.03em; color: var(--pink); font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-variant-numeric: tabular-nums; }
.rstats span { font-size: 15px; line-height: 1.3; }
.results-source { margin-top: 12px; font-size: 13px; color: var(--cream); opacity: .6; }

/* ---------- AKPsi analytics layout ---------- */
.akpsi-results { padding-top: clamp(14px, 2vw, 22px); color: var(--cream); }
.akpsi-results .results-period { font-size: 14px; }
.big-stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.big-stats li { border: 2px solid var(--pink); padding: 10px 16px 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.big-stats b { font-weight: 800; letter-spacing: -0.05em; line-height: .9; font-size: clamp(30px, 3.2vw, 44px); color: var(--pink); font-variant-numeric: tabular-nums; }
.big-stats span { order: 3; flex-basis: 100%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 12px; }
.big-stats em { font-style: normal; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(15px, 1.4vw, 19px); color: var(--brown); background: var(--cream); padding: .25em .4em .2em; white-space: nowrap; }
.big-stats em::before { content: "\25B2 "; font-size: .6em; vertical-align: .2em; }
.akpsi-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: clamp(26px, 3.4vw, 44px); color: var(--cream); }
.akpsi-phone { margin: 0; justify-self: center; width: min(100%, 340px); }
.akpsi-phone img { width: 100%; height: auto; border: 4px solid var(--pink); border-radius: 18px; background: var(--brown); }
.akpsi-phone figcaption, .akpsi-note { margin-top: 10px; font-size: 14px; opacity: .8; }
.akpsi-phone figcaption { text-align: center; }
.akpsi-side { min-width: 0; }
.akpsi-h { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; padding-bottom: 8px; border-bottom: 3px solid var(--pink); }
.akpsi-h + * { margin-top: 16px; }
.akpsi-side .akpsi-h:not(:first-child) { margin-top: clamp(28px, 3.4vw, 44px); }
.bars { list-style: none; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 56px; align-items: center; gap: 12px; }
.bar-label { font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.bar { height: 22px; background: rgb(250 244 230 / .12); }
.bar i { display: block; height: 100%; background: var(--pink); }
.bars b { color: var(--pink); font-weight: 800; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.akpsi-post { margin: 0; display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 18px; align-items: start; }
.akpsi-post img { width: 100%; height: auto; border: 4px solid var(--pink); }
.akpsi-post figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.4; }
.akpsi-post figcaption b { font-weight: 800; text-transform: uppercase; font-size: 19px; letter-spacing: -0.01em; }
.akpsi .role-rule { margin-top: clamp(30px, 4vw, 50px); }

/* ---------- Stat tiles (case study + role results) ---------- */
.stat-tiles {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.stat-tiles li { padding: 9px 12px 10px; background: var(--brown); color: var(--cream); border: 2px solid var(--brown); display: flex; flex-direction: column; gap: 4px; }
.stat-tiles b { color: var(--pink); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(22px, 2.2vw, 30px); font-variant-numeric: tabular-nums; }
.stat-tiles span { font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.role-results { margin-top: clamp(16px, 2vw, 26px); max-width: 980px; }
.role .stat-tiles li { background: transparent; border-color: var(--pink); color: var(--cream); }
.role .stat-tiles b { color: var(--pink); }
.stat-tiles li.is-placeholder { border-style: dashed; opacity: .7; }

/* ---------- Case study ---------- */
.page-case main { background: var(--cream); }
.case-hero { background: var(--brown); color: var(--cream); padding-block: clamp(26px, 4vw, 54px) clamp(30px, 4vw, 52px); }
.case-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.case-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font-weight: 400; line-height: .9; margin-top: 6px; }
.case-title .script { font-size: clamp(60px, 10vw, 140px); }
.case-title .halo { --halo: var(--brown); --hw: .035em; }
.case-title-word { font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(40px, 7vw, 100px); }
.case-sub { margin-top: 10px; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(17px, 2vw, 26px); }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; margin: clamp(20px, 3vw, 32px) 0 0; padding-top: 18px; border-top: 2px solid rgb(250 244 230 / .25); }
.case-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.case-meta dd { margin: 4px 0 0; font-size: 16px; line-height: 1.4; }
.case-hero .btn-row { margin-top: clamp(20px, 2.6vw, 30px); }
.btn-on-dark { border-color: var(--cream); color: var(--cream); }
.btn-on-dark:hover { background: var(--cream); color: var(--brown); }

.case-section {
  display: grid; grid-template-columns: clamp(56px, 8vw, 110px) minmax(0, 1fr); gap: clamp(12px, 3vw, 40px);
  padding-top: clamp(32px, 4.4vw, 60px);
}
.case-section + .case-section { border-top: 0; }
.case-step { font-weight: 800; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.05em; line-height: .9; color: var(--pink); font-variant-numeric: tabular-nums; }
.case-body { min-width: 0; max-width: 820px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; }
.case-body > * + * { margin-top: 14px; }
.case-body h2 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(30px, 3.6vw, 48px); padding-bottom: 10px; border-bottom: 3px solid var(--pink); }
.case-body h3 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 17px; margin-top: 22px; }
.case-body ul, .case-body ol { padding-left: 1.2em; }
.case-body li + li { margin-top: 6px; }
.case-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.case-cols h3 { margin-top: 6px; }
.case-list li::marker { font-weight: 800; color: var(--pink); }
.case-quote { margin: 20px 0 0; padding: 18px 22px; background: var(--brown); color: var(--cream); }
.case-quote p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }
.case-quote footer { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0 !important; padding: 6px 12px 5px; background: var(--pink); color: var(--white); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.case-figure { margin: 18px 0 0; border: 4px solid var(--pink); background-color: var(--white); }
.case-figure img { width: 100%; height: auto; }
.swatches { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.swatches li { margin: 0 !important; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.swatches i { display: block; height: 56px; border: 2px solid var(--brown); margin-bottom: 6px; }
.swatches span { font-variant-numeric: tabular-nums; opacity: .8; letter-spacing: .02em; }
.case-note { font-size: 16px; }
.persona { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 20px; padding: 14px; background: var(--white); border: 2px solid var(--brown); }
.persona img { width: 100%; height: auto; }
.persona h3 { margin-top: 0; }
.persona p { margin-top: 6px; font-size: 16px; }
.funnel { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px !important; counter-reset: step; }
.funnel li { margin: 0 !important; position: relative; padding: 14px 16px 16px; background: var(--pink); color: var(--white); display: flex; flex-direction: column; gap: 4px; }
.funnel li:nth-child(2) { background: var(--tan); color: var(--brown); }
.funnel li:nth-child(3) { background: var(--brown); }
.funnel b { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 18px; }
.funnel span { font-size: 15px; line-height: 1.4; }
.table-scroll { overflow-x: auto; }
.kpi { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--white); }
.kpi th, .kpi td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--tan); }
.kpi thead th { background: var(--brown); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kpi td:last-child { font-weight: 700; }
.case-book { margin-top: clamp(40px, 5vw, 70px); }
.case-stats { padding-top: clamp(22px, 3vw, 36px); }
.case-stats .stat-tiles { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-bars { margin-top: 18px; }
.case-bars li { grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 64px; }
.case-bars .bar { background: var(--tan); }
.case-bars .bar-label { color: var(--brown); }
.case-bars b { color: var(--brown); }
.case-trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 18px; }
.case-trio img:nth-child(3) { grid-column: 1 / -1; }
.case-trio img { width: 100%; height: auto; border: 3px solid var(--pink); background: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .explore-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(100%, 330px); }
  .software { padding: 0; }
  .list-title { margin-inline: 0; }
}

@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .nav-toggle { display: inline-flex; }
  .nav-logo { width: 46px; margin-top: 5px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--tan);
    padding: 6px var(--gutter-r) 14px var(--gutter-l);
    box-shadow: 0 10px 20px rgb(56 19 5 / .18);
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links > a, .nav-item { border-left: 0; border-top: 2px solid var(--cream); }
  .nav-links > a, .nav-item > a { padding: 13px 8px; font-size: 21px; }
  .nav-links > a:last-child { padding-right: 8px; }
  .nav-icon-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-back { margin-left: 10px; font-size: 13px; }
  /* On phones the My Work pages are listed right under it instead of in a dropdown */
  .nav-item { flex-direction: column; }
  .nav-item:hover, .nav-item.is-open { background: none; }
  .nav-item:hover > a, .nav-item.is-open > a { color: var(--white); }
  .nav-item:has(> a[aria-current="page"]) { background: none; }
  .nav-item > a[aria-current="page"] { background: var(--cream); color: var(--brown); }
  .submenu-toggle { display: none; }
  .submenu { display: block; position: static; min-width: 0; padding: 0 0 8px; background: none; border: 0; box-shadow: none; }
  .submenu a { color: var(--white); font-size: 16px; padding: 9px 8px 9px 26px; }
  .submenu-sub a { padding-left: 44px; }
  .intro-card { grid-template-columns: minmax(0, 1fr); }
  .intro-photo { max-width: 360px; width: 100%; justify-self: center; margin-top: 0; }
  .exp-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .role-body { grid-template-columns: minmax(0, 1fr); }
  .role-overview { padding-left: 0; }
}

@media (max-width: 720px) {
  /* Postcard turns into a flowing note so the handwriting stays readable */
  .postcard {
    aspect-ratio: auto;
    background-image: none;
    padding: 22px 20px 26px;
    container-type: normal;
    display: flex; flex-direction: column; gap: 14px;
  }
  .pc-title {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    font: 400 26px/1 Georgia, "Times New Roman", serif; font-variant: small-caps; letter-spacing: .06em;
    padding-right: 96px;
  }
  .pc-stamp { left: auto; right: 14px; top: 10px; width: 86px; }
  .pc-message { position: static; width: auto; transform: none; font-size: 19px; line-height: 1.55; gap: 1em; margin-top: 18px; }
  .pc-sign { font-size: 19px; display: grid; gap: 10px; margin-left: auto; width: min(100%, 280px); }
  .pc-line { position: static; width: auto; transform: none; border-bottom: 1px solid rgb(44 26 16 / .55); padding-bottom: 2px; }
  .pc-line-4 { font-size: 16px; }
}

@media (max-width: 860px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntile { padding: 16px 14px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .akpsi-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .big-stats { grid-template-columns: minmax(0, 1fr); }
  .case-section { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .case-cols, .persona, .funnel { grid-template-columns: minmax(0, 1fr); }
  .case-stats .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-bars li { grid-template-columns: 96px minmax(0, 1fr) 66px; gap: 8px; }
  .case-bars .bar-label { font-size: 12px; }
  .case-bars b { font-size: 17px; }
}

@media (max-width: 560px) {
  .nav-back-full { display: none; }
  .nav-back-short { display: inline; }
  .explore-grid, .explore-grid-3 { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
  .software { gap: 14px 8px; font-size: 10.5px; }
  .two-col { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .carousel { --w: min(62vw, 300px); }
  .car-btn { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Where each KME result came from */
.fr-grid small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.3; opacity: .75; text-wrap: balance; }
