@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #282621;
  --muted: #635f56;
  --rule: #cecabf;
  --rust: #8a3729;
  --sand: #b4b0a3;
  --gutter: clamp(22px, 4.8vw, 88px);
  --masthead-height: 82px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.5 Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--paper); background: var(--rust); }

h1, h2, h3, p, figure { margin: 0; }

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

:is(a, button, summary, [tabindex="-1"]):focus-visible {
  outline: 2px solid var(--focus-ring, var(--rust));
  outline-offset: 4px;
}

:where(.showreel, .footer, .masthead[data-menu-open], body[data-page="contact"] main, body[data-page="home"] .masthead:not([data-away-from-hero])) { --focus-ring: #f3c7a4; }

main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

[id] { scroll-margin-top: calc(var(--masthead-height) + 18px); }

.frame {
  width: min(100% - var(--gutter) * 2, 1560px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: var(--gutter);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip:focus { transform: translateY(0); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}

.masthead__inner {
  min-height: var(--masthead-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(22px, 3vw, 52px);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.home-link {
  display: grid;
  align-items: center;
  justify-self: start;
  min-height: 44px;
}

.home-link img {
  width: clamp(82px, 7.25vw, 119px);
  height: auto;
}

.navigation, .languages {
  display: flex;
  align-items: center;
}

.navigation { gap: clamp(20px, 3.2vw, 56px); }
.languages {
  justify-self: end;
  gap: 8px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.navigation a, .languages a, .languages span {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  text-underline-offset: .26em;
}

.languages a, .languages span { min-width: 24px; }
.languages a { color: var(--muted); }
.languages [aria-current] { font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; }

.navigation a:hover, .languages a:hover { color: var(--rust); text-decoration: underline; }

body[data-page="home"] .masthead { margin-bottom: calc(-1 * var(--masthead-height)); }
body[data-page="home"] .masthead:not([data-menu-ready]) { position: relative; }

body[data-page="home"] .masthead:not([data-away-from-hero], [data-menu-open]) {
  background: transparent;
  color: #fff;
}

body[data-page="home"] .masthead:not([data-away-from-hero], [data-menu-open]) .masthead__inner {
  border-color: rgb(255 255 255 / 45%);
}

body[data-page="home"] .masthead:not([data-away-from-hero], [data-menu-open]) .home-link img { filter: brightness(0) invert(1); }
body[data-page="home"] .masthead:not([data-away-from-hero], [data-menu-open]) :is(.navigation, .languages) a { color: inherit; }

.showreel {
  position: relative;
  isolation: isolate;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: #27241d;
  color: #fff;
}

.showreel__still, .showreel__video, .showreel::after { position: absolute; inset: 0; }
.showreel__still img, .showreel__video { width: 100%; height: 100%; object-fit: cover; }
.showreel__video { opacity: 0; }
.showreel[data-frame-ready] .showreel__video { opacity: 1; }
.showreel::after {
  content: "";
  background: linear-gradient(180deg, rgb(20 18 14 / 80%), transparent min(38%, 175px), transparent 64%, rgb(20 18 14 / 70%));
  pointer-events: none;
}

.showreel__caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 clamp(12px, 2vw, 32px);
  display: flex;
}

.showreel__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  min-height: 44px;
  border-bottom: 1px solid rgb(255 255 255 / 66%);
  color: inherit;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-underline-offset: .35em;
}

.showreel__index:is(:hover, :focus-visible) { border-color: #fff; }
.showreel__caption svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.35; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) auto;
  grid-template-areas: "title detail index";
  gap: clamp(24px, 5vw, 92px);
  align-items: start;
  padding-block: clamp(68px, 8vw, 138px) clamp(54px, 6.75vw, 111px);
}

.intro h1 { grid-area: title; }
.intro__detail { grid-area: detail; }
.intro__index { grid-area: index; justify-self: start; }

.intro h1, .intro p {
  font-size: clamp(18px, 1.65vw, 28px);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.28;
}

.intro h1 { max-width: 11.6em; padding-right: 1em; }
.intro p { max-width: 24em; }
.intro .text-link { margin-top: 22px; }
.intro__actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(12px, 2vw, 28px); }
.film-toggle { border: 0; padding: 0; background: transparent; color: var(--muted); font-family: inherit; cursor: pointer; }
.film-toggle[hidden] { display: none; }
.intro__actions > a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .4em; }
.intro__actions > a:is(:hover, :focus-visible) { text-decoration-color: var(--rust); }
.film-toggle:is(:hover, :focus-visible) { color: var(--ink); }

body[data-page="home"] .intro h1 {
  max-width: 13ch;
  padding: 0;
  font-size: clamp(36px, 5.45vw, 82px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body[data-page="home"] .intro p { line-height: 1.45; letter-spacing: -.02em; font-weight: 540; }

@media (min-width: 761px) {
  body[data-page="home"] .intro {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    grid-template-areas: "title detail" "title index";
    row-gap: 10px;
  }
}

body:is([data-page="works"], [data-page="studio"]) .intro h1,
.contact-page h1 {
  max-width: none;
  padding: 0;
  font-size: clamp(46px, 7.6vw, 104px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.intro-jumps { display: grid; gap: 0; }
.intro .intro-jumps .text-link { margin: 0; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--rule); }

body[data-page="works"] .intro .archive-totals {
  margin-top: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

body[data-page="works"] .works { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--rule); }
body[data-page="home"] .works > .text-link { margin-top: 28px; border-bottom: 1px solid var(--rule); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: .28em;
  white-space: nowrap;
}

.text-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 180ms var(--ease-out);
}

.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translate(.15em, -.15em); }

.works { margin-block: clamp(72px, 10vw, 164px); }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: clamp(19px, 2.6vw, 44px);
}

body[data-page="home"] .section-heading {
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: clamp(16px, 2.4vw, 34px);
}
body[data-page="home"] .section-heading p { max-width: 19ch; }

.section-heading h2, .footer h2 {
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -.078em;
  line-height: 1;
}

.section-heading p {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 65px);
  list-style: none;
  padding: 0;
  margin: 0;
}


@media (min-width: 1050px) {
  body[data-page="home"] .work-grid {
    grid-template-columns: minmax(0, 1.52fr) repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 38px);
  }
}

.work-slot__link { display: block; }
.work-slot__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eeebe2;
}

.work-slot__media img { width: 100%; height: 100%; object-fit: cover; }
.work-slot__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.work-slot__caption h3 {
  width: fit-content;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  font-size: clamp(18px, 2vw, 29px);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.13;
}
.work-slot__place { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.work-record span { color: var(--muted); font-size: .82rem; }
.work-slot__caption svg { flex: none; width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.work-slot__link:focus-visible .work-slot__caption { color: var(--rust); }
.work-slot__link:focus-visible h3 { background-size: 100% 1px; }
@media (hover: hover) {
  .work-slot__link:hover .work-slot__caption { color: var(--rust); }
  .work-slot__link:hover h3 { background-size: 100% 1px; }
}

.work-record {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 18px clamp(12px, 2vw, 28px);
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--sand) 20%, var(--paper));
}

.work-record span:first-child { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.studio {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr);
  gap: clamp(40px, 6vw, 104px);
  border-top: 1px solid var(--rule);
  padding-block: clamp(50px, 6.3vw, 100px) clamp(72px, 9vw, 135px);
  align-items: start;
}

.studio h2 { font-size: 14px; font-weight: 700; }

.studio__statement {
  margin-top: clamp(20px, 2.6vw, 38px);
  font-size: clamp(36px, 4.5vw, 70px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1.02;
  max-width: 9em;
}

.studio__copy {
  max-width: 32em;
  margin-top: 24px;
  color: var(--muted);
}

.disciplines {
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.disciplines li { border-bottom: 1px solid var(--rule); }
.disciplines summary { display: flex; align-items: center; justify-content: space-between; min-height: 51px; gap: 18px; cursor: pointer; font-weight: 700; list-style: none; }
.disciplines summary::-webkit-details-marker { display: none; }
.disciplines summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); }
.disciplines summary:hover, .disciplines [open] summary { color: var(--rust); }
.disciplines [open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.disciplines details p { max-width: 52ch; padding: 0 22px 20px 0; color: var(--muted); font-size: .94rem; line-height: 1.6; text-wrap: pretty; }

.team { padding-block: 24px clamp(70px, 10vw, 157px); border-top: 1px solid var(--rule); }
.team h2 { margin-bottom: clamp(25px, 3vw, 44px); font-size: clamp(30px, 4.3vw, 60px); font-weight: 650; line-height: 1.05; letter-spacing: -.04em; }
.team__people, .case__scope { margin: 0; padding: 0; list-style: none; }
.team__people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 36px); }
.team__people img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 43%; background: #e9e6de; }
.team__people figcaption { padding-top: 11px; border-top: 1px solid var(--rule); font-size: clamp(.86rem, 1.25vw, 1.13rem); font-weight: 680; letter-spacing: -.025em; }

.case { padding-block: clamp(28px, 5vw, 75px) clamp(62px, 9vw, 140px); }
.case__intro { margin-bottom: clamp(24px, 4vw, 65px); }
.case__back { color: var(--muted); border-bottom: 1px solid var(--rule); }
.case__back:is(:hover, :focus-visible) { color: var(--rust); }
.case__back:hover svg { transform: translateX(-.25em); }
.case__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 26px;
  margin-block: clamp(16px, 3vw, 48px) clamp(16px, 2.3vw, 32px);
}

.case h1 { min-width: 0; font-size: clamp(41px, 7.6vw, 100px); font-weight: 650; line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.case__place { flex: none; padding-bottom: 6px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: clamp(.88rem, 1.4vw, 1.1rem); }
.case__place:empty { display: none; }
.case__scope-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; padding-block: 13px; border-block: 1px solid var(--rule); }
.case__scope-band > p { color: var(--ink); font-size: .82rem; font-weight: 720; }
.case__scope { display: flex; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: .82rem; }
.case img { display: block; width: 100%; height: auto; }
.case__cover { aspect-ratio: 16 / 9; overflow: hidden; background: #eeebe2; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case[data-project="4life"] .case__cover img { object-position: center 55%; }
.case[data-project="papagou"] .case__cover img { object-position: center 58%; }
.case__series { margin-top: 15px; border-bottom: 1px solid var(--rule); }
.case__series ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.case__series a:is(:hover, :focus-visible) { color: var(--rust); }
.case__gallery { margin-top: clamp(36px, 5.5vw, 86px); }
.case__gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--rule); padding-block: 14px 22px; }
.case__gallery h2 { font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; }
.case__gallery-head span { flex: none; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.case__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 2vw, 30px); }
.case__image--wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .case__images { grid-template-columns: 1fr; }
}
.case__index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); align-items: start; gap: clamp(18px, 4vw, 50px); padding-top: clamp(18px, 2.6vw, 40px); margin-top: clamp(36px, 5.5vw, 86px); border-top: 1px solid var(--rule); }
.case__archive { justify-self: start; border-bottom: 1px solid var(--rule); }
.case__archive:is(:hover, :focus-visible) { color: var(--rust); }
.case__archive:hover svg { transform: translateX(-.25em); }
.case__next { display: grid; min-width: 0; gap: 7px; }
.case__next-label { color: var(--muted); font-size: .78rem; }
.case__next-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: clamp(1.35rem, 3.1vw, 2.6rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.12; }
.case__next-title svg, .phone-list svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.case__next-media { display: block; aspect-ratio: 16 / 9; margin-top: 12px; overflow: hidden; background: #eeebe2; }
.case__next-media img { width: 100%; height: calc(100% + 18px); object-fit: cover; }

body[data-page="contact"] { background: #302e29; }
body[data-page="contact"] main { color: var(--paper); }
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
  min-height: min(63svh, 740px);
  padding-block: clamp(52px, 8.6vw, 144px);
}

.contact-page__detail { border-top: 1px solid rgb(252 251 248 / 38%); padding-top: clamp(14px, 2vw, 28px); }
.contact-page__detail > p { max-width: 33ch; color: #ece1d6; font-size: clamp(.96rem, 1.7vw, 1.35rem); text-wrap: pretty; }
.phone-list { list-style: none; margin: 18px 0 0; padding: 0; font-variant-numeric: tabular-nums; }
.phone-list li { border-top: 1px solid rgb(252 251 248 / 38%); }
.phone-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; font-weight: 600; white-space: nowrap; }
.phone-list a:is(:hover, :focus-visible) { color: #f3c7a4; text-decoration: underline; text-underline-offset: .2em; }
.contact-page .phone-list a { padding-block: 10px; font-size: clamp(1.05rem, 2.6vw, 2.35rem); letter-spacing: -.035em; }
.contact-page__links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 23px; }
.contact-page__links .text-link { color: #e2dfd4; border-bottom: 1px solid rgb(252 251 248 / 30%); }
.instagram-link { gap: .7em; margin-top: 10px; border-bottom: 1px solid rgb(252 251 248 / 30%); }
.instagram-link:is(:hover, :focus-visible) { color: #f3c7a4; border-color: currentColor; }

.footer {
  background: #302e29;
  color: var(--paper);
}

.footer__top, .footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px 5vw;
  padding-block: clamp(45px, 7.4vw, 111px) 24px;
  border-bottom: 1px solid #77736a;
}
.footer__contact h2 { font-size: clamp(38px, 6.2vw, 88px); letter-spacing: -.04em; }
.footer__top .footer__links { display: grid; width: min(100%, 210px); justify-self: end; }
.footer__contact .phone-list { max-width: 270px; }
body[data-page="contact"] .footer__top { display: none; }
body[data-page="contact"] .footer__bottom { border-top: 1px solid #77736a; }

.footer__bottom {
  align-items: center;
  flex-wrap: wrap;
  padding-block: 18px 22px;
  font-size: 12px;
}
.footer__utility { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(14px, 3vw, 34px); }
.footer__utility .text-link { font-size: 12px; }

@media (max-width: 760px) {
  :root { --gutter: clamp(17px, 4vw, 30px); --masthead-height: 67px; }

  .masthead__inner { grid-template-columns: 1fr auto auto; gap: clamp(12px, 4vw, 27px); }
  .home-link img { width: clamp(66px, 13vw, 93px); }
  .navigation { gap: clamp(11px, 3vw, 23px); font-size: 13px; }
  .languages { gap: 2px; padding-inline-start: 5px; font-size: 11px; }
  .languages a, .languages span { min-width: 23px; }
  .showreel { aspect-ratio: 1; }
  .intro { grid-template-columns: 1fr; grid-template-areas: "title" "detail" "index"; gap: 17px; padding-block: 48px 32px; }
  .intro__index { border-top: 1px solid var(--rule); width: 100%; }
  .intro h1 { padding: 0; max-width: 14em; }
  .intro p { max-width: 21em; }
  .intro .text-link { margin-top: 9px; }
  .studio { grid-template-columns: 1fr; }
  .team__people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .case__heading { flex-direction: column; align-items: start; }
  .contact-page { grid-template-columns: 1fr; min-height: auto; }
}

@media (min-width: 761px) {
  body:is([data-page="works"], [data-page="studio"]) .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}

@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-record { grid-template-columns: minmax(0, 1fr) auto; }
  .work-record span:first-child { grid-column: 1 / -1; }
  .case__index { grid-template-columns: 1fr; gap: 12px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__top .footer__links { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link svg { transition: none; }
  .text-link:hover svg { transform: none; }
}

.navigation a:is([aria-current="page"], [aria-current="location"]) {
  color: var(--rust);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .42em;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.footer__links { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.6vw, 38px); }
.footer__links .text-link { border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }

@media (forced-colors: active) {
  .work-slot__media { border: 1px solid CanvasText; }
}

@media (orientation: landscape) and (max-height: 520px) {
  :root { --masthead-height: 57px; }
  .showreel { max-height: 100svh; }
}

.footer__share { display: grid; justify-items: end; text-align: right; }
.footer__share button { padding: 0; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .32em; cursor: pointer; }
.footer__share input { max-width: min(60vw, 310px); font: inherit; padding: 7px; }
.footer__share-status { color: #ece1d6; }
.footer__share-status:not(:empty) { margin-top: 6px; }

.not-found { background: var(--paper); }
.not-found__layout { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; gap: 30px; padding-block: 34px 70px; }
.not-found__layout img { width: 100px; height: auto; }
.not-found__message { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; align-self: center; gap: clamp(24px, 6vw, 90px); padding-block: 30px; border-top: 1px solid var(--rule); }
.not-found__number { color: var(--rust); font-size: clamp(75px, 15vw, 202px); font-weight: 720; line-height: .9; letter-spacing: -.04em; }
.not-found__layout h1 { font-size: clamp(22px, 3vw, 44px); letter-spacing: -.04em; }
@media (max-width: 640px) { .not-found__message { grid-template-columns: 1fr; } }
.not-found__layout nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 27px; }
.not-found__layout nav a { display: grid; align-items: center; min-height: 44px; text-decoration: underline; }

.marquee__viewport {
  overflow: hidden;
  background: #eee8df;
  border-block: 1px solid var(--rule);
  padding-block: clamp(5px, 1vw, 14px);
}

.marquee__track {
  font: 400 clamp(2rem, 7.2vw, 7.2rem)/1.15 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
}

.marquee__cycle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  padding-inline: var(--gutter);
}

.marquee__cycle > span { font-weight: 760; }
.marquee__cycle > span:nth-child(even) { font-weight: 400; color: var(--muted); }
.marquee__cycle--repeat, .marquee__word--repeat { display: none; }

.marquee__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(14px, 2.6vw, 34px);
}

.marquee__bar {
  padding-block: 16px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: .81rem;
}

.marquee__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .27em;
}

.marquee__links a { font-weight: 620; }
.marquee__links a:is(:hover, :focus-visible) { color: var(--rust); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { font-size: clamp(1.85rem, 6vw, 5rem); }
  .marquee__cycle { justify-content: flex-start; width: min(100% - var(--gutter) * 2, 1560px); margin-inline: auto; padding-inline: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition { background: color-mix(in srgb, var(--ink) 94%, var(--rust)); }
  ::view-transition-group(root) { animation-duration: 850ms; }
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
  ::view-transition-old(root) { animation: route-cover 170ms ease-in both; }
  ::view-transition-new(root) { animation: route-open 680ms 170ms cubic-bezier(.76, 0, .24, 1) both; }

  .case__next-media img { transition: transform .5s var(--ease-out); }
  .case__next[data-next-ready]:not([data-revealed], :focus-within) .case__next-media img { transform: translateY(100%); }
  .case__next[data-revealed]:focus-visible .case__next-media img { transform: translateY(-18px); transition-duration: .2s; }
  @media (hover: hover) {
    .case__next[data-revealed]:hover .case__next-media img { transform: translateY(-18px); transition-duration: .2s; }
  }

  .work-slot__caption h3 { transition: background-size .5s var(--ease-out); }

  .marquee[data-marquee-ready] .marquee__track {
    display: flex;
    width: max-content;
    font-size: clamp(150px, 35.15625vw, 450px);
    animation: marquee-travel var(--marquee-duration, 60s) linear infinite paused;
  }

  .marquee[data-marquee-ready] .marquee__cycle {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    padding-inline: 0;
    white-space: nowrap;
  }

  .marquee[data-marquee-ready] .marquee__word--repeat { display: inline; }
  .marquee[data-marquee-running] .marquee__track { animation-play-state: running; }
  html[data-menu-lock] .marquee[data-marquee-running] .marquee__track { animation-play-state: paused; }

  .work-grid[data-media-ready] .work-slot__media { opacity: 0; }
  .work-grid[data-media-ready] .work-slot__caption { opacity: 0; transform: translateY(32px); }

  .work-grid[data-media-transitions] .work-slot__media {
    transition: opacity .4s ease;
  }

  .work-grid[data-media-transitions] .work-slot__caption { transition: opacity .8s ease, transform .8s var(--ease-out); }
  .work-grid[data-media-ready] .work-slot:is([data-revealed], :focus-within) .work-slot__media { opacity: 1; }
  .work-grid[data-media-ready] .work-slot:is([data-revealed], :focus-within) .work-slot__caption { opacity: 1; transform: none; }

}

@keyframes route-cover {
  from { clip-path: inset(0); }
  to { clip-path: inset(0 0 100% 0); }
}

@keyframes route-open {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

@keyframes marquee-travel {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.menu-toggle, .menu__note { display: none; }

@media (max-width: 640px) {
  html[data-menu-lock] { overflow: hidden; }
  html[data-menu-lock] .skip { visibility: hidden; }

  .masthead[data-menu-ready] .masthead__inner { position: relative; }
  .masthead[data-menu-ready] .masthead__inner::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--gutter)) 1px;
    z-index: 2;
    background: var(--paper);
    pointer-events: none;
  }

  body[data-page="home"] .masthead:not([data-away-from-hero], [data-menu-open]) .masthead__inner::before { background: transparent; }

  .masthead[data-menu-ready] :is(.home-link, .menu-toggle, .languages) { position: relative; z-index: 3; }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    padding: 0 5px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
  }

  .menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .menu-toggle .menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

  .masthead[data-menu-ready] .navigation {
    --menu-curve: cubic-bezier(.4, .01, .165, .99);
    position: fixed;
    z-index: 1;
    inset: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 0;
    padding-inline: var(--gutter);
    overflow: hidden;
    background: transparent;
    color: var(--paper);
    visibility: hidden;
    transition: height .3s linear, background-color .3s linear, visibility 0s .3s;
  }

  .masthead[data-menu-open] { color: var(--paper); }
  .masthead[data-menu-open] .masthead__inner { border-color: rgb(252 251 248 / 28%); }
  .masthead[data-menu-open] .masthead__inner::before { background: var(--ink); }
  .masthead[data-menu-open] .home-link img { filter: brightness(0) invert(1); }
  .masthead[data-menu-open] .languages a { color: inherit; }

  .masthead[data-menu-open] .navigation {
    height: 100dvh;
    overflow-y: auto;
    background: var(--ink);
    visibility: visible;
    transition-delay: 0s;
  }

  .masthead[data-menu-ready] .navigation a {
    display: flex;
    align-items: center;
    flex: 0 0 clamp(56px, 10vh, 90px);
    font-size: clamp(2rem, 9vw, 2.7rem);
    font-weight: 400;
    line-height: 1.15;
    transform-origin: left center;
    transform: translateY(-34.5px);
    opacity: 0;
    transition: transform .3s var(--menu-curve), opacity .3s var(--menu-curve);
  }

  .masthead[data-menu-ready] .navigation a:first-child { margin-top: calc(var(--masthead-height) + clamp(22px, 5vh, 46px)); transition-delay: .21s; }
  .masthead[data-menu-ready] .navigation a:nth-child(2) { transition-delay: .14s; }
  .masthead[data-menu-ready] .navigation a:nth-child(3) { transition-delay: .07s; }

  .masthead[data-menu-open] .navigation a { transform: translateY(0); opacity: 1; }
  .masthead[data-menu-open] .navigation a:first-child { transition-delay: .27s; }
  .masthead[data-menu-open] .navigation a:nth-child(2) { transition-delay: .34s; }
  .masthead[data-menu-open] .navigation a:nth-child(3) { transition-delay: .41s; }
  .masthead[data-menu-open] .navigation a:hover { color: inherit; }
  .masthead[data-menu-open] .navigation a:is([aria-current="page"], [aria-current="location"]) { color: #f0c9ae; }

  .masthead[data-menu-ready] .menu__note {
    display: block;
    margin-top: auto;
    padding-block: clamp(20px, 5vh, 42px) max(24px, env(safe-area-inset-bottom));
    opacity: 0;
    transform: translateY(-15px);
    transition: transform .3s var(--menu-curve), opacity .3s var(--menu-curve);
  }

  .masthead[data-menu-open] .menu__note { transform: translateY(0); opacity: 1; transition-delay: .48s; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead[data-menu-ready] .navigation,
  .masthead[data-menu-ready] .navigation a,
  .masthead[data-menu-ready] .menu__note { transition: none; }
}
