/* The Fortress — shared styles
   ----------------------------------------------------------------- */

:root {
  --bg: #ece3d2;          /* warm limestone */
  --bg-soft: #f3ecdd;
  --bg-deep: #ddd0b5;
  --bg-ink: #1c1814;      /* deep coal panel */
  --ink: #2a241d;
  --ink-soft: #534a3e;
  --ink-faded: #5d5347;    /* darkened for WCAG AA contrast on all bg variants */
  --line: rgba(42, 36, 29, 0.16);
  --line-soft: rgba(42, 36, 29, 0.08);
  --accent: #8a5538;      /* terracotta — used sparingly */

  /* EB Garamond — Garamond revival with full polytonic Greek + Latin support. */
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Commissioner", "Helvetica Neue", "Arial Greek", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "Courier Greek", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 64px);

  /* ── Motion curves ───────────────────────────────────────────── */
  --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);   /* default — soft easeOutQuad */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);       /* dramatic, luxurious deceleration */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);       /* smooth, balanced */
  --ease-in-out:    cubic-bezier(0.83, 0, 0.17, 1);      /* slow start + slow end */

  /* ── Dark-surface text scale — on --bg-ink backgrounds ──────── */
  --on-dark:        #ede4d3;   /* primary: headings, links, inputs */
  --on-dark-mid:    #d5c4a7;   /* secondary: em, section base */
  --on-dark-muted:  #b8ad97;   /* tertiary: body text */
  --on-dark-label:  #8a8071;   /* labels, eyebrows */
  --on-dark-faded:  #6f6759;   /* legal, placeholders */
  --line-on-dark:      rgba(255, 255, 255, 0.10);
  --line-on-dark-soft: rgba(255, 255, 255, 0.18);

  /* ── Page loader surface — deeper than --bg-ink ──────────────── */
  --bg-loader: #120e0a;
}

/* ─── Smooth scrolling (CSS fallback for anchor links) ──────────── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
}

/* very subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.11  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--bg-soft); }

/* ─── Skip link + screen-reader utility ──────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus-visible {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 12px 22px;
  clip: auto;
  white-space: normal;
  background: var(--bg-ink);
  color: var(--bg-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom-right-radius: 4px;
}

/* ─── Keyboard focus rings ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header.on-dark :focus-visible,
.menu-drawer :focus-visible,
.page-loader :focus-visible {
  outline-color: var(--bg-soft);
}

/* ─── Type system ─────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.012em;
}
.display em { font-style: italic; font-weight: 400; color: var(--ink-soft); }

.h-hero {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.014em;
}
.h-hero em { font-style: italic; font-weight: 400; }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.h-section em { font-style: italic; }

.h-block {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
}

p { text-wrap: pretty; }
.body p + p { margin-top: 1em; }

/* ─── Type scale modifiers — replaces inline font-size overrides ─ */
.h-section-cta  { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 56px); }
.h-section-sm   { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); }
.h-section-lg   { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); }    /* villa feature headings */
.display-card   { font-size: clamp(36px, 4.5vw, 64px); }  /* K1 / K2 villa cards on homepage */

/* ─── Layout primitives ───────────────────────────────────────── */
.shell {
  padding: 0 var(--gutter);
}
.row { display: grid; gap: var(--gutter); }
.row.cols-2 { grid-template-columns: 1fr 1fr; }
.row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.row.cols-12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 880px) {
  .row.cols-2, .row.cols-3, .row.cols-4, .row.cols-12 { grid-template-columns: 1fr; }
}

section { padding: clamp(90px, 12vw, 180px) 0; position: relative; }
section.tight { padding: clamp(60px, 8vw, 120px) 0; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ─── Cursor captions ─────────────────────────────────────────── */
/* The native cursor everywhere. The only custom touches: a small
   caption pill that follows the pointer over imagery, and the lamp
   in dark rooms. The UI recedes; the cursor is the system's. */
.cursor-badge-wrap {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cursor-badge {
  display: block;
  padding: 9px 16px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: left top;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out-expo),
              background .5s var(--ease), color .5s var(--ease);
}
body.lamp-on .cursor-badge { background: var(--bg-soft); color: var(--ink); }
body.cursor-on-image .cursor-badge { opacity: 1; transform: scale(1); }
body.cursor-hidden .cursor-badge,
body.cursor-hidden .cursor-lamp { opacity: 0; }

/* ─── Header / nav ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.site-header.on-dark { color: var(--bg-soft); }
.site-header.scrolled {
  background: rgba(236, 227, 210, 0.78);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

/* Inner wrapper — aligns the header grid with .shell content */
.site-header .header-inner {
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: padding .5s var(--ease);
}
.site-header.scrolled .header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.tf-logo {
  display: block;
  height: 36px;
  width: auto;
  filter: brightness(0);
  transition: filter .5s var(--ease);
}
.tf-logo-mobile { display: none; }
@media (max-width: 1080px) {
  .tf-logo-desktop { display: none; }
  .tf-logo-mobile  { display: block; height: 56px; }
  .site-header .btn-cta { display: none; }
}
.site-header.on-dark .tf-logo {
  filter: brightness(0) invert(1);
}
.site-header nav.primary {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-self: center;
}
.site-header nav.primary a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 2px;
  position: relative;
  transition: opacity .3s var(--ease);
}
.site-header nav.primary a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease-out-expo);
}
.site-header nav.primary a:hover::after,
.site-header nav.primary a.current::after { transform: scaleX(1); }
.site-header nav.primary a.current { opacity: 1; }
.site-header nav.primary a:not(.current) { opacity: 0.72; }
.site-header nav.primary a:not(.current):hover { opacity: 1; }

.site-header .actions {
  justify-self: end;
  display: flex; gap: 16px; align-items: center;
}
.btn-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color .5s var(--ease-out-quart),
    border-color .5s var(--ease-out-quart),
    transform .6s var(--ease-out-quart);
}
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s var(--ease-out-expo);
  z-index: -1;
}
.btn-cta:hover { color: var(--bg-soft); border-color: var(--ink); }
.btn-cta:hover::before { clip-path: inset(0 0 0 0); }
.site-header.on-dark .btn-cta::before { background: var(--bg-soft); }
.site-header.on-dark .btn-cta:hover { color: var(--ink); border-color: var(--bg-soft); }
.site-header.on-dark .btn-cta:hover { background: var(--bg-soft); color: var(--ink); }

.btn-menu {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .site-header nav.primary { display: none; }
  .btn-menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .site-header .header-inner { grid-template-columns: 1fr auto; }
  .site-header .actions { gap: 14px; }
}

/* mobile menu drawer */
.menu-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 950;
  padding: 32px var(--gutter) 40px;
  transform: translateY(-101%);
  transition: transform .6s var(--ease);
  overflow-y: auto;
}
.menu-drawer.open { transform: translateY(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0);
}
.drawer-close {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.drawer-close:hover { opacity: 1; }
.menu-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.menu-drawer a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.05;
  display: flex; align-items: baseline; gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.menu-drawer a em { font-style: italic; color: var(--ink-faded); }
.menu-drawer .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faded);
  transform: translateY(-12px);
}

/* ── Drawer item stagger ────────────────────────────────────────── */
/* Closed: items sit invisible and slightly dropped */
.menu-drawer li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* Open: stagger each item in; closing collapses all at once (fast) */
.menu-drawer.open li {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.55s, 0.65s;
  transition-timing-function: var(--ease-out-expo), var(--ease-out-expo);
  transition-delay: var(--drawer-delay, 0s);
}

/* ─── Placeholder imagery ─────────────────────────────────────── */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg,
      rgba(42,36,29,0.05) 0 1px,
      transparent 1px 9px),
    linear-gradient(180deg, #d4c5a8 0%, #c2b294 100%);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
/* Fade in the real image — overlays dissolve, background fades up */
.ph::before,
.ph::after { transition: opacity 0.4s ease; }
.ph.has-img::before,
.ph.has-img::after { opacity: 0; pointer-events: none; }

@keyframes ph-reveal { from { opacity: 0; } to { opacity: 1; } }
.ph.has-img { animation: ph-reveal 0.45s ease forwards; }

/* Film-slate corner marker — quietly suggests "image goes here" */
.ph::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 18px; height: 1px;
  background: rgba(42, 36, 29, 0.35);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  top: 22px; left: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(42, 36, 29, 0.4);
  max-width: calc(100% - 28px);
  pointer-events: none;
}
.ph.dark {
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 9px),
    linear-gradient(180deg, #3a342b 0%, #221d18 100%);
  color: var(--on-dark-muted);
}
.ph.dark::before { background: rgba(237, 228, 211, 0.32); }
.ph.dark::after { color: rgba(237, 228, 211, 0.42); }

.ph.tone-pool {
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.05) 0 2px,
      transparent 2px 12px),
    linear-gradient(180deg, #a8b5b4 0%, #768e8c 100%);
  color: #2a3a3a;
}
.ph.tone-pool::before { background: rgba(42, 58, 58, 0.35); }
.ph.tone-pool::after  { color: rgba(42, 58, 58, 0.45); }

.ph.tone-stone {
  background:
    repeating-linear-gradient(115deg,
      rgba(42,36,29,0.06) 0 1px,
      transparent 1px 7px),
    linear-gradient(180deg, #c9bba2 0%, #a6967b 100%);
}
.ph.tone-evening {
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 9px),
    linear-gradient(180deg, #6d5a47 0%, #2d2419 100%);
  color: var(--on-dark-mid);
}
.ph.tone-evening::before { background: rgba(237, 228, 211, 0.32); }
.ph.tone-evening::after  { color: rgba(237, 228, 211, 0.42); }

.ph.tone-warm {
  background:
    repeating-linear-gradient(115deg,
      rgba(42,36,29,0.06) 0 1px,
      transparent 1px 9px),
    linear-gradient(180deg, #d8b896 0%, #b3895f 100%);
}

/* ratios */
.ph.r-portrait { aspect-ratio: 4 / 5; }
.ph.r-square { aspect-ratio: 1 / 1; }
.ph.r-wide { aspect-ratio: 16 / 9; }
.ph.r-tall { aspect-ratio: 3 / 5; }
.ph.r-cinema { aspect-ratio: 21 / 9; }
.ph.r-3-2    { aspect-ratio: 3 / 2; }

/* image card with cursor target */
.img-card {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .8s var(--ease-out-expo);
}
.img-card .ph {
  /* parallax composes translate + scale via inline transform.
     Keep no CSS transition here so RAF updates stay perfectly smooth. */
  will-change: transform;
  backface-visibility: hidden;
}
/* gentle vignette darken on hover — doesn't fight the JS parallax transform */
.img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(28, 24, 20, 0) 40%, rgba(28, 24, 20, 0) 100%);
  pointer-events: none;
  transition: background .8s var(--ease-out-quart);
  z-index: 1;
}
.img-card:hover { transform: scale(1.003); }
.img-card:hover::after {
  background: radial-gradient(circle at 50% 60%, rgba(28, 24, 20, 0) 30%, rgba(28, 24, 20, 0.18) 100%);
}
.img-card[data-cursor="view"] { /* magnet for cursor */ }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: var(--bg-soft);
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}
.hero .bg .ph {
  width: 100%; height: 100%; border: 0;
  animation: heroDrift 26s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg .ph { animation: none; }
}
.hero .inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 130px var(--gutter) 60px;
}
.hero .meta-top {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.hero h1 {
  align-self: end;
  max-width: 14ch;
}
.hero .meta-bot {
  display: flex; justify-content: space-between;
  align-items: end;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.hero .meta-bot .scroll-cue {
  display: flex; align-items: center; gap: 12px;
}
.hero .meta-bot .scroll-cue .line {
  width: 40px; height: 1px; background: currentColor; opacity: 0.5;
}

/* hero text reveal */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.16em; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: lineUp 1.2s var(--ease) forwards;
}
.reveal-line.l-1 > span { animation-delay: .35s; }
.reveal-line.l-2 > span { animation-delay: .55s; }
.reveal-line.l-3 > span { animation-delay: .75s; }
.reveal-line.l-4 > span { animation-delay: .95s; }

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1.1s var(--ease) forwards;
}
.fade-in.d-1 { animation-delay: .9s; }
.fade-in.d-2 { animation-delay: 1.1s; }
.fade-in.d-3 { animation-delay: 1.3s; }

@keyframes lineUp {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  to { transform: translateY(0); opacity: 1; }
}

/* ── Scroll-cue breathing line ──────────────────────────────────── */
.hero .meta-bot .scroll-cue .line {
  transform-origin: left center;
}
@keyframes scroll-breathe {
  0%, 100% { opacity: 0.5;  transform: scaleX(1);    }
  50%       { opacity: 0.14; transform: scaleX(0.38); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .scroll-cue .line {
    animation: scroll-breathe 3.8s ease-in-out 3s infinite;
  }
}
/* While a floating panel (e.g. the enquiry calendar) is open, the
   decorative progress bar yields so it never draws across task UI */
html.floating-panel-open .scroll-progress { opacity: 0; }

/* Once the visitor scrolls, the cue has done its job — let it rest */
html.has-scrolled .hero .scroll-cue .line {
  animation: none;
  opacity: 0.5;
  transition: opacity 0.6s var(--ease-out-quart);
}

/* ─── Generic scroll-reveal system ──────────────────────────────
   All variants share the same `.in` trigger class and respect
   --reveal-delay so .r-stagger parents can cascade their children. */
.r-up,
.r-fade,
.r-scale,
.r-blur,
.r-clip {
  will-change: transform, opacity, filter, clip-path;
}

.r-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   1.2s var(--ease-out-expo) var(--reveal-delay, 0s),
    transform 1.3s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.r-up.in { opacity: 1; transform: translateY(0); }

.r-fade {
  opacity: 0;
  transition: opacity 1.4s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.r-fade.in { opacity: 1; }

.r-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity   1.2s var(--ease-out-expo) var(--reveal-delay, 0s),
    transform 1.4s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.r-scale.in { opacity: 1; transform: scale(1); }

.r-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition:
    opacity   1.3s var(--ease-out-expo) var(--reveal-delay, 0s),
    filter    1.4s var(--ease-out-expo) var(--reveal-delay, 0s),
    transform 1.3s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.r-blur.in { opacity: 1; filter: blur(0); transform: translateY(0); }

.r-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.5s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.r-clip.in { clip-path: inset(0 0 0 0); }

/* Stagger helper — site.js auto-assigns --reveal-delay on children */
.r-stagger { /* marker class for JS */ }

/* ─── Scroll progress (subtle line at top of viewport) ──────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9000;
  pointer-events: none;
  background: rgba(42, 36, 29, 0.06);
  transition: opacity 0.3s var(--ease-out-quart);
}
.scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(138, 85, 56, 0.0), var(--accent) 30%, var(--ink) 100%);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  will-change: transform;
}

/* ─── Page loader ───────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-loader);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: visible;
}
.page-loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  opacity: 0;
  transform: translateY(10px);
  animation: loader-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.loader-logo {
  display: block;
  height: 160px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.loader-bar {
  width: 72px;
  height: 1px;
  background: rgba(237, 228, 211, 0.1);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(237, 228, 211, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.page-loader.running .loader-bar::after {
  transform: scaleX(1);
}

@keyframes loader-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Page transition overlay ───────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-in-out);
}
.page-transition.show { opacity: 1; pointer-events: all; }

/* ─── Editorial drop-cap on lead paragraphs ─────────────────────── */
/* Applied by JS to the first .body.lead p on each page. */
.has-dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.2em;
  float: left;
  line-height: 0.84;
  margin: 0.08em 0.12em 0 -0.04em;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.has-dropcap em:first-of-type:first-letter,
.has-dropcap::first-letter { font-style: normal; }
@media (max-width: 720px) {
  .has-dropcap::first-letter {
    font-size: 3.4em;
    margin: 0.06em 0.1em 0 -0.02em;
  }
}
/* Below 480px the float collides with narrow line wraps — disable */
@media (max-width: 480px) {
  .has-dropcap::first-letter {
    font-family: inherit;
    font-size: inherit;
    float: none;
    line-height: inherit;
    margin: 0;
    letter-spacing: inherit;
  }
}

/* ─── Reusable blocks ─────────────────────────────────────────── */
.label-row {
  position: relative;
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 18px; margin-bottom: 36px;
}
/* Eyebrow rule: draws in from left when the row scrolls into view */
.label-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out-expo) 0.08s;
}
.label-row.r-up:not(.in)::after { transform: scaleX(0); }
.label-row .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-faded); text-transform: uppercase;
}
.label-row .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
}

.quote-pull {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.spec-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-list li .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-faded); text-transform: uppercase;
}
.spec-list li .v {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
}
.spec-list li .n {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--ink-faded);
}
@media (max-width: 720px) { .spec-list { grid-template-columns: 1fr; } }

/* arrow link */
.arr-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.arr-link .arrow { display: inline-block; transition: transform .4s var(--ease); }
.arr-link:hover .arrow { transform: translateX(8px); }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-ink);
  color: var(--on-dark-muted);
  padding: 80px var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}
.site-footer .big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 14ch;
  margin-bottom: 48px;
}
.site-footer .big em { font-style: italic; color: var(--on-dark-mid); }
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
  padding: 56px 0 56px;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-footer .cols h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--on-dark-label); font-weight: 400;
  margin-bottom: 22px;
}
.site-footer .cols ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer .cols a { color: var(--on-dark); opacity: 0.85; transition: opacity .3s var(--ease); }
.site-footer .cols a:hover { opacity: 1; }
.site-footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-dark-faded);
  flex-wrap: wrap; gap: 16px;
}
.site-footer .newsletter {
  max-width: 360px;
}
.site-footer .newsletter .nl-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.site-footer .newsletter .nl-row {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line-on-dark-soft);
  padding: 8px 0;
}
.site-footer .newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 0;
}
.site-footer .newsletter input::placeholder { color: var(--on-dark-muted); opacity: 0.7; }
.site-footer .newsletter input:focus-visible {
  outline: 2px solid var(--on-dark-muted);
  outline-offset: 2px;
}
.site-footer .newsletter button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--on-dark);
  white-space: nowrap;
}
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ─── Dark surface utility ───────────────────────────────────── */
.surface-dark {
  background: var(--bg-ink);
  color: var(--on-dark-mid);
}
.surface-dark .label-row { border-color: var(--line-on-dark); }
.surface-dark .num { color: var(--on-dark-label); }
.surface-dark .eyebrow { color: var(--on-dark-label); }
.surface-dark .h-hero,
.surface-dark .h-section,
.surface-dark .h-block { color: var(--on-dark); }
.surface-dark .h-section em,
.surface-dark .h-block em { color: var(--on-dark-mid); }
.surface-dark .quote-pull { color: var(--on-dark); }
.surface-dark .body.lead,
.surface-dark .lead { color: var(--on-dark-muted); }

/* ─── Forms ───────────────────────────────────────────────────── */
.field {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 14px;
}
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faded);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  background: transparent; border: 0; outline: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--ink);
  padding: 4px 0;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faded); opacity: 0.6; }

/* utility */
.center { text-align: center; }
.mt-l { margin-top: 56px; }
.mt-xl { margin-top: 96px; }
.mb-l { margin-bottom: 56px; }
.muted { color: var(--ink-soft); }

/* spinning brand circle (used in footer + section dividers) */
.spinner {
  display: inline-block;
  width: 120px; height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  animation: spin 30s linear infinite;
}
.spinner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Language switcher ───────────────────────────────────────── */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 6px;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.55;
  padding: 0 4px;
  height: 44px;
  cursor: pointer;
  transition: opacity .25s var(--ease);
  white-space: nowrap;
}
.lang-trigger:hover { opacity: 0.9; }
.lang-chevron {
  opacity: 0.5;
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.lang-switch.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  list-style: none;
  padding: 4px 0;
  z-index: 200;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu [role="option"] {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 14px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s;
}
.lang-menu [role="option"]:hover { opacity: 1; color: var(--ink); }
.lang-menu [role="option"][aria-selected="true"] {
  opacity: 1;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
/* On dark header */
.site-header.on-dark .lang-trigger { opacity: 0.7; }
.site-header.on-dark .lang-trigger:hover { opacity: 1; }

/* ─── Global responsive tuning ───────────────────────────────────
   Cross-cutting fixes for mobile and small tablet that touch every
   page. Page-local styles also adapt; this section catches the rest.
   ────────────────────────────────────────────────────────────── */

/* Allow long Greek + English headings to break gracefully */
.display, .h-hero, .h-section, .h-block {
  overflow-wrap: break-word;
  word-break: normal;
}
/* Prevent inputs from triggering iOS auto-zoom (needs ≥16px) — already
   true for serif inputs but force on selects for safety */
select, input, textarea { font-size: max(16px, 1em); }

/* ─── Tablet (≤980px) ───────────────────────────────────────── */
@media (max-width: 980px) {
  /* Hero: tighter top padding so the headline isn't pushed off-screen */
  .hero { min-height: 600px; }
  .hero .inner { padding: clamp(96px, 16vw, 130px) var(--gutter) clamp(40px, 6vw, 60px); }

  /* Footer: more proportional top padding */
  .site-footer { padding-top: clamp(72px, 12vw, 120px); }
}

/* ─── Mobile (≤720px) ───────────────────────────────────────── */
@media (max-width: 720px) {
  /* Label-row: allow wrapping on tight viewports */
  .label-row { flex-wrap: wrap; row-gap: 6px; }
  .label-row .lbl[style*="margin-left:auto"],
  .label-row .lbl[style*="margin-left: auto"] {
    margin-left: 0 !important;
    width: 100%;
  }

  /* Hero meta-bot: stack instead of squeeze */
  .hero .meta-bot { flex-wrap: wrap; gap: 12px; }
  .hero .meta-bot .scroll-cue .line { width: 28px; }

  /* CTA buttons: 44px tap target */
  .btn-cta { padding: 14px 22px; min-height: 44px; }

  /* Language switcher: 44px tap target, text stays visually at 10px */
  .lang-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; }

  /* Menu drawer: a touch tighter to keep all 7 items above the fold */
  .menu-drawer { padding-top: 32px; }
  .menu-drawer a {
    font-size: clamp(34px, 8.5vw, 56px);
    padding: 6px 0;
  }

  /* Nav primary links bigger when shown via menu (already hidden on header) */

  /* Footer: reduce big headline margin */
  .site-footer .big { margin-bottom: 56px; }
  .site-footer .cols { padding: 40px 0; }
}

/* ─── Small mobile (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  /* Header: balance the actions row on narrow screens */
  .site-header .header-inner { padding: 16px var(--gutter); }
  .site-header .actions { gap: 10px; }
  .tf-logo { height: 26px; }
  .tf-logo-mobile { height: 56px; }
  .btn-cta { padding: 12px 16px; }

  /* Section spacing: tighter on phone */
  section { padding: clamp(64px, 14vw, 110px) 0; }
  section.tight { padding: clamp(48px, 10vw, 80px) 0; }
}

/* ════════════════════════════════════════════════════════════════
   MOTION ENHANCEMENTS
   All gated behind prefers-reduced-motion: no-preference.
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  /* ── 1 · Cross-page View Transitions (native, MPA) ──────────────
     Supporting browsers crossfade the whole page on same-origin
     navigation. The header is given a stable name so it holds in
     place instead of flickering. Non-supporting browsers fall back
     to the JS overlay (see site.js initPageTransitions). */
  @view-transition { navigation: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-header { view-transition-name: tf-header; }

  /* ── 2 · Held-frame hero drift ──────────────────────────────────
     A barely-perceptible ken-burns on the homepage hero so the
     image reads like a held film still, not a static photo.
     Applied to the .bg CONTAINER (the inner .ph is parallax-driven,
     so it must keep its own transform untouched). */
  .hero .bg {
    animation: heroDrift 52s ease-in-out 1.2s infinite alternate;
    will-change: transform;
  }
  @keyframes heroDrift {
    from { transform: scale(1.04); }
    to   { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
  }

  /* ── 3 · Focus-pull reveals ─────────────────────────────────────
     Cinematic establishing shots resolve from soft blur to sharp as
     they settle into view, like a lens finding focus. Filter-only,
     so it composes cleanly over the parallax transform on .ph. */
  .focus-pull .ph {
    transition: filter 1.6s var(--ease-out-expo) var(--reveal-delay, 0s);
  }
  .focus-pull:not(.in) .ph { filter: blur(20px); }
  .focus-pull.in .ph       { filter: blur(0); }
}

/* ─── Journal index page ────────────────────────────────────────── */
.j-featured { margin-bottom: 0; }
.j-featured-inner { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,80px); align-items:center; padding:0; text-decoration:none; color:inherit; }
.j-featured-inner:hover .img-card { transform:scale(1.018); }
.j-featured-body { padding:0; }
.j-readmore { font-family:var(--mono); font-size:10px; letter-spacing:0.22em; text-transform:uppercase; margin-top:24px; color:var(--ink-faded); }
.j-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(32px,4vw,60px) clamp(24px,3vw,48px); }
@media (max-width:900px) { .j-featured-inner { grid-template-columns:1fr; } .j-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .j-grid { grid-template-columns:1fr; } }
.j-card { display:block; text-decoration:none; color:inherit; }
.j-card-body { padding:18px 0 0; }
.j-title { font-family:var(--serif); font-size:clamp(19px,1.8vw,24px); font-weight:400; line-height:1.3; color:var(--ink); margin-top:10px; }
.j-excerpt { font-family:var(--sans); font-size:14px; line-height:1.65; color:var(--ink-soft); margin-top:10px; }
.j-meta { font-family:var(--mono); font-size:10px; letter-spacing:0.22em; text-transform:uppercase; color:var(--ink-faded); display:flex; align-items:center; gap:6px; }
.j-tag { background:var(--bg-deep); padding:3px 8px; border-radius:2px; color:var(--ink-soft); }
.pagination { display:flex; align-items:center; gap:4px; justify-content:center; padding:clamp(40px,5vw,64px) 0 0; }
.pg-num { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; font-family:var(--mono); font-size:12px; letter-spacing:0.1em; color:var(--ink-faded); text-decoration:none; border-radius:2px; transition:color .2s,background .2s; }
.pg-num:hover, .pg-num.active { color:var(--ink); background:var(--bg-deep); }
.pg-arrow { display:inline-flex; align-items:center; padding:0 14px; height:36px; font-family:var(--mono); font-size:14px; color:var(--ink-faded); text-decoration:none; transition:color .2s; }
.pg-arrow:hover { color:var(--ink); }

/* ─── Journal article body ──────────────────────────────────────── */
.article-body { max-width: 72ch; margin: 0 auto; }
.article-body p { font-family:var(--serif); font-size:clamp(18px,1.6vw,21px); line-height:1.75; color:var(--ink-soft); margin-bottom:1.4em; }
.article-body .lead-para { font-size:clamp(20px,1.8vw,24px); color:var(--ink); }
.article-body h2 { font-family:var(--serif); font-size:clamp(26px,2.8vw,38px); font-weight:300; color:var(--ink); margin:2em 0 0.6em; line-height:1.2; }
.article-body h3 { font-family:var(--serif); font-size:clamp(21px,2vw,28px); font-weight:300; color:var(--ink); margin:1.6em 0 0.5em; }
.article-body a { color:var(--ink); border-bottom:1px solid var(--line); text-decoration:none; transition:border-color .25s; }
.article-body a:hover { border-color:var(--ink); }
.next-card { display:block; padding:60px 0; border-top:1px solid var(--line); text-decoration:none; color:inherit; }
.next-card .arrow { display:inline-block; transition:transform .4s var(--ease); margin-left:12px; }
.next-card:hover .arrow { transform:translateX(12px); }
.next-card p { margin-top:14px; }

/* ─── Journal strip cards (.j-strip-card, .cols-3) ─────────────── */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
@media (max-width: 720px) {
  .cols-3 { grid-template-columns: 1fr; }
}
.j-strip-card {
  display: block;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity .3s var(--ease);
}
.j-strip-card:hover { opacity: .65; }
.j-strip-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 12px;
}
.j-strip-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.j-strip-sub {
  font-size: 14px;
  color: var(--ink-faded);
  line-height: 1.5;
}

/* ─── Phase 1: View Transitions (MPA) ───────────────────────────── */
/* Pages crossfade instead of hard-reloading; a clicked card's photo
   morphs into the destination page's hero (names set in site.js). */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-group(page-hero) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(page-hero),
::view-transition-new(page-hero) {
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ─── Phase 1: drawn rules on cards ─────────────────────────────── */
/* Extends the label-row motif: structural 1px lines draw themselves
   left-to-right as their block enters the viewport. */
.j-strip-card,
.next-card {
  /* !important: page-level <style> blocks re-declare the static border */
  border-top: 0 !important;
  position: relative;
}
.j-strip-card::before,
.next-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out-expo) 0.08s;
}
.j-strip-card.r-up:not(.in)::before,
.r-up:not(.in) .j-strip-card::before,
.next-card.r-up:not(.in)::before,
.r-up:not(.in) .next-card::before {
  transform: scaleX(0);
}

/* ─── Phase 1: the hero develops (first visit only) ─────────────── */
/* The photograph settles like a print in a darkroom tray, then the
   existing Ken Burns drift carries on. Gated by sessionStorage in JS. */
.hero .bg .ph.develop {
  animation:
    heroDevelop 2.4s var(--ease-out-expo) forwards,
    heroDrift 26s var(--ease-out-expo) forwards;
}
@keyframes heroDevelop {
  from { filter: brightness(1.4) contrast(0.82) blur(7px); }
  to   { filter: brightness(1) contrast(1) blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg .ph.develop { animation: none; filter: none; }
}

/* ─── Phase 1: language crossfade ───────────────────────────────── */
[data-en] { transition: opacity 0.22s var(--ease); }
body.lang-fading [data-en] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-en] { transition: none; }
}

/* ─── Phase 3: the lamp — cursor light in dark sections ─────────── */
.cursor-lamp {
  position: fixed;
  left: 0; top: 0;
  width: 540px; height: 540px;
  margin: -270px 0 0 -270px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  background: radial-gradient(circle,
    rgba(255, 193, 120, 0.085) 0%,
    rgba(255, 193, 120, 0.035) 38%,
    transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
body.lamp-on .cursor-lamp { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cursor-lamp { display: none; }
}

/* ─── Phase 3: sun arc on the Stay section ──────────────────────── */
.sun-arc { margin-bottom: clamp(28px, 4vw, 52px); }
.sun-arc svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ─── Phase 3: the crossing — Athens → Paros → Antiparos ────────── */
.crossing { margin-bottom: clamp(48px, 7vw, 88px); }
.crossing svg { width: 100%; height: auto; display: block; overflow: visible; }
.crossing .leg {
  stroke: var(--ink-soft);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.7s var(--ease-out-expo);
}
.crossing .leg-air { transition-delay: 0.25s; }
.crossing .leg-sea { transition-delay: 1.65s; }
.crossing.r-up:not(.in) .leg { stroke-dashoffset: 1; }
.crossing .stop {
  fill: var(--ink);
  opacity: 1;
  transition: opacity 0.7s var(--ease);
}
.crossing .s1 { transition-delay: 0.25s; }
.crossing .s2 { transition-delay: 1.6s; }
.crossing .s3 { transition-delay: 2.4s; }
.crossing.r-up:not(.in) .stop { opacity: 0; }
.crossing text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--ink-faded);
  opacity: 1;
  transition: opacity 0.7s var(--ease);
}
.crossing text.leg-note { font-style: normal; fill: var(--ink-soft); }
.crossing .t1 { transition-delay: 0.4s; }
.crossing .t2 { transition-delay: 1.75s; }
.crossing .t3 { transition-delay: 2.55s; }
.crossing .n1 { transition-delay: 1.1s; }
.crossing .n2 { transition-delay: 2.3s; }
.crossing.r-up:not(.in) text { opacity: 0; }
@media (max-width: 640px) {
  .crossing text { font-size: 17px; }
}
