:root {
  --ink: #080a0d;
  --ink-soft: #111419;
  --paper: #f2f0e9;
  --white: #fff;
  --muted: #a7a8aa;
  --line: rgba(255, 255, 255, .16);
  --dark-line: rgba(8, 10, 13, .2);
  --yellow: #ffd400;
  --yellow-dark: #685700;
  --max: 1480px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 9vw, 9rem);
  --font: "Segoe UI", Arial, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
summary {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

summary,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

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

.skip-link {
  min-height: 2.75rem;
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  padding: .75rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

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

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  color: var(--yellow);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-block-end: 1px solid rgba(255, 255, 255, .13);
  background: rgba(8, 10, 13, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: clamp(4.75rem, 7vw, 6.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(12rem, 18vw, 18.75rem);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.25vw, 2.5rem);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.desktop-nav a {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.desktop-nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, .78);
}

.nav-cta,
.button {
  --button-fill: var(--yellow);
  --button-fill-text: var(--ink);
  background-image: linear-gradient(var(--button-fill) 0 0);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size .38s cubic-bezier(.2, .75, .25, 1), border-color .25s ease, color .25s ease;
}

.nav-cta {
  padding-inline: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: var(--white);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  width: 3rem;
  height: 3rem;
  position: relative;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-line {
  width: 1.15rem;
  height: 2px;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  background: var(--white);
  transition: transform .2s ease;
}

.menu-line:first-of-type {
  transform: translateX(-50%) translateY(-.25rem);
}

.menu-line:last-of-type {
  transform: translateX(-50%) translateY(.25rem);
}

.mobile-nav[open] .menu-line:first-of-type {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav[open] .menu-line:last-of-type {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu {
  width: min(18rem, calc(100vw - 2.5rem));
  position: absolute;
  inset-block-start: calc(100% + .75rem);
  inset-inline-end: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 13, .97);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, .45);
}

.mobile-menu a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: .85rem;
  border-block-end: 1px solid var(--line);
  text-decoration: none;
}

.mobile-menu a:last-child {
  --button-fill: var(--white);
  --button-fill-text: var(--ink);
  border: 0;
  background-color: var(--yellow);
  background-image: linear-gradient(var(--button-fill) 0 0);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0 100%;
  color: var(--ink);
  font-weight: 800;
  transition: background-size .38s cubic-bezier(.2, .75, .25, 1), color .25s ease;
}

.case-hero {
  min-height: max(47rem, 100svh);
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: clip;
  background: #0a0b0e;
}

.case-hero__media,
.case-hero__media::before {
  position: absolute;
  inset: 0;
}

.case-hero__media {
  z-index: -2;
}

.case-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
  filter: saturate(.82) contrast(1.05);
}

.case-hero__media::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .97) 0%, rgba(5, 7, 9, .78) 42%, rgba(5, 7, 9, .14) 78%),
    linear-gradient(0deg, rgba(5, 7, 9, .98) 0%, rgba(5, 7, 9, .08) 60%, rgba(5, 7, 9, .32) 100%);
  content: "";
}

.case-hero__content {
  padding-block: clamp(9rem, 16vw, 13rem) clamp(3rem, 6vw, 5.5rem);
}

.case-hero h1,
.section-title,
.contact h2 {
  margin: 1.35rem 0 0;
  font-size: clamp(3rem, 6.6vw, 7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .86;
  text-wrap: balance;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 72rem;
}

.case-hero__lead {
  max-width: 46rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  text-wrap: balance;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-block-start: 2rem;
}

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .82rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.1;
  text-decoration: none;
}

.button--primary {
  --button-fill: var(--white);
  border-color: var(--yellow);
  background-color: var(--yellow);
  color: var(--ink);
}

.button--dark {
  --button-fill: var(--yellow);
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--paper);
}

.contact .button--dark {
  --button-fill: var(--white);
}

.button-arrow {
  font-size: 1.08rem;
  line-height: 1;
  transition: transform .3s cubic-bezier(.2, .75, .25, 1);
}

.fact-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: clamp(3rem, 6vw, 5.5rem);
  border: 1px solid var(--line);
}

.fact-rail div {
  min-height: 5.6rem;
  display: grid;
  place-content: center;
  gap: .25rem;
  padding: 1rem;
  text-align: center;
}

.fact-rail div + div {
  border-inline-start: 1px solid var(--line);
}

.fact-rail dt {
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.fact-rail dd {
  margin: 0;
  font-weight: 700;
}

.light {
  background: var(--paper);
  color: var(--ink);
}

.light .eyebrow {
  color: var(--yellow-dark);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(15rem, .62fr) minmax(0, 1.38fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: start;
}

.section-title {
  margin-block-start: 1.4rem;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
}

.editorial-copy {
  max-width: 50rem;
  padding-block-start: clamp(1rem, 4vw, 4.8rem);
}

.editorial-copy p {
  margin: 0;
  color: rgba(8, 10, 13, .72);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
}

.editorial-copy p + p {
  margin-block-start: 1.5rem;
}

.feature-figure {
  margin: clamp(3.5rem, 7vw, 7rem) 0 0;
}

.feature-figure img {
  width: 100%;
  max-height: 56rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 52%;
}

figcaption {
  max-width: 52rem;
  padding-block-start: .9rem;
  color: rgba(8, 10, 13, .58);
  font-size: .82rem;
}

.interaction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, .92fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.interaction-copy .section-title {
  max-width: 48rem;
}

.interaction-copy > p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.credit-note {
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--yellow);
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.technical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.technical-list li {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
}

.technical-list li::before {
  width: .42rem;
  height: .42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.interaction-image {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50% 50% 4% 50%;
  background: var(--ink-soft);
}

.interaction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-heading {
  max-width: 62rem;
  margin-block-end: clamp(3rem, 6vw, 5.5rem);
}

.case-gallery {
  width: min(100%, 64rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-inline: auto;
}

.case-gallery figure {
  margin: 0;
}

.case-gallery figure {
  grid-column: span 6;
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result {
  background: #0c0e12;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .9fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.result-copy p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.credits {
  margin: 0;
  border-block-start: 1px solid var(--line);
}

.credits div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.25rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}

.credits dt {
  color: rgba(255, 255, 255, .46);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.credits dd {
  margin: 0;
  font-weight: 700;
}

.contact {
  position: relative;
  overflow: clip;
  background: var(--yellow);
  color: var(--ink);
}

.contact::after {
  width: min(34rem, 42vw);
  aspect-ratio: 1;
  position: absolute;
  inset-block-start: clamp(-10rem, -8vw, -5rem);
  inset-inline-end: clamp(-8rem, -5vw, -3rem);
  opacity: .075;
  background: url("../Resources/ScreamingCatLogo_Black.png") center / contain no-repeat;
  content: "";
  transform: rotate(8deg);
  transform-origin: right top;
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: end;
}

.contact .eyebrow {
  color: rgba(8, 10, 13, .7);
}

.contact h2 {
  font-size: clamp(2.8rem, 5.3vw, 5.5rem);
}

.contact-action p {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.contact-action .button-row {
  margin-block-start: 1.6rem;
}

footer {
  padding-block: 2.6rem;
  border-block-start: 1px solid var(--line);
  background: #06070a;
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-copy {
  display: grid;
  gap: .35rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
}

.footer-heart {
  width: .72rem;
  height: .72rem;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  margin-inline: .08rem .12rem;
  background: var(--yellow);
  transform: rotate(-45deg);
}

.footer-heart::before,
.footer-heart::after {
  width: .72rem;
  height: .72rem;
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.footer-heart::before {
  inset-block-start: -.36rem;
  inset-inline-start: 0;
}

.footer-heart::after {
  inset-block-start: 0;
  inset-inline-start: .36rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
}

.footer-legal,
.back-to-top,
.social-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.back-to-top {
  margin-inline-end: .7rem;
}

.social-link {
  width: 2.75rem;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #8e9197;
  text-decoration: none;
  transition: border-color .25s ease, color .3s ease, transform .3s cubic-bezier(.2, .75, .25, 1);
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.social-link--youtube { --social-colour: #ff0033; }
.social-link--instagram { --social-colour: #e4405f; }
.social-link--facebook { --social-colour: #1877f2; }

.social-link:focus-visible {
  border-color: var(--social-colour);
  color: var(--social-colour);
  transform: translateY(-2px);
}

@media (hover: hover) {
  .desktop-nav a:not(.nav-cta):hover {
    color: var(--white);
  }

  .nav-cta:hover,
  .button:hover,
  .mobile-menu a:last-child:hover {
    background-size: 100% 100%;
    border-color: var(--button-fill);
    color: var(--button-fill-text);
  }

  .button:hover .button-arrow {
    transform: translateX(.18rem);
  }

  .social-link:hover {
    border-color: var(--social-colour);
    color: var(--social-colour);
    transform: translateY(-2px);
  }
}

.nav-cta:focus-visible,
.button:focus-visible,
.mobile-menu a:last-child:focus-visible {
  background-size: 100% 100%;
  border-color: var(--button-fill);
  color: var(--button-fill-text);
}

@media (max-width: 70rem) {
  .editorial-grid,
  .interaction-grid,
  .result-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .editorial-copy {
    padding-block-start: 0;
  }

  .interaction-image {
    width: min(100%, 38rem);
  }

  .credits {
    max-width: 48rem;
  }

  .contact-action {
    max-width: 38rem;
  }
}

@media (max-width: 54rem) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .case-hero__media img {
    object-position: 58% center;
  }

  .fact-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-rail div:nth-child(odd) {
    border-inline-start: 0;
  }

  .fact-rail div:nth-child(n + 3) {
    border-block-start: 1px solid var(--line);
  }

  .case-gallery figure {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 38rem) {
  :root {
    --gutter: 1.15rem;
  }

  .brand img {
    width: 11rem;
  }

  .case-hero {
    min-height: 47rem;
  }

  .case-hero h1,
  .section-title,
  .contact h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fact-rail {
    grid-template-columns: 1fr;
  }

  .fact-rail div + div,
  .fact-rail div:nth-child(odd) {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }

  .fact-rail div:first-child {
    border-block-start: 0;
  }

  .feature-figure img {
    aspect-ratio: 1;
  }

  .technical-list {
    grid-template-columns: 1fr;
  }

  .credits div {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .contact::after {
    width: 20rem;
    inset-block-start: -6rem;
    inset-inline-end: -7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    transition-duration: .01ms;
  }
}
