/* ─────────────────────────────────────────────────────────────
   Ashapura Homes — Main Stylesheet
   Design: Asian Paints-inspired — clean, white, image-first
   Generated by Django static site build; served at /static/
───────────────────────────────────────────────────────────── */

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

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --accent:      #D84A14;
  --accent-dark: #B03A0E;
  --accent-lt:   #F5E8E2;
  --white:       #FFFFFF;
  --bg-warm:     #F9F5F0;
  --text:        #1C1C1C;
  --muted:       #6B6B6B;
  --border:      #E8E0D8;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.12);
  --radius:      6px;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --ease:        0.3s ease;
  --max:         1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul     { list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

[hidden] { display: none !important; }
section[id] { scroll-margin-top: 88px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 600; padding: 12px 20px; background: var(--white); color: var(--text); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
body[data-animations="true"] .is-revealed { animation: revealIn .65s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms) backwards; }
@keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reading-progress { height: 3px; background: linear-gradient(90deg, var(--accent), #edb174); transform: scaleX(0); transform-origin: left; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: white; border-radius: 50%; box-shadow: var(--shadow-md); font-size: 1.4rem; transition: background var(--ease), transform var(--ease); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-4px); }

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section--warm { background: var(--bg-warm); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  transition: var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(216,74,20,.3); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ═══════════════ NAV ═══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.nav__logo-main { font-family: var(--font-head); font-size: 1.42rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; white-space: nowrap; }
.nav__logo-sub  { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__links     { display: flex; align-items: center; gap: 36px; }
.nav__links a   { font-size: .88rem; font-weight: 500; transition: color var(--ease); }
.nav__links a:hover { color: var(--accent); }
.nav__cta { background: var(--accent) !important; color: #fff !important; padding: 10px 22px; border-radius: var(--radius); }
.nav__cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--ease); }

/* ═══════════════ HERO ══════════════════════════════════════ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.03); }
body[data-animations="true"] .hero__bg { animation: heroKenBurns 1.5s ease-out both; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,10,0,.72) 0%, rgba(28,10,0,.45) 50%, rgba(0,0,0,.2) 100%); }
.hero__content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 100px 24px 80px; width: 100%; }
body[data-animations="true"] .hero__content > * { animation: heroContentIn .8s ease-out backwards; }
body[data-animations="true"] .hero__title { animation-delay: .1s; }
body[data-animations="true"] .hero__sub { animation-delay: .2s; }
body[data-animations="true"] .hero__actions { animation-delay: .3s; }
.hero__eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.hero__title { font-family: var(--font-head); font-size: clamp(3rem, 7vw, 6rem); font-weight: 300; line-height: 1.08; color: #fff; margin-bottom: 20px; }
.hero__sub { font-size: .95rem; color: rgba(255,255,255,.75); letter-spacing: .12em; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,.3); }
body[data-animations="true"] .hero__scroll-line { animation: pulse 1.5s ease-in-out 2; }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:.8} }
@keyframes heroKenBurns { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes heroContentIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════ EXPERTISE ═════════════════════════════════ */
.expertise__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.expertise-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: transform var(--ease), box-shadow var(--ease); }
.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.expertise-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.expertise-card__badge { position: absolute; left: 18px; bottom: 16px; padding: 5px 12px; color: #fff; background: rgba(28,28,28,.76); border-radius: 100px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.expertise-card__concept { min-height: 150px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; background: linear-gradient(120deg, #f3e5d6, #fbf8f3); border-bottom: 1px solid var(--border); color: #794a2e; }
.expertise-card__concept-icon { font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-dark); }
.expertise-card__concept-icon svg { width: 34px; height: 34px; display: block; }
.expertise-card__concept small { font-size: .75rem; color: var(--muted); }
.expertise-card__link { display: inline-flex; gap: 12px; align-items: center; margin-top: 20px; font-size: .8rem; font-weight: 600; color: var(--accent-dark); }
.expertise-card__link span { transition: transform var(--ease); }
.expertise-card__link:hover span { transform: translateX(4px); }
.expertise-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; background: var(--accent-lt); transition: transform .55s ease, filter .55s ease; }
.expertise-card:hover .expertise-card__img-wrap img { filter: saturate(1.08) contrast(1.04); }
.expertise-card:hover .expertise-card__img-wrap img { transform: scale(1.05); }
.expertise-card__body { padding: 24px; }
.expertise-card__icon { font-size: 1.6rem; margin-bottom: 10px; }
.expertise-card__body h3 { font-family: var(--font-head); font-size: 1.65rem; font-weight: 600; margin-bottom: 10px; }
.expertise-card__body p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════ PORTFOLIO ═════════════════════════════════ */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.project-card { min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 100px; }
.project-card__summary { list-style: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.project-card__summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.project-card__cover, .project-card__placeholder { width: 100%; aspect-ratio: 8/5; height: auto; object-fit: cover; background: var(--accent-lt); }
.project-card__placeholder { display: flex; align-items: center; justify-content: center; padding: 32px; color: var(--accent-dark); font-family: var(--font-head); font-size: 1.8rem; text-align: center; }
.project-card__intro { display: flex; flex-direction: column; padding: 24px; }
.project-card__eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.project-card__title { font-family: var(--font-head); font-size: 2rem; line-height: 1.3; margin: 8px 0 16px; }
.project-card__action { display: flex; justify-content: space-between; color: var(--accent-dark); font-size: .85rem; font-weight: 600; }
.project-card__summary:hover .project-card__action { color: var(--text); }
.project-card__body { padding: 32px; border-top: 1px solid var(--border); }
.project-card__body h3 { font-family: var(--font-head); font-size: 2rem; }
.project-card__description { color: var(--muted); margin: 8px 0 24px; max-width: 700px; }
.project-card__rooms { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.project-card__rooms a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; font-size: .8rem; }
.project-card__rooms a:hover { color: var(--accent-dark); border-color: var(--accent); }
.project-card__rooms span { color: var(--muted); }
.project-room + .project-room { margin-top: 36px; }
.project-room__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.project-room__heading h2 { font-family: var(--font-head); font-size: 1.7rem; }
.project-room__heading span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.project-card__empty { padding: 24px; background: var(--bg-warm); border-radius: var(--radius); color: var(--muted); }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card__body { padding: 20px; }
  .project-card__title { font-size: 1.8rem; }
}

.portfolio__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.portfolio-item { display: block; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--accent-lt); }
.portfolio__status { margin-top: 28px; text-align: center; color: var(--muted); font-size: .8rem; }
.portfolio-item.hidden { display: none; }
.portfolio-item--wide { grid-column: span 2; }
.portfolio-item__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.portfolio-item--wide .portfolio-item__img-wrap { aspect-ratio: 16/9; }
.portfolio-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; background: var(--accent-lt); transition: transform .55s ease, filter .55s ease; }
.portfolio-item:hover .portfolio-item__img-wrap img { transform: scale(1.06); }
.portfolio-item:hover .portfolio-item__img-wrap img { filter: saturate(1.08) contrast(1.04); }
.portfolio-item__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,4,2,.85) 0%, transparent 65%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 1; transition: background var(--ease); }
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__cat   { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffc9a9; margin-bottom: 4px; }
.portfolio-item__title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.portfolio-item__loc   { font-size: .78rem; color: rgba(255,255,255,.65); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(10,4,2,.95); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
body[data-animations="true"] .lightbox.open .lightbox__inner { animation: revealIn .25s ease-out; }
.lightbox__inner { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox__inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { margin-top: 12px; color: rgba(255,255,255,.65); font-size: .88rem; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: fixed; background: rgba(255,255,255,.1); color: #fff; font-size: 1.5rem; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; transition: background var(--ease); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--accent); }
.lightbox__close { top: 24px; right: 24px; font-size: 1.8rem; }
.lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* ═══════════════ PROCESS ═══════════════════════════════════ */
.process__steps { display: flex; align-items: flex-start; }
.process-step { flex: 1; text-align: center; padding: 0 32px; }
.process-step__num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin: 0 auto 20px; }
.process-step__body h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.process-step__body p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.process-step__divider { width: 1px; height: 56px; background: var(--border); align-self: flex-start; flex-shrink: 0; }

/* ═══════════════ STATS ════════════════════════════════════ */
.stats-band { background: var(--accent); padding: 48px 0; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat__num   { display: block; font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat__label { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ═══════════════ ABOUT ════════════════════════════════════ */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.prose { color: var(--muted); line-height: 1.8; }
.prose h2, .prose h3 { font-family: var(--font-head); color: var(--text); font-weight: 600; margin: 1.5em 0 .5em; }
.prose p  { margin-bottom: 1em; }
.prose ul { padding-left: 1.4em; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.2em; margin: 1.5em 0; font-style: italic; color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ═══════════════ CONTACT ══════════════════════════════════ */
.contact__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact__intro { color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.contact__details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact__details li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.contact__icon { font-size: 1.2rem; }
.contact__details a { color: var(--accent); transition: color var(--ease); }
.contact__details a:hover { color: var(--accent-dark); }
.contact__social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--border); color: var(--text); font-size: 1rem; transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease); }
.social-btn:hover { border-color: var(--accent); background: var(--white); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.social-btn:focus-visible { outline: 3px solid rgba(216,74,20,.24); outline-offset: 3px; }
.contact__form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: .9rem; color: var(--text); background: var(--white); transition: border-color var(--ease); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }

/* ═══════════════ FOOTER ═══════════════════════════════════ */
.footer { background: #111; padding: 48px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.footer__logo { font-family: var(--font-head); font-size: 1.4rem; color: #fff; display: block; margin-bottom: 8px; }
.footer__brand p { font-size: .85rem; color: rgba(255,255,255,.45); }
/* Footer tagline mirrors the nav lockup: uppercase, letterspaced, small. */
.footer__brand .footer__tagline { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 2px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; max-width: 360px; justify-content: flex-end; }
.social-btn--footer { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.65); background: rgba(255,255,255,.04); }
.social-btn--footer:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.1); color: #fff; }
.footer__copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.3); text-align: center; }

body[data-animations="false"] *, body[data-animations="false"] *::before, body[data-animations="false"] *::after { animation: none !important; transition: none !important; }
html:has(body[data-animations="false"]) { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ═══════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-item--wide { grid-column: span 2; }
  .process__steps { flex-direction: column; align-items: center; gap: 32px; }
  .process-step__divider { width: 40px; height: 1px; rotate: 90deg; align-self: center; }
  .stats-band__grid { grid-template-columns: repeat(2,1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__inner   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(12px); flex-direction: column; gap: 0; padding: 16px 0 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 28px; font-size: 1rem; }
  .nav__cta { margin: 8px 28px 0 !important; text-align: center; border-radius: var(--radius); padding: 12px !important; }
  .nav__toggle { display: flex; }
  .expertise__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio-item--wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 20px; }
  .footer__social { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero { height: auto; min-height: 100svh; }
  .hero__actions .btn { white-space: normal; }
}

.nav__links { gap: 24px; }
.nav__links a[aria-current="page"]:not(.nav__cta) { color: var(--accent-dark); box-shadow: 0 2px var(--accent); padding-bottom: 6px; }
.footer__links a[aria-current="page"] { color: #ffc9a9; }
.page-heading { padding: 148px 0 64px; background: var(--bg-warm); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-heading::after { content: ''; position: absolute; width: 400px; height: 400px; right: -120px; top: -160px; border: 1px solid var(--border); transform: rotate(35deg); pointer-events: none; }
.page-heading h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.5rem); max-width: 850px; line-height: 1.06; margin-bottom: 24px; text-wrap: balance; }
.page-heading p:not(.section-eyebrow) { max-width: 700px; color: var(--muted); }
body[data-animations="true"] .page-heading .container { animation: revealIn .65s ease-out both; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.project-pages { display: flex; gap: 8px; overflow-x: auto; padding: 28px 5px; }
.project-pages a { flex-shrink: 0; border: 1px solid var(--border); padding: 10px 24px; border-radius: 100px; font-size: .85rem; transition: background var(--ease), color var(--ease); }
.project-pages a[aria-current="page"], .project-pages a:hover { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.project-cover { position: relative; margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; background: var(--accent-lt); }
.project-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.project-cover span { position: absolute; bottom: 20px; left: 20px; background: rgba(28,28,28,.8); color: white; padding: 8px 16px; border-radius: 3px; font-size: .7rem; letter-spacing: .1em; }
.project-gallery { padding: 12px 0 48px; }
.project-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px 0 48px; font-size: .9rem; color: var(--accent-dark); border-top: 1px solid var(--border); }
.project-card { display: block; transition: box-shadow var(--ease), transform var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.section-action { text-align: center; margin-top: 36px; }
.home-paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-path { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding: 28px 8px; transition: border-color var(--ease); }
.home-path:hover { border-color: var(--accent); }
.home-path__number { font-size: .7rem; letter-spacing: .14em; color: var(--accent-dark); }
.home-path h3 { font-family: var(--font-head); font-size: 2rem; font-weight: 500; margin: 20px 0 8px; }
.home-path p { color: var(--muted); margin-bottom: 24px; }
.home-path__action { margin-top: auto; font-size: .9rem; font-weight: 500; }
.next-step { background: var(--bg-warm); border-top: 1px solid var(--border); }
.next-step__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.next-step .section-title { margin-bottom: 0; }
.hero { height: auto; min-height: 100svh; }
.hero__layout { width: 100%; max-width: var(--max); margin: 0 auto; padding: 140px 24px 80px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.hero__layout .hero__content { padding: 0; min-width: 0; }
.hero__layout .hero__title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.hero__layout .hero__actions { flex-wrap: wrap; }
.hero__overlay { background: linear-gradient(110deg, rgba(23,26,23,.92), rgba(23,26,23,.65)); }
.hero__scroll-hint { display: none; }
.house-scene { min-width: 0; color: #efe2cf; background: linear-gradient(145deg, #25322e, #182520); border: 1px solid #6b7160; border-radius: 12px; box-shadow: 0 30px 70px #0005; overflow: hidden; }
.house-scene__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 24px 0; font-size: .6rem; letter-spacing: .15em; color: #d3c4aa; }
.house-scene__edition { color: #a4b09f; }
.house-scene__drawing { width: 100%; height: auto; display: block; }
.house-scene__caption { padding: 0 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; line-height: 1.35; font-family: var(--font-head); font-size: 1.5rem; }
.house-scene__caption strong { font-weight: 500; color: #edbe8e; }
.house-scene__replay { font-family: var(--font-body); flex-shrink: 0; color: #f4e3c9; border: 1px solid #84917e; border-radius: 100px; padding: 10px 13px; font-size: .7rem; }
.house-scene__replay:hover { background: #ffffff12; }
.house-scene__caption > span:first-child { min-height: 4.1em; }
.house-scene__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.house-scene__selectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 20px; gap: 6px; border-top: 1px solid #ffffff20; }
.house-scene__selectors button { padding: 12px 4px; color: #d3c4aa; font-size: .65rem; border-bottom: 2px solid transparent; border-radius: 4px; }
.house-scene__selectors button[aria-pressed="true"] { color: #ffe0af; border-color: #edbe8e; background: #ffffff0a; }
.house-scene button:focus-visible, .house-scene a:focus-visible { outline: 2px solid #ffe0af; outline-offset: 3px; }
.house-scene__note { padding: 0 24px 20px; color: #bac4b4; font-size: .65rem; line-height: 1.7; }
.house-scene__note a { display: block; color: #edbe8e; text-decoration: underline; text-underline-offset: 3px; }
.concept-panel { position: relative; }
.build-layer { transform-box: fill-box; transform-origin: center; }
body[data-animations="true"] .concept-panel.is-building .build-layer { animation: assembleHome .5s cubic-bezier(.16,1,.3,1) var(--build-delay) both; }
body[data-animations="true"] .concept-panel.is-building .blueprint-trace path { animation: traceHome 1.1s ease-out both; }
body[data-animations="true"] .concept-panel.is-building::after { content: ''; position: absolute; bottom: 0; left: 6%; width: 88%; height: 2px; background: #edbe8e; transform-origin: left; animation: conceptProgress var(--scene-duration, 6200ms) linear both; }
body[data-animations="true"] .concept-panel.is-paused .build-layer,
body[data-animations="true"] .concept-panel.is-paused .blueprint-trace path,
body[data-animations="true"] .concept-panel.is-paused::after { animation-play-state: paused; }

/* ── Subtle reveal animations ───────────────────────────────── */
.subtle-reveal__card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ease), transform var(--ease);
  will-change: opacity, transform;
}

body[data-animations="true"] .subtle-reveal__card {
  animation: revealIn .65s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms) backwards both;
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered delay for grid children */
.subtle-reveal__grid > *:nth-child(1) { --reveal-delay: 0ms; }
.subtle-reveal__grid > *:nth-child(2) { --reveal-delay: 100ms; }
.subtle-reveal__grid > *:nth-child(3) { --reveal-delay: 200ms; }
@keyframes conceptProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes assembleHome { from { opacity: 0; transform: translateY(var(--build-offset)); } to { opacity: 1; transform: translateY(0); } }
@keyframes traceHome { from { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; } to { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; } }
@media (max-width: 1000px) {
  .nav__links { gap: 16px; }
  .nav__logo-sub { max-width: 190px; letter-spacing: .1em; }
  .hero__layout { gap: 24px; }
  .hero__layout .btn { padding: 12px 20px; }
}
@media (max-width: 768px) {
  .nav__logo-main { font-size: 1.18rem; }
  .nav__logo-sub { font-size: .54rem; letter-spacing: .12em; }
  .hero__layout { grid-template-columns: minmax(0, 1fr); padding: 120px 24px 56px; gap: 40px; }
  .hero__layout .hero__title { font-size: clamp(2.8rem, 8vw, 4.4rem); }
  .house-scene { width: 100%; max-width: 540px; margin: 0 auto; }
  .home-paths__grid { grid-template-columns: minmax(0, 1fr); }
  .next-step__inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .page-heading { padding: 120px 0 48px; }
}
@media (max-width: 400px) {
  .house-scene__caption { flex-wrap: wrap; }
  .house-scene__selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-step .btn { padding: 14px 20px; white-space: normal; }
}

@media (max-width: 768px) {
  html:not(.js) .nav { position: relative; }
  html:not(.js) .nav__inner { height: auto; flex-wrap: wrap; padding: 16px 24px; }
  html:not(.js) .nav__links { display: flex; position: static; width: 100%; box-shadow: none; }
  html:not(.js) .nav__toggle { display: none; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
