/* ==========================================================================
   House of Friends Studio — Home
   Breakpoints: 991px (tablet), 767px (mobile landscape), 479px (mobile)
   ========================================================================== */

/* Fonts
   ========================================================================== */
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Regular.woff2") format("woff2"),
       url("../assets/fonts/SpaceMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../assets/fonts/PPEditorialNew-Ultralight.woff2") format("woff2"),
       url("../assets/fonts/PPEditorialNew-Ultralight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Gravity";
  src: url("../assets/fonts/ABCGravity-XXXCompressed.woff2") format("woff2"),
       url("../assets/fonts/ABCGravity-XXXCompressed.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Tokens
   ========================================================================== */
:root {
  --black: #000;
  --white: #fff;
  --green: #baff99;

  --font-serif: "PP Editorial New", serif;
  --font-display: "ABC Gravity", sans-serif;
  --font-mono: "Space Mono", monospace;

  --gutter: 5rem;
  --col-gap: 1.5rem;
  --radius: 1.5rem;
}

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

/* Fluid root size: everything in rem scales with the viewport */
html {
  font-size: calc(0.583795975017349rem + 0.5551700208188758vw);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  width: 0;
}

h1,
h2,
p {
  margin: 0;
}

/* Display headings */
h2 {
  padding-top: 0.07em;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.77;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

::selection {
  background: var(--green);
  color: var(--black);
}

:focus-visible {
  outline: 0.125rem solid var(--green);
  outline-offset: 0.125rem;
}

/* Typography
   ========================================================================== */
.text-m {
  font-size: 1.25rem;
}

.text-ml {
  font-size: 2.3rem;
  line-height: 1.2;
}

.text-l {
  display: block;
  font-size: 2.4rem;
  line-height: 1.4;
}

.text-xl {
  font-size: 3.5rem;
  line-height: 1.25;
}

/* Uppercase mono label (scales up on small screens) */
.mono,
.mono-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Mono link: same look, fixed size on all screens */
.mono-link {
  display: inline-block;
}

/* Running mono text, no caps */
.mono--plain {
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.p-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
}

.plus::before {
  content: "+";
}

/* Layout
   ========================================================================== */
.container {
  position: relative;
  padding-inline: var(--gutter);
}

/* Vertical stack inside a section */
.stack {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

/* Two-column row (6/6) */
.row {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  column-gap: var(--col-gap);
  width: 100%;
}

.col {
  position: relative;
  width: 49%;
}

.section {
  position: relative;
  z-index: 1;
}

.section--black {
  background: var(--black);
  color: var(--white);
}

.section--green {
  background: var(--green);
}

.spacer-xhuge   { padding-top: 8rem; }
.spacer-xxlarge { padding-top: 5rem; }
.spacer-large   { padding-top: 3rem; }
.spacer-tiny    { padding-top: 0.125rem; }

/* Section head: "01 — What we do  +" */
.section-head {
  padding-bottom: 2rem;
}

.section-head__left {
  display: flex;
  column-gap: 1rem;
}

.section-head__plus {
  position: absolute;
  top: 0;
  right: 0;
}

/* CTA link with green dot + underline
   ========================================================================== */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1rem;
  line-height: 1.9;
  cursor: pointer;
}

.cta__dot {
  position: absolute;
  top: calc(50% - 0.25rem);
  left: -1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  transform-origin: 100%;
}

/* Icon that slides into the dot on hover (js/animations.js) */
.cta__icon {
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
  margin: auto;
  color: var(--black);
  visibility: hidden;
}

.cta__label {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta__label::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--white);
  transform: translateX(var(--line-x, 0%));
}

.cta--dot-right {
  margin-left: 0;
}
.cta--dot-right .cta__dot {
  left: auto;
  right: -1rem;
}

.cta--footer {
  margin-top: -0.25rem;
  margin-left: 0;
}
.cta--footer .cta__label {
  padding-bottom: 1px;
}
.cta--footer .cta__label::after {
  display: none;
}

/* Underline that draws in on hover */
.link-underline {
  position: relative;
}
.link-underline::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s;
}
.link-underline:hover::before {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

/* Berlin clock
   ========================================================================== */
.time {
  display: flex;
  justify-content: flex-end;
  column-gap: 0.5rem;
  margin-bottom: 1rem;
}

.time__now {
  display: flex;
  column-gap: 0.5rem;
}

.clock {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.clock__hour,
.clock__minute {
  position: absolute;
  left: 45%;
  width: 10%;
  border-radius: 20px;
  background: currentColor;
  transform-origin: bottom;
}
.clock__hour {
  top: 13%;
  height: 37%;
}
.clock__minute {
  top: 5%;
  height: 45%;
}

/* Navigation (desktop)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1rem var(--gutter) 1.25rem;
  color: var(--white);
  mix-blend-mode: difference;
}

.nav__logo,
.nav__links,
.nav__end {
  display: flex;
  flex: 1;
  align-items: center;
}

.nav__links {
  justify-content: center;
  column-gap: 2rem;
}

.nav__end {
  justify-content: flex-end;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav__lang {
  margin-left: 2.5rem;
}

/* Navigation (mobile) */
.nav-mobile {
  display: none;
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-top: 3rem;
}

.hero__inner > .container {
  flex: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 95vh;
  padding-bottom: 2rem;
}

.hero__wordmark-wrap {
  container-type: inline-size;
}

.hero__wordmark {
  padding-top: 7cqi;
  font-size: 62.5cqi;
  line-height: 0.62;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__char {
  display: inline-block;
  font-family: var(--font-display);
}

.hero__char--first {
  margin-left: -0.55vw;
}

.hero__space {
  margin-right: 12vw;
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.hero__tagline {
  max-width: 30rem;
  padding-top: 0.07em;
  font-weight: 200;
}

.hero__time-col {
  align-self: flex-end;
  text-align: right;
}

/* 01 About
   ========================================================================== */
.about__illustration {
  text-align: center;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 4rem;
  padding-bottom: 1rem;
}

.about__services {
  display: flex;
  column-gap: 2.75rem;
}

.about__service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 1rem;
  max-width: 14rem;
}

/* 02 Work
   ========================================================================== */
.work__title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.work__title {
  padding-top: 5.5vw;
  font-size: 45vw;
  line-height: 0.6;
}

.work__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: start;
  gap: 4rem;
  width: 60%;
  margin-inline: auto;
}

/* Left column sits higher */
.work__grid > :nth-child(odd) {
  top: -4rem;
}

.work__cta {
  align-self: center;
  margin-top: 2rem;
}

/* Project card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.52;
  overflow: hidden;
}

.card__media > img,
.card__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card__info {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  padding-left: 1.5rem;
}

.card__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card:hover .card__tags {
  opacity: 1;
}

.card:hover .card__media > * {
  transform: scale(1.05);
  border-radius: 0;
}

/* 03 Contact
   ========================================================================== */
.contact__head {
  display: flex;
  justify-content: space-between;
}

.contact__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 2rem;
  margin-inline: auto;
}

.contact__title-wrap {
  width: 50rem;
  overflow: hidden;
}

.contact__link {
  display: inline-block;
  max-width: 100%;
  color: var(--black);
}

.contact__title {
  font-size: 26rem;
  line-height: 0.75;
  text-align: center;
}

.contact__text {
  width: 34rem;
  text-align: center;
}

/* Mail pill, only on small screens */
.contact__pill {
  display: none;
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  background: var(--white);
  color: var(--black);
}

/* Footer — sticks to the bottom and is revealed behind the contact section
   ========================================================================== */
.footer {
  position: relative;
  width: 100vw;
  margin-top: -100vh;
}

.footer__spacer {
  height: 100vh;
}

.footer__inner {
  position: sticky;
  bottom: 0;
  padding-block: 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  row-gap: 16px;
}

.footer__logo {
  position: relative;
  grid-column: 1 / 4;
}

.footer__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  grid-column: 5 / 13;
  width: 100%;
}

.footer__nav,
.footer__row {
  display: flex;
  gap: 1.5rem;
}

.footer__nav {
  flex: 1;
  justify-content: space-between;
}

.footer__col {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.footer__col--last {
  flex: 0 auto;
  width: 22%;
}

.footer__nav > .footer__col {
  display: block;
}

.footer__nav > .footer__col--stack {
  display: flex;
  gap: 0.5rem;
}

.footer__copy {
  position: relative;
  top: 0.3rem;
  margin-right: 0.1rem;
  font-size: 1rem;
}

/* Buttons (cookie banner)
   ========================================================================== */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 6rem;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
}

.btn--black { background: var(--black); color: var(--white); }
.btn--green { background: var(--green); color: var(--black); }
.btn--white { background: var(--white); color: var(--black); }
.btn--ghost {
  padding-inline: 0.7rem;
  background: transparent;
  color: var(--white);
}

/* Cookie consent
   ========================================================================== */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 997;
  display: none; /* shown by the Finsweet script */
  width: 25rem;
  padding: 2rem;
  border-radius: 1rem;
  background: #6b6b6b4f;
  color: var(--white);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 990px;
  margin-inline: auto;
}

.cookie-banner__link {
  border-bottom: 2px solid var(--white);
  font-weight: 400;
}

.cookie-banner__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-top: 1rem;
}

.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 996;
  display: none; /* shown by the Finsweet script */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.cookie-prefs__wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.cookie-prefs__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000000e6;
}

.cookie-prefs__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  border-radius: 1rem;
  background: #333;
}

.cookie-prefs__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  box-shadow: -1px 1px 4px #3333331a;
}

.cookie-prefs__close svg {
  width: 100%;
  height: 100%;
}

.cookie-prefs__content {
  height: 100%;
  padding: 40px 32px;
  border-radius: 1rem;
  background: var(--white);
  color: var(--black);
}

.cookie-prefs__title {
  margin-top: -1rem;
  margin-bottom: 12px;
}

.cookie-prefs__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid #c0c0c04d;
}

.cookie-prefs__checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 4px;
  background: #e7e7e7;
  cursor: pointer;
  appearance: none;
}
.cookie-prefs__checkbox:checked {
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-miterlimit='10' d='M11 2L5.5 8.5 2 5'/%3E%3C/svg%3E") 50% / contain no-repeat;
}

.cookie-prefs__buttons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  row-gap: 0.5rem;
  margin-top: 16px;
}

/* Animations (js/animations.js)
   ========================================================================== */

/* ScrollSmoother sets the wrapper/content styles itself (inline). The page
   keeps scrolling natively (scrollbar, keyboard, find-in-page), only the
   content's position is smoothed. */

/* Loader: only shown on the first visit per tab */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--black);
  color: var(--white);
  clip-path: polygon(0% 100%, 20% 100%, 20% 100%, 40% 100%, 40% 100%, 60% 100%, 60% 100%, 80% 100%, 80% 100%, 100% 100%, 100% 0%, 80% 0%, 60% 0%, 40% 0%, 20% 0%, 0% 0%);
}

.is-first-visit .loader {
  display: flex;
}

.is-first-visit body {
  overflow: hidden;
}

/* Label and words sit on top of each other and are shown one after another */
.loader__inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.loader__label,
.loader__word {
  position: absolute;
  visibility: hidden;
}

.loader__word {
  padding-top: 4rem;
  font-family: var(--font-display);
  font-size: 54vw;
  line-height: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Page transition: covers the page on load (not on the first visit, where
   the loader does that) and when leaving via an internal link */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--green);
}

.has-intro:not(.is-first-visit) .page-transition {
  display: flex;
}

.page-transition__logo {
  width: 25rem;
}

/* Hidden until the intro animates them in. Opacity, not visibility, so the
   headline and navigation stay in the accessibility tree the whole time. */
.has-intro .hero__wordmark,
.has-intro .hero__bottom,
.has-intro .nav,
.has-intro .nav-mobile {
  opacity: 0;
}

/* Visually hidden but read by screen readers (holds the real text while a
   label scrambles) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Tablet ≤ 991px
   ========================================================================== */
@media (max-width: 991px) {
  :root {
    --gutter: 2.5rem;
    --col-gap: 1rem;
  }

  h2 { font-size: 4.8rem; }

  .text-ml { font-size: 2rem; }
  .text-l  { font-size: 2rem; }
  .text-xl { font-size: 3rem; }

  .spacer-xhuge { padding-top: 6rem; }
  .spacer-large { padding-top: 2rem; }

  .section-head { padding-bottom: 1.5rem; }

  .about__services {
    column-gap: 1rem;
    width: 100%;
  }
  .about__service { max-width: none; }

  .work__grid { min-height: 50vh; }
  .work__cta { margin-top: 1.5rem; }

  /* No hover on touch: always show the tags */
  .card__tags {
    opacity: 1;
    white-space: nowrap;
  }
  .card__info { padding-left: 1rem; }

  .contact__body { max-width: 80vw; }
  .contact__illustration { width: 40%; }
  .contact__title {
    font-size: 40vw;
    line-height: 29vw;
  }
}

/* ==========================================================================
   Mobile landscape ≤ 767px
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 1.5rem; }

  .page-transition__logo { width: 18rem; }

  h2 { font-size: 7.3rem; }

  .text-l {
    font-size: 1.75rem;
    line-height: 1.5;
  }
  .text-xl { font-size: 2.5rem; }

  .spacer-xhuge { padding-top: 4rem; }

  .nav { padding-inline: 1.25rem; }
  .nav__links { column-gap: 1.25rem; }
  .nav__link  { font-size: 0.85rem; }

  .row {
    flex-direction: column;
    row-gap: 2rem;
  }
  .col { width: 100%; }

  .section-head {
    flex-direction: row;
    padding-bottom: 1.25rem;
  }

  .hero__bottom { flex-direction: row; }
  .hero__row    { flex-direction: row; }
  .hero__tagline-col { width: 180%; }

  .about__services {
    flex-direction: row;
    row-gap: 3rem;
  }
  .about__service { max-width: 22rem; }
  .about__service--2 { margin-left: auto; }

  .work__title {
    padding-top: 8vw;
    font-size: 60vw;
  }
  .work__grid { width: 75%; }
  .work__cta  { margin-top: 1.25rem; }
  .card__info { padding-left: 1rem; }

  .contact__title-wrap,
  .contact__text { width: 90%; }
  .contact__pill {
    display: block;
    margin-bottom: 4rem;
  }

  .footer__inner { width: 100vw; }
  .footer__grid {
    display: flex;
    flex-direction: column;
  }
  .footer__logo {
    width: 30%;
    margin-inline: auto;
  }
  .footer__nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-banner { padding: 1.5rem; }
  .cookie-banner__link { margin-right: 8px; }
  .cookie-banner__buttons { margin-top: 12px; }
}

/* ==========================================================================
   Mobile ≤ 479px
   ========================================================================== */
@media (max-width: 479px) {
  :root { --gutter: 1.25rem; }

  html { font-size: calc(0.7494769874476988rem + 0.8368200836820083vw); }

  h2 { font-size: 4.1rem; }

  .text-ml { font-size: 1.5rem; }
  .mono,
  .p-mono { font-size: 0.85rem; }

  .row {
    row-gap: 2.5rem;
    align-self: stretch;
  }

  .section-head__left { width: 10%; }
  .section-head__left--wide {
    flex: none;
    width: 90%;
  }

  /* Navigation: swap desktop for mobile */
  .nav { display: none; }

  .nav-mobile {
    display: flex;
    height: 4rem;
    margin-bottom: -4rem;
  }

  .nav-mobile__bar {
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 1.25rem 1.25rem 0;
    color: var(--white);
    mix-blend-mode: difference;
  }

  .nav-mobile__toggle {
    display: flex;
    justify-content: flex-end;
    margin: -1.5rem -1.5rem 0 0;
    padding: 1.5rem;
    border: 0;
    background: none;
    color: inherit;
    line-height: inherit;
    cursor: pointer;
  }

  .nav-mobile__close { display: none; }
  .nav-mobile.is-open .nav-mobile__open  { display: none; }
  .nav-mobile.is-open .nav-mobile__close { display: inline; }

  .nav-mobile__panel {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100vw;
    height: 100%;
    padding: 10rem 1.25rem 1.5rem;
    background: var(--green);
  }
  .nav-mobile.is-open .nav-mobile__panel { display: flex; }

  .nav-mobile__list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-mobile__item {
    padding-bottom: 1rem;
    overflow: hidden;
    font-size: 4.5rem;
    line-height: 1.1;
  }

  .nav-mobile__footer {
    display: flex;
    flex-direction: column;
  }

  .nav-mobile__lang {
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  .time--menu {
    justify-content: flex-start;
    align-items: center;
  }

  /* Hero: wordmark is rotated and runs vertically */
  .hero {
    min-height: 100svh;
  }

  .hero__inner {
    height: 100%;
    padding-top: 25vw;
  }

  .hero__content {
    align-items: stretch;
    height: calc(100svh - 5rem);
    min-height: auto;
    margin-top: 5rem;
    padding-top: 2.5rem;
  }

  .hero__wordmark-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80svw;
    padding: 0 21svw 0 10svw;
    transform: rotate(-90deg);
  }

  .hero__wordmark {
    margin-right: -19cqi;
    padding-top: 0;
    font-size: 100cqi;
    line-height: 0.58;
  }

  .hero__char { padding-top: 11cqi; }
  .hero__char--first {
    margin-left: 0;
    padding-top: 0;
  }
  .hero__space { margin-right: 6vw; }

  .hero__bottom {
    flex: 1;
    width: 100%;
    margin-top: 2rem;
  }

  .hero__row {
    flex-flow: wrap-reverse;
    align-items: stretch;
    row-gap: 0;
    padding-top: 1rem;
  }

  .hero__tagline-col {
    display: flex;
    align-items: flex-end;
    width: auto;
    max-width: 20.9rem;
  }

  .hero__tagline {
    max-width: none;
    font-size: 1.9rem;
  }

  .time { justify-content: center; }

  .about__services {
    row-gap: 3rem;
    padding-right: 1rem;
  }
  .about__service {
    flex: 1;
    max-width: 18rem;
  }

  .work__title {
    padding-top: 13vw;
    font-size: 105vw;
  }

  .work__grid {
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin-top: -2rem;
  }

  .card__info { padding-left: 0.5rem; }

  .contact { min-height: 100vh; }
  .contact__body { max-width: 90vw; }
  .contact__title {
    font-size: 60vw;
    line-height: 45vw;
  }
  .contact__title-wrap { width: 106%; }
  .contact__text { max-width: 74vw; }
  .contact__pill {
    position: relative;
    top: -10px;
    margin-bottom: 0;
  }

  /* Footer: regular flow, no reveal */
  .footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }
  .footer__spacer { display: none; }
  .footer__inner {
    position: static;
    padding-bottom: 1.5rem;
  }
  .footer__grid { height: 100%; }
  .footer__logo {
    display: flex;
    flex: 0 auto;
    width: 100%;
  }
  .footer__logo-inner { flex: 1; }
  .footer__nav { justify-content: flex-start; }
  .footer__nav > .footer__col {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: stretch;
  }
  .footer__nav > .footer__col--stack {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .footer__nav > .footer__col--last {
    justify-content: flex-start;
    align-items: center;
    text-align: right;
  }
  .footer__contact {
    flex-direction: column;
    row-gap: 0.75rem;
  }
  .footer__row > .footer__col--last {
    flex: 1;
    width: 100%;
  }
  .footer__legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 0.25rem 0;
    width: 100%;
  }

  .cookie-banner {
    bottom: 1rem;
    width: 90%;
    padding: 1.5rem;
  }
  .cookie-banner__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }
  .cookie-prefs { padding: 24px; }
  .cookie-prefs__close {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  .cookie-prefs__content { padding: 24px; }
}

/* Content pages (/brandsprint)
   ==========================================================================
   Added for the text-heavy subpages. The display h2 (5.5rem, uppercase) is
   right for one-word headings like "Work", but not for question headings of
   ten words — inside .prose, headings switch to the editorial serif and the
   mono face. Purely additive: no rule above this line is changed.
   ========================================================================== */
.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

/* Readable measure for body copy; overrides .col's 49% */
.col.prose {
  display: flex;
  flex-direction: column;
  row-gap: 1.25rem;
  width: 100%;
  max-width: 42rem;
}

.prose h2 {
  padding-top: 0;
  font-family: var(--font-serif);
  font-size: 2.9rem;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.prose h3 {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
}

.prose p { margin: 0; }
.prose strong { font-weight: 400; }

/* Plus-marked list, same marker idiom as .plus */
.list {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  list-style: none;
}
.list li {
  display: flex;
  column-gap: 0.6rem;
}
.list li::before {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
  opacity: 0.6;
}

/* Testimonial */
.quote {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid currentColor;
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; }

/* Founder cards */
.person {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}
.person img {
  width: 100%;
  border-radius: var(--radius);
}
.person h3 { margin: 0; }

@media (max-width: 767px) {
  .page-title { font-size: 2.6rem; }
  .col.prose { max-width: none; }
  .prose h2 { font-size: 2.4rem; }
  .person { width: 100%; }
}

/* Studio page (/studio)
   ==========================================================================
   Layout and sizes taken 1:1 from the original Webflow studio page. Text that
   the original did not have (question headings, intros, bios) is set in the
   site's existing type styles.
   ========================================================================== */
.spacer-huge    { padding-top: 6rem; }
.spacer-xxxhuge { padding-top: 15rem; }

.container-medium {
  max-width: 60rem;
  margin-inline: auto;
}

/* Small mono heading, like the original "+ What we are good at +" label */
.label-heading {
  display: inline-block;
  font-size: 0.75rem;
}

.plus-around::before { content: "+ "; }
.plus-around::after  { content: " +"; }

/* Giant display headings ("Our Friends", "Brands we worked with") */
.studio-friends__title,
.studio-brands__title {
  padding-top: 0.07em;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Stage */
.studio-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 5rem;
  background: var(--black);
  color: var(--white);
}

.studio-stage__title {
  max-width: 70%;
  padding-top: 0.07em;
  font-family: var(--font-display);
  font-size: 27vw;
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.studio-stage__illustration {
  position: absolute;
  right: 5rem;
  bottom: 0;
  width: 27%;
  padding-bottom: 5rem;
  text-align: right;
}

.studio-stage__illustration img {
  width: 100%;
  vertical-align: baseline;
}

.studio-stage__intro {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.studio-stage__intro .text-l {
  max-width: 74.5%;
}

/* Intro: "We are a creative team of friends" + founders */
.studio-intro {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.studio-intro__lead {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  max-width: 74.5%;
}

.founder {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.founder--left  { padding-left: 8.5%; }
.founder--right { padding-right: 8.5%; }

.founder__portrait {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #f0f2f4;
}

.founder__portrait img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: none;
  height: 122%;
  object-fit: cover;
}

.founder__info {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.25rem;
  padding-left: 1rem;
}

.founder__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.25rem;
  margin: 0;
  font-weight: inherit;
}

.founder__bio {
  max-width: 28rem;
  margin-top: 0.75rem;
}

/* Services */
.studio-services {
  min-height: 100vh;
}

.studio-services__head {
  width: 100%;
  padding-bottom: 3rem;
  text-align: center;
}

.studio-services__text {
  padding-bottom: 4rem;
}

.services {
  display: flex;
  justify-content: space-around;
  column-gap: 4rem;
  padding-bottom: 3rem;
}

.service--2 { margin-top: 10rem; }
.service--3 { margin-top: 20rem; }

.service__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.75rem;
}

.service__number-wrap {
  overflow: hidden;
}

.service__number {
  padding-top: 0.35rem;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.75;
}

.service__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 200;
  line-height: 0.77;
  letter-spacing: 1px;
}

/* Added text must not widen the columns: it wraps inside the width the
   original content gives them */
.service__question,
.service__intro {
  display: block;
  contain: inline-size;
}

.service__question {
  margin-top: 1rem;
  line-height: 1.5;
}

.service__intro {
  margin-top: 1.5rem;
}

.service__list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service__list li {
  padding-block: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.studio-services__spacer {
  display: none;
}

/* Friends */
.studio-friends {
  position: relative;
  z-index: 1;
  background: var(--black);
  color: var(--white);
}

.studio-friends__inner {
  display: flex;
  flex-direction: column;
}

.studio-friends__head {
  display: flex;
  align-items: center;
  column-gap: 1.75rem;
}

.studio-friends__title {
  font-size: 34vw;
  line-height: 0.77;
}

.studio-friends__illustration {
  width: 16vw;
}

.studio-lead {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  max-width: 35rem;
}

.friends {
  margin: 0;
  padding: 0;
  list-style: none;
}

.friend {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 5rem;
  overflow: hidden;
  border-top: 1px solid #3b3b3b;
}

.friend:last-child {
  border-bottom: 1px solid #3b3b3b;
}

.friend__name,
.friend__role {
  position: relative;
  display: flex;
  align-items: center;
}

.friend__name {
  column-gap: 2rem;
}

/* Arrow icon, revealed on hover (always visible on touch sizes) */
.friend__link {
  width: 1.75rem;
  height: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath d='M31 19.5V28a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h8.2M7 25 31 1m0 0v12m0-12H18.3' stroke='white'/%3E%3C/svg%3E") 50% / 100% no-repeat;
  opacity: 0;
}

/* White background that slides up on hover (js/animations.js animates --bg-y).
   Sits below the name and role, which are positioned later in the DOM. */
.friend::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(var(--bg-y, 101%));
}

/* The white arrow turns black on the white hover background. The same goes
   for keyboard focus, where the invert also darkens the green focus ring so it
   stays visible on white. */
.friends.has-hover-bg .friend:hover .friend__link,
.friends.has-hover-bg .friend:focus-within .friend__link {
  filter: invert(1);
}

.friend:hover .friend__link,
.friend__link:focus-visible {
  opacity: 1;
}

/* Brands */
.studio-brands > .container {
  padding-bottom: 1.5rem;
}

.studio-brands__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 2rem;
  padding-bottom: 1rem;
  overflow: hidden;
}

.studio-brands__title {
  font-size: 13rem;
  line-height: 0.75;
}

.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos__item {
  border-radius: 0.75rem;
  background: #ffffff14;
  transition: all 0.2s;
}

.logos__item:hover {
  background: #1a1a1a;
  transform: scale(1.02);
}

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

@media (max-width: 991px) {
  .spacer-xxxhuge { padding-top: 10rem; }

  .studio-stage__illustration {
    right: 1rem;
    width: 29%;
    max-height: 100%;
    padding-bottom: 2.5rem;
  }
  .studio-stage__intro .text-l,
  .studio-intro__lead { max-width: 100%; }

  .studio-services__head { padding-bottom: 2.5rem; }
  .services {
    justify-content: space-between;
    column-gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .service__heading { row-gap: 0.5rem; }
  .service__title { font-size: 2.2rem; }
  .service__list { margin-top: 1.5rem; }

  .friend__link {
    width: 1.5rem;
    height: 1.5rem;
  }

  .studio-brands__title { font-size: 11.5rem; }
}

@media (max-width: 767px) {
  .spacer-huge    { padding-top: 3rem; }
  .spacer-xxxhuge { padding-top: 7rem; }

  .studio-stage { min-height: auto; }
  .studio-stage__title {
    max-width: 100%;
    font-size: 50vw;
  }
  .studio-stage__illustration {
    position: relative;
    right: auto;
    width: 50%;
    margin-top: 6rem;
  }
  .studio-stage__illustration img { max-width: 60vw; }
  .studio-stage__intro { padding-bottom: 4rem; }

  .studio-intro__spacer { display: none; }

  .founder--left  { padding-left: 0; }
  .founder--right { padding-right: 0; }

  .studio-services__head { padding-bottom: 1.5rem; }
  .studio-services__text { padding-bottom: 2rem; }
  .services {
    flex-direction: column;
    padding-bottom: 1.5rem;
  }
  .service--2,
  .service--3 { margin-top: 4rem; }
  .service__heading { row-gap: 1.25rem; }
  .service__title { font-size: 3.5rem; }
  .service__question { contain: none; }

  /* Question labels wrap on small screens: give the lines room */
  .label-heading { line-height: 1.5; }
  .service__list { margin-top: 1.25rem; }

  .friend__link { opacity: 1; }
}

@media (max-width: 479px) {
  .spacer-xxxhuge { padding-top: 6rem; }

  .studio-stage__illustration { width: 67%; }

  .service__title { font-size: 3rem; }
  .studio-services__spacer {
    display: block;
    padding-top: 10rem;
  }

  .studio-friends__inner { row-gap: 1.5rem; }
  .studio-friends__head {
    align-items: flex-end;
    column-gap: 0.75rem;
  }
  .studio-friends__illustration {
    width: 23vw;
    margin-bottom: 0.6rem;
  }
  .friend__name { column-gap: 1rem; }
  .friend__role { text-align: right; }
  .hide-mobile { display: none; }

  .studio-brands__title { font-size: 10rem; }
  .logos {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}
