/* Entry point — import order matters */
/* Adobe Fonts (Typekit): alpine-script + montserrat for the hero wordmark.
   Imported here so it's present on every route (the SPA router only swaps
   <body>, not <head>). */
@import url("https://use.typekit.net/knq2rzf.css");
@import './global.css';
@import './nav.css';
@import './hero.css';
@import './reveal.css';
@import './about.css';
@import './projects.css';
@import './project.css';
@import './footer.css';
@import './studio.css';
@import './transitions.css';
@import './mobile-polish.css';

/* The name, the offer and the button sit in the middle of the film,
   so the first screen says what the studio is. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--clr-bg, #f4efe6);
}

.hero_video {
  pointer-events: none;
}

.hero_matte {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--clr-bg, #f4efe6);
  opacity: 0;
  visibility: hidden;
}

.hero_vignette {
  inset: 0;
  background:
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(20, 17, 14, 0.72) 0%, rgba(20, 17, 14, 0.4) 42%, rgba(20, 17, 14, 0.08) 68%, rgba(20, 17, 14, 0) 78%),
    linear-gradient(180deg, rgba(20, 17, 14, 0.4) 0%, rgba(20, 17, 14, 0.12) 24%, rgba(20, 17, 14, 0.12) 76%, rgba(20, 17, 14, 0.45) 100%);
}

.hero > .hero_heading,
.hero > .hero_content {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  background: none;
  z-index: 3;
}

.hero > .hero_heading {
  display: flex;
  justify-content: center;
  width: min(52rem, calc(100% - 3rem));
  padding: 0;
}

.hero > .hero_heading h1 {
  width: auto;
  max-width: 100%;
  text-align: center;
}

.hero > .hero_content {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(40rem, calc(100% - 3rem));
  /* Negative: the script word's descender padding sits inside the heading
     box, so a positive margin left the lockup optically high above the lead. */
  margin: -0.85rem 0 0;
  padding: 0;
  background: none;
  text-align: center;
}

.hero .hero_content__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 100%;
}

.hero .hero_content__right {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.hero h2.hero_lead {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.45vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f4efe6;
  text-align: center;
  text-shadow: 0 1px 16px rgba(20, 17, 14, 0.55);
}

.hero a.hero_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0 1.25rem;
  background: #f4efe6;
  color: #161310;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: auto;
}

.hero .hero_location,
.hero .hero_social,
.hero .hero_social__link {
  color: #f4efe6;
  text-align: center;
}

.hero .hero_social {
  justify-content: center;
}

@media (max-width: 768px) {
  .hero > .hero_heading h1 {
    align-items: center;
  }

  .hero > .hero_heading .word--script > span {
    padding-left: 0.18em;
  }

  .hero h2.hero_lead {
    font-size: 1.2rem;
    max-width: 22rem;
  }

  .hero a.hero_cta {
    width: 100%;
    max-width: 20rem;
  }

}

.reveal__stills {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.reveal__stills img {
  display: block;
  width: 100%;
  height: auto;
}

.reveal__stills img.reveal__still--offset {
  width: 78%;
  margin-left: auto;
}

.reveal {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(24px, 4vw, 64px);
}

.reveal__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-muted, #6d675f);
}

.reveal__title {
  max-width: 16ch;
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: var(--clr-text, #1c1916);
}

.reveal__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.reveal__text {
  max-width: 38ch;
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--clr-text-2, #4a453f);
}

.reveal__film {
  margin: 0;
}

.reveal__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1c1916;
  overflow: hidden;
}

.reveal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c1916;
}

.reveal__play {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4efe6;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal__play-mark {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.reveal__play-mark::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.75rem;
  border-color: transparent transparent transparent currentColor;
}

.reveal__play:focus-visible {
  outline: 2px solid #f4efe6;
  outline-offset: 4px;
}

.reveal__film.is-playing .reveal__play {
  display: none;
}

.reveal__caption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-muted, #6d675f);
}

.offer__sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
}

.offer__sectors .offer__label {
  width: 100%;
  margin: 0;
}

.offer__sectors a,
.practice__other a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clr-text, #1c1916);
}

.practice__note {
  max-width: 36ch;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.4;
}

.practice__scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 2rem;
  max-width: 40rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.practice__scope li {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.practice__other {
  margin-top: 1.5rem;
}

.practice__label {
  margin: 0 auto 1.25rem;
  max-width: 1180px;
  padding-inline: clamp(24px, 4vw, 64px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-muted, #6d675f);
}

.practice-work {
  padding-bottom: clamp(72px, 12vh, 140px);
  background: var(--clr-bg, #f4efe6);
}

.offer__note {
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--clr-text-2, #4a453f);
}

.offer__head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  column-gap: clamp(2.75rem, 5vw, 6rem);
  align-items: center;
}

.offer__stills {
  position: relative;
  height: 28rem;
  overflow: hidden;
}

.offer__still {
  position: absolute;
  display: block;
  object-fit: cover;
}

.offer__still--a {
  top: 0;
  left: 0;
  width: 64%;
  height: 16.5rem;
}

.offer__still--b {
  top: 11.25rem;
  right: 0;
  width: 50%;
  height: 15.25rem;
}

.offer__still--c {
  left: 0;
  bottom: 0;
  width: 40%;
  height: 10.5rem;
}

.partners {
  padding: clamp(48px, 8vh, 88px) 0 clamp(28px, 5vh, 48px);
  background: var(--clr-bg, #f4efe6);
  color: var(--clr-text, #1c1916);
}

.partners__label {
  margin: 0 0 1.5rem;
  padding-inline: clamp(24px, 4vw, 64px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-muted, #6d675f);
}

.partners__viewport {
  overflow: hidden;
}

.partners__viewport:hover .partners__track,
.partners__viewport:focus-within .partners__track {
  animation-play-state: paused;
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  width: max-content;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  animation: partners-drift 90s linear infinite;
}

.partners__track li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 52px;
}

.partners__track img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: center;
}

.px-carousel__bar {
  display: grid;
  grid-template-columns: minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding-inline: clamp(24px, 4vw, 64px);
}

.px-carousel__progress {
  height: 1px;
  background: rgba(28, 25, 22, 0.18);
}

.px-carousel__progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #1c1916;
}

.px-carousel__nav {
  display: flex;
  gap: 8px;
}

.px-carousel__btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(28, 25, 22, 0.28);
  background: transparent;
  color: var(--clr-text, #1c1916);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.px-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.px-carousel__btn:focus-visible {
  outline: 2px solid var(--clr-text, #1c1916);
  outline-offset: 3px;
}

/* Projects: a horizontal reel of stills. The still opens that film.
   The title still goes to the project page. */
.px .px-list {
  display: flex;
  gap: 1rem;
  max-width: none;
  margin: 0;
  padding-inline: clamp(24px, 4vw, 64px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(24px, 4vw, 64px);
  border-top: 0;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
}

.px .px-list.is-dragging {
  cursor: grabbing;
}

.px .px-list.is-at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.px .px-list::-webkit-scrollbar {
  display: none;
}

.px .px-item {
  flex: 0 0 clamp(240px, 34vw, 440px);
  scroll-snap-align: start;
  border-bottom: 0;
}

.px .px-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0;
}

.px .px-strip {
  display: block;
  width: 100%;
}

.px .px-row .px-strip__btn,
.px .px-row .px-strip__btn:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #1c1916;
  overflow: hidden;
}

.px .px-strip__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.px .px-row__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: left;
}

.px .px-row__title {
  font-size: clamp(26px, 2.4vw, 40px);
}

.px .px-row__meta {
  white-space: normal;
}

@media (max-width: 768px) {
  .reveal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reveal__title {
    max-width: 18ch;
  }

  .offer__head {
    display: block;
  }

  .offer__stills {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.75rem;
    overflow: visible;
  }

  .offer__still,
  .offer__still--a,
  .offer__still--b,
  .offer__still--c {
    position: static;
    width: 100%;
    height: 12rem;
  }

  .offer__still--a {
    grid-column: 1 / -1;
    height: 15rem;
  }

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

  .px .px-item {
    flex-basis: 78vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__viewport {
    padding-inline: clamp(24px, 4vw, 64px);
  }

  .partners__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 1180px;
    margin-inline: auto;
    row-gap: 1.75rem;
  }

  .partners__track li[aria-hidden="true"] {
    display: none;
  }
}

@keyframes partners-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.single-post .sheet__title {
  max-width: 18ch;
  font-size: clamp(32px, 4.6vw, 76px);
}

@media (max-width: 768px) {
  .single-post .sheet__title {
    max-width: none;
    font-size: clamp(32px, 9vw, 44px);
  }
}

.form__legal {
  max-width: 46ch;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--clr-text-2, #4a453f);
}

.form__legal a,
.entry__body a {
  color: inherit;
}

.footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.footer__legal a,
.footer__legal button,
.entry__body button[data-pp-consent] {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-decoration: none;
}

.entry__body button[data-pp-consent] {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  min-height: 44px;
}

.entry__body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.entry__body li + li {
  margin-top: 0.35rem;
}

.pp-consent {
  position: fixed;
  z-index: 200;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pp-consent[hidden] {
  display: none;
}

.pp-consent__box {
  pointer-events: auto;
  width: min(34rem, 100%);
  padding: 0.8rem 1rem 0.65rem;
  background: var(--clr-bg, #f4efe6);
  color: var(--clr-text, #14110e);
  border: 1px solid var(--clr-text, #14110e);
}

.pp-consent__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pp-consent__body {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.pp-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin-top: 0.65rem;
}

.pp-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid var(--clr-text, #14110e);
  background: var(--clr-text, #14110e);
  color: var(--clr-bg, #f4efe6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.pp-consent__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.pp-consent__opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.15rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--clr-line, rgba(20, 17, 14, 0.18));
}

.pp-consent__opts[hidden] {
  display: none;
}

.pp-consent__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.pp-consent__opt input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid var(--clr-text, #14110e);
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}

.pp-consent__opt input:checked {
  background-color: var(--clr-text, #14110e);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.2 5.1 L4.3 8.1 L10.8 1.4' fill='none' stroke='%23F4EFE6' stroke-width='1.7' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 7px;
}

.pp-consent__btn--save {
  margin-left: auto;
}

@media (max-width: 540px) {
  .pp-consent__actions {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    column-gap: 0.85rem;
    row-gap: 0.1rem;
  }

  .pp-consent__actions .pp-consent__btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pp-consent__opts {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: 1rem;
    row-gap: 0.15rem;
  }

  .pp-consent__btn--save {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }
}
