/* ==========================================================================
   THE COURTYARD AT PARK HEIGHTS — LUXURY DESIGN SYSTEM
   1:1 Inspired by latabledejoakim.fr with bespoke aesthetic architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600;700&family=Great+Vibes&family=Amatic+SC:wght@700&family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Tokens */
  --color-bg: #F5F1E8;
  --color-bg-alt: #EAE3D6;
  --color-bg-dark: #12100E;
  --color-bg-card: #FAF8F5;
  --color-text-primary: #1A1715;
  --color-text-secondary: #6B655E;
  --color-text-muted: #9E988F;
  --color-text-light: #F7F5F0;
  
  --color-accent-terracotta: #A85838;
  --color-accent-sage: #6B7B6E;
  --color-accent-sand: #DFD5C6;
  --color-accent-gold: #C5A880;
  --color-border: rgba(26, 23, 21, 0.12);
  --color-border-light: rgba(247, 245, 240, 0.15);

  /* Joakim Exact Brand Palette Tokens */
  --brand-color--light-brown: rgb(155, 124, 109);
  --brand-color--dark-brown: #553D34;
  --brand-color--light-blue: rgb(216, 225, 235);
  --brand-color--dark-blue: #324960;
  --brand-color--light-green: #BFC5AF;
  --brand-color--pure-white: #FFFFFF;
  --brand-color--pure-black: #12100E;

  /* Menu Backdrop Colors */
  --bg-menu-base: #D8E1EB;
  --bg-menu-exp: #D8E1EB;
  --bg-menu-ser: #BFC5AF;
  --bg-menu-blog: #9B7C6D;
  --bg-menu-con: #EAE2DF;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-script: 'Great Vibes', cursive;
  --font-hand: 'Amatic SC', cursive;

  /* Preloader Logo Scaling */
  --preloader-logo-size: clamp(3.4rem, 7.5vw, 6rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.25s ease;
  --transition-med: 0.45s var(--ease-out-expo);
  --transition-slow: 0.85s var(--ease-out-expo);

  /* Spacing */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 4rem);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  scroll-behavior: auto !important; /* Lenis handles smooth scrolling */
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.padding-global {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

.heading-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  font-weight: 400;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 400;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
}

.serif-italic {
  font-style: italic;
}

/* ==========================================================================
   NAVIGATION BAR (1:1 Joakim Luxury 3-Point Layout)
   ========================================================================== */
.nav-wrapper {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 1.5rem var(--container-pad);
  pointer-events: none; color: #FFFFFF;
  transition: transform .6s var(--ease-out-expo), background-color .45s ease, color .45s ease, padding .45s ease;
}
.nav-wrapper.nav-hidden { transform: translateY(-110%); }
/* Joakim: past the hero the nav floats with no bar, just dark ink */
.nav-wrapper.nav-scrolled { color: inherit; padding-top: .9rem; padding-bottom: .9rem; }
.nav-container {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: 100%; max-width: var(--container-max); margin: 0 auto; pointer-events: auto;
}
.nav-left { display: flex; justify-content: flex-start; }
.nav-right { display: flex; justify-content: flex-end; }

/* Joakim: small mono caps, a thin underline */
.nav-reserve-link, .nav-menu-plain {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: inherit; cursor: pointer; padding: .3rem 0;
}
.nav-reserve-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-reserve-link:hover, .nav-menu-plain:hover { opacity: .65; }

/* The Courtyard's own mark: brush ring + hand-lettered name. Colour follows the text colour. */
.ring-logo {
  position: relative; display: grid; place-items: center;
  width: 104px; aspect-ratio: 1160 / 820; color: inherit;
  transition: transform .45s var(--ease-out-expo), width .45s var(--ease-out-expo);
}
.ring-logo:hover { transform: rotate(-4deg); }
.ring-mark {
  position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url('../images/courtyard-ring.svg') center / contain no-repeat;
          mask: url('../images/courtyard-ring.svg') center / contain no-repeat;
}
.ring-text {
  position: relative; display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; line-height: .82; letter-spacing: .02em; text-transform: uppercase;
}
.ring-text small { font-size: .7em; }
.ring-text em { font-family: var(--font-mono); font-style: normal; font-size: .3em; letter-spacing: .12em; margin-top: .35em; }
.nav-scrolled .ring-logo { width: 84px; }

@media (max-width: 768px) {
  .ring-logo { width: 84px; }
  .nav-reserve-link { font-size: .64rem; }
}

/* ==========================================================================
   GSAP SPLIT-TEXT CTA EFFECT (.hover-text)
   ========================================================================== */
.hover-text {
  position: relative;
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  cursor: pointer;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.hover-text.black {
  color: var(--brand-color--pure-black) !important;
}

.hover-text.green {
  color: var(--brand-color--light-green) !important;
}

.hover-text.brown {
  color: var(--brand-color--dark-brown) !important;
}

.hover-text.blue {
  color: var(--brand-color--dark-blue) !important;
}

.hover-text .line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}

.hover-text .bottom {
  position: absolute;
  left: 0;
  top: 0;
}

.hover-text .char {
  display: inline-block;
  will-change: transform, opacity;
}

.subline {
  background-color: var(--brand-color--pure-white);
  width: 100%;
  height: 1px;
  margin-top: 0.25rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.subline.black {
  background-color: var(--brand-color--pure-black);
}

.subline.brown {
  background-color: var(--brand-color--dark-brown);
}

.subline.blue {
  background-color: var(--brand-color--dark-blue);
}

.cta-white, .cta-black {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.cta-white:hover .subline,
.cta-black:hover .subline {
  transform: scaleX(1.08);
}

/* ==========================================================================
   FULLSCREEN MENU DRAWER
   ========================================================================== */
/* Joakim: a flat colour field, plain serif links. Ours: the photo sits in a circle and the field changes colour per link. */
.menu-fullscreen {
  position: fixed; inset: 0; z-index: 999;
  background-color: var(--brand-color--light-blue); color: var(--brand-color--pure-black);
  clip-path: circle(0% at 50% 3.5rem); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s, background-color .5s ease;
}
.menu-fullscreen.is-open { clip-path: circle(150% at 50% 3.5rem); visibility: visible; transition: clip-path .9s var(--ease-in-out), background-color .5s ease; }
.menu-fullscreen-content { height: 100%; display: flex; flex-direction: column; padding: 1.5rem var(--container-pad) clamp(2rem, 5vw, 4rem); }
.menu-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu-header .ring-logo { width: 104px; }
.burger-menu-close {
  justify-self: end; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
}
.burger-menu-close:hover { opacity: .65; }
.menu-body { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.menu-nav-links { display: flex; flex-direction: column; gap: .2rem; }
.menu-nav-item {
  font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1.05; width: fit-content;
  transition: font-style .2s, transform .5s var(--ease-out-expo);
}
.menu-nav-item:hover { font-style: italic; transform: translateX(.4em); }
.menu-aside { display: grid; gap: 1.5rem; justify-items: start; align-self: end; }
.menu-contact { display: grid; gap: .3rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
.menu-contact a { text-decoration: underline; text-underline-offset: 3px; }
.menu-circle { width: clamp(180px, 20vw, 280px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.menu-circle img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }

@media (max-width: 768px) {
  .menu-body { grid-template-columns: 1fr; align-content: center; }
  .menu-circle { display: none; }
  .menu-header .nav-reserve-link { visibility: hidden; }
}

/* ==========================================================================
   PAGE PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  transition: transform 1.2s var(--ease-out-expo);
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
  user-select: none;
  overflow: visible;
  width: 100%;
  max-width: 600px;
}

.preloader-signature-text {
  font-family: var(--font-script);
  font-size: var(--preloader-logo-size);
  color: #12100E;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: block;
}

.preloader-location {
  color: var(--color-text-secondary) !important;
}

.preloader-bar-wrap {
  width: 180px;
  height: 2px;
  background-color: rgba(18, 16, 14, 0.1);
  overflow: hidden;
  margin-top: 1rem;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background-color: #12100E;
  transition: width 0.1s linear;
}

/* ==========================================================================
   SECTION 1: HERO (Storytelling 3-Column Layout)
   ========================================================================== */
.section-hero { height: 100vh; min-height: 560px; width: 100%; position: relative; overflow: hidden; color: #FFFFFF; background: var(--color-bg); }
.hero-bg-container { position: absolute; inset: 0; z-index: 1; overflow: hidden; will-change: clip-path; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-bg-overlay { position: absolute; inset: 0; z-index: 2; background: rgba(18, 16, 14, .38); }

/* The one orange moment: the brand ring closes around the photo */
.hero-ring {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: min(72vmin, 640px); max-width: none;
  translate: -50% -50%; opacity: 0; pointer-events: none;
}

.hero-story-container {
  position: absolute; inset: 0; z-index: 10;
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  display: grid; grid-template-columns: 1fr minmax(auto, 560px) 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-story-left { justify-self: end; max-width: 240px; }
.hero-story-right { justify-self: start; max-width: 240px; text-align: right; }
.hero-typewriter-wrap, .hero-blur-text {
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.55; letter-spacing: .02em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
/* Joakim: the headline is modest, 64px, not monumental */
.hero-center-headline {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 4.45vw, 4rem); line-height: 1.1;
  text-transform: uppercase; font-weight: 400; text-align: center;
}
.hero-center-headline h1 { font: inherit; }
.reveal-line-wrap { overflow: hidden; display: block; }
.reveal-line { display: block; will-change: transform, opacity; }
.hero-caption { position: absolute; z-index: 10; left: 50%; bottom: 1.8rem; translate: -50% 0; color: rgba(255,255,255,.8) !important; font-size: .64rem !important; }

@media (max-width: 900px) {
  .hero-story-container { grid-template-columns: 1fr; align-content: center; text-align: center; gap: 2rem; }
  .hero-story-left, .hero-story-right { justify-self: center; text-align: center; max-width: 320px; }
  .hero-story-left { order: 2; } .hero-story-right { order: 3; }
}

/* ==========================================================================
   SECTION 2: DUAL-STAGE PINNED SCROLL TRANSITION (Joakim 1:1)
   ========================================================================== */
.section_2_home {
  width: 100%;
  position: relative;
  background-color: var(--brand-color--light-brown);
  display: flex;
  flex-direction: column;
}

.scroll-container {
  height: 220vh;
  position: relative;
  width: 100%;
}

.scroll-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--brand-color--light-brown);
  transition: background-color 0.8s ease;
}

.section-1, .section-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 3.5vh, 2.75rem);
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.section-1 {
  z-index: 2;
}

.section-2 {
  z-index: 1;
}

.text-center-block {
  text-align: center;
  max-width: 680px;
  width: 90%;
  position: relative;
}

.heading-1-scroll {
  color: var(--brand-color--dark-brown);
  text-transform: uppercase;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.heading-2-scroll {
  color: var(--brand-color--dark-blue);
  text-transform: uppercase;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.img-scroll {
  z-index: 2;
  width: clamp(220px, 19vw, 300px);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.img-scroll.anim-element {
  will-change: clip-path, transform;
}

.img-cover-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(0.98) contrast(1.04) saturate(1.06);
}


.section-2 .img-cover-2 {
  object-position: 40% center;
  filter: brightness(1.02) contrast(1.06) saturate(1.08);
}

.text-center-block-bottom {
  z-index: 2;
  text-align: center;
  max-width: 640px;
  width: 90%;
  position: relative;
}

.text-brown {
  color: var(--brand-color--dark-brown);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  letter-spacing: 0.08em;
}

.text-brown-2 {
  color: var(--brand-color--dark-blue);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  letter-spacing: 0.08em;
}

/* Line mask typography split */
.line-mask {
  overflow: clip;
  display: block;
}

.line-inner {
  display: block;
  will-change: transform;
}

.word-measure {
  display: inline-block;
}

/* ==========================================================================
   SECTION 3: CORE PHILOSOPHY & ASYMMETRICAL LAYOUT (Joakim 1:1)
   ========================================================================== */
.section_3_home {
  padding: clamp(6rem, 12vh, 10rem) 0;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.top-title-sec-3 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  max-width: 720px;
  margin: 0 auto clamp(3.5rem, 7vh, 6rem);
}

.left-title-sec-3 {
  flex-shrink: 0;
}

.heading-3 {
  text-transform: uppercase;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-text-primary);
}

.heading-3 em {
  font-style: italic;
}

.right-titel-sec-3 {
  flex-grow: 1;
}

.heading-4 {
  text-transform: uppercase;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.right-img-sec-3-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.left-img-sec-3-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.img-text-bloc {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: clamp(320px, 42vw, 560px);
}

.img-text-bloc-2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: clamp(320px, 44vw, 600px);
}

.img-1-sec-3-wrapper, .img-2-sec-3wrapper {
  aspect-ratio: 2 / 2.8;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
}

/* Arch: the curved skylight, as a frame */
.arch { border-radius: 999px 999px 0 0; }

.text-black {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
}

.text-wrapper-2-sec-3 {
  max-width: 420px;
}

/* ==========================================================================
   SECTION 5: PLATES & WHAT'S ON
   ========================================================================== */
/* ---- Plates: circles on a horizontal run, each turning like a plate ---- */
.section_plates { background: var(--color-bg); position: relative; }
.plates-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 5vh, 4rem); overflow: hidden; padding: 6rem 0 4rem; }
.plates-head { display: flex; align-items: flex-end; gap: clamp(2rem, 8vw, 9rem); }
.plates-track { display: flex; gap: clamp(1.5rem, 3vw, 3.5rem); padding: 0 var(--container-pad); width: max-content; will-change: transform; }
.plate { width: clamp(220px, 26vw, 400px); flex: none; display: grid; gap: 1.2rem; }
.plate-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--color-bg-alt); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.12); }
.plate figcaption {
  display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--color-border); padding-top: .8rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
}
.plate-more { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--color-text-primary); display: grid; place-items: center; text-align: center; align-self: start; transition: background-color .4s, color .4s; }
.plate-more .heading-5 { color: inherit; font-style: italic; }
.plate-more:hover { background: var(--color-text-primary); color: var(--color-bg); }

@media (max-width: 991px) {
  .plates-pin { min-height: 0; }
  .plates-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .plates-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .plate { width: 68vw; scroll-snap-align: center; }
}

/* ---- What's on: Joakim's news slider, as is ---- */
.section_slider_actualites { padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 10vh, 7rem); background-color: var(--color-bg); overflow: hidden; }
.title-slider { display: flex; align-items: flex-end; gap: clamp(2rem, 8vw, 9rem); margin-bottom: 2.5rem; }
.left-title-slider { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; color: var(--color-text-primary); max-width: 260px; }
.heading-6 { text-transform: uppercase; font-family: var(--font-serif); font-size: clamp(2rem, 3.35vw, 3rem); font-weight: 400; line-height: 1.2; }
.heading-5 { text-transform: uppercase; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 400; line-height: 1.1; }
.swiper { width: 100%; overflow: visible !important; }
.swiper-slide.news { width: clamp(240px, 22vw, 320px) !important; display: grid; gap: .8rem; }
.news .img-slider-item { aspect-ratio: 4 / 5; overflow: hidden; }
.news .img-slider-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.news:hover .img-slider-item img { transform: scale(1.05); }
.news-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); margin-top: .4rem; }
.news-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
.arrows-slider { display: flex; gap: 1.2rem; margin-top: 2rem; }
.arrow-left, .arrow-right { font-size: 1.2rem; cursor: pointer; transition: transform .4s var(--ease-out-expo); }
.arrow-left:hover { transform: translateX(-4px); } .arrow-right:hover { transform: translateX(4px); }
@media (max-width: 768px) { .title-slider { flex-direction: column; align-items: flex-start; gap: 1rem; } .swiper-slide.news { width: 72vw !important; } }

/* ==========================================================================
   SECTION 6: RESERVE
   ========================================================================== */
/* Reserve: a sage colour field (the patio's plants), Joakim's type, underline-only fields */
.section-booking { background: var(--brand-color--light-green); color: #34402F; padding: clamp(5rem, 12vh, 9rem) 0; }
.booking-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }
.section-booking .heading-1-scroll { color: inherit; text-align: left; margin-bottom: 1.5rem; }
.section-booking .text-brown-2 { color: inherit; }
.booking-intro > .text-brown-2 { max-width: 420px; }
.booking-facts { display: grid; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid rgba(52, 64, 47, .25); padding-top: 1.5rem; }
.booking-facts span { display: block; opacity: .6; }
.booking-form { display: grid; gap: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-group { display: grid; gap: .35rem; }
.form-group > span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.form-control {
  font-family: var(--font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid rgba(52, 64, 47, .35); border-radius: 0; padding: .55rem 0;
  transition: border-color .25s ease;
}
.form-control::placeholder { color: rgba(52, 64, 47, .45); }
.form-control:focus { border-color: #34402F; }
.booking-submit { justify-self: start; margin-top: .6rem; cursor: pointer; }
.section-booking .hover-text.blue { color: #34402F !important; }
.section-booking .subline.blue { background-color: #34402F; }
@media (max-width: 991px) { .booking-box { grid-template-columns: 1fr; } }
@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   SECTION 7: FOOTER
   ========================================================================== */
/* Joakim: cream, mono caps, the hand-drawn mark large, a ruled copyright row */
.footer { background: var(--color-bg); color: var(--brand-color--pure-black); padding: clamp(4rem, 9vh, 6rem) 0 1.5rem; border-top: 1px solid var(--color-border); }
.bottom-footer { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(2rem, 8vw, 9rem); }
.link-footer { font-family: var(--font-mono); font-size: .72rem; line-height: 1.6; letter-spacing: .03em; text-transform: uppercase; color: inherit; }
a.link-footer:hover { text-decoration: underline; text-underline-offset: 3px; }
.div-block-23 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.column-footer { display: flex; flex-direction: column; gap: .15rem; }
.footer-signature {
  font-family: var(--font-script); font-size: clamp(4.5rem, 11vw, 10rem); line-height: 1; color: var(--brand-color--pure-black);
  margin: clamp(3rem, 8vh, 5rem) 0 1.5rem; user-select: none;
}
.copyright { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--brand-color--pure-black); }
.item-copyright { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: .45rem; }
.item-copyright + .item-copyright { border-left: 1px solid var(--brand-color--pure-black); }
@media (max-width: 991px) { .bottom-footer { grid-template-columns: 1fr; } .div-block-23 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .copyright { grid-template-columns: 1fr 1fr; } .item-copyright:nth-child(3) { border-left: 0; } .item-copyright:nth-child(n+3) { border-top: 1px solid var(--brand-color--pure-black); } }

/* Scroll to top: Joakim's small ring */
.scrolltop {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--brand-color--pure-black); background: transparent;
  display: grid; place-items: center; cursor: pointer; mix-blend-mode: difference; filter: invert(1);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease, transform .4s var(--ease-out-expo);
}
.scrolltop.is-visible { opacity: 1; visibility: visible; }
.scrolltop:hover { transform: translateY(-3px); }

/* Mobile: the pinned section becomes two stacked colour fields */
@media screen and (max-width: 991px) {
  .scroll-container { height: auto; }
  .scroll-wrapper { position: relative; height: auto; background-color: transparent !important; }
  .section-1, .section-2 { position: relative; height: auto; padding: 5rem 1.5rem; background-color: var(--brand-color--light-brown); }
  .section-2 { background-color: var(--brand-color--light-blue); }
  .top-title-sec-3 { flex-direction: column; gap: 1.5rem; }
  .right-img-sec-3-wrapper, .left-img-sec-3-wrapper { justify-content: center; }
  .img-text-bloc, .img-text-bloc-2 { width: 100%; align-items: center; text-align: center; }
  .img-1-sec-3-wrapper, .img-2-sec-3wrapper { max-width: 340px; }
}


/* Inner-page button (contact form) until those pages get their Joakim pass */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }

/* ==========================================================================
   LIVELINESS: colour story, place settings, day dial, cursor, marquee, living plates
   ========================================================================== */

/* Colour story: sections are transparent; lively.js paints the page as each one arrives */
body { transition: background-color .9s ease, color .9s ease; }
.section_3_home, .section_plates, .section_slider_actualites, .section-booking, .footer { background: transparent; color: inherit; }
.section_3_home .heading-3, .section_3_home .heading-4, .section_3_home .text-black,
.left-title-slider, .footer, .footer .link-footer, .footer-signature { color: inherit; }
.copyright, .item-copyright + .item-copyright { border-color: currentColor !important; }
.plate figcaption { border-top-color: color-mix(in srgb, currentColor 30%, transparent); }
.plate-more { border-color: currentColor; }

/* Hero place settings + the travelling plate */
.place-settings { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.setting, .traveller { border-radius: 50%; overflow: hidden; }
.setting { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; translate: -50% -50%; opacity: 0; }
.setting img, .traveller img { width: 100%; height: 100%; object-fit: cover; }
.traveller { position: fixed; left: 0; top: 0; z-index: 40; width: 120px; height: 120px; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform; }
.traveller.is-flying { visibility: visible; }

/* Live corners */
.hero-corner { position: absolute; z-index: 12; bottom: 1.6rem; margin: 0; font-size: .64rem !important; letter-spacing: .06em !important;
  color: rgba(255, 255, 255, .88) !important; display: flex; align-items: center; gap: .55em; transition: color .6s ease; }
.hero-corner-left { left: var(--container-pad); }
.hero-corner-right { right: calc(var(--container-pad) + 3rem); }
.section-hero.is-ring .hero-corner { color: var(--color-text-primary) !important; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5bbf73; position: relative; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: livePulse 2.2s ease-out infinite; }
.live-dot.closed { background: #c9694a; }
.live-dot.closed::after { animation: none; }
@keyframes livePulse { 0% { opacity: .6; transform: scale(.7); } 70%, to { opacity: 0; transform: scale(2.6); } }

/* Day dial: fills section 3's empty half, then slides across for the second block */
.sec3-inner { position: relative; }
.day-dial { position: absolute; z-index: 2; top: 0; left: var(--container-pad); width: clamp(260px, 26vw, 380px); aspect-ratio: 1; }
.day-dial svg { width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: none; stroke: currentColor; stroke-width: 1.2; }
.dial-ring.thin { stroke-width: .5; opacity: .45; }
.dial-ticks line { stroke: currentColor; stroke-width: 1; }
.dial-events text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; fill: currentColor; opacity: .35; transition: opacity .4s ease; }
.dial-events circle { fill: currentColor; opacity: .35; transition: opacity .4s ease, fill .4s ease; }
.dial-events .is-now { opacity: 1; }
.dial-events circle.is-now { fill: var(--color-accent-terracotta); }
.dial-hand { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.dial-pin { fill: currentColor; }
.dial-readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-readout span { font-family: var(--font-serif); font-size: clamp(1.8rem, 2.6vw, 2.6rem); text-transform: uppercase; line-height: 1; margin-top: 3.4rem; }
.dial-readout small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; opacity: .6; }
.hour-list { display: grid; }
.hour-line { opacity: .38; transition: opacity .4s ease, padding .4s var(--ease-out-expo); width: fit-content; position: relative; }
.hour-line.is-now { opacity: 1; padding-left: 1.2em; }
.hour-line.is-now::before { content: ''; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--color-accent-terracotta); }
.hour-line:hover { opacity: 1; }
@media (max-width: 991px) { .day-dial { display: none; } .hour-line { opacity: 1; } }

/* Ring cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: inherit;
  transition: width .45s var(--ease-out-expo), height .45s var(--ease-out-expo), margin .45s var(--ease-out-expo), background-color .3s, border-color .3s, opacity .3s; }
.cursor-label { position: relative; z-index: 1; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: 0; white-space: nowrap; transition: opacity .25s; }
.cursor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #F6F4F3; border-color: #F6F4F3; }
.cursor.is-label .cursor-label { opacity: 1; color: #12100E; }
.cursor.is-preview { width: 220px; height: 220px; margin: -110px 0 0 -110px; border-color: transparent; }
.cursor.is-preview img { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor.is-hidden { opacity: 0; }

/* Velocity marquee */
.marquee-band { overflow: hidden; padding: clamp(3rem, 9vh, 6rem) 0 0; }
.marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; will-change: transform;
  font-family: var(--font-serif); font-size: clamp(4rem, 11vw, 10.5rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee-track em { font-style: italic; text-transform: none; }
.ring-glyph { width: .62em; aspect-ratio: 1160 / 820; background: currentColor; flex: none;
  -webkit-mask: url('../images/courtyard-ring.svg') center / contain no-repeat; mask: url('../images/courtyard-ring.svg') center / contain no-repeat; }

/* Living plates: lift on hover, ingredients run around the rim */
.plate-img { position: relative; overflow: visible; background: none; transition: transform .6s var(--ease-out-expo); }
.plate-img > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: none; }
.plate-img::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .6s ease; }
.plate-img .rim { position: absolute; z-index: 2; inset: -12%; width: 124%; height: 124%; pointer-events: none; opacity: 0; transform: rotate(-50deg); overflow: visible;
  transition: opacity .5s ease, transform 1.4s var(--ease-out-expo); }
.plate-img .rim text { font-family: var(--font-mono); font-size: 4.6px; letter-spacing: .5px; text-transform: uppercase; fill: currentColor; }
.plate:hover .plate-img { transform: translateY(-14px) scale(1.04); }
.plate:hover .plate-img::before { opacity: 1; }
.plate:hover .rim { opacity: 1; transform: rotate(0deg); }

@media (max-width: 991px) { .place-settings, .traveller { display: none; } }

@media (max-width: 600px) { .hero-corner-right { left: var(--container-pad); right: auto; bottom: 3.1rem; } }

/* ==========================================================================
   COLOUR-FIRST PAGE: cream is a pause, used once, lit by the skylight
   ========================================================================== */

/* The ring moment happens on espresso: orange glows, plates look lit */
.section-hero { background: #2B211C; }
.section-hero.is-ring .hero-corner { color: rgba(243, 233, 220, .85) !important; }

/* Everything that used a fixed grey now follows the section's ink */
.news-tag, .booking-facts span { color: inherit; opacity: .62; }
.section_slider_actualites .heading-6, .news-title { color: inherit; }

/* Paper grain over every field, so flat colour reads as a material */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1500; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reserve follows the page ink, so it reads on whichever colour is behind it */
.booking-facts { border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.form-control { border-bottom-color: color-mix(in srgb, currentColor 35%, transparent); }
.form-control::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }
.form-control:focus { border-color: currentColor; }
.form-control option { color: #1A1715; }
.section-booking .hover-text.blue { color: inherit !important; }
.section-booking .subline.blue { background-color: currentColor; }
