/* ==========================================================================
   PSQ Property Investors — styles
   Mobile-first. Breakpoints: 640px (sm), 768px (md), 1024px (lg), 1280px (xl)
   ========================================================================== */

:root {
  --paper: #f5f0e8;
  --paper-deep: #e7d8c7;
  --paper-card: #e7dccf;
  --ink: #2c2722;
  --ink-deep: #191512;
  --muted: #756a60;
  --muted-2: #84786d;
  --muted-3: #9a8e82;
  --nav-text: #6f655c;
  --line: #ded2c5;
  --line-2: #d8cabc;
  --terracotta: #c25e3d;
  --terracotta-dark: #a84f31;
  --terracotta-light: #e69a71;
  --eucalyptus: #31564c;
  --cream: #f9f4ec;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1320px;
  --gutter: 20px;
  --header-h: 70px;
  --section-y: 80px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 640px)  { :root { --gutter: 32px; --section-y: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 78px; --section-y: 128px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* subtle paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
::selection { background: rgba(194, 94, 61, .25); color: var(--ink); }

h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 999px; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.display { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.035em; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; }
.accent { color: var(--terracotta); }
.br-lg { display: none; }
@media (min-width: 1024px) { .br-lg { display: inline; } }

/* ---------- Eyebrow & section intro ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow-line::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.section { padding-block: var(--section-y); }
.section-intro { max-width: 42rem; }
.section-intro h2 { margin-top: 16px; font-size: clamp(2.35rem, 7vw, 3.75rem); line-height: 1.04; }
.section-intro > p:not(.eyebrow) { max-width: 32rem; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
@media (min-width: 640px) { .section-intro > p:not(.eyebrow) { font-size: 16px; } }
.section-intro.light { color: var(--cream); }
.section-intro.light .eyebrow { color: var(--terracotta-light); }
.section-intro.light > p:not(.eyebrow) { color: #d8cfc4; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 15px; height: 15px; transition: transform .25s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 12px 20px; gap: 8px; }
.btn-terracotta { background: var(--terracotta); color: #fff8ef; }
.btn-terracotta:hover { background: var(--terracotta-dark); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-pill-icon { gap: 16px; padding: 10px 10px 10px 24px; min-height: 56px; }
.btn-pill-icon:hover { transform: translateY(-4px); }
.btn-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); transition: transform .25s ease; }
.btn-pill-icon:hover .btn-dot { transform: translateX(4px); }
.btn-pill-icon:hover .btn-dot .icon { transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--nav-text); font-size: 14px; font-weight: 600; transition: color .25s ease; }
.text-link:hover { color: var(--terracotta); }
.text-link .icon { width: 15px; height: 15px; }

.circle-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--terracotta-light); font-size: 14px; font-weight: 600; transition: color .25s ease; }
.circle-link span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--terracotta-light); border-radius: 50%; transition: transform .25s ease; }
.circle-link .icon { width: 14px; height: 14px; }
.circle-link:hover { color: var(--cream); }
.circle-link:hover span { transform: translateX(4px); }

.underline-link { margin-top: 28px; color: var(--terracotta); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(245, 240, 232, .9);
  border-bottom: 1px solid rgba(238, 228, 216, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(44, 39, 34, .06); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; height: 46px;   border-radius: 2px; overflow: hidden; }
.brand img { height: 100%; width: auto; }
@media (min-width: 1024px) { .brand { height: 52px; } }

.nav-links { display: none; }
.nav-cta { display: none; }
.nav-links a { position: relative; color: var(--nav-text); font-size: 14px; transition: color .25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--terracotta); }
.nav-links a.is-active::after { transform: scaleX(1); }

.menu-toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; }
.menu-toggle span { position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: var(--terracotta); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid #eaded1; background: var(--paper); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu:not([hidden]) { animation: menu-in .3s var(--ease-out); }
.mobile-menu ul { padding-block: 8px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #eaded1; font-size: 15px; }
.mobile-menu a:not(.btn) .icon { width: 15px; height: 15px; color: var(--terracotta); }
.mobile-menu-cta { padding-block: 12px 20px; }
.mobile-menu-cta .btn { width: 100%; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 32px; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(44, 39, 34, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 39, 34, .055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-top: 32px; font-size: clamp(3.6rem, 17vw, 6.2rem); line-height: .92; letter-spacing: -.045em; }
.hero-intro { max-width: 27rem; margin-top: 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.hero-stats { display: flex; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid #d9cec1; }
.hero-stats > div { flex: 1 1 0; min-width: 0; padding-inline: 12px; border-left: 1px solid #d9cec1; }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dd { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; line-height: 1.1; font-weight: 500; }
.hero-stats small { color: var(--terracotta); font-size: 14px; }
.hero-stats span { margin-top: 6px; color: #8c8074; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.hero-art { position: relative; min-height: 360px; }
.hero-art figure { position: absolute; overflow: hidden; transition: transform .6s var(--ease-out); }
.hero-art img, .story-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-main { top: 0; right: 0; width: 79%; height: 84%; background: var(--paper-card); }
.hero-inset { bottom: 0; left: 0; width: 50%; height: 53%; border: 7px solid var(--paper); background: var(--paper-card); box-shadow: 0 18px 40px rgba(67, 47, 34, .15); }
.hero-note { position: absolute; right: 2%; bottom: 14%; display: none; max-width: 134px; padding: 20px; background: var(--ink); color: var(--cream); }
.hero-note .icon { width: 18px; height: 18px; margin-bottom: 32px; color: var(--terracotta-light); }
.hero-note p { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }

.hero-ring { position: absolute; top: 10%; left: 6%; width: 64px; height: 64px; border: 1px solid rgba(194, 94, 61, .6); border-radius: 50%; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; display: none; align-items: center; gap: 10px; transform: translateX(-50%); color: #9b8e82; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; transition: color .25s; }
.scroll-cue:hover { color: var(--terracotta); }
.scroll-cue .icon { width: 15px; height: 15px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

@media (min-width: 640px) {
  .hero { background-size: 48px 48px; }
  .hero-stats { gap: 0; }
  .hero-stats > div { flex: 0 0 auto; padding-inline: 32px; }
  .hero-stats strong { font-size: 30px; }
  .hero-stats span { font-size: 10px; letter-spacing: .14em; }
  .hero-art { min-height: 480px; }
  .hero-inset { width: 47%; border-width: 10px; }
  .hero-note { display: block; }
  .hero-ring { width: 80px; height: 80px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 64px); padding-bottom: 100px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .hero h1 { margin-top: 36px; font-size: clamp(6rem, 8.4vw, 7.5rem); line-height: .9; }
  .hero-intro { margin-top: 36px; font-size: 17px; }
  .hero-actions { margin-top: 40px; }
  .hero-stats { margin-top: 64px; }
  .hero-art { min-height: 540px; }
  .scroll-cue { display: flex; }
}
@media (min-width: 1280px) {
  .hero-art { min-height: 585px; }
}

/* ---------- Properties ---------- */
.section-head { display: flex; flex-direction: column; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 12px; transition: border-color .25s, color .25s, background-color .25s; }
.filter:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--cream); }

/* Horizontal scrolling filter chips on very small screens */
@media (max-width: 479px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
}

.property-grid { display: grid; grid-template-columns: 1fr; gap: 48px 24px; margin-top: 44px; }
.property-card { min-width: 0; animation: card-in .45s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.property-media { position: relative; aspect-ratio: 1.13; overflow: hidden; background: var(--paper-card); }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.property-card:hover .property-media img { transform: scale(1.05); }
.property-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(245, 240, 232, .22), transparent 55%); transform: translateX(-120%); transition: transform .8s ease; }
.property-card:hover .property-media::after { transform: translateX(120%); }
.card-open { position: absolute; inset: 0; z-index: 1; }
.property-tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 12px; background: var(--paper); color: #5f554d; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.fav { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(245, 240, 232, .9); color: #5f554d; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .25s, color .25s, transform .25s; }
.fav .icon { width: 17px; height: 17px; }
.fav:hover { background: #fff8ef; transform: scale(1.06); }
.fav[aria-pressed="true"] { background: var(--terracotta); color: #fff8ef; }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.fav.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.2); } }

.property-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 20px; }
.property-type { color: #a07863; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.property-name { margin-top: 8px; font-size: 24px; line-height: 1.15; }
.property-location { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted-2); font-size: 14px; }
.property-location .icon { width: 13px; height: 13px; }
.property-price { flex-shrink: 0; text-align: right; }
.price { color: var(--terracotta); font-weight: 600; }
.property-price small { display: block; margin-top: 4px; color: var(--muted-3); font-size: 11px; white-space: nowrap; }
.property-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e3d8cc; color: var(--muted-2); font-size: 12px; }
.property-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.property-meta .icon { width: 14px; height: 14px; }
.details-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 6px 0; color: var(--ink); font-size: 12px; font-weight: 600; transition: color .25s; }
.details-btn .icon { width: 13px; height: 13px; transition: transform .25s; }
.details-btn:hover { color: var(--terracotta); }
.details-btn:hover .icon { transform: translateX(3px); }
.empty-state { padding: 80px 0; color: var(--muted); text-align: center; }

@media (min-width: 640px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-name { font-size: 25px; }
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .filters { justify-content: flex-end; flex-shrink: 0; max-width: 50%; }
}
@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
  .property-grid.is-staggered .property-card:nth-child(3n + 2) { margin-top: 64px; }
}

/* ---------- Guest houses ---------- */
.stays { position: relative; overflow: hidden; background: var(--eucalyptus); color: var(--cream); }
.stays-glow { position: absolute; top: 0; right: 0; width: 60%; height: 100%; pointer-events: none; background: radial-gradient(circle at 70% 40%, rgba(219, 143, 104, .18), transparent 55%); }
@media (min-width: 1024px) {
  .stays-glow { width: 33%; }
}

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 56px; }
.story-art { position: relative; min-height: 380px; }
.story-art figure { position: absolute; overflow: hidden; background: var(--paper-card); }
.story-main { top: 0; left: 0; width: 80%; height: 76%; }
.story-inset { right: 0; bottom: 0; width: 52%; height: 48%; border: 7px solid var(--paper); }
.story-badge { position: absolute; left: 3%; bottom: 20%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--terracotta); color: #fff8ef; }
.story-badge .icon { width: 24px; height: 24px; stroke-width: 1.4; }
.principles { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
.principles article { padding-top: 16px; border-top: 1px solid var(--line); }
.principles .icon { width: 19px; height: 19px; color: var(--terracotta); }
.principles h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.principles p { margin-top: 8px; color: var(--muted-2); font-size: 14px; line-height: 1.7; }

@media (min-width: 480px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (min-width: 640px) {
  .story-art { min-height: 500px; }
  .story-inset { width: 49%; border-width: 9px; }
  .story-badge { width: 80px; height: 80px; }
  .story-badge .icon { width: 26px; height: 26px; }
}
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .story-copy { padding-top: 12px; }
  .principles { margin-top: 44px; }
}
@media (min-width: 1280px) { .story-grid { gap: 112px; } }

/* ---------- Contact ---------- */
.contact { background: #f5f0e8; }
.contact-grid { display: grid; gap: 48px; }
.contact-details { display: grid; gap: 20px; margin-top: 40px; }
.contact-details a { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; word-break: break-word; transition: color .25s; }
.contact-details a:hover { color: var(--terracotta); }
.contact-details span { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #c7b3a0; border-radius: 50%; }
.contact-details .icon { width: 16px; height: 16px; }

.contact-card { background: var(--paper); padding: 28px 20px; }
.form-row { display: grid; gap: 0; }
.field { margin-bottom: 28px; }
.field label { display: block; color: #907e70; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 16px; /* prevents iOS zoom on focus */
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #a99c90; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); }
.field textarea { resize: vertical; min-height: 84px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 28px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 0; bottom: 14px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-error { display: block; min-height: 0; margin-top: 6px; color: #b3261e; font-size: 12px; }
.field-error:empty { display: none; }
.contact-card .btn { width: 100%; margin-top: 8px; }

.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 390px; padding: 16px; text-align: center; outline: 0; animation: card-in .5s var(--ease-out) both; }
.form-success[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--eucalyptus); color: var(--cream); }
.success-mark .icon { width: 24px; height: 24px; }
.form-success h3 { margin-top: 28px; font-size: clamp(2rem, 7vw, 2.4rem); line-height: 1.1; }
.form-success p { max-width: 22rem; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }

@media (min-width: 640px) {
  .contact-card { padding: 40px; }
  .form-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .field { margin-bottom: 32px; }
  .field input, .field select, .field textarea { font-size: 14px; }
  .contact-card .btn { width: auto; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
}
@media (min-width: 1280px) { .contact-grid { gap: 96px; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px; background: var(--ink); color: var(--cream); }
.footer-top { display: flex; flex-direction: column; gap: 32px; }
.footer-logo { height: 58px; width: auto; border-radius: 2px; }
.footer-top p { max-width: 20rem; margin-top: 20px; color: #bdb0a3; font-size: 14px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #bdb0a3; font-size: 14px; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--terracotta-light); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #4a4038; color: #8e8176; font-size: 11px; }
@media (min-width: 640px) {
  .site-footer { padding-block: 48px; }
  .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 48px; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(44, 39, 34, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .3s ease both; }
.modal-panel { position: relative; display: grid; grid-template-columns: 1fr; width: 100%; max-width: 896px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); animation: modal-in .4s var(--ease-out) both; }
.modal.is-closing .modal-backdrop { animation: fade-out .25s ease both; }
.modal.is-closing .modal-panel { animation: modal-out .25s ease both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(245, 240, 232, .92); color: var(--ink); transition: transform .25s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-body { padding: 28px 20px; }
.modal-body .eyebrow { font-size: 10px; letter-spacing: .18em; }
.modal-body h2 { margin-top: 16px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.08; }
.modal-body > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); line-height: 1.75; }
.modal-badges:empty { display: none; }
.modal-badges { margin-top: 16px; }
.rating-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.rating-inline .icon { width: 15px; height: 15px; color: var(--terracotta); fill: currentColor; }
.modal-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); font-size: 14px; }
.modal-meta span { display: block; color: var(--muted-3); font-size: 12px; }
.modal-meta strong { display: block; margin-top: 4px; font-weight: 600; }
.modal-meta small { color: var(--muted); font-size: 12px; font-weight: 400; }
.modal-features { margin-bottom: 24px; }
.modal-features .chip-row li { background: rgba(44, 39, 34, .04); }
.modal-features .icon { width: 12px; height: 12px; color: var(--terracotta); }
.modal-booking { margin-bottom: 26px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .45); }
.modal-booking[hidden] { display: none; }
.modal-booking-title { color: var(--muted); font-size: 10px; }
.platform-buttons { display: grid; gap: 10px; margin-top: 14px; }
.platform-btn {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper);
  font-size: 13px; font-weight: 600;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.platform-btn i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.platform-btn span { flex: 1; min-width: 0; }
.platform-btn .icon { width: 14px; height: 14px; color: var(--muted-3); transition: color .25s, transform .25s; }
.platform-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44, 39, 34, .08); }
.platform-btn:hover .icon { color: var(--brand); transform: translate(2px, -2px); }
.modal-cta { width: 100%; }

@media (min-width: 480px) { .platform-buttons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) {
  .modal { padding: 20px; }
  .modal-body { padding: 40px; }
  .modal-cta { width: auto; }
}
@media (min-width: 900px) {
  .modal-panel { grid-template-columns: 1.05fr 1fr; max-height: 90vh; }
  .modal-close { top: 16px; right: 16px; }
  .platform-buttons { grid-template-columns: 1fr; }
}

/* ---------- Gallery (inside the modal) ---------- */
.gallery { display: flex; flex-direction: column; background: var(--ink); }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; background: var(--ink-deep); overflow: hidden; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage img.fade { animation: fade-in .35s ease both; }
.gallery-stage.is-broken img { visibility: hidden; }
.gallery.is-empty .gallery-stage::after, .gallery-stage.is-broken::after {
  content: "Photos coming soon";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(249, 244, 236, .5); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
}
.gallery-nav {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-top: -21px;
  border-radius: 50%; background: rgba(245, 240, 232, .9); color: var(--ink);
  transition: background-color .25s, transform .25s;
}
.gallery-nav:hover { background: #fff8ef; transform: scale(1.06); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-nav .icon { width: 18px; height: 18px; }
.gallery.is-single .gallery-nav, .gallery.is-single .gallery-thumbs, .gallery.is-empty .gallery-nav { display: none; }
.gallery-count {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(44, 39, 34, .72); color: var(--cream);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gallery-count .icon { width: 13px; height: 13px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 68px; height: 52px; overflow: hidden; border-radius: 2px; opacity: .55; transition: opacity .25s, outline-color .25s; outline: 2px solid transparent; outline-offset: -2px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.is-active { opacity: 1; outline-color: var(--terracotta); }
@media (min-width: 900px) {
  .gallery-stage { aspect-ratio: auto; flex: 1; min-height: 420px; }
  .gallery-thumb { flex-basis: 84px; height: 62px; }
}

/* ==========================================================================
   Shared pieces: media placeholder, photo counts, chips, badges
   ========================================================================== */
.media { position: relative; overflow: hidden; background: var(--paper-card); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-missing::after {
  content: "Photo coming soon";
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 8px; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(44, 39, 34, .04) 0 10px, transparent 10px 20px), var(--paper-card);
  color: var(--muted-3); font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
}

.photo-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(44, 39, 34, .7); color: var(--cream);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
.photo-count .icon { width: 13px; height: 13px; }

.rating-pill {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(245, 240, 232, .94); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.rating-pill .icon { width: 13px; height: 13px; color: var(--terracotta); fill: currentColor; }
.rating-pill small { color: var(--muted); font-weight: 400; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-row li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(44, 39, 34, .05); color: var(--muted);
  font-size: 12px; line-height: 1.2;
}
.light .chip-row li, .stay-body .chip-row li { background: rgba(249, 244, 236, .1); color: #d8cfc4; }

.nsfas-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.nsfas-badge .icon { width: 14px; height: 14px; }
.nsfas-badge.is-nsfas { background: rgba(49, 86, 76, .12); color: var(--eucalyptus); }
.nsfas-badge.is-private { background: rgba(194, 94, 61, .12); color: var(--terracotta); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-nsfas { background: var(--eucalyptus); }
.dot-private { background: var(--terracotta); }

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

/* ---------- Hero quick links ---------- */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font-size: 12.5px;
  transition: border-color .25s, color .25s, background-color .25s, transform .25s;
}
.hero-chips .icon { width: 14px; height: 14px; color: var(--terracotta); }
.hero-chips a:hover { border-color: var(--terracotta); color: var(--ink); background: rgba(255, 255, 255, .5); transform: translateY(-2px); }

/* ==========================================================================
   02 · Guest house cards
   ========================================================================== */
.stays-head { margin-bottom: 44px; }
.stays-note {
  display: flex; align-items: center; gap: 10px;
  max-width: 22rem; padding: 14px 16px;
  border: 1px solid rgba(249, 244, 236, .18); border-radius: 4px;
  color: #d8cfc4; font-size: 13px; line-height: 1.6;
}
.stays-note .icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--terracotta-light); }

.stay-grid { display: grid; gap: 28px; }
.stay-card {
  display: grid;
  border: 1px solid rgba(249, 244, 236, .14);
  background: rgba(249, 244, 236, .05);
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease-out), background-color .35s;
}
.stay-card:hover { border-color: rgba(230, 154, 113, .5); background: rgba(249, 244, 236, .07); }
.stay-media { aspect-ratio: 16 / 11; }
.stay-media img { transition: transform .7s var(--ease-out); }
.stay-card:hover .stay-media img { transform: scale(1.04); }
.stay-body { display: flex; flex-direction: column; padding: 24px 20px 26px; }
.stay-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.stay-top h3 { margin-top: 8px; font-size: 26px; line-height: 1.1; }
.property-type.light { color: var(--terracotta-light); }
.property-location.light { color: #bdb0a3; }
.property-price.light small { color: #a89b8f; }
.property-price.light .price { color: var(--terracotta-light); }
.stay-desc { margin-top: 16px; color: #d8cfc4; font-size: 14px; line-height: 1.75; }
.stay-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid rgba(249, 244, 236, .2); border-radius: 999px;
  color: #d8cfc4; font-size: 11.5px; white-space: nowrap;
}
.platform-badge i { width: 7px; height: 7px; border-radius: 50%; }
.stay-strip { display: none; }
.stay-strip .media { aspect-ratio: 1; }
.stay-strip img { transition: transform .7s var(--ease-out); }
.stay-strip .media:hover img { transform: scale(1.06); }

@media (min-width: 768px) {
  .stays-head { align-items: flex-end; }
  .stay-card { grid-template-columns: 1fr 1fr; }
  .stay-media { aspect-ratio: auto; min-height: 340px; }
  .stay-body { padding: 32px 30px; }
}
@media (min-width: 1200px) {
  .stay-card { grid-template-columns: 1.05fr 1.2fr .55fr; }
  .stay-strip { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; padding: 2px 2px 2px 0; }
  .stay-body { padding: 34px 32px; }
}

/* ==========================================================================
   03 · Student residences
   ========================================================================== */
.student { background: linear-gradient(180deg, var(--paper) 0%, #efe8de 100%); }
.residence-list { display: grid; gap: 44px; margin-top: 48px; }
.residence {
  display: grid; gap: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s;
}
.residence:hover { border-color: var(--line-2); box-shadow: 0 24px 60px rgba(67, 47, 34, .1); }
.residence-gallery { display: grid; gap: 10px; }
.residence-hero { aspect-ratio: 16 / 11; }
.residence-hero img { transition: transform .7s var(--ease-out); }
.residence:hover .residence-hero img { transform: scale(1.04); }
.residence-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.residence-thumb { aspect-ratio: 1; padding: 0; border: 0; transition: opacity .25s, transform .25s; }
.residence-thumb:hover { opacity: .88; transform: translateY(-2px); }
.thumb-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(44, 39, 34, .55); color: var(--cream);
  font-family: var(--font-mono); font-size: 13px;
}
.residence-body { display: flex; flex-direction: column; }
.residence-body h3 { margin-top: 18px; font-size: clamp(1.9rem, 5.5vw, 2.5rem); line-height: 1.08; }
.residence-body .property-location { margin-top: 10px; font-size: 14px; }
.residence-desc { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.spec-grid dt { color: var(--muted-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.spec-grid dd { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.spec-grid dd.price { font-size: 16px; }
.spec-grid dd small { color: var(--muted); font-size: 12px; font-weight: 400; }

.residence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

@media (min-width: 768px) {
  .residence { grid-template-columns: 1fr 1fr; gap: 32px; padding: 22px; align-items: center; }
  .residence:nth-child(even) .residence-gallery { order: 2; }
  .residence-body { padding-right: 8px; }
}
@media (min-width: 1024px) {
  .residence { grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 26px; }
  .residence-body { padding-right: 20px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .12s; }

/* Image hover zoom */
.zoom img { transition: transform .7s var(--ease-out); }
@media (hover: hover) { .zoom:hover img { transform: scale(1.05); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Contact form: error state, submitting state, consent
   ========================================================================== */
.form-error {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(179, 38, 30, .28);
  border-radius: 10px;
  background: rgba(179, 38, 30, .07);
  color: #b3261e;
  font-size: 14px;
  line-height: 1.45;
}
.form-error[hidden] { display: none; }
#contact-form button[type="submit"][aria-busy="true"],
#contact-form button[type="submit"]:disabled { opacity: .62; cursor: progress; pointer-events: none; }

.field-consent { margin-top: -4px; }
.field-consent label.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.field-consent .consent input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--cream);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.field-consent .consent input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.6);
  opacity: 0;
  transition: opacity .15s, transform .15s var(--ease-out);
}
.field-consent .consent input[type="checkbox"]:checked {
  border-color: var(--terracotta);
  background: var(--terracotta);
}
.field-consent .consent input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.field-consent .consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.field-consent .consent > span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.field-consent .consent a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.field-consent .consent a:hover { color: var(--terracotta-dark); }
.field-consent .field-error { margin-top: 10px; }
.field-consent.has-error .consent input[type="checkbox"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }

/* ==========================================================================
   Legal & privacy page
   ========================================================================== */
.legal-body { background: var(--paper); }
.legal-main { padding-top: var(--header-h); }

.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .95; letter-spacing: -.03em; }
.legal-lede { max-width: 56ch; margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-updated { margin-top: 28px; color: var(--muted-3); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.legal-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 96px; }

.legal-toc { align-self: start; }
.legal-toc-title { margin-bottom: 14px; color: var(--muted-3); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
  transition: color .2s, border-color .2s;
}
.legal-toc a:hover { color: var(--ink); border-left-color: var(--terracotta); }

.legal-content { max-width: 70ch; }
.legal-content section { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-content section + section { border-top: 1px solid var(--line); margin-top: 40px; }
.legal-content h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.legal-content h3 {
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.legal-content p { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content ul { margin: 16px 0 0; padding-left: 0; list-style: none; }
.legal-content li {
  position: relative;
  margin-top: 10px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--terracotta);
}
.legal-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--terracotta-dark); }

.legal-callout {
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--terracotta);
  background: var(--cream);
}
.legal-callout p { margin-top: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }

.legal-contact { margin-top: 20px; }
.legal-contact li { display: grid; gap: 2px; padding-left: 0; }
.legal-contact li::before { display: none; }
.legal-contact li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-contact .mono { color: var(--muted-3); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.legal-contact span:last-child { color: var(--ink); font-size: 15px; }

.legal-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-3);
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .legal-hero { padding: 88px 0 56px; }
  .legal-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 72px; padding-top: 64px; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* ==========================================================================
   Hero note (text card)
   ========================================================================== */
.hero-note { max-width: 216px; }
.hero-note .hero-note-sub {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(249, 244, 236, .16);
  color: rgba(249, 244, 236, .62);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ==========================================================================
   06 · Registration / apply
   ========================================================================== */
.section.apply { background: var(--paper-deep); }

.apply-grid { display: grid; gap: 40px; margin-top: 48px; }

.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.apply-step {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid var(--line-2);
}
.apply-step:last-child { border-bottom: 1px solid var(--line-2); }
.apply-step-num {
  display: block;
  color: var(--terracotta);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.apply-step h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.apply-step > p { margin-top: 14px; max-width: 54ch; color: var(--muted); font-size: 15px; line-height: 1.7; }

.apply-download { margin-top: 24px; }
.apply-filemeta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-3);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.apply-filemeta .icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }

.apply-docs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.apply-docs li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.apply-docs li:first-child { border-top: 1px dashed var(--line); }
.apply-docs li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--terracotta);
  border-radius: 2px;
}

.apply-send { margin-top: 20px; border: 1px solid var(--line-2); background: var(--cream); }
.apply-send-row { display: grid; gap: 4px; padding: 14px 18px; }
.apply-send-row + .apply-send-row { border-top: 1px solid var(--line); }
.apply-send-row .mono { color: var(--muted-3); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }
.apply-send-row a { color: var(--terracotta); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.apply-send-row a:hover { color: var(--terracotta-dark); }
.apply-subject { color: var(--ink); font-size: 15px; }

.btn-ghost { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.apply-mail { margin-top: 20px; }

.apply-aside { display: grid; gap: 20px; align-content: start; }
.apply-note { padding: 28px; border: 1px solid var(--line-2); background: #a84f3117; border:dotted;border-width: 2px; border-color: #a84f3149 }
.apply-note .icon { width: 20px; height: 20px; color: var(--terracotta); }
.apply-note h3 { margin-top: 16px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.apply-note p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.apply-note a:not(.underline-link) { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.apply-note .underline-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }
.apply-note .underline-link .icon { width: 14px; height: 14px; color: currentColor; }
.apply-note-quiet { background: transparent; border-style: dashed; }
.apply-note-quiet h3 { margin-top: 0; font-size: 1.1rem; }
.apply-note-quiet p { font-size: 13.5px; }

/* Registration prompt inside the enquiry success panel */
.success-next {
  width: 100%;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-success .success-next-label {
  max-width: none;
  margin-top: 0;
  color: var(--muted-3);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.success-next .btn { margin-top: 14px; }
.form-success .success-next-note { max-width: 30rem; margin: 16px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.success-next-note a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.success-next .underline-link { display: inline; margin: 0; font-size: 13px; }

@media (min-width: 640px) {
  .apply-step { padding: 40px 0; }
  .apply-docs { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
  .apply-docs li:nth-child(2) { border-top: 1px dashed var(--line); }
}
@media (min-width: 1024px) {
  .apply-grid { grid-template-columns: 1.55fr 1fr; gap: 72px; margin-top: 64px; }
  .apply-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.legal-updated-sep { margin: 0 8px; color: var(--line-2); }
.apply-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.apply-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .apply-actions .btn { flex: 0 0 auto; } }
