/* ==============================================
   Fonts
============================================== */

@font-face {
  font-family: "Google Sans";
  src: url("fonts/sans-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: "Roslindale Display";
  src: url("fonts/serif.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Extended";
  src: url("fonts/extended.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==============================================
   Tokens — 1728px artboard
============================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  /* Brand color (never context-overridden) */
  --brand-navy: #1F2B5E;

  /* Contextual navy (can be overridden per page/theme) */
  --navy: var(--brand-navy);
  --muted: #626C95;
  --white: #FFFFFF;

  /* Category palettes — synced with Our Selection cards */
  --category-color-light: var(--white);
  --category-by-the-sea-color: #222A4C;
  --category-by-the-sea-muted: #5D668D;
  --category-evergreen-color: #36614D;
  --category-evergreen-muted: #80988E;
  --category-urban-living-color: #2D1C2D;
  --category-urban-living-muted: #6B5A6B;
  --category-rare-gems-color: #1C181D;
  --category-rare-gems-muted: #5C585D;

  --sans-font: "Google Sans", Arial, Helvetica, sans-serif;
  --display-font: "Roslindale Display", Georgia, "Times New Roman", serif;
  --standard-easing: cubic-bezier(0.55, 0.25, 0, 1);
  --cta-motion-easing: cubic-bezier(0.6, 0.5, 0, 1);
  --overlay-duration: 0.8s;
  --body-leading: 1.35;

  /* Device scale — desktop tokens are the source of truth. */
  --desktop-size-scale: 1;
  --tablet-size-scale: 1.4;
  --mobile-size-scale: 2.25;
  --responsive-size-scale: var(--desktop-size-scale);

  --grid-columns: 12;

  --desktop-grid-padding: 3.834vw;
  --desktop-grid-gap: 2.601vw;
  --desktop-text-size: 1.341vw;
  --desktop-lead-size: 1.638vw;
  --desktop-form-field-padding-block: 1.08vw;
  --desktop-logo-width: 18vw;
  --desktop-hero-visual-width: 20vw;
  --desktop-hero-visual-height: 20vw;
  --desktop-hero-content-width: 42vw;
  --desktop-marquee-text-size: 16.56vw;
  --desktop-marquee-gap: 2.601vw;
  --desktop-overlay-width: 35vw;
  --desktop-overlay-padding: 3.6vw;
  --desktop-overlay-title-size: 1.98vw;
  --desktop-overlay-heading-scale: 1.35;
  --desktop-overlay-field-size: 0.99vw;
  --desktop-overlay-label-size: 0.855vw;
  --desktop-overlay-cta-size: 0.99vw;
  --desktop-overlay-close-size: 2.25vw;
  --desktop-overlay-inner-gap: 2.5vw;
  --desktop-overlay-slide-offset: 18vw;
  --desktop-overlay-close-hit-size: 2.7vw;
  --desktop-overlay-close-offset: 2.25vw;
  --desktop-form-gap: 0.45vw;
  --desktop-form-textarea-min-height: 5.4vw;
  --desktop-form-marketing-margin-top: 0.45vw;
  --desktop-form-label-gap: 0.675vw;
  --desktop-form-footer-margin-top: 0.9vw;
  --desktop-form-message-size: 1.08vw;
  --desktop-selection-card-title-size: 3.24vw;
  --desktop-selection-card-desc-size: 0.9vw;
  --desktop-selection-card-symbol-width: 2.66vw;
  --desktop-selection-card-padding: 1.85vw;
  --desktop-nav-footer-text-size: 1.250vw;
  --desktop-footer-cta-text-size: 1.8vw;

  --grid-padding: calc(var(--desktop-grid-padding) * var(--responsive-size-scale));
  --grid-gap: calc(var(--desktop-grid-gap) * var(--responsive-size-scale));
  --text-size: calc(var(--desktop-text-size) * var(--responsive-size-scale));
  --lead-size: calc(var(--desktop-lead-size) * var(--responsive-size-scale));
  --hero-content-text-size: var(--lead-size);
  --form-field-padding: calc(var(--desktop-form-field-padding-block) * var(--responsive-size-scale)) 0;
  --logo-width: calc(var(--desktop-logo-width) * var(--responsive-size-scale));
  --hero-visual-width: calc(var(--desktop-hero-visual-width) * var(--responsive-size-scale));
  --hero-visual-height: calc(var(--desktop-hero-visual-height) * var(--responsive-size-scale));
  --hero-content-width: calc(var(--desktop-hero-content-width) * var(--responsive-size-scale));
  --marquee-text-size: calc(var(--desktop-marquee-text-size) * var(--responsive-size-scale));
  --marquee-gap: calc(var(--desktop-marquee-gap) * var(--responsive-size-scale));
  --overlay-width: calc(var(--desktop-overlay-width) * var(--responsive-size-scale));
  --overlay-padding: calc(var(--desktop-overlay-padding) * var(--responsive-size-scale));
  --overlay-title-size: calc(var(--desktop-overlay-title-size) * var(--responsive-size-scale));
  --overlay-heading-scale: var(--desktop-overlay-heading-scale);
  --overlay-field-size: calc(var(--desktop-overlay-field-size) * var(--responsive-size-scale));
  --overlay-label-size: calc(var(--desktop-overlay-label-size) * var(--responsive-size-scale));
  --overlay-cta-size: calc(var(--desktop-overlay-cta-size) * var(--responsive-size-scale));
  --overlay-close-size: calc(var(--desktop-overlay-close-size) * var(--responsive-size-scale));
  --overlay-inner-gap: calc(var(--desktop-overlay-inner-gap) * var(--responsive-size-scale));
  --overlay-slide-offset: calc(var(--desktop-overlay-slide-offset) * var(--responsive-size-scale));
  --overlay-close-hit-size: calc(var(--desktop-overlay-close-hit-size) * var(--responsive-size-scale));
  --overlay-close-offset: calc(var(--desktop-overlay-close-offset) * var(--responsive-size-scale));
  --form-gap: calc(var(--desktop-form-gap) * var(--responsive-size-scale));
  --form-textarea-min-height: calc(var(--desktop-form-textarea-min-height) * var(--responsive-size-scale));
  --form-marketing-margin-top: calc(var(--desktop-form-marketing-margin-top) * var(--responsive-size-scale));
  --form-label-gap: calc(var(--desktop-form-label-gap) * var(--responsive-size-scale));
  --form-footer-margin-top: calc(var(--desktop-form-footer-margin-top) * var(--responsive-size-scale));
  --form-message-size: calc(var(--desktop-form-message-size) * var(--responsive-size-scale));
  --selection-bg: #e3e5eb;
  --home-logo-transition-bg: #DEDFE4;
  --selection-card-height: 75svh;
  --selection-card-title-size: calc(var(--desktop-selection-card-title-size) * var(--responsive-size-scale));
  --selection-card-desc-size: calc(var(--desktop-selection-card-desc-size) * var(--responsive-size-scale));
  --selection-card-symbol-width: calc(var(--desktop-selection-card-symbol-width) * var(--responsive-size-scale));
  --selection-card-padding: calc(var(--desktop-selection-card-padding) * var(--responsive-size-scale));
  --selection-card-panel-ratio: 1.85;
  --selection-card-cover-ratio: 1024 / 585;
  --selection-page-scale: 0.38;
  --selection-page-offset: 50;
  --selection-btn-scale: 0.82;
  --nav-footer-text-size: calc(var(--desktop-nav-footer-text-size) * var(--responsive-size-scale));
  --footer-cta-text-size: calc(var(--desktop-footer-cta-text-size) * var(--responsive-size-scale));
  --selection-hover-duration: 0.8s;
  --selection-hover-easing: cubic-bezier(0.18, 0.13, 0, 0.99);
}

/* ==============================================
   Base
============================================== */

html {
  scrollbar-width: none;
  width: 100%;
  height: 100svh;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
}

html,
body {
  margin: 0;
  height: 100svh;
  overflow: hidden;
  color: var(--navy);
  background: var(--white);
  font-size: var(--text-size);
  font-family: var(--sans-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 100%;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body:not(.is-ready) #page-stage .logo,
body:not(.is-ready) #page-stage .our-selection-btn,
body:not(.is-ready) #page-stage .hero-content,
body:not(.is-ready) #page-stage .about-btn,
body:not(.is-ready) #page-stage .site-footer > a,
body:not(.is-ready) #page-stage .hero-section .marquee-reveal {
  visibility: hidden;
}

.hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
  overflow: visible;
}

.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: clip-path;
}

.page-grid .hero-visual {
  overflow: visible;
}

.page-grid .hero-visual img {
  object-position: center center;
  transform-origin: center center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  -webkit-user-drag: none;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

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

a:focus,
a:active {
  outline: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.split-line {
  display: block;
  line-height: inherit;
  transform-origin: 50% 100%;
}

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

#page-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 2;
  will-change: transform;
  background: var(--white);
}

#selection-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

#selection-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--selection-bg);
  visibility: hidden;
  pointer-events: none;
}

body.selection-open #selection-menu {
  visibility: visible;
  pointer-events: auto;
}

body.selection-open {
  overflow: hidden;
}

body.selection-open #selection-shell {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

body.selection-open #page-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  overflow: clip;
  z-index: 3;
  cursor: pointer;
}

body.selection-open #page-stage * {
  pointer-events: none;
}

body.selection-open #page-stage.is-page-exiting {
  z-index: 3;
  pointer-events: none;
}

#page-stage-incoming,
#page-stage-incoming.is-page-entering {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  overflow: clip;
  z-index: 6;
  will-change: transform;
  background: var(--white);
  pointer-events: none;
}

body.home-logo-transition {
  overflow: hidden;
  background: var(--home-logo-transition-bg);
}

body.home-logo-transition #selection-shell {
  background: var(--home-logo-transition-bg);
}

body.home-logo-transition #page-stage.is-page-exiting {
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

body.home-logo-transition #page-stage.is-page-exiting .logo,
body.home-logo-transition #page-stage.is-page-exiting .our-selection-btn,
body.home-logo-transition #page-stage.is-page-exiting .hero-content,
body.home-logo-transition #page-stage.is-page-exiting .about-btn,
body.home-logo-transition #page-stage.is-page-exiting .site-footer > a,
body.home-logo-transition #page-stage.is-page-exiting .hero-section .marquee-reveal {
  visibility: visible;
  opacity: 1;
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: var(--category-color);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .about-btn,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .link-underline,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-content p,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-section .marquee-collection .marquee-text {
  color: var(--category-color-light);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .our-selection-btn {
  --selection-btn-fill: var(--category-color-light);
  --selection-btn-hover-text: var(--category-color);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-content {
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
}

#page-stage.is-outgoing-home-stage {
  --navy: var(--brand-navy);
  background: var(--white);
  color: var(--navy);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage {
  --navy: var(--brand-navy);
  background: var(--white);
  color: var(--navy);
}

#page-stage.is-outgoing-home-stage .about-btn,
#page-stage.is-outgoing-home-stage .link-underline,
#page-stage.is-outgoing-home-stage .hero-content p,
#page-stage.is-outgoing-home-stage .hero-section .marquee-collection .marquee-text {
  color: var(--navy);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage .about-btn,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage .link-underline,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage .hero-content p,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage .hero-section .marquee-collection .marquee-text {
  color: var(--navy);
}

#page-stage.is-outgoing-home-stage .our-selection-btn {
  --selection-btn-fill: var(--navy);
  --selection-btn-hover-text: var(--white);
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-home-stage .our-selection-btn {
  --selection-btn-fill: var(--navy);
  --selection-btn-hover-text: var(--white);
}

#page-stage.is-outgoing-home-stage .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
  overflow: visible;
  clip-path: none;
}

#page-stage.is-outgoing-home-stage .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: clip-path;
}

#page-stage.is-outgoing-home-stage .hero-bottom {
  display: grid;
  justify-items: center;
  align-items: center;
}

#page-stage.is-outgoing-home-stage .hero-content {
  align-self: center;
  justify-self: center;
  position: absolute;
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
  text-align: center;
}

body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-content p {
  font-size: var(--hero-content-text-size);
  line-height: var(--body-leading);
  text-align: center;
}

.home-logo-transition-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--home-logo-transition-bg);
  opacity: 0;
  pointer-events: none;
}

.home-logo-transition-separator {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

#page-stage-incoming.is-home-logo-incoming,
#page-stage-incoming.is-home-logo-incoming.is-page-entering {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  overflow: clip;
  z-index: 6;
  will-change: transform;
  pointer-events: auto;
  background: var(--white);
  color: var(--navy);
}

body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .about-btn,
body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .link-underline,
body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-content p,
body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-section .marquee-collection .marquee-text {
  color: var(--navy);
}

body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .our-selection-btn {
  --selection-btn-fill: var(--navy);
  --selection-btn-hover-text: var(--white);
}

body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
}

body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-content {
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
}

body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-content p {
  font-size: var(--hero-content-text-size);
  text-align: center;
}

body.selection-open #page-stage-incoming {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
}

#page-stage-incoming.is-category-stage {
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow: clip;
  --navy: var(--category-color-light);
  color: var(--category-color-light);
  background: var(--category-color);
}

/* When a back/forward (home-logo) transition lands on a category page, the
   incoming stage carries BOTH .is-home-logo-incoming and .is-category-stage.
   The home-logo base rule above forces a white/navy theme at a higher
   specificity (it also matches .is-page-entering), so re-assert the category
   colors here with enough specificity to win during the whole transition. */
#page-stage-incoming.is-home-logo-incoming.is-category-stage,
#page-stage-incoming.is-home-logo-incoming.is-category-stage.is-page-entering {
  --navy: var(--category-color-light);
  color: var(--category-color-light);
  background: var(--category-color);
}

#page-stage-incoming.is-category-stage main {
  overflow: clip;
}

#page-stage-incoming.is-category-stage .page-grid {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: visible;
}

#page-stage-incoming.is-category-stage .page-grid::after {
  content: "";
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  block-size: calc(var(--text-size) * 1.3);
}

#page-stage-incoming.is-category-stage .about-btn,
#page-stage-incoming.is-category-stage .link-underline,
#page-stage-incoming.is-category-stage .hero-content p,
#page-stage-incoming.is-category-stage .hero-section .marquee-collection .marquee-text {
  color: var(--category-color-light);
}

#page-stage-incoming.is-category-stage .our-selection-btn {
  --selection-btn-fill: var(--category-color-light);
  --selection-btn-hover-text: var(--category-color);
}

#page-stage-incoming.is-category-stage .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
}

#page-stage-incoming.is-category-stage .hero-content {
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
}

#page-stage-incoming.is-category-stage .hero-content p {
  font-size: var(--hero-content-text-size);
  line-height: var(--body-leading);
  text-align: center;
}

#page-stage-incoming.is-category-stage .hero-section {
  overflow: visible;
}

#page-stage-incoming.is-category-stage .hero-visual {
  z-index: 5;
  flex-shrink: 0;
  overflow: visible;
  transform-origin: center center;
  will-change: width, height, transform;
  clip-path: none;
}

#page-stage-incoming.is-category-stage .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: clip-path;
}

/* Home incoming during catalog swap — mirror home styles while body may still be category-page */
#page-stage-incoming.is-home-stage {
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow: clip;
  background: var(--white);
  color: var(--navy);
}

#page-stage-incoming.is-home-stage main {
  overflow: clip;
}

#page-stage-incoming.is-home-stage .page-grid {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: visible;
}

#page-stage-incoming.is-home-stage .hero-section {
  overflow: visible;
}

#page-stage-incoming.is-home-stage .hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  overflow: visible;
  padding-bottom: 0;
}

#page-stage-incoming.is-home-stage .about-btn,
#page-stage-incoming.is-home-stage .link-underline,
#page-stage-incoming.is-home-stage .hero-content p,
#page-stage-incoming.is-home-stage .hero-section .marquee-collection .marquee-text {
  color: var(--navy);
}

#page-stage-incoming.is-home-stage .our-selection-btn {
  --selection-btn-fill: var(--navy);
  --selection-btn-hover-text: var(--white);
}

#page-stage-incoming.is-home-stage .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
  z-index: 5;
  flex-shrink: 0;
  overflow: visible;
  transform-origin: center center;
  will-change: width, height, transform;
  clip-path: none;
}

#page-stage-incoming.is-home-stage .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: clip-path;
}

#page-stage-incoming.is-home-stage .hero-bottom {
  display: grid;
  justify-items: center;
  align-items: center;
}

#page-stage-incoming.is-home-stage .hero-content {
  align-self: center;
  justify-self: center;
  position: absolute;
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
  text-align: center;
}

#page-stage-incoming.is-home-stage .hero-content p {
  font-size: var(--hero-content-text-size);
  text-align: center;
}

body.category-page:not(.is-ready) #page-stage-incoming.is-home-stage .hero-content,
body.category-page:not(.is-ready) #page-stage-incoming.is-home-stage .about-btn {
  visibility: visible;
}

.selection-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
  height: var(--selection-card-height);
  padding: var(--grid-padding);
  padding-bottom: 0;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

body.selection-open .selection-cards {
  pointer-events: auto;
}

.selection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--category-color-light);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--sans-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: filter var(--selection-hover-duration) var(--selection-hover-easing);
}

.selection-card[data-category="by-the-sea"] {
  --card-color: var(--category-by-the-sea-color);
}

.selection-card[data-category="evergreen"] {
  --card-color: var(--category-evergreen-color);
}

.selection-card[data-category="urban-living"] {
  --card-color: var(--category-urban-living-color);
}

.selection-card[data-category="rare-gems"] {
  --card-color: var(--category-rare-gems-color);
}

.selection-card__panel {
  position: relative;
  flex: var(--selection-card-panel-ratio) 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: var(--selection-card-padding);
  background: var(--card-color);
}

.selection-card__cover {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--selection-card-cover-ratio);
  overflow: hidden;
  height: 20svh;
}

.selection-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 90% at 50% 45%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.1) 38%,
    rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
  transition: opacity var(--selection-hover-duration) var(--selection-hover-easing);
}

.selection-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transform-origin: center center;
  filter: brightness(1) saturate(1);
  transition: transform var(--selection-hover-duration) var(--selection-hover-easing),
    filter var(--selection-hover-duration) var(--selection-hover-easing);
}

.selection-card__symbol {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: var(--selection-card-symbol-width);
  height: auto;
  max-width: none;
}

.selection-card__title {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  justify-self: end;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--selection-card-title-size);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.selection-card__desc {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 72%;
  font-size: var(--selection-card-desc-size);
  line-height: 1.35;
  opacity: 0.92;
}

@media (hover: hover) {
  .selection-card:hover {
    filter: brightness(1.08);
  }

  .selection-card:hover .selection-card__cover img {
    transform: scale(1.045);
    filter: brightness(1.14) saturate(1.12);
  }

  .selection-card:hover .selection-card__cover::after {
    opacity: 1;
  }

  .selection-card--home:hover {
    filter: brightness(0.96);
  }
}

.selection-card--home {
  --card-color: #FFFFFF;
  /* Keep readable on category pages where --navy becomes white */
  color: var(--brand-navy);
}

.selection-card--home .selection-card__panel {
  flex: 1 1 auto;
  background: var(--white);
}

.selection-card--home .selection-card__title {
  color: var(--brand-navy);
}

.selection-card--home .selection-card__desc {
  color: var(--brand-navy);
  max-width: 78%;
}

@media (prefers-reduced-motion: reduce) {
  #page-stage {
    will-change: auto;
  }
}

/* ==============================================
   Grid overlay (dev)
============================================== */

.grid-overlay {
  position: fixed;
  top: var(--grid-padding);
  left: var(--grid-padding);
  right: var(--grid-padding);
  bottom: var(--grid-padding);
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.grid-overlay div {
  background: rgba(155, 155, 155, 0.2);
  will-change: clip-path;
}

/* ==============================================
   Page grid
============================================== */

.page-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--grid-gap);
  row-gap: var(--grid-gap);
  align-content: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100svh;
  max-height: 100svh;
  margin: 0 auto;
  padding: var(--grid-padding);
  overflow: hidden;
}

.site-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  min-width: 0;
}

.logo {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  line-height: 0;
}

.logo a {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}

.logo img {
  width: var(--logo-width);
  height: auto;
  max-width: none;
}

.about-btn {
  grid-column: 1 / 3;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  font-size: var(--nav-footer-text-size);
  color: var(--navy);
  white-space: nowrap;
}

.our-selection-btn {
  --selection-btn-fill: var(--navy);
  --selection-btn-hover-text: var(--white);
  grid-column: 11 / 13;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 1em 1.5em;
  cursor: pointer;
  font-size: var(--nav-footer-text-size);
  line-height: 1;
  white-space: nowrap;
  color: var(--selection-btn-fill);
  border: calc(1px * var(--selection-btn-scale)) solid var(--selection-btn-fill);
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--selection-btn-fill) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position 0.75s var(--standard-easing),
    color 0.75s var(--standard-easing);
}

.our-selection-btn:hover {
  background-position: 0 0;
  color: var(--selection-btn-hover-text);
}

.our-selection-btn svg {
  display: block;
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
}

.hero-section {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
/*  gap: 8svh;*/
  min-height: 0;
  overflow: visible;
}

.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  top: -11svh;
}

.hero-bottom {
  display: grid;
  justify-items: center;
  align-items: center;
}

.hero-visual {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  z-index: 5;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  transform-origin: center center;
  will-change: width, height, transform;
  clip-path: none;
}

.hero-content {
  align-self: center;
  justify-self: center;
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
  text-align: center;
  text-wrap: balance;
}

.hero-content:not(body.category-page .hero-content),
#page-stage.is-outgoing-home-stage .hero-content,
#page-stage-incoming.is-home-stage .hero-content {
  /*bottom: 0;*/
  bottom: 3svh;
}

.hero-content h1,
.hero-content p {
  font-size: var(--hero-content-text-size);
  line-height: var(--body-leading);
  color: var(--navy);
  text-align: center;
}

.hero-content .hero-price {
  --hero-price-border-top: 1;
  --hero-price-border-right: 1;
  --hero-price-border-bottom: 1;
  --hero-price-border-left: 1;
  display: inline-block;
  margin: 2em 0 0;
  padding: 0.4em 1em;
  padding-top:0.5em;
  background:
    linear-gradient(var(--navy), var(--navy)) top left / calc(var(--hero-price-border-top) * 100%) 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) top right / 1px calc(var(--hero-price-border-right) * 100%) no-repeat,
    linear-gradient(var(--navy), var(--navy)) bottom right / calc(var(--hero-price-border-bottom) * 100%) 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) bottom left / 1px calc(var(--hero-price-border-left) * 100%) no-repeat;
  font-family: "Monument Extended", "MonumentExtended", var(--sans-font);
  font-size: calc(var(--hero-content-text-size) * 0.5);
  font-weight: 500;
  font-feature-settings: "ss01" 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#page-stage.is-outgoing-home-stage .hero-content .hero-price,
#page-stage-incoming.is-home-stage .hero-content .hero-price,
#page-stage-incoming.is-category-stage .hero-content .hero-price,
body.category-page #page-stage-incoming.is-home-logo-incoming.is-home-stage .hero-content .hero-price,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-content .hero-price,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content .hero-price {
  font-size: calc(var(--hero-content-text-size) * 0.5);
}

.site-footer {
  display: contents;
}

.site-footer > a:not([data-open-lead-overlay]) {
  grid-row: 3;
  align-self: end;
  font-size: var(--nav-footer-text-size);
  color: var(--navy);
  white-space: nowrap;
}

.site-footer > a[data-footer-whatsapp] {
  grid-column: 1 / 3;
  justify-self: start;
}

.site-footer > a[data-open-lead-overlay] {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  align-self: end;
  z-index: 1;
  top:-0.5vw;
  font-size: var(--footer-cta-text-size);
}

.site-footer > a[href^="mailto:"] {
  grid-column: 11 / 13;
  justify-self: end;
}

/* Marquee */

.hero-section .marquee {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  position: relative;
  width: 100vw;
  display: flex;
  align-items: center;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-section .marquee-reveal {
  transform-origin: 50% 100%;
  overflow: visible;
}

.hero-section .marquee-scroll {
  display: flex;
  width: max-content;
  overflow: visible;
}

.hero-section .marquee-collection {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: var(--marquee-gap);
}

.hero-section .marquee-collection .marquee-text {
  display: block;
  font-family: var(--sans-font);
  font-weight: 500;
  font-size: var(--marquee-text-size);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
  padding-right: var(--marquee-gap);
}

/* Links */

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--navy);
  white-space: nowrap;
}

.link-underline::after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  border-bottom: solid 1px currentColor;
  transform: scaleX(1);
  transform-origin: 0% 50%;
  transition: transform 650ms var(--standard-easing);
}

.link-underline[data-open-lead-overlay],
.link-underline[data-open-about-overlay],
.about-btn.link-underline,
.about-overlay__link {
  --underline-clip-right: 100%;
}

.link-underline[data-open-lead-overlay]::after,
.link-underline[data-open-about-overlay]::after,
.about-btn.link-underline::after,
.about-overlay__link::after {
  clip-path: inset(0 var(--underline-clip-right) 0 0);
}

.link-underline:hover::after {
  clip-path: inset(0 0 0 0);
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.link-underline img {
  display: inline-block;
  width: 0.576em;
  height: auto;
  max-width: none;
  flex-shrink: 0;
  transition: transform 650ms var(--standard-easing);
}

.link-underline:hover img {
  transform: translateX(0.2em);
}

.about-btn.link-underline,
.site-footer > a[data-footer-whatsapp],
.site-footer > a[href^="mailto:"] {
  position: relative;
  display: inline-flex;
}

.about-btn.link-underline::after,
.site-footer > a[data-footer-whatsapp]::after,
.site-footer > a[href^="mailto:"]::after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  border-bottom: solid 1px currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 650ms var(--standard-easing);
}

.about-btn.link-underline:hover::after,
.about-btn.link-underline:focus-visible::after,
.site-footer > a[data-footer-whatsapp]:hover::after,
.site-footer > a[data-footer-whatsapp]:focus-visible::after,
.site-footer > a[href^="mailto:"]:hover::after,
.site-footer > a[href^="mailto:"]:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

/* ==============================================
   Side overlays
============================================== */

body:has(.side-overlay.active) {
  overflow: hidden;
}

.side-overlay {
  --navy: var(--brand-navy);
  --muted: #626C95;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  visibility: hidden;
  overflow: visible;
  pointer-events: none;
  transition: visibility var(--overlay-duration);
}

.side-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(31, 43, 94, 0.45);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--overlay-duration) var(--standard-easing);
}

.side-overlay.active {
  visibility: visible;
  pointer-events: auto;
}

.side-overlay.active::before {
  opacity: 1;
  pointer-events: auto;
}

.side-overlay > div {
  position: relative;
  width: var(--overlay-width);
  max-width: 100%;
  height: 100%;
  padding: var(--overlay-padding);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 0 100%);
  transition: clip-path var(--overlay-duration) var(--standard-easing);
}

.side-overlay > div::-webkit-scrollbar {
  display: none;
}

.side-overlay.active > div {
  clip-path: inset(0 0 0 0%);
  transition: clip-path var(--overlay-duration) var(--cta-motion-easing);
}

.side-overlay:not(.active) > div {
  clip-path: inset(0 0 0 100%);
  transition: clip-path var(--overlay-duration) var(--standard-easing);
}

.about-overlay {
  --about-overlay-width: min(100%, calc(var(--overlay-width)));
}

.side-overlay.about-overlay > div {
  width: var(--about-overlay-width);
}

.side-overlay > div > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--overlay-inner-gap);
  flex: 1;
  position: relative;
  right: calc(-1 * var(--overlay-slide-offset));
  transition: right var(--overlay-duration) var(--standard-easing);
}

.side-overlay.active > div > div {
  right: 0;
  transition: right var(--overlay-duration) var(--cta-motion-easing);
}

.side-overlay:not(.active) > div > div {
  right: calc(-1 * var(--overlay-slide-offset));
  transition: right var(--overlay-duration) var(--standard-easing);
}

.side-overlay h3 {
  font-family: var(--sans-font);
  font-size: var(--overlay-title-size);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--form-gap);
}

#lead-form input,
#lead-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(31, 43, 94, 0.25);
  color: var(--navy);
  font-size: var(--overlay-field-size);
  font-family: var(--sans-font);
  padding: var(--form-field-padding);
  outline: none;
  transition: border-color 0.3s ease;
  direction: ltr;
  text-align: left;
}

#lead-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

#lead-form input:focus,
#lead-form select:focus {
  border-bottom-color: var(--navy);
}

#lead-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231F2B5E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 0.64em;
  background-position: right 0 center;
  padding-right: 1.8em;
}

#lead-form select:invalid {
  color: var(--muted);
}

#lead-form > div:has(#lead-marketing) {
  margin-top: var(--form-marketing-margin-top);
}

#lead-form label[for="lead-marketing"] {
  display: flex;
  align-items: flex-start;
  gap: var(--form-label-gap);
  cursor: pointer;
  font-family: var(--sans-font);
  font-size: var(--overlay-label-size);
  line-height: 1.45;
  color: var(--muted);
  direction: ltr;
  text-align: left;
  padding: 1vw 0vw;
}

#lead-form label[for="lead-marketing"] input[type="checkbox"] {
  width: 1.16em;
  height: 1.16em;
  min-width: 13px;
  min-height: 13px;
  margin: 0.158em 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.lead-marketing__text {
  display: block;
  flex: 1;
  min-width: 0;
}

#lead-form > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--form-footer-margin-top);
}

#lead-form [type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  cursor: pointer;
  padding: 0.85em 1.6em;
  font-size: var(--overlay-cta-size);
  font-family: var(--sans-font);
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--navy);
  background-color: transparent;
  background-image: linear-gradient(90deg, transparent 50%, var(--navy) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position 0.75s var(--standard-easing),
    color 0.75s var(--standard-easing);
  appearance: none;
  -webkit-appearance: none;
}

#lead-form [type="submit"]:hover {
  background-position: 0 0;
  color: var(--navy);
}

#lead-form [type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
  pointer-events: none;
}

#lead-form [type="submit"]:disabled:hover {
  background-position: 100% 0;
  color: var(--white);
}

.side-overlay__close {
  position: relative;
  align-self: flex-end;
  width: var(--overlay-close-hit-size);
  height: var(--overlay-close-hit-size);
  min-width: 36px;
  min-height: 36px;
  margin-left: calc(-1 * var(--overlay-close-offset));
  padding: 0;
  border: none;
  background: transparent;
  font-size: var(--overlay-close-size);
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition:
    opacity 0.25s var(--standard-easing),
    transform var(--overlay-duration) var(--standard-easing);
}

.side-overlay__close:hover {
  opacity: 0.55;
}

.side-overlay.active .side-overlay__close {
  transform: translateX(0);
  transition:
    opacity 0.25s var(--standard-easing),
    transform var(--overlay-duration) var(--cta-motion-easing);
}

.side-overlay:not(.active) .side-overlay__close {
  transform: translateX(var(--overlay-slide-offset));
  transition:
    opacity 0.25s var(--standard-easing),
    transform var(--overlay-duration) var(--standard-easing);
}

.lead-form-success,
.lead-form-error {
  font-size: var(--form-message-size);
  color: var(--navy);
}

.lead-form-error {
  color: #8b2e2e;
}

.about-overlay__content {
  justify-content: flex-start;
}

.about-overlay__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--overlay-inner-gap);
  min-height: 100%;
  color: var(--navy);
}

.about-overlay__body .about-overlay__eyebrow {
  margin: 0;
  font-size: calc(var(--overlay-label-size) * 0.85);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-overlay__body h3,
#lead-overlay-title {
  font-family: var(--display-font);
  font-size: calc(var(--overlay-title-size) * var(--overlay-heading-scale));
  margin: 0;
  line-height: 1.1;
}

.about-overlay__body p {
  margin: 0;
  font-size: 1.1vw;
  line-height: 1.45;
  color: var(--navy);
  opacity: 0.8!important;
}

.about-overlay__link {
  align-self: flex-start;
  margin-top: calc(var(--overlay-inner-gap) * 0.35);
  color: var(--navy);
  font-family: var(--sans-font);
  font-size: var(--lead-size);
  line-height: var(--body-leading);
}

.about-overlay__image-frame {
  display: block;
  width: 100%;
  margin-top: auto;
  overflow: clip;
}

.about-overlay__image {
  display: block;
  width: 100%;
  height: 30svh;
  object-fit: cover;
  transform-origin: center center;
  object-position: center center;
}

/* ==============================================
   Compact — laptops / short viewports
   Below 1700px width or 750px height: scale by svh
   (1728px artboard → svh via × 1728 / 1117)
============================================== */



@media (min-width: 850px) and (max-height: 900px) {
  :root {
    --text-size: 2.49svh;
    --nav-footer-text-size: 2.5svh;
    --footer-cta-text-size: 2.913svh;
    --lead-size: 3.041svh;
    --logo-width: 35.9svh;
    --hero-visual-width: 35vh;
    --hero-visual-height: 35vh;
    --marquee-text-size: 27.673svh;
    --marquee-gap: 3.623svh;
    --overlay-title-size: 3.8svh;
    --overlay-field-size: 2.206svh;
    --overlay-label-size: 1.905svh;
    --overlay-cta-size: 2.206svh;
    --overlay-close-size: 5.013svh;
    --form-field-padding: 2.005svh 0;
    --form-gap: 0.835svh;
    --form-marketing-margin-top: 0.835svh;
    --form-label-gap: 1.253svh;
    --form-footer-margin-top: 1.671svh;
    --form-message-size: 2.406svh;
  }

  .about-overlay__body p {
    font-size: 2.451svh;
  }

  .about-overlay__body {
    gap: 2.506svh;
  }

  .about-overlay__image-frame {
    height: 30svh;
  }

}



/* ==============================================
   Tablet — max 1024px
   Desktop tokens × tablet scale
============================================== */

@media (max-width: 1024px) and (min-width: 600px) {
  :root {
    --responsive-size-scale: var(--tablet-size-scale);
    --selection-card-height: 58svh;
    --selection-page-scale: 0.44;
  }

  .hero-section {
    grid-row: 2;
    gap: 15svh;
    justify-content: center;
    align-self: stretch;
  }

  .hero-top {
    top: 0;
  }

  .lead-form-success,
  .lead-form-error {
    font-size: var(--form-message-size);
  }
}


/* ==============================================
   Mobile — max 600px
   Desktop tokens × mobile scale
============================================== */

@media (max-width: 600px) {
  :root {
    --responsive-size-scale: var(--mobile-size-scale);
    --grid-padding: calc(var(--desktop-grid-padding) * var(--responsive-size-scale) * 0.75);
    --logo-width: calc(var(--desktop-logo-width) * var(--responsive-size-scale) * 1.08);
    --hero-content-text-size: calc(var(--lead-size) * 1.4);
    --grid-columns: 4;
    --nav-footer-text-size: calc(var(--desktop-nav-footer-text-size) * var(--responsive-size-scale) * 1.15);
    --overlay-padding: var(--grid-padding);
    --overlay-title-size: clamp(1.35rem, 6vw, 1.75rem);
    --overlay-field-size: clamp(1rem, 4.25vw, 1.125rem);
    --overlay-label-size: clamp(0.875rem, 3.6vw, 0.95rem);
    --overlay-cta-size: clamp(1rem, 4.25vw, 1.125rem);
    --overlay-close-size: clamp(2rem, 8.5vw, 2.5rem);
    --overlay-slide-offset: calc(var(--overlay-width) * 18 / 31.5);
    --form-message-size: clamp(0.95rem, 4vw, 1.1rem);
    --selection-card-height: 52svh;
    --selection-card-title-size: calc(var(--desktop-selection-card-title-size) * var(--responsive-size-scale) * 1.15);
    --selection-card-desc-size: calc(var(--desktop-selection-card-desc-size) * var(--responsive-size-scale) * 1.15);
    --selection-mobile-grid-width: calc(100vw - (var(--grid-padding) * 2));
    --selection-mobile-preview-visible-ratio: 0.3;
    --selection-mobile-preview-height: calc(
      var(--selection-mobile-grid-width) * var(--selection-mobile-preview-visible-ratio)
    );
    --selection-page-scale: 0.52;
  }

  

  .selection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: calc(100svh - var(--selection-mobile-preview-height) - var(--grid-gap));
    min-height: 0;
  }

  .selection-card {
    min-height: 0;
  }

  .page-grid {
/*    grid-template-rows: auto 1fr auto auto;*/
    row-gap: var(--grid-gap);
  }

  .about-btn {
    grid-column: 1 / 3;
    font-size: calc(var(--nav-footer-text-size) * 1.38);
  }

  .our-selection-btn {
    grid-column: 3 / 5;
    font-size: var(--nav-footer-text-size);
    padding: 0.9em;
    padding-bottom: 0.8em;
    gap: 0;
  }

  .our-selection-btn svg {
    display: block;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
  }
  

  .our-selection-btn span {
    display: none;
  }

  .hero-section {
    grid-row: 2;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    gap: 15svh;
  }

  .hero-top {
    top: -5svh;
  }

  .hero-content:not(body.category-page .hero-content),
  #page-stage.is-outgoing-home-stage .hero-content,
  #page-stage-incoming.is-home-stage .hero-content {
    bottom: 12svh;
  }

  .site-footer > a[data-open-lead-overlay] {
    grid-row: 2;
    align-self: end;
    font-size: calc(var(--footer-cta-text-size) * 1.495);
  }

  .site-footer > a[data-footer-whatsapp] {
    grid-column: 1 / 3;
    grid-row: 4;
    justify-self: start;
    font-size: calc(var(--nav-footer-text-size) * 1.38);
  }

  .site-footer > a[href^="mailto:"] {
    grid-column: 3 / 5;
    grid-row: 4;
    justify-self: end;
    font-size: calc(var(--nav-footer-text-size) * 1.38);
  }

  #lead-form [type="submit"] {
    padding: 0.75em 1.4em;
  }

  .lead-form-success,
  .lead-form-error {
    font-size: var(--form-message-size);
  }

  /* iOS Safari zooms focused inputs when font-size < 16px */
  #lead-form input,
  #lead-form select {
    font-size: max(var(--overlay-field-size), 16px);
  }

  .about-overlay__body p {
    font-size: clamp(1rem, 4.25vw, 1.125rem);
  }

  .about-overlay__link {
    font-size: clamp(1.1rem, 4.75vw, 1.25rem);
  }

  .site-footer > a[data-open-lead-overlay] {
    top:0vw;
  }

  #lead-form label[for="lead-marketing"] {
    padding: 5vw 0vw;
    }

}

/* ==============================================
   Mobile — short viewports (max-height: 850px)
   Keep dimensions inherited from desktop-scaled mobile tokens.
============================================== */

/*
@media (max-width: 600px) and (max-height: 850px) {
  .hero-section {
    gap: 15svh;
  }

  .site-footer > a[data-open-lead-overlay] {
    margin-bottom: var(--grid-gap);
    font-size: calc(var(--footer-cta-text-size) * 1.495);
  }

  .side-overlay > div {
    width: min(100%, var(--overlay-width));
  }

  .lead-form-success,
  .lead-form-error {
    font-size: var(--form-message-size);
  }
}

@media (max-width: 1024px) and (min-width: 600px) and (max-height: 850px) {
  .lead-form-success,
  .lead-form-error {
    font-size: var(--form-message-size);
  }
}

*/


/* ==============================================
   Reduced motion
============================================== */

@media (prefers-reduced-motion: reduce) {
  .link-underline[data-open-lead-overlay],
  .about-btn.link-underline {
    --underline-clip-right: 0%;
  }

  .link-underline::after,
  .link-underline img {
    transition: none;
  }
}

/* ==============================================
   Category pages
============================================== */

body.category-page {
  --navy: var(--category-color-light);
  color: var(--category-color-light);
  background: var(--category-color);
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
}

/* Category theme color changes are instant: the hero image expands to cover
   the full viewport at the moment the palette flips, so it acts as the divider
   between the colored hero and the white sections below — no cross-fade needed.
   This rule stays as a safeguard so any future transitions never fade a route
   swap mid-commit. */
body.spa-transition-scroll-locked,
body.spa-transition-scroll-locked #page-stage,
body.spa-transition-scroll-locked #selection-shell {
  transition: none !important;
}

body.category-page.category-stage-light {
  --navy: var(--category-color);
  color: var(--category-color);
  background: var(--category-color-light);
}

body.category-page.category-stage-light #page-stage,
body.category-page.category-stage-light #selection-shell {
  background: var(--category-color-light);
}

body.category-page.category-stage-light .about-btn,
body.category-page.category-stage-light .link-underline,
body.category-page.category-stage-light .hero-content p,
body.category-page.category-stage-light .hero-section .marquee-collection .marquee-text {
  color: var(--category-color);
}

body.category-page.category-stage-light .our-selection-btn {
  --selection-btn-fill: var(--category-color);
  --selection-btn-hover-text: var(--category-color-light);
}

body.category-page.category-stage-light .category-gallery,
body.category-page.category-stage-light .category-outro {
  background: var(--category-color-light);
}

html:has(body.category-page:not(.smooth-scroll-ready)) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html:has(body.category-page.smooth-scroll-ready:not(.smooth-scroll-native)) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

html:has(body.category-page.smooth-scroll-native) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.category-page #page-stage {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: var(--category-color);
}

body.category-page #selection-shell {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

html:has(body.selection-open.category-page) {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

body.selection-open.category-page #selection-shell {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

body.selection-open.category-page #page-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  overflow: clip;
}

body.category-page main {
  overflow: visible;
}

body.category-page .page-grid,
#page-stage.is-outgoing-route-stage.category-page .page-grid {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: visible;
}

/* Reserve the home footer row height so hero-section vertical rhythm matches index. */
body.category-page .page-grid::after,
#page-stage.is-outgoing-route-stage.category-page .page-grid::after,
#page-stage-incoming.is-category-stage .page-grid::after,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .page-grid::after {
  content: "";
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  block-size: calc(var(--text-size) * 1.3);
  pointer-events: none;
  display:none;
}

body.category-page .about-btn,
body.category-page .link-underline,
body.category-page .hero-content p,
body.category-page .hero-section .marquee-collection .marquee-text {
  color: var(--category-color-light);
}

body.category-page .side-overlay .link-underline {
  color: var(--brand-navy);
}

body.category-page .our-selection-btn {
  --selection-btn-fill: var(--category-color-light);
  --selection-btn-hover-text: var(--category-color);
}

body.category-page,
#page-stage.is-outgoing-route-stage.category-page {
  --desktop-category-section-pad: 14vw;
  --desktop-category-section-inner-gap: 13vw;
  --desktop-category-values-row-gap: 5vw;
  --desktop-category-hero-gap: 5.236vw;
  --desktop-projects-slide-width: 52.083vw;
  --desktop-projects-slide-height: 33.738vw;
  --desktop-projects-slider-margin-top: 5vw;
  --desktop-projects-slider-padding-bottom: 8vw;
  --desktop-projects-slider-nav-right: 12.5vw;
  --desktop-projects-slider-nav-gap: 0.5vw;
  --desktop-projects-slider-arrow-size: 3.472vw;
  --desktop-category-intro-gap: 4.282vw;
  --desktop-category-intro-line-height: 4vw;
  --desktop-category-title-max-width: 38.357vw;
  --desktop-category-title-size: 5.236vw;
  --desktop-category-copy-max-width: 25.013vw;
  --desktop-category-copy-size: 1.314vw;
  --category-copy-line-height: 1.4;
  --desktop-category-values-desc-margin-top: 1.638vw;
  --desktop-category-cta-line-margin-bottom: 2.604vw;
  --desktop-category-cta-link-margin-top: 4.282vw;
  --desktop-category-next-content-gap: 1.638vw;
  --desktop-category-next-label-padding-block: 0.363vw;
  --desktop-category-next-label-padding-inline: 0.8vw;
  --desktop-category-next-label-size: 1.1vw;
  --desktop-category-next-title-size: 5.787vw;

  --category-section-pad: calc(var(--desktop-category-section-pad) * var(--responsive-size-scale));
  --category-section-inner-gap: calc(var(--desktop-category-section-inner-gap) * var(--responsive-size-scale));
  --category-values-row-gap: calc(var(--desktop-category-values-row-gap) * var(--responsive-size-scale));
  --category-hero-end-width: 100vw;
  --category-hero-end-height: 80vw;
  --category-hero-gap: calc(var(--desktop-category-hero-gap) * var(--responsive-size-scale));
  --category-hero-end-hold: 0vw;
  --category-hero-viewport-height: 100svh;
  --projects-slide-width: calc(var(--desktop-projects-slide-width) * var(--responsive-size-scale));
  --projects-slide-height: calc(var(--desktop-projects-slide-height) * var(--responsive-size-scale));
  --projects-slider-margin-top: calc(var(--desktop-projects-slider-margin-top) * var(--responsive-size-scale));
  --projects-slider-padding-bottom: calc(var(--desktop-projects-slider-padding-bottom) * var(--responsive-size-scale));
  --projects-slider-nav-right: calc(var(--desktop-projects-slider-nav-right) * var(--responsive-size-scale));
  --projects-slider-nav-gap: calc(var(--desktop-projects-slider-nav-gap) * var(--responsive-size-scale));
  --projects-slider-arrow-size: calc(var(--desktop-projects-slider-arrow-size) * var(--responsive-size-scale));
  --category-intro-gap: calc(var(--desktop-category-intro-gap) * var(--responsive-size-scale));
  --category-intro-line-height: calc(var(--desktop-category-intro-line-height) * var(--responsive-size-scale));
  --category-title-max-width: calc(var(--desktop-category-title-max-width) * var(--responsive-size-scale));
  --category-title-size: calc(var(--desktop-category-title-size) * var(--responsive-size-scale));
  --category-copy-max-width: calc(var(--desktop-category-copy-max-width) * var(--responsive-size-scale));
  --category-copy-size: calc(var(--desktop-category-copy-size) * var(--responsive-size-scale));
  --category-values-desc-margin-top: calc(var(--desktop-category-values-desc-margin-top) * var(--responsive-size-scale));
  --category-cta-line-margin-bottom: calc(var(--desktop-category-cta-line-margin-bottom) * var(--responsive-size-scale));
  --category-cta-link-margin-top: calc(var(--desktop-category-cta-link-margin-top) * var(--responsive-size-scale));
  --category-next-content-gap: calc(var(--desktop-category-next-content-gap) * var(--responsive-size-scale));
  --category-next-label-padding-block: calc(var(--desktop-category-next-label-padding-block) * var(--responsive-size-scale));
  --category-next-label-padding-inline: calc(var(--desktop-category-next-label-padding-inline) * var(--responsive-size-scale));
  --category-next-label-size: calc(var(--desktop-category-next-label-size) * var(--responsive-size-scale));
  --category-next-title-size: calc(var(--desktop-category-next-title-size) * var(--responsive-size-scale));
/*
  --category-hero-scroll-stage-height: calc(
    var(--category-hero-viewport-height) + var(--category-hero-end-height) + var(--category-hero-gap) +
      var(--category-hero-end-hold)
  );
  */
}

body.category-page .category-hero-scroll-stage,
#page-stage.is-outgoing-route-stage.category-page .category-hero-scroll-stage {
  position: relative;
  z-index: 0;
  width: 100%;
  height: var(--category-hero-scroll-stage-height);
  min-height: var(--category-hero-scroll-stage-height);
  overflow: visible;
}

body.category-page .category-hero,
#page-stage.is-outgoing-route-stage.category-page .category-hero {
  position: relative;
  z-index: 2;
  height: var(--category-hero-viewport-height);
  min-height: var(--category-hero-viewport-height);
  max-height: var(--category-hero-viewport-height);
  overflow: visible;
}

body.category-page .category-hero-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--category-color);
}

body.category-page .category-hero-cover__spacer {
  width: 100%;
  height: calc(
    var(--category-hero-end-height-eff, var(--category-hero-end-height)) + var(--category-hero-gap)
  );
  min-height: calc(
    var(--category-hero-end-height-eff, var(--category-hero-end-height)) + var(--category-hero-gap)
  );
  pointer-events: none;
}

body.category-page .category-hero-cover__hold {
  width: 100%;
  height: var(--category-hero-end-hold);
  min-height: var(--category-hero-end-hold);
  pointer-events: none;
}

body.category-page.category-stage-light .category-hero-cover {
  background: var(--category-color-light);
}

body.category-page:not(.is-ready) .hero-content,
body.category-page:not(.is-ready) .about-btn {
  visibility: hidden;
}

body.category-by-the-sea,
#page-stage-incoming.category-by-the-sea,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage.category-by-the-sea {
  --category-color: var(--category-by-the-sea-color);
  --category-color-muted: var(--category-by-the-sea-muted);
}

body.category-evergreen,
#page-stage-incoming.category-evergreen,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage.category-evergreen {
  --category-color: var(--category-evergreen-color);
  --category-color-muted: var(--category-evergreen-muted);
}

body.category-urban-living,
#page-stage-incoming.category-urban-living,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage.category-urban-living {
  --category-color: var(--category-urban-living-color);
  --category-color-muted: var(--category-urban-living-muted);
}

body.category-rare-gems,
#page-stage-incoming.category-rare-gems,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage.category-rare-gems {
  --category-color: var(--category-rare-gems-color);
  --category-color-muted: var(--category-rare-gems-muted);
}

/* Projects slider (from main site) */

.projects-slider {
  --slide-width: var(--projects-slide-width);
  --slide-height: var(--projects-slide-height);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: var(--projects-slider-margin-top);
  padding-bottom: var(--projects-slider-padding-bottom);
  overflow-x: clip;
}

.projects-slider-viewport {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  column-gap: var(--grid-gap);
  padding-inline: var(--grid-padding);
  position: relative;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.projects-slider-viewport.is-dragging {
  cursor: grabbing;
}

body.smooth-scroll-ready.is-page-drag-scrolling,
body.smooth-scroll-ready.is-page-drag-scrolling * {
  cursor: grabbing !important;
  user-select: none;
}

.projects-slider-track {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
  will-change: transform;
  rotate: -8deg;
}

.projects-slider-item {
  flex: 0 0 var(--slide-width);
  width: var(--slide-width);
  min-width: var(--slide-width);
  rotate: 8deg;
}

.projects-slider-item img {
  width: 100%;
  height: var(--slide-height);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.projects-slider-nav {
  position: absolute;
  right: var(--projects-slider-nav-right);
  bottom: 0;
  display: flex;
  gap: var(--projects-slider-nav-gap);
  z-index: 2;
}

.projects-slider-arrow {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.projects-slider-arrow:hover {
  opacity: 0.65;
}

.projects-slider-arrow img {
  width: var(--projects-slider-arrow-size);
  height: var(--projects-slider-arrow-size);
}

/* Category page sections — shared vertical rhythm */

body.category-page main > section {
  display: flex;
  flex-direction: column;
  gap: var(--category-section-inner-gap);
  padding-top: var(--category-section-pad);
  padding-bottom: var(--category-section-pad);
}

body.category-page main > section + section {
  padding-top: 0;
}

body.category-page main > section.category-parallax,
body.category-page main > section.category-next {
  display: block;
  padding: 0;
  gap: 0;
}

body.category-page main > section.category-cta {
  align-items: center;
  padding-top: var(--category-section-pad);
  padding-bottom: var(--category-section-pad);
}

.category-gallery {
  position: relative;
  width: 100%;
  background: var(--category-color);
}

.category-gallery-intro {
  display: flex;
  flex-direction: column;
  gap: var(--category-intro-gap);
  align-items: center;
  text-align: center;
  padding-inline: var(--grid-padding);
}

.category-gallery-intro__line {
  display: block;
  width: 1px;
  height: var(--category-intro-line-height);
  background: var(--category-color);
  opacity: 0.35;
}

.category-gallery-intro h2 {
  margin: 0;
  max-width: var(--category-title-max-width);
  color: var(--category-color);
  font-family: var(--display-font);
  font-size: var(--category-title-size);
  font-weight: 200;
  font-feature-settings: "ss01" on;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.category-gallery-intro p {
  margin: 0;
  max-width: var(--category-copy-max-width);
  color: var(--category-color-muted);
  font-family: var(--sans-font);
  font-size: var(--category-copy-size);
  line-height: var(--category-copy-line-height);
  letter-spacing: -0.01em;
}

/* Category outro — marquee + closing copy */

.category-outro {
  position: relative;
  width: 100%;
  background: var(--category-color);
}

.category-outro__marquee {
  width: 100%;
/*  overflow: hidden;*/
  pointer-events: none;
}

.category-outro .marquee {
  display: flex;
  align-items: center;
  width: 100%;
/*  overflow: hidden;*/
}

.category-outro .marquee-scroll {
  display: flex;
  width: max-content;
}

.category-outro .marquee-collection {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: var(--marquee-gap);
}

.category-outro .marquee-collection .marquee-text {
  display: block;
  font-family: var(--sans-font);
  font-weight: 500;
  font-size: var(--marquee-text-size);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--category-color-light);
  white-space: nowrap;
  padding-right: var(--marquee-gap);
}

body.category-page.category-stage-light .category-outro .marquee-collection .marquee-text {
  color: var(--category-color);
}

.category-outro-intro {
  display: flex;
  flex-direction: column;
  gap: var(--category-intro-gap);
  align-items: center;
  text-align: center;
  padding-inline: var(--grid-padding);
}

.category-outro-intro__line {
  display: block;
  width: 1px;
  height: var(--category-intro-line-height);
  background: var(--category-color);
  opacity: 0.35;
}

.category-outro-intro h2 {
  margin: 0;
  max-width: var(--category-title-max-width);
  color: var(--category-color);
  font-family: var(--display-font);
  font-size: var(--category-title-size);
  font-weight: 200;
  font-feature-settings: "ss01" on;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.category-outro-intro p {
  margin: 0;
  max-width: var(--category-copy-max-width);
  color: var(--category-color-muted);
  font-family: var(--sans-font);
  font-size: var(--category-copy-size);
  line-height: var(--category-copy-line-height);
  letter-spacing: -0.01em;
}

/* Category values — image + stat rows */

.category-values {
  display: flex;
  flex-direction: column;
  gap: var(--category-values-row-gap);
  width: 100%;
  padding-inline: var(--grid-padding);
}

.category-values__row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: stretch;
}

.category-values__row:nth-child(1) .category-values__copy {
  align-self: start;
}

.category-values__row:nth-child(2) .category-values__copy {
  align-self: center;
}

.category-values__row:nth-child(3) .category-values__copy {
  align-self: end;
}

.category-values__figure {
  grid-column: 2 / 5;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 708 / 908;
}

.category-values__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.category-values__copy {
  grid-column: 5 / 8;
}

.category-values__row--reverse .category-values__figure {
  grid-column: 9 / 12;
}

.category-values__row--reverse .category-values__copy {
  grid-column: 6 / 9;
}

.category-values__stat {
  margin: 0;
  color: var(--category-color);
  font-family: var(--sans-font);
  font-size: var(--category-title-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.category-values__desc {
  margin: var(--category-values-desc-margin-top) 0 0;
  color: var(--category-color-muted);
  font-family: var(--sans-font);
  font-size: var(--category-copy-size);
  line-height: var(--category-copy-line-height);
  letter-spacing: -0.01em;
}

/* Category parallax — full-viewport image */

.category-parallax {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.category-parallax__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-parallax__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

/* Category CTA — closing dark section */

.category-cta {
  width: 100%;
  background: var(--category-color);
  color: var(--category-color-light);
}

body.category-page.category-stage-light .category-cta {
  background: var(--category-color);
  color: var(--category-color-light);
}

.category-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-inline: var(--grid-padding);
}

.category-cta__line {
  display: block;
  width: 1px;
  height: var(--category-intro-line-height);
  margin-bottom: var(--category-cta-line-margin-bottom);
  background: currentColor;
  opacity: 0.35;
}

.category-cta h2 {
  margin: 0;
  max-width: var(--category-title-max-width);
  color: inherit;
  font-family: var(--display-font);
  font-size: var(--category-title-size);
  font-weight: 200;
  font-feature-settings: "ss01" on;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.category-cta__link {
  margin-top: var(--category-cta-link-margin-top);
  color: var(--category-color-light);
  font-family: var(--sans-font);
  font-size: var(--lead-size);
  line-height: var(--body-leading);
}

body.category-page .category-cta .link-underline,
body.category-page.category-stage-light .category-cta .link-underline {
  color: var(--category-color-light);
}

.category-cta__link img {
  filter: brightness(0) invert(1);
}

/* Category next — teaser link to the following category */

.category-next {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 50svh;
  min-height: 50svh;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.category-next__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: filter var(--selection-hover-duration) var(--selection-hover-easing);
}

.category-next__image-wrap {
  width: 100%;
  height: 100%;
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--selection-hover-duration) var(--selection-hover-easing);
  overflow: hidden;
}

.category-next__parallax {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.category-next__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.category-next__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: background-color var(--selection-hover-duration) var(--selection-hover-easing);
}

@media (hover: hover) {
  .category-next:hover .category-next__image-wrap {
    transform: scale(1.1);
  }

  .category-next:hover .category-next__overlay {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

/* Hold the lighter (hover) overlay while the next-section animates into the page
   transition (hover state is lost the moment the section is clicked/moved), so it
   doesn't snap back to dark before the JS fades the overlay fully out as the texts
   leave — ending on the clean image with no darkening. */
.category-next.is-transitioning .category-next__overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .category-next__viewport,
  .category-next__image-wrap,
  .category-next__overlay {
    transition: none;
  }
}

.category-next__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--category-next-content-gap);
  padding-inline: var(--grid-padding);
  text-align: center;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.category-next__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--category-next-label-padding-block) var(--category-next-label-padding-inline);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans-font);
  font-size: var(--category-next-label-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.category-next__title {
  margin: 0;
  font-family: var(--sans-font);
  font-size: var(--category-next-title-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.category-next__desc {
  margin: 0;
  font-family: var(--sans-font);
  font-size: var(--category-copy-size);
  font-weight: 400;
  line-height: var(--category-copy-line-height);
  letter-spacing: -0.01em;
}

/* Category next — full-screen transition to the following category */

body.category-next-transition.category-page,
body.category-next-transition.category-page #selection-shell {
  background: var(--category-color);
  color: var(--category-color-light);
  transition: none;
}

body.category-next-transition {
  overflow: hidden;
}

body.category-next-scroll-locked,
body.category-next-scroll-locked #selection-shell {
  overflow: hidden !important;
  touch-action: none;
}

/* Universal guard: block any user scroll gesture while a page transition
   (selection swap, home-logo, category-next, direct route) is running. */
body.spa-transition-scroll-locked {
  touch-action: none;
  overscroll-behavior: none;
  overflow: hidden;
}

/* ============================================================
   CURSOR LOADER RING
   A refined loading indicator that materialises around the
   pointer during category-next page transitions: a single thin,
   semi-transparent ring that gracefully fills around itself.
   ============================================================ */
@property --cursor-loader-progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.cursor-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 100000;
  pointer-events: none;
  transform: translate3d(var(--cursor-loader-x, -100px), var(--cursor-loader-y, -100px), 0);
  will-change: transform;
}

.cursor-loader__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  /* Exit: power4.inOut, 1s. Transitions use the target state's timing,
     so the return-to-base values here drive the disappear. */
  transition:
    opacity 1s cubic-bezier(0.77, 0, 0.175, 1),
    transform 1s cubic-bezier(0.77, 0, 0.175, 1);
  /* Difference blend keeps the ring visible over any background
     (light pages, dark pages, coloured transition backdrops). */
  mix-blend-mode: difference;
}

.cursor-loader.is-active .cursor-loader__ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  /* Enter timing (kept from before). */
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Faint full-circle track. */
.cursor-loader__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

/* The fill that sweeps around the ring (single thin arc).
   The arc length (progress) is driven ONCE by JS, from 0% when the
   page transition starts to 100% the moment it ends. */
.cursor-loader__fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #ffffff var(--cursor-loader-progress, 0%),
    transparent 0
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1.5px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1.5px)
  );
  /* Smooths the per-frame JS progress updates and the final snap to 100%. */
  transition: --cursor-loader-progress 0.2s linear;
}

body.category-next-transition #selection-shell {
  overflow: hidden;
  position: relative;
}

/* The outgoing page stays visible during the expand; JS hides it
   (hideCategoryNextOutgoingStage) only after the section fully covers it. */
body.category-next-transition #page-stage.is-page-exiting {
  pointer-events: none;
}

.category-next-transition-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--category-color);
  pointer-events: none;
}

body.category-next-transition .category-next.is-transitioning {
  margin-left: 0;
  max-width: none;
  pointer-events: none;
  z-index: 100;
}

body.category-next-transition .category-next.is-transitioning .category-next__content {
  pointer-events: none;
}

body.category-next-transition .category-next__label,
body.category-next-transition .category-next__title,
body.category-next-transition .category-next__desc {
  will-change: transform, clip-path, opacity;
}

#page-stage-incoming.is-category-next-incoming {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 100svh;
  max-height: none;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  background: var(--category-color);
  color: var(--category-color-light);
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming main {
  overflow: visible;
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .page-grid {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: visible;
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .about-btn,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .link-underline,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content p,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-section .marquee-collection .marquee-text {
  color: var(--category-color-light);
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .our-selection-btn {
  --selection-btn-fill: var(--category-color-light);
  --selection-btn-hover-text: var(--category-color);
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content h1,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content h3,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content p,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-section .marquee-reveal {
  opacity: 0;
  visibility: hidden;
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-visual {
  width: var(--hero-visual-width);
  height: var(--hero-visual-height);
  pointer-events: none;
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content {
  width: min(var(--hero-content-width), calc(100vw - (var(--grid-padding) * 2)));
}

body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content p {
  font-size: var(--hero-content-text-size);
  line-height: var(--body-leading);
  text-align: center;
}

#page-stage-incoming.is-category-next-incoming .hero-visual {
  pointer-events: none;
}

.category-next-flight {
  z-index: 110;
  transform-origin: center center;
  will-change: top, left, width, height;
}

.category-next-flight img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.category-next-transition .category-next__label,
  body.category-next-transition .category-next__title,
  body.category-next-transition .category-next__desc,
  .category-next-flight {
    will-change: auto;
  }
}

@media (max-width: 1024px) and (min-width: 600px) {
  .category-values__figure {
    grid-column: 1 / 4;
  }

  .category-values__copy {
    grid-column: 5 / 8;
    max-width: none;
  }

  .category-values__stat {
    font-size: calc(var(--category-title-size) * 0.85);
  }

  .category-values__row--reverse .category-values__figure {
    grid-column: 9 / 12;
  }

  .category-values__row--reverse .category-values__copy {
    grid-column: 5 / 8;
  }

  .category-values__desc {
    max-width: none;
  }
}

@media (max-width: 600px) {
  body.category-page,
  #page-stage.is-outgoing-route-stage.category-page {
    --category-copy-size: calc(var(--desktop-category-copy-size) * var(--responsive-size-scale) * 1.3);
  }

  body.category-page .page-grid::after,
  #page-stage.is-outgoing-route-stage.category-page .page-grid::after,
  #page-stage-incoming.is-category-stage .page-grid::after {
    grid-row: 4;
    block-size: calc(var(--text-size) * 1.3);
  }

  body.category-page .hero-section,
#page-stage.is-outgoing-route-stage.category-page .hero-section,
body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-section,
#page-stage-incoming.is-category-stage .hero-section,
#page-stage-incoming.is-category-stage.is-page-entering .hero-section,
body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-section {
    padding-bottom: calc(var(--text-size) * 1.3 + var(--category-section-pad));
    box-sizing: border-box;
  }

  body.category-page .hero-content,
  #page-stage.is-outgoing-route-stage.category-page .hero-content,
  #page-stage-incoming.is-category-stage .hero-content,
  #page-stage-incoming.is-category-stage.is-page-entering .hero-content,
  body.home-logo-transition #page-stage.is-page-exiting.is-outgoing-route-stage .hero-content,
  body.category-next-transition #page-stage-incoming.is-category-next-incoming .hero-content {
    bottom: 0;
  }

  #page-stage-incoming.is-home-stage .hero-section {
    padding-bottom: 0;
    box-sizing: content-box;
  }

  .category-gallery-intro {
    gap: var(--category-intro-gap);
  }

  .category-gallery-intro__line {
    height: var(--category-intro-line-height);
  }

  .category-gallery-intro h2 {
    max-width: 88vw;
    font-size: var(--category-title-size);
  }

  .category-gallery-intro p {
    max-width: 82vw;
    font-size: var(--category-copy-size);
  }

  .category-outro-intro {
    gap: var(--category-intro-gap);
  }

  .category-outro-intro__line {
    height: var(--category-intro-line-height);
  }

  .category-outro-intro h2 {
    max-width: 88vw;
    font-size: var(--category-title-size);
  }

  .category-outro-intro p {
    max-width: 82vw;
    font-size: var(--category-copy-size);
  }

  .category-cta__line {
    height: var(--category-intro-line-height);
    margin-bottom: var(--category-cta-line-margin-bottom);
  }

  .category-cta h2 {
    max-width: 88vw;
    font-size: var(--category-title-size);
  }

  .category-cta__link {
    margin-top: var(--category-cta-link-margin-top);
    font-size: var(--category-copy-size);
  }

  .category-next__content {
    gap: var(--category-next-content-gap);
  }

  .category-next__label {
    padding: var(--category-next-label-padding-block) var(--category-next-label-padding-inline);
    font-size: var(--category-next-label-size);
  }

  .category-next__title {
    font-size: var(--category-next-title-size);
  }

  .category-next__desc {
    max-width: 82vw;
    font-size: var(--category-copy-size);
  }

  .category-values {
    gap: var(--category-values-row-gap);
  }

  .category-values__row,
  .category-values__row--reverse {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
  }

  .category-values__figure,
  .category-values__row--reverse .category-values__figure {
    grid-column: auto;
    width: 52vw;
    align-self: flex-start;
  }

  .category-values__row--reverse .category-values__figure {
    align-self: flex-end;
  }

  .category-values__copy,
  .category-values__row--reverse .category-values__copy {
    grid-column: auto;
    width: 100%;
    max-width: 82vw;
    align-self: flex-start;
  }

  .category-values__row:nth-child(1) .category-values__copy,
  .category-values__row:nth-child(2) .category-values__copy,
  .category-values__row:nth-child(3) .category-values__copy {
    align-self: flex-start;
  }

  .category-values__row--reverse .category-values__copy {
    align-self: flex-end;
    text-align: right;
  }

  .category-values__stat {
    font-size: var(--category-title-size);
  }

  .category-values__desc {
    margin-top: var(--category-values-desc-margin-top);
    max-width: 82vw;
    font-size: var(--category-copy-size);
  }

  .projects-slider {
    --slide-width: 82vw;
    --slide-height: 58.33vw;
    padding-bottom: var(--category-section-pad);
  }

  .projects-slider-track {
    rotate: -4deg;
  }

  .projects-slider-item {
    rotate: 4deg;
  }

  .projects-slider-nav {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    gap: var(--projects-slider-nav-gap);
    margin-bottom: calc(var(--category-section-pad) * -0.714) !important;
  }

  .projects-slider-arrow img {
    width: var(--projects-slider-arrow-size);
    height: var(--projects-slider-arrow-size);
  }

  .selection-card__cover {
    height: 10svh;
  }
}
