/* ═══════════════════════════════════════════════════
   BRAND TOKENS — update these 12 lines per client
   ═══════════════════════════════════════════════════ */
:root {
  --primary:       #A52030;   /* Crimson — hero bg, dark sections */
  --primary-dark:  #8a1a28;   /* deeper crimson */
  --accent:        #0D6088;   /* Cerulean — labels, CTAs, highlights (sampled from logo; confirm with vector source) */
  --accent-hover:  #0a4f70;
  --cream:         #F5F2EE;   /* brand Cream — light section bg */
  --cream-alt:     #EBE7E1;
  --ink:           #111111;   /* brand Ink — near-black */
  --ink-mid:       #3a3a3a;
  --ink-light:     #6b6b6b;
  --border:        #D9D5CC;   /* Stone */
  --paper:         #FDFCFB;   /* warm near-white page base */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Be Vietnam Pro', system-ui, sans-serif;
  --max-w:         1100px;
  --max-w-narrow:  680px;
  --section-pad:   96px;
  /* RGB channels — update these when swapping brand colors above */
  --ink-rgb:       17, 17, 17;
  --accent-rgb:    13, 96, 136;
  --cream-rgb:     245, 242, 238;
  --ink-light-rgb: 107, 107, 107;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Nav ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(var(--ink-rgb), 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.nav--hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 38px; width: auto; border-radius: 3px; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(var(--cream-rgb), 0.35);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.lang-btn + .lang-btn { border-left: 1px solid rgba(var(--accent-rgb), 0.25); }
.lang-btn.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.lang-btn:hover:not(.active) { color: rgba(var(--cream-rgb), 0.65); }

/* ── Hero ────────────────────────────────────────── */

.hero {
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { text-align: center; position: relative; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.65);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1.0;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(var(--cream-rgb), 0.5);
  margin-bottom: 0;
}

.hero-sub {
  font-size: 16px;
  color: rgba(var(--cream-rgb), 0.75);
  max-width: 480px;
  margin: 28px auto 40px;
  line-height: 1.75;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: rgba(var(--ink-rgb), 0.8); transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(var(--cream-rgb), 0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout Utilities ────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: var(--max-w-narrow); }
.section          { padding: var(--section-pad) 24px; }
.section-alt      { background: var(--cream); }

.section-apply {
  background: var(--ink);
}

/* ── Section Typography ──────────────────────────── */

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-apply .section-label { color: var(--accent); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-apply .section-title { color: var(--cream); }

.section-body {
  font-size: 16px;
  color: var(--ink-mid);
  margin-bottom: 16px;
  max-width: 600px;
}

.section-apply .section-body { color: rgba(var(--cream-rgb), 0.65); }

/* ── Checklist ───────────────────────────────────── */

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.checklist li::before {
  content: '◆';
  color: var(--accent);
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 6px;
}

.checklist-req {
  gap: 48px;
  margin-top: 32px;
}

.checklist-req li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.checklist-req li::before { display: none; }

.req-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.req-head {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 8px;
}

.req-body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: rgba(var(--cream-rgb), 0.62);
  line-height: 1.75;
  margin: 0;
}

/* ── Requirements sticky layout ─────────────────── */

.section-dark {
  background: var(--ink);
}

.section-dark .section-title { color: var(--cream); }

.req-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.req-intro {
  position: sticky;
  top: calc(60px + 40px);
}

.req-intro-desc {
  font-size: 15px;
  color: rgba(var(--cream-rgb), 0.5);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 26ch;
}

.req-counter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 52px;
}

.req-counter-num {
  font-family: var(--font-serif);
  font-size: clamp(80px, 11vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  will-change: contents;
}

.req-counter-total {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(var(--cream-rgb), 0.25);
}

.req-item {
  border-top: 1px solid rgba(var(--cream-rgb), 0.07);
  padding-top: 32px;
}

.req-item:first-child { border-top: none; padding-top: 0; }

@media (max-width: 900px) {
  .req-layout { grid-template-columns: 1fr; }
  .req-intro   { position: static; }
  .req-counter { display: none; }
}

/* ── Gallery Carousel ────────────────────────────── */

.section-gallery {
  background: var(--ink);
  overflow: hidden;
  padding-bottom: 72px;
}

.section-gallery .section-label { color: var(--accent); }

.section-gallery .section-title {
  color: var(--cream);
  margin-bottom: 0;
}

.gallery-shelf {
  margin-top: clamp(32px, 5vh, 60px);
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  perspective: 1000px;
  perspective-origin: 50% 42%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 24px 4px 32px;
  cursor: grab;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.gallery-shelf::-webkit-scrollbar { display: none; }

.gallery-shelf.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gallery-shelf.is-dragging .photo-slot { pointer-events: none; }

.photo-depth {
  flex: 0 0 auto;
  scroll-snap-align: start;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateZ(-2400px);
}

.gallery-shelf.is-in .photo-depth {
  animation-name: photo-rush;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

@keyframes photo-rush {
  0%   { opacity: 0; transform: translateZ(-2400px); }
  55%  { opacity: 1; }
  82%  { transform: translateZ(46px); }
  100% { opacity: 1; transform: translateZ(0); }
}

.photo-slot {
  width: min(28vw, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(var(--cream-rgb), 0.06);
}

.photo-depth:nth-child(odd) .photo-slot  { transform: rotate(-1.6deg) translateY(10px); }
.photo-depth:nth-child(even) .photo-slot { transform: rotate(1.4deg); }
.photo-slot:hover                        { transform: rotate(0deg) translateY(-10px) scale(1.02); }

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery-scrub {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.scrub-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(var(--cream-rgb), 0.12);
  overflow: hidden;
}

.scrub-thumb {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.1s, left 0.1s;
}

.scrub-hint {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scrub-arrow-l, .scrub-arrow-r { color: var(--accent); }
.scrub-arrow-l { animation: nudge-l 1.6s ease-out infinite; }
.scrub-arrow-r { animation: nudge-r 1.6s ease-out infinite; }

@keyframes nudge-r {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

@keyframes nudge-l {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-5px); }
}

@media (max-width: 640px) {
  .photo-slot { width: min(56vw, 220px); }
  .scrub-hint { font-size: 0.6rem; letter-spacing: 0.13em; }

  .section.section-gallery { padding-left: 0; padding-right: 0; }
  .section-gallery .container { padding-left: 0; padding-right: 0; }

  .section-gallery .section-label,
  .section-gallery .section-title,
  .gallery-scrub {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-depth { opacity: 1; transform: none; animation: none !important; }
}

/* ── Good Fit / Not A Good Fit ───────────────────── */

.section-fit { background: var(--paper); }

.fit-header {
  text-align: center;
  margin-bottom: 48px;
}

.fit-header .section-title { font-size: clamp(26px, 4vw, 38px); }

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.fit-card { border-radius: 3px; padding: 40px 36px; }
.fit-card--yes { background: var(--ink); }
.fit-card--no  { background: var(--cream); border: 1px solid var(--border); }

.fit-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fit-card--no .fit-card-head { border-bottom-color: var(--border); }

.fit-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0; margin-top: 2px;
}

.fit-badge--yes { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.fit-badge--no  { background: rgba(var(--ink-light-rgb), 0.12); color: var(--ink-light); border: 1px solid rgba(var(--ink-light-rgb), 0.25); }

.fit-card-title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600; margin-bottom: 2px;
}

.fit-card--yes .fit-card-title { color: var(--cream); }
.fit-card--no  .fit-card-title { color: var(--ink-mid); }

.fit-card-title-en {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
}

.fit-card--yes .fit-card-title-en { color: rgba(var(--cream-rgb), 0.35); }
.fit-card--no  .fit-card-title-en { color: var(--ink-light); opacity: 0.6; }

.fit-list { list-style: none; display: flex; flex-direction: column; }

.fit-list li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px; line-height: 1.6;
}

.fit-card--no .fit-list li { border-bottom-color: var(--border); }
.fit-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fit-list li strong { font-weight: 600; font-size: 14px; }

.fit-card--yes .fit-list li strong { color: var(--cream); }
.fit-card--yes .fit-list li span   { color: rgba(var(--cream-rgb), 0.55); }
.fit-card--no  .fit-list li strong { color: var(--ink-mid); }
.fit-card--no  .fit-list li span   { color: var(--ink-light); }

@media (max-width: 640px) {
  .fit-grid { grid-template-columns: 1fr; }
  .fit-card { padding: 28px 24px; }
}

/* ── Benefits Grid ───────────────────────────────── */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.benefit-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 2px;
}

.benefit-icon { color: var(--accent); font-size: 14px; margin-bottom: 12px; }

.benefit-title {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
}

.benefit-desc { font-size: 14px; color: var(--ink-mid); line-height: 1.65; }

/* ── Apply Form ──────────────────────────────────── */

#applyForm {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 32px;
}

.field-group { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.5);
}

.req { color: var(--accent); }
.opt { color: rgba(var(--cream-rgb), 0.4); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: none; }

.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.25);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

.field-input::placeholder { color: rgba(var(--cream-rgb), 0.25); }
.field-input:focus        { border-bottom-color: var(--accent); }
.field-input.error        { border-bottom-color: #e05c3a; }

.field-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

.field-hint { font-size: 13px; color: rgba(var(--cream-rgb), 0.4); line-height: 1.5; }
.field-hint-note { margin-top: 6px; font-style: italic; }

.char-counter-wrap { display: flex; align-items: center; gap: 0; }

#charCount { color: rgba(var(--cream-rgb), 0.65); font-weight: 500; transition: color 0.2s; }
#charCount.met { color: #7bc47f; }

/* ── File Drop ───────────────────────────────────── */

.file-drop {
  position: relative;
  border: 1px dashed rgba(var(--cream-rgb), 0.25);
  border-radius: 2px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-drop:hover    { border-color: var(--accent); }
.file-drop.has-file { border-color: rgba(var(--accent-rgb), 0.6); }

.file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}

.file-drop-label {
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}

.file-drop-icon { font-size: 20px; color: var(--accent); }

.file-drop-text { font-size: 16px; color: rgba(var(--cream-rgb), 0.55); }
.file-drop.has-file .file-drop-text { color: var(--cream); }

/* ── Form States ─────────────────────────────────── */

.field-error {
  background: rgba(224, 92, 58, 0.12);
  border: 1px solid rgba(224, 92, 58, 0.35);
  color: #e89580;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 2px;
}

.btn-submit {
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none;
  padding: 16px 40px;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) { background: var(--accent-hover); }
.btn-submit:disabled              { opacity: 0.6; cursor: not-allowed; }

.form-success { margin-top: 40px; text-align: center; padding: 56px 0; }

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(123, 196, 127, 0.15);
  border: 1px solid rgba(123, 196, 127, 0.4);
  color: #7bc47f; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600; color: var(--cream); margin-bottom: 12px;
}

.success-body { font-size: 15px; color: rgba(var(--cream-rgb), 0.6); max-width: 400px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────── */

.footer {
  background: var(--ink);
  border-top: 1px solid rgba(var(--accent-rgb), 0.15);
  padding: 40px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.footer-logo   { height: 40px; width: auto; border-radius: 3px; opacity: 0.6; }
.footer-copy   { font-size: 12px; color: rgba(var(--cream-rgb), 0.25); letter-spacing: 0.04em; }
.footer-legal  { font-size: 10px; color: rgba(var(--cream-rgb), 0.45); letter-spacing: 0.04em; margin-top: -8px; }

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 600px) {
  :root { --section-pad: 64px; }

  .benefits-grid { grid-template-columns: 1fr; }
  .hero          { padding: 100px 20px 80px; }
  .container     { padding: 0 20px; }
  .section       { padding: var(--section-pad) 20px; }
}
