@font-face {
  font-family: 'Bodoni Moda';
  src: url('../media/bodoni-moda-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: var(--color-surface-raised); }

body { margin: 0; font-family: var(--font-body); font-weight: 300; }

button { font: inherit; }

.hero {
  --hero-home-inset: clamp(1rem, 2vw, 1.5rem);
  --hero-home-width: clamp(7rem, 11vw, 10rem);
  position: relative;
  /* Keep the fixed home logo above the rising footer panel (z-index 6). */
  z-index: 7;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1920 / 2144.7;
  background: var(--color-surface-raised);
  isolation: isolate;
}

.hero__image-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__image-frame::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 50% 0 0;
  background: linear-gradient(transparent, var(--color-hero-image-shade));
  pointer-events: none;
}

.hero__image,
.hero__night-scene img {
  position: absolute;
  /* Keep the render scale and top position while cropping the lower 10% of the hero. */
  bottom: -11.111111%;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
}

.hero__image {
  -webkit-mask-image: linear-gradient(to bottom, transparent, currentColor 8%);
  mask-image: linear-gradient(to bottom, transparent, currentColor 8%);
}

.hero__night-scene {
  position: absolute;
  inset: 0;
  background: var(--color-hero-night-sky);
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.hero__night-scene img {
  -webkit-mask-image: linear-gradient(to bottom, transparent, currentColor 8%);
  mask-image: linear-gradient(to bottom, transparent, currentColor 8%);
}

.hero[data-scene='night'] .hero__night-scene { opacity: 1; }
.hero[data-scene='night'] {
  --color-hero-hotspot: var(--color-hero-night-marker);
  --color-hero-hotspot-center: var(--color-hero-night-marker);
  --color-hero-line: var(--color-hero-night-marker);
}

.hero__lockup {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero__lockup.is-floating {
  position: fixed;
  right: auto;
  bottom: auto;
  width: 100%;
  aspect-ratio: 1920 / 2144.7;
  transform-origin: top left;
}

.hero__home-target {
  position: fixed;
  top: var(--hero-home-inset);
  left: var(--hero-home-inset);
  width: var(--hero-home-width);
  height: 0;
  pointer-events: none;
}

.hero__brand {
  position: absolute;
  top: 15.03%;
  left: 14.84375%;
  width: 70.3125%;
  margin: 0;
}

.hero__brand a { display: block; pointer-events: auto; }
.hero__brand a:focus-visible { outline: 2px solid var(--color-hero-focus-ring); outline-offset: 4px; }
.hero__brand.is-on-light img { filter: brightness(0) invert(28%); }
.hero__brand.is-on-gray img { filter: none; }
.hero__brand.is-on-photo img, .hero__brand.is-on-scenes img { filter: brightness(0) invert(1); }

.hero:has(.hero__brand.is-on-light:not(.is-on-gray):not(.is-on-photo):not(.is-on-scenes)) .home-navigation { color: var(--color-header-text-dark); }

.hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__subtitle {
  position: absolute;
  z-index: 4;
  top: 24.8%;
  left: 50%;
  width: max-content;
  max-width: 90%;
  margin: 0;
  color: var(--color-hero-text);
  font: 400 clamp(1.1rem, 3.54vw, 4.25rem)/1.2 'Bodoni Moda', Georgia, serif;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scene-switch {
  position: absolute;
  z-index: 5;
  bottom: 15%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .2rem;
  padding: .3rem;
  border-radius: 0;
  background: var(--color-hero-switch-surface);
  transform: translateX(-50%);
}

.hero__scene-switch::before {
  content: '';
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  left: .3rem;
  width: calc((100% - .8rem) / 2);
  background: var(--color-hero-switch-active-surface);
  transform: translateX(0);
  transition: transform .35s ease-in-out;
}
.hero[data-scene='night'] .hero__scene-switch::before { transform: translateX(calc(100% + .2rem)); }

.hero__scene-switch button {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: .65rem 1.1rem;
  background: transparent;
  color: var(--color-hero-switch-text);
  font: 500 clamp(.75rem, 1vw, .95rem)/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .35s ease-in-out;
}

.hero[data-scene='day'] [data-hero-scene-button='day'],
.hero[data-scene='night'] [data-hero-scene-button='night'] {
  color: var(--color-hero-switch-active-text);
}

@media (prefers-reduced-motion: reduce) {
  .hero__scene-switch::before, .hero__scene-switch button { transition: none; }
}

.hero__scene-switch button:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.hero__point {
  position: absolute;
  z-index: 2;
  display: block;
  width: clamp(1.5rem, 1.77vw, 2.125rem);
  height: clamp(1.5rem, 1.77vw, 2.125rem);
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-hero-hotspot);
  cursor: pointer;
  transform-origin: center;
  animation: hero-point-pulse 3.23s ease-in-out infinite;
}

.hero[data-point-motion='gsap'] .hero__point { animation: none; }

@keyframes hero-point-pulse {
  0%, 100% { transform: scale(.9); }
  50% { transform: scale(1.1); }
}

.hero__point--garden { left: 13.49%; top: 70.54%; }
.hero__point--building { left: 28.07%; top: 53.55%; }
.hero__point--path { left: 39.53%; top: 72.51%; }
.hero__point--feature { left: 64.38%; top: 62.32%; }

.hero:not([data-point-motion='gsap']) .hero__point:hover,
.hero:not([data-point-motion='gsap']) .hero__point:focus-visible,
.hero:not([data-point-motion='gsap']) .hero__feature[data-open] .hero__point {
  animation: none;
  transform: scale(1.1);
  opacity: 1;
}

.hero__point:hover,
.hero__point:focus-visible,
.hero__feature[data-open] .hero__point { background: var(--color-hero-hotspot); }

.hero__point::after {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-hero-hotspot-center);
  content: '';
  opacity: 1;
  transition: background-color .2s ease;
}

.hero__point[aria-expanded='true']::after,
.hero__point:focus-visible::after { background: var(--color-hero-hotspot-center); }

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .hero__point:hover::after { background: var(--color-hero-hotspot-center); }
}

.hero__point:focus-visible {
  outline: 3px solid var(--color-hero-focus-ring);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--color-hero-focus-shadow);
}

.hero__leader {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .7s;
}

.hero__leader path {
  fill: none;
  stroke: var(--color-hero-line);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .7s cubic-bezier(.22, 1, .36, 1);
  vector-effect: non-scaling-stroke;
}

.hero__leader-path--wide { display: none; }

.hero__feature[data-open] .hero__leader { visibility: visible; transition-delay: 0s; }
.hero__feature[data-open] .hero__leader path { stroke-dashoffset: 0; }

.hero__feature-card {
  position: absolute;
  z-index: 3;
  top: 48.49%;
  left: 70.47%;
  width: 23.02%;
  min-height: 9.78%;
  padding: clamp(.65rem, .52vw, .9rem);
  background: var(--color-hero-card-surface);
  color: var(--color-hero-card-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .4s ease, transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s .55s;
}

.hero__feature--garden .hero__feature-card { top: 45%; left: 8%; }
.hero__feature--building .hero__feature-card {
  top: 45.237%;
  left: 25.156%;
  transform: translateY(-12px) scale(.98);
  transform-origin: top left;
}
.hero__feature--path .hero__feature-card {
  top: 48%;
  left: 10.99%;
  transform: translateX(12px) scale(.98);
  transform-origin: bottom right;
}

.hero__feature[data-open] .hero__feature-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: .22s, .22s, 0s;
}

.hero__feature--path[data-open] .hero__feature-card { transform: translateX(0) scale(1); }

.hero__feature-card h2 {
  margin: 0 0 clamp(.6rem, 1.2vw, 1.5rem);
  font: 400 clamp(1rem, 1.46vw, 1.75rem)/1.2 'Bodoni Moda', Georgia, serif;
  text-transform: uppercase;
}

.hero__feature-card p {
  margin: 0;
  font: 300 clamp(.78rem, .94vw, 1.125rem)/1.25 var(--font-body);
  hyphens: auto;
}

@media (min-width: 701px) {
  /* Keep both views at the same scale and anchored to the same lower edge. */
  .hero__image,
  .hero__night-scene img { width: 130%; max-width: none; }
  .hero__point--garden { left: 2.8%; top: 61.9%; }
  .hero__point--building { left: 21.7%; top: 39.8%; }
  .hero__point--path { left: 36.6%; top: 64.5%; }
  .hero__point--feature { left: 68.9%; top: 51.2%; }
  .hero__feature-card { top: 37.35%; }
  /* Leave the same small breathing room above the connector as the other cards. */
  .hero__feature--light .hero__feature-card { top: auto; bottom: calc(52.455% + var(--space-hero-card-connector-gap)); left: 72.396%; width: 21.094%; }
  .hero__leader path:not(.hero__leader-path--wide) { display: none; }
  .hero__leader-path--wide { display: block; }
}

.concept {
  position: relative;
  background: var(--color-concept-surface);
  color: var(--color-concept-text);
  font-family: var(--font-body);
}

.concept__journey { padding: 2rem max(3%, 1rem) clamp(5rem, 12vw, 9rem); }

.concept__frame {
  position: relative;
  overflow: hidden;
  min-height: 42rem;
  background: var(--color-concept-surface);
}

.concept__hexagon {
  position: absolute;
  left: 50%;
  top: 2%;
  width: min(130vw, 96rem);
  height: auto;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
}
.concept__hexagon > svg { display: block; width: 100%; height: auto; }

.concept__hexagon polygon {
  fill: var(--color-concept-hexagon-surface);
  stroke: var(--color-concept-hexagon-outline);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.concept__panels { position: relative; z-index: 1; display: grid; gap: 1rem; width: min(90%, 58rem); margin: 12rem auto 4rem; }
.concept__panel { padding: 1.5rem; border-bottom: 1px solid var(--color-border-subtle); text-align: center; }
.concept__panel-mark {
  display: block;
  width: clamp(6rem, 15svh, 10rem);
  height: clamp(6rem, 15svh, 10rem);
  object-fit: contain;
  object-position: center top;
  filter: brightness(0) invert(1);
  margin: 0 auto clamp(2rem, 5svh, 3.5rem);
}
.concept__panel-mark--default {
  fill: none;
  stroke: var(--color-concept-mark);
  stroke-width: 1.5;
}
.concept__panel h2 { margin: 1rem 0; color: var(--color-concept-heading); font: 400 clamp(2rem, 5.56vw, 4.4rem)/1.05 'Bodoni Moda', Georgia, serif; text-transform: uppercase; }
.concept__panel p { max-width: 40rem; margin: 0 auto; color: var(--color-concept-body-text); font-size: clamp(.95rem, 1.25vw, 1.25rem); line-height: 1.5; hyphens: auto; }
.concept__progress, .concept__arrow, .concept__timer { display: none; }

/* Alternate page: lower the hexagon and exchange the pictogram with the copy block. */
.concept--alternate .concept__hexagon { top: 22%; }
.concept--alternate .concept__panel { display: flex; flex-direction: column; align-items: center; }
.concept--alternate .concept__panel h2 { order: 0; min-height: 2.1em; }
.concept--alternate .concept__panel p { order: 1; min-height: 4.5em; }
.concept--alternate .concept__panel-mark { order: 2; margin: clamp(2rem, 5svh, 3.5rem) auto 0; }

.concept__journey.is-enhanced { height: 460svh; padding: 0; }
.concept__journey.is-enhanced .concept__frame { position: sticky; top: 0; height: 100svh; min-height: 0; }
.concept__journey.is-enhanced .concept__panels { position: absolute; inset: 0; width: auto; margin: 0; }
.concept__journey.is-enhanced .concept__hexagon { top: 15%; width: max(130vw, 146svh); }
.concept--alternate .concept__journey.is-enhanced .concept__hexagon { top: 35%; }
.concept__journey.is-enhanced .concept__panel {
  position: absolute;
  left: 50%;
  top: 32%;
  width: min(82%, 58rem);
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 50%;
}

.concept__journey.is-enhanced .concept__panel.is-active {
  opacity: 1;
  visibility: visible;
}

.concept__journey.is-enhanced .concept__progress {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(1rem, 3vw, 3rem);
  display: grid;
  justify-items: center;
  gap: .75rem;
  transform: translateY(-50%);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.concept__progress-dots { display: grid; gap: .7rem; }
.concept__progress-dots button { width: .55rem; height: .55rem; padding: 0; border: 1px solid var(--color-concept-text); border-radius: 50%; background: transparent; cursor: pointer; }
.concept__progress-dots button[aria-current] { background: var(--color-concept-text); }
.concept__progress button:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 4px; }
.concept__number { min-width: 2.75rem; min-height: 2.75rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }

@media (max-width: 700px) {
  .concept__journey.is-enhanced { height: auto; }
  .concept__journey.is-enhanced .concept__frame { position: relative; }
  .concept__hexagon { width: 180vw; top: calc(6% + 50svh); }
  .concept--alternate .concept__hexagon { top: calc(26% + 50svh); }
  .concept__journey.is-enhanced .concept__hexagon { top: 30%; width: max(180vw, 110svh); will-change: transform; }
  .concept--alternate .concept__journey.is-enhanced .concept__hexagon { top: calc(35% + 50svh); }
  .concept__journey.is-enhanced .concept__panel { top: calc(25% + 25svh); width: min(82%, 34rem); }
  .concept__panel-mark { width: clamp(7.8rem, 19.5svh, 13rem); height: clamp(7.8rem, 19.5svh, 13rem); }
  .concept__panel h2 { font-size: clamp(2.6rem, 7.228vw, 5.72rem); }
  .concept__journey.is-enhanced .concept__panel-mark { width: 6.5svh; height: 6.5svh; margin-bottom: .5svh; }
  .concept__journey.is-enhanced .concept__panel h2 { margin: .5svh 0 1.25rem; font-size: clamp(1.56rem, 4.94vw, 1.95rem); }
  .concept__journey.is-enhanced .concept__panel p { font-size: 1.105rem; line-height: 1.35; }
  .concept__panel p { font-size: 1.196rem; }
  .concept__journey.is-enhanced .concept__progress { top: auto; right: auto; left: 50%; bottom: 1rem; display: flex; align-items: center; gap: .75rem; transform: translateX(-50%); font-size: 1rem; font-variant-numeric: tabular-nums; }
  .concept__progress-dots { display: none; }
  .concept__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--color-concept-text); font: 400 2.25rem/1 var(--font-body); cursor: pointer; }
  .concept__timer { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; margin-inline: .5rem; padding: 0; border: 0; background: transparent; color: var(--color-concept-text); font: 500 .8rem/1 var(--font-body); cursor: pointer; }
  .concept__timer svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(-90deg); }
  .concept__timer-track { opacity: .25; }
  .concept__timer-ring { stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
  .concept__timer[aria-pressed='true'] .concept__timer-ring { opacity: .4; }
}

@media (max-width: 700px) {
  .hero { height: 100svh; aspect-ratio: auto; }
  /* Scale both courtyard renders equally; Tag's extra sky extends above the crop. */
  .hero__image, .hero__night-scene img { bottom: 0; width: max(100%, calc(100svh * 1920 / 1433)); height: auto; max-width: none; }
  .hero__lockup.is-floating { height: 100svh; aspect-ratio: auto; }
  .hero__brand { top: calc(var(--hero-home-inset) + 9rem); }
  .hero__subtitle { top: calc(var(--hero-home-inset) + 9rem + 13vw); }
  .hero__point--feature { left: 63.7%; top: 61.8%; }
  .hero__leader { display: none; }
  .hero__feature .hero__feature-card {
    top: calc(61.8% + .75rem);
    left: 50%;
    width: min(88%, 22rem);
    min-height: auto;
    padding: .75rem;
    translate: -50% -50%;
    transform: scale(0);
    transform-origin: center;
    transition: opacity .3s ease, transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s .55s;
  }
  .hero__feature[data-open] .hero__feature-card { transform: scale(1); transition-delay: 0s; }
  .hero__feature-card h2 { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__point { animation: none; transition: none; }
  .hero__night-scene,
  .hero__point::after,
  .hero__leader,
  .hero__leader path,
  .hero__feature-card { transition: none; }
}
