@font-face {
  font-family: "Studio Sans";
  src: url("assets/sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Studio Sans";
  src: url("assets/sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Studio Sans";
  src: url("assets/sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #181925;
  --dark: #15161f;
  --paper: #fcfcfa;
  --subtle: #5c6072;
  --light-text: #dedfea;
  --lime: #e4ff83;
  --blue: #3649f6;
  --edge: #dcdde5;
  --gutter: max(1.35rem, min(5vw, 5.2rem));
  --max-width: 78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Studio Sans", system-ui, sans-serif;
  line-height: 1.52;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1; letter-spacing: -.065em; }
h2 { font-size: clamp(2.65rem, 5.7vw, 5.8rem); font-weight: 700; }
h3 { letter-spacing: -.045em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(100% - var(--gutter) * 2, var(--max-width)); margin-inline: auto; }
.label {
  font-family: "Studio Sans", system-ui, sans-serif;
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .8rem 1rem;
  background: var(--lime);
  color: var(--ink);
}

.site-header {
  background: var(--dark);
  color: var(--paper);
}
.site-header-inner {
  min-height: 4.65rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #363847;
}
.wordmark {
  width: fit-content;
  font-size: 1.67rem;
  font-weight: 700;
  letter-spacing: -.095em;
  text-decoration: none;
}
.wordmark span, .hero h1 span { color: var(--lime); }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3.25vw, 3rem); }
.site-header nav a, .header-download {
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a { color: var(--light-text); }
.site-header nav a:hover, .site-footer a:hover { color: var(--lime); }
.header-download {
  justify-self: end;
  padding: .43rem .92rem;
  color: var(--paper);
  border: 1px solid #626473;
  border-radius: 2rem;
}
.header-download:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.hero { color: var(--paper); background: var(--dark); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2.2rem, 5.5vw, 6.75rem);
  padding-block: clamp(2.3rem, 5vw, 4.5rem);
}
.hero-content { padding-block: .4rem .7rem; }
.hero-label { color: var(--lime); margin-bottom: clamp(1.2rem, 2.7vw, 2.25rem); }
.hero h1 { font-size: clamp(4.3rem, 9.5vw, 9.25rem); line-height: .82; }
.hero-role {
  margin-top: clamp(1.5rem, 2.8vw, 2.6rem);
  font-size: clamp(1rem, 1.7vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -.018em;
}
.hero-role span { margin-inline: .31em; color: #979ab0; }
.hero-description {
  margin-top: .65rem;
  max-width: 29rem;
  color: var(--light-text);
  font-size: 1.0625rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .58rem; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.04rem;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: .38rem;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: var(--paper); }
.button-light-outline { color: var(--paper); border-color: #737584; }
.button-light-outline:hover { border-color: var(--paper); background: #ffffff17; }
.button-dark-outline { color: var(--ink); border-color: #a0a2af; }
.button-dark-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #2734ba; }
.hero-visual {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background-color: #171d56;
  aspect-ratio: 1.09;
}
.hero-visual img { height: 100%; object-fit: cover; object-position: 51% 47%; }
.hero-visual figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  background: #101526d9;
  color: #e2e5fb;
  padding: .15rem .34rem;
  font-size: .75rem;
}

.proof { background: var(--lime); }
.proof-inner {
  display: grid;
  grid-template-columns: 1fr .82fr 1.23fr;
  padding-block: 1.12rem;
}
.proof-stat, .proof-references { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.proof-stat + .proof-stat, .proof-references { border-left: 1px solid #b0c845; padding-left: clamp(1rem, 4vw, 3.25rem); }
.proof-stat strong {
  font-size: clamp(2.4rem, 4.9vw, 4.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.075em;
  white-space: nowrap;
}
.proof-stat span, .proof-references span { font-size: .88rem; line-height: 1.27; }
.proof-references { flex-direction: column; justify-content: center; align-items: flex-start; gap: .1rem; }
.proof-references strong { font-size: clamp(.94rem, 1.5vw, 1.3rem); line-height: 1.22; letter-spacing: -.025em; }

.work { padding-block: clamp(3.75rem, 8vw, 7.6rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.section-heading .label, .resume .label, .contact .label { margin-bottom: .85rem; }
.section-heading .label, .resume .label { color: #2939c7; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .4rem .85rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background: transparent;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.filter[aria-pressed="false"]:hover { border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.project {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--edge);
  min-width: 0;
}
.project-art {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.project-art-lindt { background: var(--lime); }
.project-art-brand { background: #2639ec; color: #fff; }
.project-art-storyboard { background: #e6e9fd; }
.project-art-clips { background: #212236; }
.project-frame { position: absolute; }
.frame-wide {
  height: 46%; width: min(35%, 10rem);
  border: 1px solid #304112;
  transform: translateX(-35%) rotate(-8deg);
}
.frame-tall {
  width: min(13%, 4.85rem); height: 67%;
  background: #2639ec;
  border: 1px solid #2639ec;
  transform: translateX(35%) rotate(8deg);
  display: flex; flex-direction: column; gap: 8%; padding: clamp(.5rem, 1.35vw, 1.05rem);
}
.frame-tall i { display: block; height: 1px; background: var(--lime); }
.frame-tall i:first-child { height: 45%; border-radius: 100%; aspect-ratio: 1; align-self: center; margin-bottom: 12%; }
.frame-tall i:last-child { width: 70%; }
.project-art-brand > span { font-size: clamp(3.1rem, 7.2vw, 7.4rem); line-height: 1; letter-spacing: -.085em; font-weight: 700; transform: rotate(-6deg); }
.project-art-brand > span span { color: var(--lime); }
.project-art-storyboard > div {
  position: absolute;
  width: 26%;
  height: 56%;
  border: 1px solid #2639ec;
  transform: translateX(-62%) rotate(-12deg);
}
.project-art-storyboard > div:nth-child(2) { transform: rotate(-12deg); background: #e6e9fd; }
.project-art-storyboard > div:nth-child(3) { transform: translateX(62%) rotate(-12deg); background: #2639ec; }
.waveform { display: flex; width: 54%; height: 54%; align-items: center; justify-content: center; gap: 3.5%; }
.waveform i { width: 2px; height: 35%; background: var(--lime); }
.waveform i:nth-child(2n) { height: 59%; }
.waveform i:nth-child(3n) { height: 38%; }
.waveform i:nth-child(5n) { height: 94%; }
.waveform i:nth-child(7n) { height: 71%; }
.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .56rem;
  padding: clamp(1.1rem, 2.5vw, 2rem);
}
.project-body .label { color: #3847c0; }
.project-body h3 { font-size: clamp(1.65rem, 3.2vw, 2.8rem); }
.project-body > p:not(.label) { color: var(--subtle); margin-block: .1rem .62rem; }
.project-open {
  margin-top: auto;
  min-height: 2.65rem;
  background: transparent;
  border: 1px solid #a6a9bf;
  border-radius: .35rem;
  padding: .35rem .72rem;
  font-size: .92rem;
  font-weight: 700;
}
.project-open:hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }

.resume { background: #eaeefe; padding-block: clamp(3.75rem, 8vw, 7rem); }
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  gap: clamp(2rem, 6vw, 6.35rem);
}
.resume-heading > p:not(.label) { color: #4a4e64; max-width: 23rem; margin-top: 1rem; }
.resume-heading .button { margin-top: 1.25rem; }
.timeline { border-top: 1px solid #bcc0d8; }
.timeline details { border-bottom: 1px solid #bcc0d8; }
.timeline summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.15rem;
}
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary small { display: block; color: #404eae; font-weight: 700; font-size: .82rem; }
.timeline summary strong {
  display: block;
  margin-block: .1rem .25rem;
  font-size: clamp(1.45rem, 2.3vw, 2.08rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.timeline summary > span > span { color: #44485d; line-height: 1.25; }
.toggle-icon { flex: 0 0 2rem; height: 2rem; border: 1px solid #a3aacb; border-radius: 50%; position: relative; }
.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; background: var(--ink); }
.toggle-icon::before { width: .72rem; height: 1px; }
.toggle-icon::after { height: .72rem; width: 1px; }
.timeline details[open] .toggle-icon::after { display: none; }
.timeline-body { padding: 0 2.85rem 1.15rem 0; color: #40455b; }
.timeline-body ul { margin: 0 0 .7rem; padding-left: 1.15rem; }
.timeline-body li + li { margin-top: .25rem; }
.timeline-body strong { color: var(--ink); }
.text-link { display: inline-block; margin-top: .55rem; font-weight: 500; text-underline-offset: .2em; }

.letter { background: #2639ec; color: var(--paper); padding-block: clamp(3.75rem, 8vw, 7rem); }
.letter-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  gap: clamp(2rem, 6vw, 6.35rem);
}
.letter .label { color: var(--lime); margin-bottom: .85rem; }
.letter-heading .button { margin-top: 1.7rem; border-color: #a0a9f8; }
.letter-copy { max-width: 37rem; }
.letter-copy p { font-size: clamp(1.0625rem, 1.65vw, 1.24rem); line-height: 1.56; }
.letter-copy p + p { margin-top: 1.12rem; }
.letter-copy a { color: var(--lime); text-underline-offset: .17em; }
.letter-copy .signature { font-weight: 700; }

.contact { background: var(--lime); padding-block: clamp(3.5rem, 7.3vw, 6.45rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.1rem 3rem; }
.contact h2 { font-size: clamp(2.5rem, 5.6vw, 5.55rem); }
.contact p:not(.label):not(.copy-status) { max-width: 37rem; margin-top: .85rem; }
.contact-actions .button { margin-bottom: .63rem; }
.copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; margin-top: .33rem; }
.copy-row a, .contact-links a { text-underline-offset: .22em; font-size: .95rem; font-weight: 500; }
.copy-button {
  min-height: 2.2rem;
  padding: .25rem .5rem;
  border: 1px solid #94a94d;
  border-radius: .3rem;
  background: transparent;
  font-size: .82rem;
  font-weight: 700;
}
.copy-button:hover { background: #f1ffbe; }
.copy-status { min-height: 1.2rem; font-size: .82rem; font-weight: 500; }
.contact-links { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; }
.site-footer { background: var(--dark); color: var(--light-text); padding-block: 1.25rem; font-size: .88rem; }
.site-footer > .shell { display: flex; justify-content: space-between; gap: .75rem; }
.site-footer a { text-underline-offset: .2em; }

dialog {
  width: min(37rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--edge);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog::backdrop { background: #131422d9; }
.dialog-open { overflow: hidden; }
.dialog-inner { position: relative; padding: clamp(1.25rem, 5vw, 3rem); }
.dialog-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
}
.dialog-close:hover { background: var(--lime); border-color: var(--lime); }
#dialog-content .label { color: #3847c0; padding-right: 2.5rem; }
#dialog-content h2 { font-size: clamp(2rem, 6vw, 3.5rem); margin-block: .65rem .82rem; }
#dialog-content > p:not(.label) { color: #484d63; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.35rem; }
.case-facts > div { border-top: 1px solid var(--edge); padding-top: .65rem; }
.case-facts dt { margin-bottom: .3rem; color: #4653ba; font-size: .87rem; font-weight: 700; }
.case-facts dd { margin: 0; font-weight: 500; }
.clip-list { list-style: none; padding: 0; margin: 1.15rem 0 0; }
.clip-list a { display: flex; flex-direction: column; gap: .12rem; padding: .55rem 0; border-top: 1px solid var(--edge); text-decoration: none; }
.clip-list a strong { color: #2738c5; text-decoration: underline; text-underline-offset: .15em; }
.clip-list a span { color: #4a4f65; font-size: .9rem; }

@media (max-width: 880px) {
  .hero h1 { font-size: clamp(4.05rem, 10vw, 6.5rem); }
  .hero-visual { aspect-ratio: .91; }
  .proof-inner { grid-template-columns: .95fr .83fr 1.05fr; }
  .proof-stat, .proof-references { gap: .45rem; }
  .proof-stat + .proof-stat, .proof-references { padding-left: .78rem; }
}

@media (max-width: 650px) {
  .site-header-inner { min-height: 4.1rem; gap: .45rem; }
  .site-header nav { gap: .78rem; }
  .site-header nav a, .header-download { font-size: .84rem; }
  .wordmark { font-size: 1.37rem; }
  .header-download { padding: .37rem .64rem; }
  .header-download span { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2.45rem 1.35rem; }
  .hero h1 { font-size: clamp(4.1rem, 15vw, 6.8rem); }
  .hero-description { max-width: 27rem; }
  .hero-visual { aspect-ratio: 1.55; }
  .hero-visual img { object-position: 51% 48%; }
  .proof-inner { grid-template-columns: 1fr 1fr; gap: .67rem 0; padding-block: .82rem .95rem; }
  .proof-stat strong { font-size: clamp(2.3rem, 9vw, 3.5rem); }
  .proof-stat span, .proof-references span { font-size: .8rem; }
  .proof-references { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #b0c845; padding: .6rem 0 0; }
  .proof-references strong { font-size: 1rem; }
  .section-heading { margin-bottom: 1.15rem; gap: .95rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.05rem; }
  .project-art { aspect-ratio: 2.9 / 1; }
  .resume-grid, .letter-grid, .contact-grid { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
  .timeline-body { padding-right: .45rem; }
  .contact-actions { min-width: 0; }
}

@media (max-width: 355px) {
  .site-header nav { gap: .55rem; }
  .site-header nav a { font-size: .79rem; }
  .hero h1 { font-size: 3.75rem; }
  .filter { padding-inline: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
