/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #f7ede8;
  --bg2:       #f0e4de;
  --surface:   #ede0d9;
  --surface2:  #e6d5cc;
  --border:    #d9c5bc;
  --accent:    #1a1a1a;
  --accent2:   #3d3d3d;
  --gold:      #b89070;
  --text:      #1a1a1a;
  --muted:     #8a7a74;
  --white:     #fdf8f5;
  --pink:      #f2ddd5;
  --nav-h:     72px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* hide old custom cursor elements */
.cursor-dot, .cursor-ring { display: none !important; }

/* ─── SCROLL PROGRESS ────────────────────────────────────── */
.scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 9997;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width .08s linear;
}

/* ─── PAGE TRANSITION ────────────────────────────────────── */
.page-transition {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-transition.enter {
  animation: curtainIn .5s var(--ease) forwards;
}
.page-transition.exit {
  transform-origin: top;
  animation: curtainOut .5s var(--ease) forwards;
}
@keyframes curtainIn  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes curtainOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: transparent;
  transition: background .4s var(--ease);
}
nav.scrolled {
  background: rgba(247, 237, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 44px; align-items: center;
}
.nav-links a {
  font-size: 20px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .3s;
  font-weight: 400;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%; right: 50%;
  height: 1px; background: var(--gold);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.nav-links a:hover  { color: var(--accent); }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { left: 0; right: 0; }

/* burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
  border-radius: 4px;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(184, 144, 112, 0.1); }
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--accent);
  transition: transform .35s var(--ease), opacity .3s, width .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
  padding: 0 24px;
}
.mobile-menu::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(247,237,232,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300;
  color: var(--accent); letter-spacing: .06em;
  position: relative;
  transition: color .3s;
  padding: 12px 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .4s var(--ease);
}
.mobile-menu a:hover::after { clip-path: inset(0 0% 0 0); }

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 1000;
  transition: color .2s;
}
.mobile-menu-close:hover { color: var(--gold); }

/* ─── PAGE WRAPPER ───────────────────────────────────────── */
.page {
  padding: calc(var(--nav-h) + 72px) 52px 100px;
  min-height: 100vh;
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header { margin-bottom: 72px; position: relative; }
.section-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateX(-20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.section-eyebrow.visible { opacity: 1; transform: translateX(0); }
.section-eyebrow::before {
  content: ''; width: 36px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--accent); margin-bottom: 24px;
  overflow: hidden;
}
.section-title-inner {
  display: block;
  transform: translateY(100%);
  transition: transform .9s var(--ease);
}
.section-title.visible .section-title-inner { transform: translateY(0); }
.section-subtitle {
  font-size: .95rem; color: var(--muted);
  max-width: 520px; line-height: 1.85;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s;
}
.section-subtitle.visible { opacity: 1; transform: translateY(0); }

/* ─── PROJECT GRID ───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3px;
}
.project-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  cursor: pointer;
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity .75s var(--ease), transform .75s var(--ease),
              box-shadow .4s;
}
.project-card.visible {
  opacity: 1; transform: translateY(0) scale(1);
}
.project-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  z-index: 2;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s;
  filter: saturate(0.85);
}
.project-card:hover img { transform: scale(1.07); filter: saturate(1); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,26,26,.75) 0%,
    rgba(26,26,26,.05) 55%,
    transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  transition: background .4s;
}
.project-card:hover .project-overlay {
  background: linear-gradient(to top,
    rgba(26,26,26,.85) 0%,
    rgba(26,26,26,.2) 55%,
    transparent 100%);
}
.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: .75rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgb(228, 194, 0);
  margin-bottom: 8px;
  font-weight: 300;
}
.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: #fdf8f5; margin-bottom: 6px;
  transform: translateY(10px);
  transition: transform .45s var(--ease);
}
.project-card:hover .project-name { transform: translateY(0); }
.project-loc {
  font-size: .72rem; color: rgba(253,248,245,.6);
  letter-spacing: .06em;
  transform: translateY(10px); opacity: 0;
  transition: transform .45s var(--ease) .06s, opacity .45s .06s;
}
.project-card:hover .project-loc { transform: translateY(0); opacity: 1; }
.project-link-btn {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px;
  background: rgba(253,248,245,.1);
  border: 1px solid rgba(253,248,245,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7) rotate(-45deg);
  transition: opacity .35s, transform .35s var(--ease-back), background .3s;
}
.project-card:hover .project-link-btn {
  opacity: 1; transform: scale(1) rotate(0deg);
}
.project-link-btn:hover { background: var(--gold); border-color: var(--gold); }
.project-link-btn svg { width: 14px; height: 14px; stroke: #fdf8f5; fill: none; stroke-width: 1.5; }

/* ─── CURRENCY SELECTOR ──────────────────────────────────── */
.currency-selector {
  position: static;
  margin-left: auto;
  z-index: 1;
  pointer-events: auto;
}
.currency-selector select {
  position: relative;
  z-index: 1003;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  min-width: 140px;
}
.currency-selector select:hover,
.currency-selector select:focus {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.currency-selector select:focus {
  outline: none;
  border-color: var(--gold);
}
.img-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.img-placeholder svg { opacity: .25; }
.img-placeholder span {
  font-family: 'DM Mono', monospace;
  font-size: .55rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); opacity: .5;
}

/* ─── COURSES ────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 24px;
  width: 100%;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease),
              border-color .3s, box-shadow .4s;
}
.course-card.visible { opacity: 1; transform: translateY(0); }
.course-card:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  transform: translateY(-6px);
}
.course-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--surface);
}
.course-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s;
  filter: saturate(.85);
}
.course-card:hover .course-img img { transform: scale(1.06); filter: saturate(1); }
.course-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 12px;
}
.course-body {
  padding: 26px; display: flex; flex-direction: column; flex: 1;
}
.course-platform {
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.course-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 300;
  color: var(--accent); line-height: 1.3;
  margin-bottom: 18px; flex: 0;
}
.course-desc {
  margin-bottom: 20px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--muted);
}
.course-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.course-price {
  display: flex; align-items: baseline; gap: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 300; color: var(--accent);
}
.course-price-old {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  opacity: .85;
}
.course-price-new {
  font-size: 1.7rem;
  font-weight: 400;
}
.course-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: .72rem; color: var(--muted);
}
.course-rating .stars { color: var(--gold); letter-spacing: 1px; font-size: .85rem; }
.btn-course {
  display: block; text-align: center;
  padding: 13px 24px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s, color .3s, letter-spacing .3s;
  position: relative; overflow: hidden;
  cursor: pointer;
  background: none;
}
.btn-course::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
  z-index: 0;
}
.btn-course:hover::before { transform: scaleX(1); }
.btn-course span { position: relative; z-index: 1; transition: color .35s; }
.btn-course:hover span { color: var(--white); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  padding: 15px 36px;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: inline-block; position: relative; overflow: hidden;
  transition: transform .25s var(--ease);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease); z-index: 0;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  padding: 15px 36px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; cursor: pointer;
  display: inline-block;
  transition: background .3s, color .3s, transform .25s;
}
.btn-outline:hover {
  background: var(--accent); color: var(--white);
  transform: translateY(-2px);
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 52px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  background: var(--bg2);
}

/* ─── PAYMENT MODAL ─────────────────────────────────────── */
.payment-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  z-index: 10050; padding: 28px;
}
.payment-modal.open { display: flex; }
.pm-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.pm-dialog {
  position: relative; width: min(980px, 96%); background: var(--white); border-radius: 8px;
  padding: 28px; z-index: 2; box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.pm-close { position: absolute; right: 12px; top: 8px; background: none; border: none; font-size: 22px; cursor: pointer; }
.pm-content { display: flex; gap: 24px; margin-top: 10px; }
.pm-column { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pm-column img { max-width: 260px; width: 100%; height: auto; border: 1px solid var(--border); background: var(--surface); }
.pm-details { background: #f8f6f4; padding: 12px; width: 100%; border-radius: 6px; white-space: pre-line; }
.pm-note { color: var(--muted); font-size: .9rem; }
.pm-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.pm-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease;
  pointer-events: auto;
}
.pm-actions .btn-details {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.pm-actions .btn-whatsapp {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid transparent;
}
.pm-actions a:hover { transform: translateY(-2px); }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; letter-spacing: .14em;
  color: var(--muted); font-weight: 300;
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: .65rem; letter-spacing: .14em; color: var(--muted);
}
.footer-social { display: flex; gap: 22px; }
.footer-social a {
  font-family: 'DM Mono', monospace;
  font-size: .65rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.footer-social a:hover { color: var(--accent); }
.footer-social-icons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: transform .25s var(--ease), color .25s ease, border-color .25s ease, background .25s ease;
}
.footer-social-icon:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--white);
}
.footer-social-icon img {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger > * { opacity: 0; transform: translateY(30px); }
.stagger > *.visible { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .1s; }
.stagger > *:nth-child(3) { transition-delay: .2s; }
.stagger > *:nth-child(4) { transition-delay: .3s; }
.stagger > *:nth-child(5) { transition-delay: .4s; }
.stagger > *:nth-child(6) { transition-delay: .5s; }

.reveal-text {
  overflow: hidden; display: inline-block;
}
.reveal-text span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .85s var(--ease);
}
.reveal-text.visible span { transform: translateY(0); }

.stat-ring {
  position: relative; width: 90px; height: 90px;
}
.stat-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.stat-ring circle.track { fill: none; stroke: var(--border); stroke-width: 2; }
.stat-ring circle.fill  {
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-dasharray: 251; stroke-dashoffset: 251;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.stat-ring .stat-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ══ HOME PAGE ════════════════════════════════════════════════
   Two-column layout: left = content, right = photo.
   The decorative big title sits at bottom, pointer-events: none,
   so it never blocks clicks and never causes layout overlap.
   ══════════════════════════════════════════════════════════ */
#home-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg);
}

/* ── LEFT COLUMN ── */
.home-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;      /* anchor content to top */
  padding: 28px 48px 120px 52px;   /* tighter top so content sits higher */
  overflow: hidden;
  background: var(--bg);
  z-index: 2;
}

/* background texture */
.home-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url("assets/bg.png") no-repeat center/cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* ── EYEBROW (the "Architect & Designer" label) ── */
.home-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: clamp(14px, 2vw, 22px);   /* responsive, never huge */
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;                  /* fixed gap, not 300px */
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s;
  position: relative;
  z-index: 2;
}
.home-eyebrow.visible { opacity: 1; transform: translateX(0); }
.home-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── HEADLINE WRAPPER ── */
.home-headline {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ── DESCRIPTION ── */
.home-description {
  font-style: italic;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.85;
  max-width: 560px;
  margin-top: 0;
  margin-bottom: 40px;
}
.home-description p { margin-bottom: 1rem; }
.home-description p:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.home-btns {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease) .6s, transform .7s var(--ease) .6s;
  margin-top: 0;
}
.home-btns.visible { opacity: 1; transform: translateY(0); }

/* ── BIG DECORATIVE BACKGROUND TITLE ──
   Sits at the very bottom of the section, centred horizontally.
   Uses pointer-events: none so it never blocks any clicks.
   overflow: hidden on #home-page clips it cleanly.
   ── */
.home-bg-title {
  position: absolute;
  bottom: 0.2em;               /* lifted slightly above the very bottom */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.06em;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 10vw, 13rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 3;                  /* above both columns */
  -webkit-font-smoothing: antialiased;
}
.home-bg-title span:first-child {
  color: var(--accent);
  opacity: .9;
}
.home-bg-title span:last-child {
  color: var(--gold);
  opacity: .9;
}

/* ── RIGHT COLUMN (photo) ── */
.home-right {
  position: relative;
  background: rgba(242, 221, 213, 0.18);
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-right::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(242, 221, 213, 0.08),
    rgba(242, 221, 213, 0.55));
  z-index: 1;
  pointer-events: none;
}

/* Portrait fills the column */
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
  z-index: 2;
}
.portrait-img.visible { opacity: 1; }

/* Dot grid decoration */
.dot-grid {
  position: absolute; top: 32px; right: 28px; z-index: 3;
  display: grid; grid-template-columns: repeat(6, 8px); gap: 8px;
  opacity: 0;
  transition: opacity .8s var(--ease) 1s;
}
.dot-grid.visible { opacity: .35; }
.dot-grid span {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); display: block;
}

/* Stats bar */
.home-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  display: flex; background: rgba(247,237,232,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.home-stat {
  flex: 1; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.home-stat:last-child { border-right: none; }
.home-stat.visible { opacity: 1; transform: translateY(0); }
.home-stat:nth-child(1) { transition-delay: 1.1s; }
.home-stat:nth-child(2) { transition-delay: 1.25s; }
.home-stat:nth-child(3) { transition-delay: 1.4s; }
.home-stat:nth-child(4) { transition-delay: 1.55s; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 300;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

/* Leftover selectors from original (kept for compatibility) */
.home-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--accent);
  overflow: hidden;
  margin-bottom: 0;
}
.home-name .line { display: block; overflow: hidden; }
.home-name .line span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.home-name.visible .line:nth-child(1) span { transform: translateY(0); transition-delay: .65s; }
.home-name.visible .line:nth-child(2) span { transform: translateY(0); transition-delay: .78s; }
.home-name .line em { font-style: italic; color: var(--gold); }

.home-tagline {
  font-family: 'DM Mono', monospace;
  font-size: .75rem; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transition: opacity .7s var(--ease) .95s;
}
.home-tagline.visible { opacity: 1; }

.home-bio {
  font-size: .95rem; color: var(--muted);
  line-height: 1.9; max-width: 400px; margin-bottom: 40px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) 1.05s, transform .7s var(--ease) 1.05s;
}
.home-bio.visible { opacity: 1; transform: translateY(0); }

.sketch-box {
  width: 100%; max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  opacity: 0; transform: scale(.96);
  transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s;
}
.sketch-box.visible { opacity: 1; transform: scale(1); }
.sketch-box svg { opacity: .15; }
.sketch-box-label {
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase; opacity: .6;
}
.sketch-box::before, .sketch-box::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
}
.sketch-box::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.sketch-box::after  { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Slightly shrink nav font on mid-size screens */
  .nav-links a { font-size: 16px; }
  .nav-links { gap: 28px; }
}

@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }

  /* Single-column on tablet/mobile */
  #home-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Photo goes on top */
  .home-right {
    order: -1;
    height: 60vw;
    min-height: 280px;
    max-height: 480px;
  }

  .home-left {
    padding: 48px 32px 100px;
    justify-content: flex-start;
  }

  /* Hide big decorative title on small screens — it causes overlap */
  .home-bg-title {
    display: none;
  }

  .home-eyebrow {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .home-description {
    font-size: .95rem;
    margin-bottom: 32px;
  }

  .page { padding: calc(var(--nav-h) + 40px) 24px 60px; }
  .section-header { margin-bottom: 60px; }
  .section-header-top { align-items: center; justify-content: space-between; }
  .section-eyebrow { font-size: 24px; margin-bottom: 0; }
  .section-title { font-size: clamp(2.5rem, 6vw, 4rem); }
  .section-subtitle { font-size: .95rem; }

  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card { aspect-ratio: 4/3; }
  .project-overlay { padding: 24px; }
  .project-name { font-size: 1.5rem; }
  .project-tag { font-size: .55rem; }
  .project-loc { font-size: .7rem; }

  .courses-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-card { border-radius: 8px; }
  .course-body { padding: 22px; }
  .course-name { font-size: 1.3rem; margin-bottom: 16px; }
  .course-meta { margin-bottom: 18px; padding-bottom: 16px; }
  .course-price { font-size: 1.6rem; }

  footer { padding: 40px 24px; flex-direction: column; text-align: center; gap: 20px; }

  .currency-selector {
    position: static; margin: 20px 0; width: 100%;
    display: flex; justify-content: center; pointer-events: auto;
  }
  .currency-selector select {
    padding: 12px 16px; font-size: .8rem;
    min-width: 120px; min-height: 44px;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b89070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px; padding-right: 32px;
  }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .nav-logo { font-size: 1rem; }

  .btn-group { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline {
    text-align: center; width: 100%; padding: 14px 20px;
  }

  .home-left { padding: 40px 20px 80px; }
  .home-eyebrow { font-size: 15px; margin-bottom: 16px; }
  .home-description { font-size: .88rem; margin-bottom: 28px; }

  .home-right { height: 70vw; min-height: 240px; }

  .page { padding: calc(var(--nav-h) + 32px) 16px 48px; }
  .section-header { margin-bottom: 48px; }
  .section-eyebrow { font-size: 20px; }
  .section-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .section-subtitle { font-size: .9rem; }

  .projects-grid { gap: 12px; }
  .project-card { aspect-ratio: 5/4; }
  .project-overlay { padding: 20px; }
  .project-name { font-size: 1.4rem; }
  .project-tag { font-size: .5rem; }
  .project-loc { font-size: .65rem; }

  .courses-grid { gap: 16px; }
  .course-body { padding: 20px; }
  .course-name { font-size: 1.2rem; }
  .course-price { font-size: 1.5rem; }
  .course-rating { font-size: .68rem; }

  footer { padding: 32px 16px; gap: 16px; }
  .footer-logo { font-size: 1.1rem; }
  .footer-copy { font-size: .85rem; }
  .footer-social { gap: 20px; }

  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: .55rem; }
}
