/* ==========================================================================
   Onesto Studio — Homepage
   Desktop layout is drawn on a 1366px artboard: every size is written as
   calc(N * var(--u)) where N is the value in design pixels, so the page
   scales proportionally between 1024px and ~1700px wide.
   Below 1024px the layout switches to a stacked tablet / mobile version.
   ========================================================================== */

:root {
  --black: #000;
  --maroon: #45171b;
  --cream: #fcf2e0;
  --rule-light: #d6d1c6;
  --rule: #bcb9b5;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --classic: "Old Standard TT", "Times New Roman", serif;

  --u: min(calc(100vw / 1366), 1.25px);
  --header-h: calc(131 * var(--u));
  --header-h-condensed: calc(76 * var(--u));

  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
  /* scroll-behavior: smooth is switched on from main.js after load */
  scroll-padding-top: var(--header-h-condensed);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.visually-hidden,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- WordPress ---------- */

/* Keep the fixed header and menu below the admin bar when logged in */
.admin-bar .site-header,
.admin-bar .site-menu { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .site-menu { top: 46px; }
}

/* Spam trap on the enquiry form */
.enquiry__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--maroon);
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: max(10px, calc(11 * var(--u)));
  font-weight: 400;
  line-height: calc(11 * var(--u));
  letter-spacing: .21em;
  text-transform: uppercase;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(48 * var(--u));
  line-height: calc(48 * var(--u));
  letter-spacing: 0;
}

.placeholder { background: var(--maroon); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--black);
  /* Back to black at once when the menu starts to close */
  transition: height .45s var(--ease), background-color .2s;
}
/* See-through over the open menu, once the menu has slid past it */
.menu-open .site-header {
  background-color: transparent;
  transition: height .45s var(--ease), background-color .3s .3s;
}

.menu-toggle {
  position: absolute;
  left: calc(25 * var(--u));
  top: calc(33 * var(--u));
  width: calc(52 * var(--u));
  height: calc(33 * var(--u));
  transition: top .45s var(--ease), transform .45s var(--ease);
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(4.5 * var(--u));
  background: var(--cream);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: calc(14.25 * var(--u)); }
.menu-toggle span:nth-child(3) { top: calc(28.5 * var(--u)); }

.logo {
  position: absolute;
  left: calc(50% - 79 * var(--u));
  top: calc(38 * var(--u));
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(31 * var(--u));
  line-height: calc(28 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 50% 0;
  transition: transform .45s var(--ease);
}
.logo__line { display: block; }
.logo__line--offset { padding-left: calc(40 * var(--u)); }

.site-header__location {
  position: absolute;
  right: calc(27 * var(--u));
  top: calc(27.5 * var(--u));
  font-size: max(11px, calc(13 * var(--u)));
  font-weight: 400;
  line-height: calc(14 * var(--u));
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: opacity .3s, transform .45s var(--ease);
}

.site-header.is-condensed { height: var(--header-h-condensed); }
.site-header.is-condensed .menu-toggle { top: calc(21.5 * var(--u)); transform: scale(.8); transform-origin: 0 50%; }
.site-header.is-condensed .logo { transform: translateY(calc(-27 * var(--u))) scale(.82); }
.site-header.is-condensed .site-header__location { transform: translateY(calc(10 * var(--u))); }

/* Menu toggle → close icon */
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(calc(14.25 * var(--u))) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(calc(-14.25 * var(--u))) rotate(-45deg); }

/* ---------- Full-screen menu ----------
   Drops down from the top like a curtain; the links sit in the centre and the
   header's close button and logo float on the maroon. */

.site-menu {
  --curtain: .75s cubic-bezier(.76, 0, .24, 1);
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  overflow-y: auto;
  padding: var(--header-h) calc(77 * var(--u)) calc(72 * var(--u));
  background: var(--maroon);
  text-align: center;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform var(--curtain), visibility 0s linear .75s;
}
.menu-open .site-menu {
  visibility: visible;
  transform: none;
  transition: transform var(--curtain);
}
.menu-open { overflow: hidden; }

/* Links and the button below fade in, one after another, as the curtain lands
   and fade out at once when it lifts. */
.site-menu__nav a,
.site-menu__aside {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s, transform .25s;
}
.menu-open .site-menu__nav a,
.menu-open .site-menu__aside {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease) var(--delay, .35s), transform .6s var(--ease) var(--delay, .35s);
}
.site-menu__nav li:nth-child(2) a { --delay: .41s; }
.site-menu__nav li:nth-child(3) a { --delay: .47s; }
.site-menu__nav li:nth-child(4) a { --delay: .53s; }
.site-menu__nav li:nth-child(5) a { --delay: .59s; }
.site-menu__nav li:nth-child(n+6) a { --delay: .65s; }
.site-menu__aside { --delay: .7s; }

.site-menu__nav li + li { margin-top: max(12px, calc(20 * var(--u))); }
.site-menu__nav a {
  display: inline-block;
  font-family: var(--serif);
  font-size: max(26px, calc(32 * var(--u)));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
}
.site-menu__nav a:hover { font-style: italic; }

.site-menu__aside {
  display: grid;
  justify-items: center;
  gap: max(18px, calc(26 * var(--u)));
}
.site-menu__cta {
  display: inline-block;
  min-width: max(220px, calc(262 * var(--u)));
  padding: max(15px, calc(19 * var(--u))) 28px;
  border: 1px solid rgba(252, 242, 224, .55);
  font-size: max(11px, calc(12 * var(--u)));
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.site-menu__cta:hover,
.site-menu__cta:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--maroon);
}
.site-menu__social {
  display: flex;
  justify-content: center;
  gap: max(24px, calc(32 * var(--u)));
}
.site-menu__social a {
  font-size: max(13px, calc(15 * var(--u)));
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Link hover underline ---------- */

.hero__nav a,
.site-footer__col a,
.site-menu__social a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.hero__nav a:hover,
.hero__nav a[aria-current="page"],
.site-footer__col a:hover,
.site-menu__social a:hover { background-size: 100% 1px; }
.site-menu__nav a[aria-current="page"] { font-style: italic; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(768 * var(--u));
  overflow: hidden;
  background: #2a0c0e url("../images/texture-hero.jpg") center bottom / cover no-repeat;
}

/* Labels start at fixed columns, as in the designs, whatever their length. The row is
   anchored to the page centre (the design's first label starts 396px left of it), so it
   stays centred on screens wider than the 1708px the layout scales up to. */
.hero__nav {
  position: absolute;
  top: calc(150 * var(--u));
  left: calc(50% - 396 * var(--u));
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: calc(174 * var(--u)) calc(184 * var(--u)) calc(182 * var(--u)) calc(175 * var(--u));
  grid-auto-columns: calc(178.75 * var(--u));
  justify-content: start;
  justify-items: start;
  font-size: max(11px, calc(13 * var(--u)));
  font-weight: 400;
  line-height: calc(14 * var(--u));
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__nav a { padding-bottom: 3px; }

.hero__copy {
  position: absolute;
  left: calc(77 * var(--u));
  top: calc(310.5 * var(--u));
  z-index: 2;
}

.hero__title {
  margin-top: calc(34 * var(--u));
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(64 * var(--u));
  line-height: calc(62 * var(--u));
  text-transform: uppercase;
}
.hero__title span,
.hero__title em { display: block; }
.hero__title em { font-style: italic; }

.hero__lead {
  margin-top: calc(28.5 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  line-height: calc(23 * var(--u));
  letter-spacing: .045em;
}

.hero__frame {
  position: absolute;
  bottom: 0;
  background: var(--black);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero__frame--back {
  right: 0;
  top: calc(206 * var(--u));
  width: calc(429 * var(--u));
  padding: calc(35 * var(--u)) 0 0 calc(40 * var(--u));
}
.hero__frame--front {
  right: calc(389 * var(--u));
  top: calc(315 * var(--u));
  width: calc(340 * var(--u));
  padding: calc(28 * var(--u)) calc(27 * var(--u)) 0 calc(29 * var(--u));
  z-index: 1;
}

/* ---------- A note on how we think ---------- */

.think {
  display: grid;
  grid-template-columns: calc(548 * var(--u)) 1fr;
  height: calc(532 * var(--u));
  padding: calc(20 * var(--u)) calc(77 * var(--u)) calc(17 * var(--u)) calc(20 * var(--u));
  background: var(--black);
}

.think__media { overflow: hidden; }
.think__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.think__copy {
  padding-top: calc(98.5 * var(--u));
  text-align: right;
}
.think__title { margin-top: calc(41.5 * var(--u)); }
.think__copy p:not(.eyebrow) {
  font-size: max(13px, calc(16 * var(--u)));
  line-height: calc(25 * var(--u));
  letter-spacing: .045em;
}
.think__title + p { margin-top: calc(36.5 * var(--u)); }
.think__copy p + p:not(.eyebrow) { margin-top: calc(29 * var(--u)); }

/* ---------- The studio ---------- */

.studio {
  height: calc(235 * var(--u));
  padding-top: calc(33.5 * var(--u));
  background: var(--maroon);
  text-align: center;
}
.studio__title {
  margin-top: calc(27.5 * var(--u));
  font-size: calc(45.5 * var(--u));
  line-height: calc(46 * var(--u));
}
.studio__bar { font-weight: 300; }
.studio__lead {
  margin-top: calc(26 * var(--u));
  font-size: max(12px, calc(14 * var(--u)));
  line-height: calc(20 * var(--u));
  letter-spacing: .02em;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr auto;
  height: calc(440 * var(--u));
  padding: calc(55.5 * var(--u)) calc(35 * var(--u)) 0 calc(40 * var(--u));
  background: var(--cream);
  color: var(--maroon);
}

.services__title { margin-top: calc(26.5 * var(--u)); }
.services__lead {
  margin-top: calc(27.5 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 400;
  line-height: calc(25 * var(--u));
  letter-spacing: .065em;
}

.services__list {
  display: grid;
  grid-template-columns: repeat(5, calc(154 * var(--u)));
  column-gap: calc(28.75 * var(--u));
  align-self: start;
  margin-top: calc(66.5 * var(--u));
}

.service {
  position: relative;
  padding-bottom: calc(18.5 * var(--u));
}
.service + .service::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-14.5 * var(--u));
  width: 1px;
  background: var(--rule-light);
}

.service__media {
  height: calc(128 * var(--u));
  overflow: hidden;
  background: var(--maroon);
  transition: transform .6s var(--ease);
}
.service__media img,
.study__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service:hover .service__media { transform: translateY(calc(-4 * var(--u))); }

.service__num,
.service__name {
  display: block;
  font-family: var(--sans);
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 400;
  line-height: calc(20 * var(--u));
  letter-spacing: .04em;
  text-transform: uppercase;
}
.service__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.service__num { margin-top: calc(23 * var(--u)); }
.service__name { margin-top: calc(6 * var(--u)); }

.service__text {
  margin-top: calc(13.5 * var(--u));
  font-family: var(--serif);
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 600;
  line-height: calc(25 * var(--u));
}

/* ---------- A visual interlude ---------- */

.interlude {
  display: grid;
  grid-template-columns: 836fr 529fr;
  height: calc(328 * var(--u));
  background: var(--black);
}

.interlude__strip {
  display: grid;
  grid-template-columns: 261fr 257fr 318fr;
  overflow: hidden;
}
.interlude__slot { overflow: hidden; }
.interlude__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.interlude__slot--a img { object-position: 50% 73%; }
.interlude__slot--b img { object-position: 71% 29%; }
.interlude__slot--c img { object-position: 50% 78%; }
.interlude__slot:hover img { transform: scale(1.04); }
.interlude__strip.is-swapping img { opacity: 0; }

.interlude__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: calc(34.5 * var(--u)) calc(51 * var(--u)) 0 calc(24 * var(--u));
  background: #2a0c0e url("../images/texture-interlude.jpg") 53% 50% / cover no-repeat;
  text-align: right;
}
.interlude__title { margin-top: calc(31.5 * var(--u)); }
.interlude__lead {
  margin-top: calc(26.5 * var(--u));
  font-size: max(12px, calc(14 * var(--u)));
  line-height: calc(21 * var(--u));
  letter-spacing: .02em;
}

.arrow-btn {
  display: block;
  width: calc(44 * var(--u));
  min-width: 32px;
  margin-top: calc(34 * var(--u));
  margin-right: calc(4 * var(--u));
  padding: 6px 0;
  transition: transform .4s var(--ease);
}
.arrow-btn svg { display: block; width: 100%; height: auto; overflow: visible; }
.arrow-btn:hover { transform: translateX(-6px); }

/* ---------- Selected work ---------- */

.work {
  display: grid;
  grid-template-columns: 1fr auto;
  height: calc(466 * var(--u));
  padding: calc(89.5 * var(--u)) calc(26 * var(--u)) 0 calc(41 * var(--u));
  background: var(--cream);
  color: var(--maroon);
}

.work__title {
  margin-top: calc(35 * var(--u));
  line-height: calc(49 * var(--u));
}
.work__lead {
  margin-top: calc(28 * var(--u));
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 400;
  line-height: calc(21 * var(--u));
  letter-spacing: .048em;
}

.arrow-link {
  display: inline-block;
  width: calc(38 * var(--u));
  min-width: 30px;
  margin-top: calc(46 * var(--u));
  padding: 4px 0;
  transition: transform .4s var(--ease);
}
.arrow-link svg { display: block; width: 100%; height: auto; overflow: visible; }
.arrow-link:hover { transform: translateX(6px); }

.work__list {
  display: grid;
  grid-template-columns: calc(347 * var(--u)) calc(348 * var(--u));
  column-gap: calc(48 * var(--u));
  align-self: start;
  margin-top: calc(6.5 * var(--u));
}

.study { position: relative; }
.study + .study::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-24 * var(--u));
  height: calc(305 * var(--u));
  width: 1px;
  background: var(--rule);
}
.study__link {
  display: block;
  padding-bottom: calc(19 * var(--u));
  border-bottom: 1px solid var(--rule);
}
.study__media {
  height: calc(188 * var(--u));
  overflow: hidden;
  background: var(--maroon);
  transition: opacity .5s var(--ease);
}
.study__link:hover .study__media { opacity: .88; }

.study__label {
  margin-top: calc(19 * var(--u));
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 400;
  line-height: calc(20 * var(--u));
  letter-spacing: .12em;
  text-transform: uppercase;
}
.study__title {
  margin-top: calc(11 * var(--u));
  font-family: var(--serif);
  font-size: max(17px, calc(22 * var(--u)));
  font-weight: 700;
  line-height: calc(28 * var(--u));
  letter-spacing: .07em;
}
.study__link:hover .study__title { font-style: italic; }

/* ---------- The studio's perspective ---------- */

.perspective {
  display: grid;
  grid-template-columns: 834fr 532fr;
  height: calc(306 * var(--u));
  background: var(--maroon);
}

.perspective__panel {
  position: relative;
  overflow: hidden;
}
.perspective__mark {
  position: absolute;
  left: calc(-88 * var(--u));
  top: calc(-99 * var(--u));
  font-family: var(--serif);
  font-size: calc(464 * var(--u));
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  pointer-events: none;
  user-select: none;
}

.perspective__copy {
  position: relative;
  padding: calc(75.5 * var(--u)) 0 0 calc(274 * var(--u));
}
.perspective__title { margin-top: calc(27 * var(--u)); }
.perspective__lead {
  margin-top: calc(18.5 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 400;
  line-height: calc(25 * var(--u));
  letter-spacing: .065em;
}

.perspective__media { overflow: hidden; }
.perspective__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
}

/* ---------- Footer / contact ---------- */

.site-footer {
  border-top: calc(4 * var(--u)) solid var(--black);
  background: var(--maroon);
}

.site-footer__main {
  display: grid;
  grid-template-columns: calc(635 * var(--u)) 1px calc(310 * var(--u)) 1fr;
  height: calc(391 * var(--u));
  padding-left: calc(77 * var(--u));
}

.site-footer__cta { padding-top: calc(59.5 * var(--u)); }
.site-footer__title {
  margin-top: calc(24 * var(--u));
  line-height: calc(55 * var(--u));
}
.site-footer__title em { font-style: italic; }
.site-footer__lead {
  margin-top: calc(21.5 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 400;
  line-height: calc(22 * var(--u));
  letter-spacing: .065em;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(310 * var(--u));
  min-width: 250px;
  margin-top: calc(49 * var(--u));
  padding-bottom: calc(13 * var(--u));
  border-bottom: calc(2 * var(--u)) solid var(--cream);
  font-size: max(10px, calc(11 * var(--u)));
  font-weight: 400;
  line-height: calc(12 * var(--u));
  letter-spacing: .32em;
  text-transform: uppercase;
}
.cta svg {
  width: calc(37 * var(--u));
  min-width: 28px;
  height: auto;
  overflow: visible;
  transition: transform .4s var(--ease);
}
.cta:hover svg { transform: translateX(8px); }

.site-footer__divider {
  margin-top: calc(63 * var(--u));
  height: calc(293 * var(--u));
  background: rgba(252, 242, 224, .75);
}

.site-footer__col {
  padding: calc(66 * var(--u)) 0 0 calc(87 * var(--u));
}
.site-footer__heading {
  font-family: var(--sans);
  font-size: max(13px, calc(17 * var(--u)));
  font-weight: 500;
  line-height: calc(20 * var(--u));
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-footer__col ul { margin-top: calc(14 * var(--u)); }
.site-footer__col li { padding-top: calc(10 * var(--u)); }
.site-footer__col li + li { padding-top: calc(20.5 * var(--u)); }
.site-footer__col a {
  font-size: max(12px, calc(14 * var(--u)));
  font-style: italic;
  line-height: calc(20 * var(--u));
  letter-spacing: .02em;
  padding-bottom: 2px;
}

.site-footer__bar {
  display: grid;
  place-items: center;
  height: calc(66 * var(--u));
  padding-top: calc(7 * var(--u));
  background: var(--black);
  font-family: var(--serif);
  font-size: max(11px, calc(14.5 * var(--u)));
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Shared by every page's copyright line (the About footer's too). The design's © is a
   plain circled C, which Cormorant doesn't have. */
.site-footer__bar .copy,
.bar-footer__bar .copy {
  font-family: var(--sans);
  font-size: 1.25em;
  font-weight: 300;
  line-height: 0;
  letter-spacing: 0;
  vertical-align: -.08em;
}
/* Privacy Policy · Cookie Policy · Cookie settings, after the copyright text */
.bar-links > * {
  margin-left: .8em;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline 1px transparent;
  text-underline-offset: .3em;
  transition: text-decoration-color .4s var(--ease);
}
.bar-links > *::before {
  content: "·";
  display: inline-block; /* keeps the dot out of the underline */
  margin-right: .8em;
}
.bar-links > :hover,
.bar-links > [aria-current="page"] { text-decoration-color: currentColor; }
.bar-links > [hidden] { display: none; }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  left: max(16px, calc(24 * var(--u)));
  bottom: max(16px, calc(24 * var(--u)));
  z-index: 60;
  width: min(calc(100% - 32px), 440px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 22px;
  border: 1px solid rgba(252, 242, 224, .22);
  background: var(--maroon);
  color: var(--cream);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.consent.is-open { opacity: 1; transform: none; }
.consent[hidden] { display: none; }

.consent__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  outline: none;
}
.consent__text {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .02em;
}
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }

.consent__prefs { margin-top: 18px; }
.consent__pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(252, 242, 224, .2);
}
.consent__pref-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}
.consent__pref-name label { cursor: pointer; }
.consent__pref-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .8;
}

/* On/off switch */
.consent__switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(252, 242, 224, .6);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.consent__switch:checked { background: var(--cream); border-color: var(--cream); }
.consent__switch:checked::after { transform: translateX(20px); background: var(--maroon); }
.consent__switch:disabled { cursor: default; opacity: .55; }
.consent__switch:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }

/* Accept and Reject look the same: neither choice is nudged */
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.consent__btn {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(252, 242, 224, .6);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.consent__btn:hover,
.consent__btn:focus-visible { border-color: var(--cream); background: var(--cream); color: var(--maroon); }
.consent__btn--wide { grid-column: 1 / -1; }
.consent__btn[hidden] { display: none; }
.consent__link {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}
.consent__link[hidden] { display: none; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet & mobile — stacked layout
   ========================================================================== */

@media (max-width: 1023.98px) {
  :root {
    --u: 1px;
    --gutter: clamp(20px, 5vw, 40px);
    --header-h: 76px;
    --header-h-condensed: 64px;
  }

  .br-lg { display: none; }

  .display { font-size: clamp(34px, 6.4vw, 46px); line-height: 1.04; }

  /* Header */
  .menu-toggle { left: var(--gutter); top: 24px; width: 34px; height: 24px; }
  .menu-toggle span { height: 3px; }
  .menu-toggle span:nth-child(2) { top: 10.5px; }
  .menu-toggle span:nth-child(3) { top: 21px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
  .logo { top: 17px; left: calc(50% - 50px); font-size: 21px; line-height: 20px; }
  .logo__line--offset { padding-left: 26px; }
  .site-header__location { top: 31px; right: var(--gutter); font-size: 10px; }
  .site-header.is-condensed .menu-toggle { top: 20px; transform: none; }
  .site-header.is-condensed .logo { transform: translateY(-6px) scale(.9); }
  .site-header.is-condensed .site-header__location { transform: translateY(-6px); }

  .site-menu { padding: calc(var(--header-h) + 16px) var(--gutter) 44px; }

  /* Hero */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-top: var(--header-h);
    /* The wall's darker, evenly lit left side; its bright centre is too harsh behind the copy. */
    background-position: 0% 50%;
  }
  .hero__nav { display: none; }
  .hero__copy {
    position: relative;
    inset: auto;
    padding: 56px var(--gutter) 48px;
  }
  .hero__title {
    margin-top: 22px;
    font-size: clamp(46px, 10.5vw, 72px);
    line-height: .97;
  }
  .hero__lead { margin-top: 22px; max-width: 30em; font-size: 16px; line-height: 1.5; }

  /* Both photos shown whole (2:3, uncropped) in a black mat that closes below them;
     the front frame's -71% top margin equals its own height, so the two bottoms line up. */
  .hero__frame { position: relative; inset: auto; }
  .hero__frame img { height: auto; aspect-ratio: 2 / 3; }
  .hero__frame--back {
    align-self: flex-end;
    width: 72%;
    padding: 6% 0 6% 7%;
  }
  .hero__frame--front {
    width: 50%;
    margin: -71% 0 0 var(--gutter);
    padding: 5% 5% 6%;
  }

  /* Think */
  .think {
    grid-template-columns: 1fr;
    height: auto;
    padding: 0 0 72px;
  }
  .think__media { aspect-ratio: 548 / 494; }
  .think__copy { padding: 56px var(--gutter) 0; text-align: left; }
  .think__title { margin-top: 20px; }
  .think__copy p:not(.eyebrow) { font-size: 16px; line-height: 1.6; max-width: 36em; }
  .think__title + p { margin-top: 24px; }
  .think__copy p + p:not(.eyebrow) { margin-top: 18px; }

  /* Studio */
  .studio { height: auto; padding: 72px var(--gutter); }
  .studio__title { margin-top: 20px; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; }
  .studio__bar { display: block; height: 0; overflow: hidden; }
  .studio__lead { margin: 22px auto 0; max-width: 30em; font-size: 15px; line-height: 1.55; }

  /* Services */
  .services { display: block; height: auto; padding: 72px var(--gutter); }
  .services__title { margin-top: 20px; }
  .services__lead { margin-top: 20px; font-size: 16px; line-height: 1.55; }
  .services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
    margin-top: 48px;
  }
  .service { padding-bottom: 0; }
  .service + .service::before { display: none; }
  .service__media { height: auto; aspect-ratio: 154 / 128; }
  .service__num { margin-top: 16px; font-size: 15px; }
  .service__name { margin-top: 4px; font-size: 15px; }
  .service__text { margin-top: 10px; font-size: 18px; line-height: 1.35; }

  /* Interlude */
  .interlude { grid-template-columns: 1fr; height: auto; }
  .interlude__strip { order: 2; height: clamp(220px, 50vw, 380px); }
  .interlude__panel { padding: 64px var(--gutter) 48px; }
  .interlude__title { margin-top: 20px; }
  .interlude__lead { margin-top: 20px; max-width: 26em; font-size: 15px; line-height: 1.55; }
  .arrow-btn { margin-top: 28px; width: 44px; }

  /* Work */
  .work { display: block; height: auto; padding: 72px var(--gutter); }
  .work__title { margin-top: 20px; line-height: 1.04; }
  .work__lead { margin-top: 20px; max-width: 32em; font-size: 15px; line-height: 1.55; }
  .arrow-link { margin-top: 28px; width: 38px; }
  .work__list { grid-template-columns: 1fr; row-gap: 48px; margin-top: 48px; }
  .study + .study::before { display: none; }
  .study__media { height: auto; aspect-ratio: 347 / 188; }
  .study__label { margin-top: 18px; font-size: 14px; }
  .study__title { margin-top: 8px; font-size: 22px; line-height: 1.3; }

  /* Perspective */
  .perspective { grid-template-columns: 1fr; height: auto; }
  .perspective__mark { left: -120px; top: -80px; font-size: 320px; opacity: .9; }
  .perspective__copy { padding: 72px var(--gutter) 72px calc(var(--gutter) + clamp(64px, 20vw, 170px)); }
  .perspective__title { margin-top: 20px; }
  .perspective__lead { margin-top: 18px; font-size: 16px; line-height: 1.55; }
  .perspective__media { aspect-ratio: 4 / 3; }

  /* Footer */
  .site-footer { border-top-width: 4px; }
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    height: auto;
    padding: 72px var(--gutter) 64px;
    row-gap: 48px;
  }
  .site-footer__cta { grid-column: 1 / -1; padding-top: 0; }
  .site-footer__title { margin-top: 20px; line-height: 1.12; }
  .site-footer__lead { margin-top: 18px; font-size: 16px; line-height: 1.5; }
  .cta { margin-top: 36px; width: 100%; max-width: 340px; padding-bottom: 14px; border-bottom-width: 2px; font-size: 11px; }
  .site-footer__divider { grid-column: 1 / -1; width: 100%; height: 1px; margin: 0; }
  .site-footer__col { padding: 0; }
  .site-footer__heading { font-size: 14px; }
  .site-footer__col ul { margin-top: 10px; }
  .site-footer__col li,
  .site-footer__col li + li { padding-top: 12px; }
  .site-footer__col a { font-size: 15px; line-height: 1.4; }
  .site-footer__bar { height: auto; min-height: 56px; padding: 16px var(--gutter); font-size: 12px; letter-spacing: .1em; text-align: center; }
  /* The links get their own line so the copyright line stays on one */
  .bar-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 8px; }
  .bar-links > * { margin-left: 0; }
  .bar-links > *::before { display: none; }
}

@media (max-width: 559.98px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 24px 20px 18px; }
  .consent__title { font-size: 26px; }
}

@media (max-width: 559.98px) {
  .site-header__location { display: none; }
  .logo { left: calc(50% - 50px); }
  .services__list { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .service {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--rule-light);
  }
  .service:last-child { border-bottom: 1px solid var(--rule-light); }
  .service__media { grid-row: 1 / span 3; align-self: start; }
  .service__num { margin-top: 0; }
  .service__text { font-size: 17px; }
  .site-footer__main { grid-template-columns: 1fr; }
  .perspective__copy { padding-left: var(--gutter); }
  .perspective__mark { left: -150px; top: -60px; font-size: 280px; opacity: .14; }
}
