/* ---------- MANTILITY Residency / Editorial warm ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Tenor+Sans&display=swap');

:root {
  --ivory:        #fbf7ed;
  --paper:        #f2ebd9;
  --paper-deep:   #e4d7b8;
  --ink:          #1c1611;
  --ink-soft:     #4a3f31;
  --terracotta:   #a64a2c;
  --terracotta-d: #6e2812;
  --silk:         #c98c5b;
  --rule:         rgba(28, 22, 17, 0.18);

  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --body:    "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --ui:      "Tenor Sans", "Optima", -apple-system, sans-serif;

  --max:     1440px;
  --gutter:  clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terracotta); color: var(--ivory); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.display i, .display em {
  font-style: italic;
  font-weight: 400;
}
.eyebrow {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-soft);
}
.serif-italic {
  font-family: var(--display);
  font-style: italic;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* hairline rules */
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 237, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.5s ease, border-bottom-color 0.5s ease;
}

/* Home page: header is FIXED (overlays the video, doesn't take flow space)
   and transparent over hero, then solid via .is-scrolled after passing hero. */
body.is-home .site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.is-home .site-header .brand img {
  filter: invert(100%) brightness(1.1);
  transition: filter 0.4s ease;
}
body.is-home .site-header .brand .sub {
  color: rgba(245, 232, 199, 0.7);
  border-left-color: rgba(245, 232, 199, 0.25);
  transition: color 0.4s ease, border-color 0.4s ease;
}
body.is-home .site-header .nav-links a {
  color: var(--ivory);
  transition: color 0.4s ease;
}
body.is-home .site-header .nav-links a::after { background: var(--silk); }
body.is-home .site-header .nav-links a.is-active { color: var(--silk); }
body.is-home .site-header .btn--ghost {
  color: var(--ivory);
  border-color: rgba(245, 232, 199, 0.45);
}
body.is-home .site-header .btn--ghost:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* Scrolled state — header becomes solid again */
body.is-home .site-header.is-scrolled {
  background: rgba(251, 247, 237, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom-color: var(--rule) !important;
}
body.is-home .site-header.is-scrolled .brand img { filter: none; }
body.is-home .site-header.is-scrolled .brand .sub {
  color: var(--ink-soft);
  border-left-color: var(--rule);
}
body.is-home .site-header.is-scrolled .nav-links a { color: var(--ink); }
body.is-home .site-header.is-scrolled .nav-links a.is-active { color: var(--terracotta); }
body.is-home .site-header.is-scrolled .nav-links a::after { background: var(--terracotta); }
body.is-home .site-header.is-scrolled .btn--ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 22px;
}
/* nav-links is now a direct child of .nav (no <nav> wrapper) */
.nav > .nav-links { justify-self: center; }
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  height: 22px;
  width: auto;
  display: block;
}
.brand .sub {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.nav-links {
  display: flex;
  justify-self: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding-block: 4px;
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.1, 1);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn .arrow { display: inline-block; transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 0;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  transform-origin: center;
}

/* ---------- Hero (Home) ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 100px);
  position: relative;
  overflow: hidden;
}

/* ---------- Video Hero ---------- */
.hero--video {
  padding: 0;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--ivory);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.20) 22%,
    rgba(0,0,0,0.20) 60%,
    rgba(0,0,0,0.55) 90%,
    rgba(0,0,0,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 7vw, 100px);
  padding-top: clamp(100px, 14vw, 180px);
}
.hero-headline--light,
.hero-headline--light .it { color: #fff !important; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.eyebrow--light { color: #fff !important; opacity: 0.95; }
.hero-meta--light { border-top-color: rgba(255,255,255,0.35) !important; }
.hero-meta--light dt { color: #fff !important; opacity: 0.85; }
.hero-meta--light dd { color: #fff !important; }

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn--light:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scroll-pulse 2.4s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes scroll-pulse {
  0%   { top: -50%; }
  100% { top: 100%; }
}
@media (max-width: 800px) {
  .hero-scroll { display: none; }
  .hero--video { min-height: 88vh; min-height: 88dvh; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.hero-grid > .hero-text { order: 1; }
.hero-grid > .hero-visual { order: 2; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: end; }
  .hero-grid > .hero-text { order: 0; }
  .hero-grid > .hero-visual { order: 0; }
}
.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 12.5vw, 188px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero-headline .it {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-meta dt {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
  font-weight: 400;
}
.hero-meta dd { margin: 0; font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -0.005em; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-visual { aspect-ratio: 3 / 4; }
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.02);
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.1, 1);
}
.hero-visual:hover img { transform: scale(1.05); }
.hero-visual .caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--ivory);
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 16px;
  overflow: hidden;
  background: var(--paper);
}
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: tick 38s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.ticker-track span::before {
  content: "✦";
  color: var(--terracotta);
  margin-right: 56px;
  font-size: 12px;
  vertical-align: middle;
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section: standard ---------- */
.section {
  padding-block: clamp(70px, 9vw, 140px);
}
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--ivory); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 80px);
  max-width: 940px;
}
.section-head .num {
  font-family: var(--ui);
  color: var(--terracotta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title .it {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.section--ink .section-title .it { color: var(--silk); }
.section--ink .section-head .num { color: var(--silk); }
.section--ink .eyebrow { color: var(--silk); }

/* ---------- Intro / who we are ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
}
.intro-text p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1em; }
.intro-text p:first-child::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 6em;
  float: left;
  line-height: 0.82;
  padding: 10px 16px 0 0;
  color: var(--terracotta);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  align-self: start;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
.facts dt {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
  font-weight: 400;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.facts dd small {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ---------- The Spaces (split) ---------- */
.spaces {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
.space {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .space { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 90px); }
  .space.reverse { grid-template-columns: 1fr 1.1fr; }
  .space.reverse .space-text { order: 2; }
}
.space-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.space-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.6s cubic-bezier(0.2, 0.6, 0.1, 1);
}
.space-visual:hover img { transform: scale(1.04); }
.space-label {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin: 0 0 8px;
}
.space-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.space-text p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1em;
}

/* ---------- Kavala teaser ---------- */
.kavala {
  background: var(--ink);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.kavala .section-title .it { color: var(--silk); }
.kavala-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .kavala-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
}
.kavala-text p { color: #d8c8a7; font-size: 19px; line-height: 1.6; margin: 0 0 1em; }
.kavala-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.kavala-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
}

/* ---------- CTA block ---------- */
.cta-block {
  padding-block: clamp(90px, 11vw, 160px);
  text-align: center;
  background: var(--paper);
  position: relative;
}
.cta-block .display {
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
}
.cta-block .display .it { color: var(--terracotta); }
.cta-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 48px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 10px; }
.cta-meta .dot { width: 6px; height: 6px; background: var(--terracotta); border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding-block: 80px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand {
  margin: 0 0 24px;
}
.footer-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.footer-tag { color: #b5a584; font-size: 16px; max-width: 380px; line-height: 1.55; }
.footer-tag .it { font-style: italic; color: var(--silk); }
.footer-col h4 {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silk);
  margin: 0 0 18px;
  font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 16px;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.footer-col a:hover { border-color: var(--silk); }
.footer-bottom {
  border-top: 1px solid rgba(245, 232, 199, 0.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a7a5a;
}

/* ---------- Open Call page ---------- */
.page-hero {
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.page-hero .display {
  font-size: clamp(54px, 10vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 20px 0 36px;
}
.page-hero .display .it {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.page-hero .lede { max-width: 760px; margin: 0; }

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .concept-grid { grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 110px); }
}
.concept-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.concept-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
  align-items: baseline;
}
.concept-list li .n {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 18px;
}

/* Disciplines tags */
.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.disciplines li {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
}
.disciplines li.accent {
  background: var(--terracotta);
  color: var(--ivory);
  border-color: var(--terracotta);
}

/* Practical table */
.practical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.practical-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .practical-row { grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline; }
}
.practical-row dt {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  padding-top: 6px;
}
.practical-row dd {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.practical-row dd .small {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.55;
}
.practical-row dd .price {
  font-style: italic;
  color: var(--terracotta);
}

.dates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.date-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.date-row .n {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 18px;
}
.date-row .month {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.005em;
}
.date-row .range {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Includes list */
.includes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .includes { grid-template-columns: 1fr 1fr; gap: 12px 40px; }
}
.includes li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}
.includes li::before {
  content: "✦";
  color: var(--terracotta);
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- Apply page ---------- */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1000px) {
  .apply-grid { grid-template-columns: 320px 1fr; gap: clamp(40px, 5vw, 90px); align-items: start; }
}
.apply-side {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.apply-side h3 {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 20px;
  font-weight: 400;
}
.apply-side dl { margin: 0 0 24px; }
.apply-side dt {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  margin-top: 18px;
}
.apply-side dt:first-child { margin-top: 0; }
.apply-side dd {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.apply-side dd a { color: var(--terracotta); border-bottom: 1px solid var(--terracotta); }

form.application { display: flex; flex-direction: column; gap: 48px; }
.form-fieldset { border: 0; padding: 0; margin: 0; }
.form-fieldset legend {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 10px;
  padding: 0;
  width: 100%;
}
.form-fieldset .legend-sub {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.field label .req { color: var(--terracotta); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="date"],
.field input[type="tel"],
.field input[type="file"],
.field textarea,
.field select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-family: var(--display);
  font-size: 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0 14px;
  color: var(--ink);
  width: 100%;
  letter-spacing: -0.005em;
  transition: border-color 0.3s;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
  font-size: 19px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-bottom-color: var(--terracotta);
}
.field .hint {
  font-family: var(--ui);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}

.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 700px) {
  .checks { grid-template-columns: 1fr 1fr; }
}
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--rule);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.005em;
}
.check:hover { border-color: var(--ink); }
.check input { margin-top: 6px; accent-color: var(--terracotta); }
.check.full { grid-column: 1 / -1; }
.check-stack { display: flex; flex-direction: column; gap: 4px; }
.check-stack .range {
  font-family: var(--ui);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border-left: 3px solid var(--terracotta);
  background: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
}
.consent input { margin-top: 4px; accent-color: var(--terracotta); }

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
@media (min-width: 700px) {
  .submit-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.submit-row .btn { padding: 18px 34px; font-size: 11px; }
.submit-row .note {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 360px;
  line-height: 1.5;
}

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (min-width: 800px) {
  .photo-strip { grid-template-columns: repeat(6, 1fr); }
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.6s, filter 0.6s;
}
.photo-strip img:hover {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.1, 1), transform 0.6s cubic-bezier(0.2, 0.6, 0.1, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .apply-side {
    position: static;
    top: auto;
    padding: 24px;
  }
}

@media (max-width: 800px) {
  /* On mobile: switch sticky → fixed (sticky breaks with body overflow-x:hidden
     in iOS Safari) and account for iPhone safe-area-inset (notch). Also drop
     backdrop-filter which creates a containing block that traps fixed children. */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--ivory);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: env(safe-area-inset-top, 44px);
    z-index: 100;
  }
  body {
    padding-top: calc(env(safe-area-inset-top, 0) + 68px);
  }
  /* Home page: no body padding-top — the hero starts at y=0 and the
     transparent fixed header overlays the video. */
  body.is-home {
    padding-top: 0;
  }

  .nav { grid-template-columns: 1fr; gap: 0; }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 14px);
    right: var(--gutter);
    z-index: 200;
    background: rgba(251, 247, 237, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--rule);
    border-radius: 50%;
    transition: background 0.3s, border-color 0.3s;
  }
  .nav-toggle.is-open {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    z-index: 150;
    background: var(--ivory);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: calc(env(safe-area-inset-top, 0) + 110px) var(--gutter) 60px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.is-open { transform: translateX(0); }

  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--rule);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .nav-links li:last-child { border-bottom: 1px solid var(--rule); }
  .nav-links.is-open li { opacity: 1; transform: translateY(0); }
  .nav-links.is-open li:nth-child(1) { transition-delay: 0.18s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.26s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.34s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.46s; }

  .nav-links a {
    font-family: var(--display);
    font-size: clamp(40px, 9vw, 56px);
    letter-spacing: -0.02em;
    text-transform: none;
    display: block;
    padding: 22px 0;
    width: 100%;
    line-height: 1;
  }
  .nav-links a.is-active { color: var(--terracotta); font-style: italic; }
  .nav-links a::after { display: none; }

  .nav .btn { display: none; }
  .nav-links li:has(.btn) { border: 0; padding-top: 28px; }
  .nav-links .btn {
    display: inline-flex;
    margin-top: 0;
    padding: 16px 28px;
    font-size: 11px;
  }
}
