/* The supplied photograph stays separate from the live, accessible hero text. */
.studio-hero.architecture-hero {
  --hero-gutter: clamp(20px, 1.9vw, 40px);
  height: 100svh;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
  background: #442819;
  color: #fff;
}
.architecture-hero .hero-studio-room { inset: 0; }
.architecture-hero .hero-studio-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translate3d(0, calc(var(--image-y, 0px) * -3), 0) scale(1.035);
  transform-origin: 50% 60%;
  will-change: transform;
}
.architecture-hero .hero-studio-room::after { display: none; }
.studio-hero.architecture-hero::after {
  background: linear-gradient(180deg, #170b0733 0%, transparent 26%, transparent 51%, #140a0730 74%, #140a0760 100%);
}
.architecture-hero .site-header {
  inset: clamp(24px, 3.1svh, 40px) var(--hero-gutter) auto;
  align-items: center;
}
.architecture-hero .studio-logo {
  font-size: clamp(23px, 1.75vw, 32px);
  letter-spacing: .045em;
  font-weight: 600;
  line-height: 1;
}
.architecture-hero__discipline {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(10px, .86vw, 15px);
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1.4;
  white-space: nowrap;
}
.menu-toggle.architecture-menu {
  top: clamp(18px, 2.4svh, 32px);
  right: clamp(20px, 2.1vw, 42px);
  width: 130px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  visibility: visible;
  scale: 1;
}
.architecture-menu::before {
  content: 'MENU';
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  font: 600 12px / 1 'DM Sans', Arial, sans-serif;
  letter-spacing: .26em;
}
.menu-toggle.architecture-menu span {
  position: absolute;
  right: 0;
  width: 52px;
  height: 1px;
  top: 13px;
}
.menu-toggle.architecture-menu span:last-child { top: 25px; }
.menu-toggle.architecture-menu[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.architecture-menu[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle.architecture-menu[aria-expanded="true"]::before { content: 'CLOSE'; }
.menu-toggle.architecture-menu.is-scrolled:not([aria-expanded="true"]) {
  width: 158px;
  height: 58px;
  border-radius: 32px;
  background: #1c1d20;
}
.architecture-menu.is-scrolled::before { left: 22px; }
.menu-toggle.architecture-menu.is-scrolled span { right: 21px; width: 32px; top: 23px; }
.menu-toggle.architecture-menu.is-scrolled span:last-child { top: 35px; }
.architecture-hero__intro {
  position: absolute;
  z-index: 3;
  left: var(--hero-gutter);
  right: 22vw;
  bottom: clamp(185px, 24.4svh, 320px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.7vw, 32px);
}
.architecture-hero__portrait {
  flex: 0 0 auto;
  width: clamp(70px, 6.2vw, 112px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: url('assets/onform/architecture-hero.png') 30% 43% / 450% auto;
  box-shadow: 0 4px 24px #0002;
}
.architecture-hero__intro p {
  max-width: 640px;
  font: 400 clamp(17px, 1.22vw, 23px) / 1.2 Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
  text-wrap: pretty;
  text-shadow: 0 1px 12px #0004;
}
.architecture-hero__badges {
  position: absolute;
  z-index: 3;
  right: var(--hero-gutter);
  bottom: 26.4svh;
  display: grid;
  justify-items: center;
  gap: clamp(15px, 1.2vw, 24px);
}
.architecture-hero__location {
  width: clamp(84px, 6.4vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 600 clamp(9px, .65vw, 12px) / 1.55 'DM Sans', Arial, sans-serif;
  letter-spacing: .22em;
  text-align: center;
}
.architecture-hero__location { background: var(--blue); box-shadow: 0 8px 32px #012bba24; }
.architecture-hero__location::after { content: ''; width: 23px; height: 1px; background: #ffffffb3; margin-top: 4px; }
.architecture-hero__title {
  position: absolute;
  z-index: 3;
  bottom: 5.4svh;
  left: 1.25vw;
  right: 1.25vw;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 12.2vw;
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate3d(0, var(--wordmark-y, 0px), 0);
  text-shadow: none;
}
/* Preserve the bowed edge while letting the photograph reach the curve. */
.architecture-hero + .hero-bow {
  z-index: 3;
  height: 4svh;
  margin-top: -4svh;
  background: transparent;
  pointer-events: none;
}
.architecture-hero + .hero-bow > div { display: none; }
.architecture-hero + .hero-bow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q500 200 1000 0V100H0Z' fill='white'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@media(max-width:900px) {
  .architecture-hero__discipline { font-size: 9px; letter-spacing: .2em; }
  .menu-toggle.architecture-menu { width: 102px; }
  .menu-toggle.architecture-menu span { width: 35px; }
  .architecture-menu::before { font-size: 10px; }
  .architecture-hero__intro { right: 145px; bottom: 25svh; }
  .architecture-hero__intro p { font-size: 18px; }
  .architecture-hero__title { bottom: 7svh; }
}
@media(max-width:600px) {
  .studio-hero.architecture-hero { min-height: 660px; }
  .architecture-hero .site-header { inset: 26px 20px auto; }
  .architecture-hero__discipline { top: 48px; left: 0; translate: none; font-size: 9px; }
  .architecture-hero .hero-studio-backdrop { object-position: 56% 50%; }
  .architecture-hero__title {
    left: 20px;
    right: 20px;
    bottom: 7svh;
    display: block;
    font-size: clamp(70px, 20vw, 120px);
    line-height: .92;
  }
  .architecture-hero__title span:first-child { display: block; }
  .architecture-hero__title span:last-child { margin-left: .16em; }
  .architecture-hero__intro { left: 20px; right: 110px; bottom: max(240px, 35svh); display: block; }
  .architecture-hero__portrait { width: 58px; margin-bottom: 15px; }
  .architecture-hero__intro p { font-size: 17px; line-height: 1.25; }
  .architecture-hero__intro br { display: none; }
  .architecture-hero__badges { right: 20px; bottom: max(238px, 35svh); gap: 14px; }
  .architecture-hero__location { width: 74px; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .architecture-hero .hero-studio-backdrop { transform: none; will-change: auto; }
  .architecture-hero__title { transform: none; }
}


/* One scroll score: the room holds back, the foreground lifts, the edge settles.
   The frame-driven custom property is the fallback for older browsers. */
.architecture-hero .hero-studio-backdrop {
  transform: translate3d(0, calc(var(--hero-travel, 0) * 160px), 0)
    scale(calc(1.035 + var(--hero-travel, 0) * .065));
}
.architecture-hero__title {
  transform: translate3d(0, calc(var(--hero-travel, 0) * -96px), 0)
    scale(calc(1 - var(--hero-travel, 0) * .025));
  transform-origin: 50% 100%;
  opacity: clamp(0, calc(1 - var(--hero-travel, 0) * 1.35), 1);
}
.architecture-hero__title > span {
  --word-rise: 0px;
  transform: translate3d(0, calc(var(--hero-travel, 0) * var(--word-rise)), 0);
}
.architecture-hero__title > span:nth-child(2) { --word-rise: -18px; }
.architecture-hero__title > span:nth-child(3) { --word-rise: -36px; }
.architecture-hero__intro {
  transform: translate3d(0, calc(var(--hero-travel, 0) * -54px), 0);
  opacity: clamp(0, calc(1.12 - var(--hero-travel, 0) * 1.9), 1);
}
.architecture-hero__badges {
  transform: translate3d(0, calc(var(--hero-travel, 0) * -78px), 0);
  opacity: clamp(0, calc(1.12 - var(--hero-travel, 0) * 1.6), 1);
}
.architecture-hero .site-header {
  transform: translate3d(0, calc(var(--hero-travel, 0) * -28px), 0);
  opacity: clamp(0, calc(1 - var(--hero-travel, 0) * 2), 1);
}
.architecture-hero + .hero-bow {
  --edge-depth: clamp(28px, 4svh, 64px);
  height: var(--edge-depth);
  margin-top: calc(var(--edge-depth) * -1);
}
.architecture-hero + .hero-bow::after {
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 - var(--hero-travel, 0) * .94));
}

/* Native CSS timelines keep every layer reversible and tied to scroll position. */
@supports (animation-timeline: scroll()) and (timeline-scope: --hero-exit) {
  #page-content { timeline-scope: --hero-exit; }
  .architecture-hero { view-timeline: --hero-exit block; }
  .architecture-hero .hero-studio-backdrop,
  .architecture-hero__title,
  .architecture-hero__title > span,
  .architecture-hero__intro,
  .architecture-hero__badges,
  .architecture-hero .site-header,
  .architecture-hero + .hero-bow::after {
    animation: var(--hero-animation) linear both;
    animation-timeline: --hero-exit;
    animation-range: exit 0% exit 100%;
  }
  .architecture-hero .hero-studio-backdrop { --hero-animation: room-recede; }
  .architecture-hero__title { --hero-animation: title-lift; }
  .architecture-hero__title > span { --hero-animation: word-lift; }
  .architecture-hero__intro { --hero-animation: intro-lift; }
  .architecture-hero__badges { --hero-animation: location-lift; }
  .architecture-hero .site-header { --hero-animation: header-lift; }
  .architecture-hero + .hero-bow::after { --hero-animation: edge-settle; }
}
@keyframes room-recede {
  from { transform: translate3d(0, 0, 0) scale(1.035); }
  to { transform: translate3d(0, 160px, 0) scale(1.1); }
}
@keyframes title-lift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  75%, 100% { transform: translate3d(0, -96px, 0) scale(.975); opacity: 0; }
}
@keyframes word-lift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, var(--word-rise), 0); }
}
@keyframes intro-lift {
  0%, 8% { transform: translate3d(0, 0, 0); opacity: 1; }
  68%, 100% { transform: translate3d(0, -54px, 0); opacity: 0; }
}
@keyframes location-lift {
  0%, 8% { transform: translate3d(0, 0, 0); opacity: 1; }
  78%, 100% { transform: translate3d(0, -78px, 0); opacity: 0; }
}
@keyframes header-lift {
  from { transform: translate3d(0, 0, 0); opacity: 1; }
  50%, 100% { transform: translate3d(0, -28px, 0); opacity: 0; }
}
@keyframes edge-settle {
  from { transform: scaleY(1); }
  to { transform: scaleY(.06); }
}
@media (max-width: 600px) {
  .architecture-hero__title > span { --word-rise: 0px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-hero .hero-studio-backdrop,
  .architecture-hero__title,
  .architecture-hero__title > span,
  .architecture-hero__intro,
  .architecture-hero__badges,
  .architecture-hero .site-header,
  .architecture-hero + .hero-bow::after {
    animation: none;
    transform: none;
    opacity: 1;
    will-change: auto;
  }
}


/* Europe sits in a round medallion; the location strip continues off-canvas. */
.architecture-hero__badges {
  --europe-diameter: clamp(72px, 5.4vw, 90px);
  --europe-width: clamp(214px, 17.5vw, 250px);
  right: 0;
}
.architecture-hero__location {
  position: relative;
  display: block;
  width: var(--europe-width);
  height: var(--europe-diameter);
  aspect-ratio: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}
.architecture-hero__location::after { display: none; }
.architecture-hero__map {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: var(--europe-diameter);
  height: var(--europe-diameter);
  display: grid;
  place-items: center;
  padding: calc(var(--europe-diameter) * .025);
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  background: #f7f5ef;
  box-shadow: 0 8px 28px #0000001a;
}
.architecture-hero__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.architecture-hero__location-label {
  position: absolute;
  top: 50%;
  left: calc(var(--europe-diameter) * .5);
  right: -2px;
  translate: 0 -50%;
  min-height: calc(var(--europe-diameter) * .62);
  display: flex;
  align-items: center;
  padding: 8px 16px 8px calc(var(--europe-diameter) * .69);
  border-block: 1px solid #ffffff14;
  background: var(--blue);
  color: #fff;
  font: 500 clamp(10px, .65vw, 11px) / 1.25 'DM Sans', Arial, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}
@media (min-width: 601px) and (max-width: 900px) {
  .architecture-hero__intro { right: 250px; }
}
@media (max-width: 600px) {
  .architecture-hero__badges {
    --europe-diameter: 62px;
    --europe-width: 194px;
    top: max(145px, 23svh);
    bottom: auto;
    right: 0;
  }
  .architecture-hero__location-label {
    padding-right: 16px;
    font-size: 10px;
    letter-spacing: .065em;
  }
}


/* Quiet hierarchy: home base first, worldwide availability underneath. */
.architecture-hero__map img { transform: scale(1.06); }
.architecture-hero__location-label {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  letter-spacing: .065em;
  white-space: nowrap;
}
.architecture-hero__location-reach {
  font-size: .85em;
  font-weight: 400;
  letter-spacing: .04em;
  opacity: .8;
}

/* Keep MENU and the hamburger anchored as the scroll background grows. */
.menu-toggle.architecture-menu { --menu-content-width: 130px; }
.menu-toggle.architecture-menu.is-scrolled:not([aria-expanded="true"]) {
  width: calc(var(--menu-content-width) + 40px);
  top: calc(clamp(18px, 2.4svh, 32px) - 9px);
  right: calc(clamp(20px, 2.1vw, 42px) - 18px);
}
.menu-toggle.architecture-menu.is-scrolled:not([aria-expanded="true"]) span {
  right: 18px;
  width: 52px;
  top: 22px;
}
.menu-toggle.architecture-menu.is-scrolled:not([aria-expanded="true"]) span:last-child { top: 34px; }
@media (max-width: 900px) {
  .menu-toggle.architecture-menu { --menu-content-width: 102px; }
  .menu-toggle.architecture-menu.is-scrolled:not([aria-expanded="true"]) span { width: 35px; }
}
