/* Boback Shahsafdari portfolio — static, dependency-free */
:root {
  color-scheme: light dark;
  --paper: #f3f0ea;
  --paper-2: #e7e2da;
  --ink: #151514;
  --muted: #68665f;
  --line: rgba(21, 21, 20, .14);
  --panel: rgba(248, 246, 241, .74);
  --deep: #181918;
  --deep-2: #232422;
  --light: #f7f4ee;
  --light-muted: #b8b9b4;
  --red: #d9152d;
  --purple: #7148ff;
  --cyan: #67e4e8;
  --radius-sm: 1rem;
  --radius: 1.75rem;
  --radius-lg: 2.5rem;
  --shell: min(84rem, calc(100vw - 3rem));
  --grid-gap: clamp(1rem, 2.2vw, 2rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1.5rem 4rem rgba(16, 16, 15, .11);
}

:root[data-theme="dark"] {
  --paper: #121312;
  --paper-2: #1b1c1a;
  --ink: #f1eee8;
  --muted: #aaa9a3;
  --line: rgba(255, 255, 255, .14);
  --panel: rgba(25, 26, 24, .78);
  --deep: #080908;
  --deep-2: #151614;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
::selection { color: #fff; background: var(--purple); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }
.pressable { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pressable:active { transform: scale(.975); transition-duration: .1s !important; }
:focus-visible { outline: .18rem solid var(--purple); outline-offset: .25rem; }

.site-header {
  position: fixed;
  top: .75rem;
  left: 50%;
  z-index: 50;
  width: min(84rem, calc(100vw - 1.5rem));
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 .55rem 0 1rem;
  border: 1px solid transparent;
  border-radius: 1.2rem;
  transform: translateX(-50%);
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.has-scrolled {
  background: var(--panel);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 .75rem 2rem rgba(10, 10, 9, .08);
  -webkit-backdrop-filter: blur(1.25rem) saturate(150%);
  backdrop-filter: blur(1.25rem) saturate(150%);
}
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 1.5rem)); }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-size: .86rem; font-weight: 650; letter-spacing: -.01em; }
.brand-mark { display: grid; width: 2.05rem; height: 2.05rem; place-items: center; border-radius: .62rem; background: var(--ink); color: var(--paper); font-weight: 730; }
.site-nav { display: flex; align-items: center; gap: .22rem; padding: .25rem; border-radius: 999px; }
.site-nav a, .theme-button, .back-link { padding: .65rem .84rem; border-radius: 999px; font-size: .8rem; font-weight: 620; letter-spacing: .01em; }
.site-nav a { transition: background-color .2s ease; }
.site-nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-button { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; cursor: pointer; transition: background-color .2s ease, transform .25s var(--ease); }
.theme-button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-dot { width: .55rem; height: .55rem; border: 1px solid var(--ink); border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.menu-button { display: none; }

.hero { position: relative; min-height: 55rem; padding-top: clamp(10rem, 18vh, 13rem); padding-bottom: clamp(5rem, 9vh, 8rem); overflow: hidden; }
.hero-kicker { color: var(--muted); font-size: .75rem; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }
.display { position: relative; z-index: 2; max-width: 12ch; margin: clamp(3rem, 8vh, 5.5rem) 0 0; font-size: clamp(4.2rem, 8.5vw, 8rem); line-height: .91; letter-spacing: -.072em; font-weight: 700; }
.display em, .contact h2 em, .case-intro h1 em { color: var(--purple); font-family: ui-serif, "New York", Georgia, serif; font-weight: 420; letter-spacing: -.055em; }
.hero-bottom { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--grid-gap); margin-top: 4.5rem; }
.hero-intro { max-width: 35rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.42; letter-spacing: -.025em; }
.hero-intro { grid-column: 1 / 7; }
.round-link { grid-column: 10 / 13; justify-self: end; display: flex; width: auto; height: auto; flex-direction: row; align-items: center; justify-content: center; gap: 2.25rem; padding: .9rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 650; transition: color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease); }
.round-link span:last-child { font-size: 1rem; }
.round-link:hover { color: var(--paper); background: var(--ink); transform: scale(1.04); }
.hero-aura {
  position: absolute;
  inset: 0;
  opacity: .9;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 50% at 94% 25%, rgba(113, 72, 255, .38) 0%, rgba(113, 72, 255, .18) 36%, transparent 74%),
    radial-gradient(ellipse 48% 43% at 76% 58%, rgba(103, 228, 232, .27) 0%, rgba(103, 228, 232, .12) 38%, transparent 76%),
    radial-gradient(ellipse 38% 34% at 75% 24%, rgba(255, 127, 103, .23) 0%, rgba(255, 127, 103, .08) 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 72%, transparent 100%);
}
.hero-aura span { display: none; }

.selected-work { padding: 9rem 0 11rem; background: var(--paper-2); }
.section-heading { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--grid-gap); margin-bottom: 4rem; }
.section-heading > div { grid-column: 1 / 7; }
.section-heading > p { grid-column: 9 / 13; max-width: 28rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.eyebrow { margin-bottom: .9rem; color: var(--muted); font-size: .7rem; font-weight: 690; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-light { color: var(--light-muted); }
.section-heading h2, .profile h2, .play h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 5.25rem); line-height: .96; letter-spacing: -.058em; }
.feature-project { margin-bottom: 9rem; }
.project-media { position: relative; display: block; overflow: hidden; background: #dcd9d2; }
.feature-project .project-media { min-height: min(70vw, 51rem); }
.feature-avis .project-media {
  display: grid;
  width: 100%;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 8rem) max(1.5rem, calc((100vw - 70rem) / 2));
  place-items: center;
  border-radius: 0;
  background: #fff;
}
.feature-avis .project-media img {
  height: auto;
  max-height: 48rem;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.feature-avis .project-media:hover img { transform: scale(1.012); }
.project-media img { height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
.project-media:hover img { transform: scale(1.025); }
.project-open { position: absolute; right: 1.3rem; bottom: 1.3rem; display: grid; width: 3.8rem; height: 3.8rem; place-items: center; border-radius: 50%; background: rgba(247, 244, 238, .84); color: #151514; font-size: 1.25rem; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem); transition: transform .35s var(--ease); }
.project-media:hover .project-open { transform: rotate(12deg) scale(1.06); }
.project-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); padding-top: 2.1rem; }
.project-copy > .project-number { grid-column: 1 / 2; }
.project-copy > div:nth-child(2) { grid-column: 2 / 8; }
.project-copy > .project-summary { grid-column: 9 / 13; }
.project-number { color: var(--muted); font-size: .76rem; font-weight: 650; }
.project-copy h3 { max-width: 12ch; margin: 0; font-size: clamp(2.35rem, 4.6vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.project-copy h3 a:hover { color: var(--purple); }
.project-summary p { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 620; }
.project-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.project-pair > :first-child { grid-column: 1 / 7; padding-right: clamp(0rem, 2vw, 2rem); }
.project-pair > :last-child { grid-column: 7 / 13; padding-left: clamp(0rem, 2vw, 2rem); }
.project-card-offset { margin-top: 12rem; }
.project-card .project-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.card-meta .eyebrow { margin-bottom: 0; }
.card-meta span { color: var(--muted); font-size: .7rem; }
.project-card h3, .project-card h2 { max-width: 14ch; margin: 1.4rem 0 1rem; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.03; letter-spacing: -.05em; }
.project-card > p { max-width: 34rem; color: var(--muted); }
.prototype-note { display: flex; width: var(--shell); justify-content: flex-end; margin: 6rem auto 0; color: var(--muted); font-size: .85rem; }
.prototype-note .text-link { margin-top: 0; }

.profile { padding: 10rem 0; background: var(--deep); color: var(--light); }
.profile-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.profile-sticky { grid-column: 1 / 6; }
.profile-content { grid-column: 7 / 13; }
.profile-sticky { align-self: start; position: sticky; top: 8rem; }
.profile-content { padding-top: 7rem; }
.profile-lead { max-width: 28ch; margin-bottom: 5rem; color: var(--light); font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; border-top: 1px solid rgba(255,255,255,.16); }
.capability-grid article { min-height: 15rem; padding: 1.5rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.capability-grid article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); padding-right: 2.5rem; }
.capability-grid span { color: var(--light-muted); font-size: .7rem; }
.capability-grid h3 { margin: 3.6rem 0 .8rem; font-size: 1.15rem; letter-spacing: -.025em; }
.capability-grid p { margin: 0; color: var(--light-muted); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2.5rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; font-size: .8rem; font-weight: 670; transition: gap .25s var(--ease), transform .25s var(--ease); }
.text-link:hover { gap: 1.15rem; }
.text-link-light { color: var(--light); }

.testimonials { padding: 10rem 0; }
.quote-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.quote-grid > :first-child { grid-column: 1 / 6; }
.quote-grid > :last-child { grid-column: 7 / 13; }
.quote { margin-bottom: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.quote blockquote { margin-bottom: 3rem; font-family: ui-serif, "New York", Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -.035em; }
.quote figcaption { display: flex; flex-direction: column; font-size: .8rem; }
.quote figcaption span { margin-top: .2rem; color: var(--muted); }

.play { display: grid; grid-template-columns: 5fr 7fr; min-height: 39rem; margin-bottom: 10rem; padding: 0; overflow: hidden; border-radius: var(--radius-lg); background: #101022; color: white; }
.play-copy { padding: clamp(3rem, 6vw, 6.5rem); align-self: center; }
.play-copy .eyebrow { color: #a7a6bc; }
.play-copy p:not(.eyebrow) { max-width: 32rem; margin-top: 2rem; color: #bfbed0; }
.play-art { position: relative; min-height: 35rem; overflow: hidden; background: linear-gradient(160deg, #160c39 0%, #402068 46%, #fa5e83 76%, #ffb65e 100%); }
.sun { position: absolute; top: 18%; left: 50%; width: 17rem; height: 17rem; border-radius: 50%; transform: translateX(-50%); background: linear-gradient(#fff1bb, #f86a8c); box-shadow: 0 0 4rem rgba(255,126,145,.5); }
.horizon { position: absolute; inset: 57% -20% -25%; transform: perspective(22rem) rotateX(60deg); transform-origin: top; background: repeating-linear-gradient(90deg, transparent 0 4.8rem, rgba(103,228,232,.27) 4.8rem 4.9rem), repeating-linear-gradient(0deg, transparent 0 3rem, rgba(103,228,232,.27) 3rem 3.1rem); }
.beam { position: absolute; top: -10%; width: .08rem; height: 130%; background: rgba(255,255,255,.2); transform-origin: center; }
.beam-one { left: 27%; transform: rotate(-21deg); }
.beam-two { right: 25%; transform: rotate(17deg); }
.play-word { position: absolute; right: 2rem; bottom: 1.6rem; font-size: clamp(2.8rem, 7vw, 7.5rem); font-weight: 760; line-height: .8; letter-spacing: -.065em; color: rgba(255,255,255,.88); mix-blend-mode: overlay; }

.contact { padding: 5rem 0 9rem; }
.contact h2 { max-width: 14ch; margin: 2rem 0 5rem; font-size: clamp(4rem, 8vw, 8.5rem); line-height: .91; letter-spacing: -.07em; }
.contact-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--grid-gap); padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-row p { max-width: 32rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.contact-row p { grid-column: 1 / 7; }
.contact-button { display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-width: 15rem; padding: 1.15rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .82rem; font-weight: 670; transition: transform .3s var(--ease), padding .3s var(--ease); }
.contact-button { grid-column: 10 / 13; justify-self: end; }
.contact-button:hover { padding-inline: 1.5rem 1rem; transform: scale(1.02); }
.client-section { padding: 4.5rem 0 5rem; background: #fff; color: #151514; }
.client-heading { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); align-items: end; gap: var(--grid-gap); margin-bottom: 2.5rem; }
.client-heading .eyebrow { grid-column: 1 / 4; margin-bottom: .5rem; color: #6d6b65; }
.client-heading h2 { grid-column: 5 / 13; max-width: 11ch; margin-bottom: 0; font-size: clamp(2.8rem,5vw,5.25rem); line-height: .96; letter-spacing: -.058em; }
.client-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid rgba(21,21,20,.13); border-left: 1px solid rgba(21,21,20,.13); }
.client-logo { display: grid; min-height: 6.5rem; padding: 1.25rem; place-items: center; border-right: 1px solid rgba(21,21,20,.13); border-bottom: 1px solid rgba(21,21,20,.13); }
.client-logo img { width: auto; max-width: min(100%,7rem); height: auto; max-height: 2.25rem; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .78; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 3rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.site-footer .brand { color: var(--ink); }
.site-footer p { margin: 0; }

/* Case study */
.case-page { background: var(--paper); }
.case-header { grid-template-columns: 1fr auto 1fr; }
.back-link { display: flex; align-items: center; gap: .6rem; justify-self: center; transition: gap .25s var(--ease), transform .25s var(--ease); }
.back-link:hover { gap: .9rem; }
.case-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); min-height: 51rem; align-items: end; padding-top: 12rem; padding-bottom: 5rem; }
.case-intro { grid-column: 1 / 8; }
.case-lede { grid-column: 9 / 13; }
.case-intro h1 { margin-bottom: 0; font-size: clamp(4.2rem, 8vw, 8.3rem); line-height: .88; letter-spacing: -.075em; }
.case-intro h1 em { color: var(--red); }
.case-lede > p { max-width: 32rem; margin-bottom: 5rem; color: var(--muted); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -.035em; }
.case-facts { margin: 0; }
.case-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .82rem; }
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; font-weight: 620; }
.case-cover {
  display: grid;
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 8rem) max(1.5rem, calc((100vw - 70rem) / 2));
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}
.case-cover img {
  width: min(100%, 64rem);
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.avis-fan {
  position: relative;
  height: 175vh;
  height: 175svh;
  min-height: 64rem;
  overflow: hidden;
  overflow: clip;
  background: #fff;
}
.avis-fan-sticky {
  position: sticky;
  top: 0;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 36rem;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.avis-fan-deck { position: relative; width: 100%; height: 100%; }
.avis-fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(22vw, 21rem, 35vh);
  width: min(22vw, 21rem, 35svh);
  margin: 0;
  transform: translate(-50%, -50%);
  transform-origin: 50% 88%;
  will-change: transform;
  pointer-events: none;
}
.avis-fan-card img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1.6rem 1.8rem rgba(42, 34, 30, .18)); }
.avis-fan-far-left, .avis-fan-far-right { z-index: 1; }
.avis-fan-inner-left, .avis-fan-inner-right { z-index: 2; }
.avis-fan-centre { z-index: 5; }
.case-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); padding-top: 10rem; padding-bottom: 10rem; }
.case-section > .case-label { grid-column: 1 / 4; }
.case-section > .case-body { grid-column: 5 / 13; }
.case-label { display: flex; align-items: flex-start; gap: 1.3rem; padding-top: .55rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.case-label span { color: var(--ink); }
.case-label p { margin: 0; }
.case-body { max-width: 58rem; }
.case-body h2, .phone-copy h2, .outcome h2 { margin-bottom: 3rem; font-size: clamp(2.8rem, 5.6vw, 5.8rem); line-height: .97; letter-spacing: -.06em; }
.case-body > p { max-width: 47rem; color: var(--muted); }
.case-body .large-copy { max-width: 44rem; color: var(--ink); font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.3; letter-spacing: -.035em; }
.case-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: end; }
.case-gallery > :first-child { grid-column: 1 / 9; }
.case-gallery > :last-child { grid-column: 9 / 13; }
.wide-image { margin: 0; }
.wide-image img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.wide-image:first-child img { aspect-ratio: 1.45 / 1; }
.wide-image figcaption { margin-top: .7rem; color: var(--muted); font-size: .72rem; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; border-top: 1px solid var(--line); }
.case-columns > div { min-height: 14rem; padding: 1.7rem 0 3rem; border-bottom: 1px solid var(--line); }
.case-columns h3 { margin: 2rem 0 .8rem; font-size: 1.15rem; }
.case-columns p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.phone-stage { position: relative; min-height: 66rem; padding: 8rem max(1.5rem, calc((100vw - 84rem) / 2)); overflow: hidden; background: #d8182f; color: white; }
.phone-stage::after { content: "AVIS"; position: absolute; bottom: -7vw; left: -2vw; color: rgba(255,255,255,.1); font-size: 31vw; line-height: .8; font-weight: 780; letter-spacing: -.08em; }
.phone-copy { position: relative; z-index: 2; max-width: 43rem; }
.phone-copy .eyebrow { color: rgba(255,255,255,.7); }
.phone-pair { position: absolute; z-index: 3; top: 6rem; right: max(2rem, calc((100vw - 83rem) / 2)); display: flex; gap: 1.5rem; align-items: flex-start; }
.phone { width: clamp(13rem, 18vw, 18.5rem); margin: 0; padding: .55rem; border-radius: clamp(2rem, 3vw, 3.2rem); background: #141414; box-shadow: 0 2.5rem 5rem rgba(78,0,12,.35); }
.phone img { border-radius: clamp(1.5rem, 2.6vw, 2.75rem); }
.phone-right { margin-top: 12rem; }
.budget-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); padding-bottom: 10rem; }
.budget-stage > :first-child { grid-column: 1 / 8; }
.budget-stage > :last-child { grid-column: 8 / 13; }
.budget-stage figure { margin: 0; overflow: hidden; background: #f5efe6; }
.budget-stage img { height: 100%; object-fit: cover; }
.outcome { padding: 10rem 0; border-top: 1px solid var(--line); }
.outcome-title { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.outcome-title > .eyebrow { grid-column: 1 / 4; }
.outcome-title > h2 { grid-column: 5 / 13; }
.outcome-title h2 { max-width: 14ch; }
.outcome-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); margin: 5rem 0 0; padding: 0; list-style: none; }
.outcome-list > li { grid-column: 5 / 13; }
.outcome-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.outcome-list strong { font-size: 1.7rem; letter-spacing: -.04em; }
.outcome-list span { max-width: 30rem; color: var(--muted); }
.case-note { max-width: 43rem; margin: 5rem 0 0 38%; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: .8rem; }
.next-project { padding: 8rem 0 10rem; border-top: 1px solid var(--line); }
.next-project a { display: flex; align-items: center; justify-content: space-between; font-size: clamp(3.1rem, 7vw, 7.5rem); line-height: 1; letter-spacing: -.065em; transition: color .3s ease, transform .3s var(--ease); }
.next-project a:hover { color: var(--purple); }

/* Inner pages */
.page-hero { position: relative; padding-top: 13rem; padding-bottom: 7rem; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 46% 70% at 88% 42%, rgba(113,72,255,.24), rgba(103,228,232,.1) 42%, transparent 76%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent); }
.page-hero > * { position: relative; z-index: 1; }
.page-title { max-width: 10ch; margin-bottom: 2.5rem; font-size: clamp(4.2rem, 9vw, 8.7rem); line-height: .9; letter-spacing: -.072em; }
.page-title em { color: var(--purple); font-family: ui-serif, "New York", Georgia, serif; font-weight: 420; letter-spacing: -.055em; }
.page-lede { max-width: 42rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.34; letter-spacing: -.035em; }
.work-index { padding-bottom: 11rem; }
.work-list { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 8rem var(--grid-gap); }
.work-list .project-card:nth-child(odd) { grid-column: 1 / 7; }
.work-list .project-card:nth-child(even) { grid-column: 7 / 13; margin-top: 9rem; }
.work-list .project-card:nth-child(5) { margin-top: 0; }
.archive-band { margin-top: 10rem; padding: 5rem 0; border-top: 1px solid var(--line); }
.archive-band a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; letter-spacing: -.06em; }
.case-cover.tint-purple { background: #efeaff; }
.case-cover.tint-blue { background: #e9f1f6; }
.case-cover.tint-pink { background: #f7e8ef; }
.case-cover.full-bleed { padding: 0; background: #fff; }
.case-cover.full-bleed img { width: 100%; max-width: none; }
.case-image-stack { display: grid; gap: var(--grid-gap); padding-bottom: 10rem; }
.case-image-stack.two { grid-template-columns: 1fr 1fr; }
.case-image-stack figure { margin: 0; overflow: hidden; background: var(--paper-2); }
.case-image-stack img { height: 100%; object-fit: cover; }
.case-image-stack figcaption { padding-top: .7rem; color: var(--muted); font-size: .72rem; }
.case-band { padding: 9rem 0; background: var(--deep); color: var(--light); }
.case-band .case-section { padding-top: 0; padding-bottom: 0; }
.case-band .case-label, .case-band .case-body > p { color: var(--light-muted); }
.case-band .case-label span { color: var(--light); }
.case-band .case-columns { border-color: rgba(255,255,255,.16); }
.case-band .case-columns > div { border-color: rgba(255,255,255,.16); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 5rem; border-top: 1px solid var(--line); }
.metric-grid article { padding: 2rem 2rem 3rem 0; border-bottom: 1px solid var(--line); }
.metric-grid strong { display: block; margin-bottom: 1rem; font-size: clamp(1.7rem,3vw,3rem); letter-spacing: -.04em; }
.metric-grid p { max-width: 19rem; margin: 0; color: var(--muted); }
.profile-page { padding-bottom: 10rem; }
.profile-story { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--grid-gap); padding: 7rem 0 10rem; border-top: 1px solid var(--line); }
.profile-story > .eyebrow { grid-column: 1 / 4; }
.profile-story > div { grid-column: 5 / 12; }
.profile-story h2 { margin-bottom: 2.5rem; font-size: clamp(2.8rem,5.5vw,5.5rem); line-height: .97; letter-spacing: -.06em; }
.profile-story p { max-width: 46rem; color: var(--muted); font-size: 1.12rem; }
.experience-list { margin-top: 4rem; border-top: 1px solid var(--line); }
.experience-list article { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.experience-list h3, .experience-list p { margin: 0; font-size: .88rem; }
.experience-list p { color: var(--muted); }
.play-page { padding-bottom: 10rem; }
.play-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--grid-gap); }
.play-project { grid-column: span 6; min-height: 34rem; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem,5vw,4.5rem); overflow: hidden; border-radius: var(--radius-lg); background: var(--deep); color: var(--light); }
.play-project.gaia { position: relative; min-height: 44rem; grid-column: span 7; background: linear-gradient(155deg,#160c39,#402068 48%,#fa5e83 78%,#ffb65e); }
.play-project.print { grid-column: span 5; margin-top: 8rem; background: #e6ff4f; color: #151514; }
.play-project h2 { position: relative; z-index: 2; max-width: 10ch; margin: 0; font-size: clamp(3rem,6vw,6rem); line-height: .92; letter-spacing: -.06em; }
.play-project p { position: relative; z-index: 2; max-width: 31rem; margin: 2rem 0 0; }
.project-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.project-links a { display: inline-flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem; font-weight: 670; transition: color .25s ease, background-color .25s ease, transform .25s var(--ease); }
.project-links a:hover { background: currentColor; transform: scale(1.025); }
.project-links a:hover span { color: #151514; }
.play-project.print .project-links a:hover span { color: #e6ff4f; }
.play-project .sun { top: 13%; opacity: .82; }
.contact-page { min-height: calc(100vh - 7rem); display: flex; flex-direction: column; }
.contact-main { flex: 1; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-content: center; gap: var(--grid-gap); padding-top: 11rem; padding-bottom: 7rem; }
.contact-main > div:first-child { grid-column: 1 / 9; }
.contact-details { grid-column: 9 / 13; align-self: end; }
.contact-main h1 { max-width: 9ch; margin-bottom: 3rem; font-size: clamp(4.3rem,8.5vw,8.5rem); line-height: .9; letter-spacing: -.07em; }
.contact-main h1 em { color: var(--purple); font-family: ui-serif,"New York",Georgia,serif; font-weight: 420; }
.contact-details a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.contact-details p { margin-top: 2rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(1.3rem); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) {
  .outcome-list li { grid-template-columns: 1fr; gap: .75rem; padding-block: 2rem; }
  .outcome-list strong { font-size: 1.55rem; white-space: nowrap; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 2rem, 46rem); }
  .site-header { width: calc(100vw - 1rem); grid-template-columns: 1fr auto auto; top: .5rem; }
  .brand-name { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 0; border-radius: 999px; background: transparent; font-size: .8rem; font-weight: 650; cursor: pointer; }
  .menu-glyph { display: flex; width: .85rem; flex-direction: column; gap: .25rem; }
  .menu-glyph i { display: block; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-button[aria-expanded="true"] .menu-glyph i:first-child { transform: translateY(.14rem) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-glyph i:last-child { transform: translateY(-.14rem) rotate(-45deg); }
  .site-nav { position: fixed; top: calc(var(--header-h) + .75rem); right: .5rem; left: .5rem; display: flex; flex-direction: column; align-items: stretch; gap: .1rem; padding: .6rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); box-shadow: var(--shadow); opacity: 0; transform: translateY(-.8rem) scale(.97); transform-origin: top center; pointer-events: none; -webkit-backdrop-filter: blur(1.5rem) saturate(150%); backdrop-filter: blur(1.5rem) saturate(150%); transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .site-nav.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .site-nav a { padding: 1rem; font-size: 1.1rem; }
  .hero { min-height: 48rem; padding-top: 9rem; }
  .display { margin-top: 3.5rem; font-size: clamp(3.8rem, 14vw, 6.5rem); }
  .hero-bottom { align-items: center; margin-top: 4rem; }
  .hero-intro { grid-column: 1 / 9; }
  .round-link { grid-column: 10 / 13; width: auto; height: auto; }
  .hero-aura {
    background:
      radial-gradient(ellipse 72% 43% at 108% 24%, rgba(113, 72, 255, .34) 0%, rgba(113, 72, 255, .16) 38%, transparent 76%),
      radial-gradient(ellipse 64% 38% at 90% 57%, rgba(103, 228, 232, .23) 0%, rgba(103, 228, 232, .1) 40%, transparent 78%),
      radial-gradient(ellipse 48% 30% at 92% 24%, rgba(255, 127, 103, .2) 0%, rgba(255, 127, 103, .07) 42%, transparent 80%);
  }
  .selected-work { padding-block: 7rem; }
  .section-heading { grid-template-columns: 1fr; align-items: flex-start; gap: 1.5rem; }
  .section-heading > div, .section-heading > p { grid-column: auto; }
  .project-copy { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .project-copy > * { grid-column: auto !important; }
  .project-summary { grid-column: 2 !important; min-width: 0; }
  .project-pair { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .project-pair > * { grid-column: auto !important; padding-inline: 0 !important; }
  .project-card-offset { margin-top: 7rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-sticky, .profile-content { grid-column: auto; }
  .profile-sticky { position: static; }
  .profile-content { padding-top: 1rem; }
  .play { grid-template-columns: 1fr; border-radius: var(--radius); }
  .play-art { min-height: 27rem; }
  .case-hero { grid-template-columns: 1fr; gap: 4rem; min-height: auto; padding-top: 11rem; }
  .case-intro, .case-lede { grid-column: auto; }
  .case-lede > p { margin-bottom: 3rem; }
  .work-list { gap: 6rem var(--grid-gap); }
  .work-list .project-card:nth-child(odd), .work-list .project-card:nth-child(even) { grid-column: span 6; }
  .play-project.gaia, .play-project.print { grid-column: span 6; }
  .contact-main > div:first-child { grid-column: 1 / 8; }
  .contact-details { grid-column: 8 / 13; }
  .client-heading .eyebrow { grid-column: 1 / 4; }
  .client-heading h2 { grid-column: 4 / 13; }
  .client-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .phone-stage { min-height: 74rem; }
  .phone-pair { top: auto; right: 50%; bottom: 5rem; transform: translateX(50%); }
  .phone { width: min(39vw, 18rem); }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 1.5rem); }
  .site-header { padding-left: .6rem; }
  .theme-button { padding-inline: .7rem; }
  .theme-button span:last-child { display: none; }
  .hero { min-height: 46rem; padding-top: 8.5rem; }
  .hero-kicker { max-width: 15rem; line-height: 1.4; }
  .display { font-size: clamp(3.5rem, 17vw, 5.2rem); letter-spacing: -.068em; }
  .hero-bottom { display: flex; align-items: flex-start; flex-direction: column; margin-top: 3rem; }
  .round-link { width: auto; height: auto; flex-direction: row; justify-content: flex-start; justify-self: auto; padding: .85rem 1.1rem; border-radius: 999px; }
  .section-heading h2, .profile h2, .play h2 { font-size: 2.9rem; }
  .feature-project { margin-bottom: 6rem; }
  .feature-project .project-media { min-height: 26rem; }
  .feature-avis .project-media { width: 100%; min-height: 0; padding: 2.5rem 1rem; border-radius: 0; }
  .case-cover { width: 100%; padding: 2.5rem 1rem; border-radius: 0; }
  .avis-fan { height: 155vh; height: 155svh; min-height: 52rem; }
  .avis-fan-card { width: min(44vw, 14rem, 34vh); width: min(44vw, 14rem, 34svh); }
  .avis-fan-inner-left, .avis-fan-far-right { display: none; }
  .project-copy { padding-top: 1.5rem; }
  .project-copy h3 { font-size: 2.8rem; }
  .project-pair { grid-template-columns: 1fr; }
  .project-card-offset { margin-top: 2rem; }
  .profile { padding-block: 7rem; }
  .profile-lead { margin-bottom: 3rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article:nth-child(odd) { border-right: 0; padding-right: 0; }
  .capability-grid article { min-height: 12rem; }
  .quote-grid { grid-template-columns: 1fr; gap: 5rem; }
  .quote-grid > * { grid-column: auto !important; }
  .testimonials { padding-block: 7rem; }
  .play { margin-bottom: 7rem; }
  .play-copy { padding: 3rem 1.5rem; }
  .play-art { min-height: 22rem; }
  .sun { width: 12rem; height: 12rem; }
  .contact h2 { margin-bottom: 3.5rem; font-size: 3.8rem; }
  .contact-row { display: flex; align-items: flex-start; flex-direction: column; }
  .contact-row p, .contact-button { grid-column: auto; }
  .contact-button { width: 100%; justify-self: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
  .case-header { grid-template-columns: auto 1fr auto; }
  .case-header .back-link { justify-self: start; }
  .case-intro h1 { font-size: clamp(4rem, 18vw, 5.7rem); }
  .case-section { grid-template-columns: 1fr; gap: 2rem; padding: 7rem 0 3rem; }
  .case-section > .case-label, .case-section > .case-body { grid-column: auto; }
  .case-gallery, .budget-stage { grid-template-columns: 1fr; }
  .case-gallery > *, .budget-stage > * { grid-column: auto !important; }
  .budget-stage { padding-bottom: 3rem; }
  .case-columns { grid-template-columns: 1fr; }
  .case-columns > div { min-height: 0; }
  .phone-stage { min-height: 0; padding-top: 5rem; padding-bottom: 3rem; }
  .phone-pair { position: relative; right: auto; bottom: auto; justify-content: center; gap: .7rem; margin-top: 3rem; transform: none; }
  .phone-right { margin-top: 7rem; }
  .outcome { padding: 4rem 0 5rem; }
  .outcome-title { grid-template-columns: 1fr; }
  .outcome-title > .eyebrow, .outcome-title > h2 { grid-column: auto; }
  .outcome-list { grid-template-columns: 1fr; }
  .outcome-list > li { grid-column: auto; }
  .outcome-list, .case-note { margin-left: 0; }
  .next-project a { font-size: 3.2rem; }
  .next-project { padding: 5rem 0 7rem; }
  .reveal { opacity: 1; transform: none; }
  .page-hero { padding-top: 10rem; padding-bottom: 5rem; }
  .page-title { font-size: clamp(3.8rem,17vw,5.6rem); }
  .work-list { grid-template-columns: 1fr; gap: 6rem; }
  .work-list .project-card:nth-child(odd), .work-list .project-card:nth-child(even) { grid-column: auto; margin-top: 0; }
  .case-image-stack.two, .metric-grid { grid-template-columns: 1fr; }
  .profile-story { grid-template-columns: 1fr; gap: 2rem; padding-block: 5rem 7rem; }
  .profile-story > .eyebrow, .profile-story > div { grid-column: auto; }
  .experience-list article { grid-template-columns: 1fr; gap: .35rem; }
  .play-grid { grid-template-columns: 1fr; }
  .play-project.gaia, .play-project.print { grid-column: auto; margin-top: 0; }
  .contact-main { grid-template-columns: 1fr; align-content: start; }
  .contact-main > div:first-child, .contact-details { grid-column: auto; }
  .client-section { padding-block: 4rem; }
  .client-heading { grid-template-columns: 1fr; gap: 1rem; }
  .client-heading .eyebrow, .client-heading h2 { grid-column: auto; }
  .client-heading h2 { font-size: 2.9rem; }
  .client-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-logo { min-height: 5.75rem; padding: 1rem; }
  .client-logo img { max-width: min(100%,6.5rem); max-height: 2.1rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121312;
    --paper-2: #1b1c1a;
    --ink: #f1eee8;
    --muted: #aaa9a3;
    --line: rgba(255, 255, 255, .14);
    --panel: rgba(25, 26, 24, .78);
    --deep: #080908;
    --deep-2: #151614;
    --shadow: 0 1.5rem 4rem rgba(0, 0, 0, .32);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .reveal { opacity: 1; transform: none; }
  .project-media:hover img, .site-header, .round-link:hover { transform: none; }
  .avis-fan { height: auto; min-height: 44rem; }
  .avis-fan-sticky { position: relative; height: 44rem; min-height: 0; }
  .avis-fan-far-left { transform: translate(-200%, -40%) rotate(-12deg) scale(.96); }
  .avis-fan-inner-left { transform: translate(-112%, -45%) rotate(-5.5deg) scale(.985); }
  .avis-fan-inner-right { transform: translate(12%, -45%) rotate(5.5deg) scale(.985); }
  .avis-fan-far-right { transform: translate(100%, -40%) rotate(12deg) scale(.96); }
  .avis-fan-centre { transform: translate(-50%, -50%); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.has-scrolled, .site-nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .project-open { background: var(--light); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: currentColor; }
  .site-header.has-scrolled, .site-nav { border-color: currentColor; background: var(--paper); }
}
