/* =========================================================
   IMAGER Real Estate Private Limited — Stylesheet
   Palette: Navy / Gold / Graphite
   Signature motif: gold "corner brace" (L-shaped framing mark)
   ========================================================= */

:root {
  --navy-900: #0c1a33;
  --navy-800: #0f1f3d;
  --navy-700: #14254a;
  --navy-600: #1c3155;
  --gold: #d4a33a;
  --gold-bright: #e0b352;
  --gold-deep: #b9882a;
  --gold-text: #8a6418; /* WCAG-AA gold for text on light backgrounds (>=4.5:1) */
  --graphite: #3a3f47;
  --ink: #16202e;
  --muted: #5a6473;
  --line: #e4e7ec;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef1f5;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(15, 31, 61, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 31, 61, 0.12);
  --shadow-lg: 0 28px 70px rgba(12, 26, 51, 0.22);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --brace: 26px; /* corner-brace size */
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.2px; }

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

/* ---------- Accessibility: skip link + focus ring ---------- */
.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%);
  z-index: 200; background: var(--navy-800); color: #fff; padding: 12px 22px;
  border-radius: 50px; font-size: 0.9rem; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline: 2px solid var(--gold); outline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Ring variant for elements inside overflow:hidden cards (outline would clip) */
.focus-card a:focus-visible,
.project-feature a:focus-visible,
.btn-gold:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold);
}

/* Signature corner-brace motif is drawn by element-specific pseudo-elements
   (.hero-tag, .director-card::before, .project-feature::before). */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 0.94rem;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 14px 26px; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 26px rgba(212, 163, 58, 0.32); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 14px 32px rgba(212, 163, 58, 0.42); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-600); box-shadow: var(--shadow-md); }

.btn-outline-navy { border-color: var(--navy-700); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn-ghost-light { color: rgba(255,255,255,0.85); border-color: transparent; }
.btn-ghost-light:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.btn-block { width: 100%; }

/* submit button states */
.btn-spinner { width: 0; height: 16px; }
.btn.is-loading { pointer-events: none; opacity: 0.92; }
.btn.is-loading .btn-spinner {
  width: 16px; border: 2px solid rgba(12,26,51,0.35); border-top-color: var(--navy-900);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
  transition: opacity .3s var(--ease);
}
body.nav-open .scroll-progress { opacity: 0; } /* keep it off the open mobile nav panel */
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform-origin: left;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 54px; width: auto;
  transition: height .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  background: #fff; padding: 5px 12px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(12, 26, 51, 0.18);
}
.site-header.scrolled .brand-logo { height: 44px; box-shadow: none; padding: 2px 6px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.3px;
  color: var(--navy-900); padding: 8px 14px; border-radius: 8px;
  transition: color .2s var(--ease);
}
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.92); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--gold); }
.site-header:not(.scrolled) .nav-link:hover { color: #fff; }

.nav-cta { margin-left: 8px; padding: 11px 22px; font-size: 0.82rem; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; border-radius: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span { background: var(--navy-900); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(212,163,58,0.20), transparent 60%),
    radial-gradient(900px 700px at 12% 90%, rgba(28,49,85,0.7), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-800) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 62%, rgba(8, 18, 36, 0.55) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 46px);
  opacity: 0.9;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem; font-weight: 500;
  color: var(--gold-bright); margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); display: inline-block; }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: 26px; letter-spacing: 0.3px; }
.hero-title .line { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 680px; color: rgba(255,255,255,0.85); font-weight: 300; margin-bottom: 38px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-tag {
  position: relative; display: inline-block;
  font-family: var(--serif); font-style: italic; font-size: 1.32rem; color: rgba(255,255,255,0.82);
  padding: 18px 30px; max-width: 620px;
}
/* corner-brace frame on the tagline */
.hero-tag::before, .hero-tag::after {
  content: ""; position: absolute; width: var(--brace); height: var(--brace); pointer-events: none;
}
.hero-tag::before { top: 0; left: 0; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.hero-tag::after { bottom: 0; right: 0; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.45); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 3px; background: var(--gold); animation: cue 1.7s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }

/* cinematic staged hero reveal */
.hero-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.hero-stagger.in > * { opacity: 1; transform: none; }
.hero-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.hero-stagger.in > *:nth-child(2) { transition-delay: .16s; }
.hero-stagger.in > *:nth-child(3) { transition-delay: .28s; }
.hero-stagger.in > *:nth-child(4) { transition-delay: .40s; }
.hero-stagger.in > *:nth-child(5) { transition-delay: .52s; }

/* ---------- Intro strip ---------- */
.strip { background: var(--navy-800); color: #fff; padding: 0; }
.strip-inner {
  padding: 48px 24px; max-width: 1000px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 500;
  color: rgba(255,255,255,0.9); line-height: 1.4;
}

/* ---------- At a Glance ---------- */
.glance { background: var(--navy-800); color: #fff; padding: 0 0 8px; }
.glance-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.glance-item {
  padding: 34px 26px; text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.glance-item:first-child { border-left: 0; }
.glance-num { font-family: var(--serif); font-size: 2.9rem; font-weight: 700; line-height: 1; color: var(--gold-bright); }
.glance-num--text { font-size: 2rem; letter-spacing: 0.5px; }
.glance-label { font-size: 0.84rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy-800); color: #fff; }

.section-head { position: relative; max-width: 760px; margin: 0 auto 58px; text-align: center; }
/* editorial index numeral */
.section-head[data-index]::before {
  content: attr(data-index);
  display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--gold-text); letter-spacing: 2px; margin-bottom: 8px;
}
.section-dark .section-head[data-index]::before { color: var(--gold-bright); }
.kicker { text-transform: uppercase; letter-spacing: 2.6px; font-size: 0.78rem; font-weight: 600; color: var(--gold-text); margin-bottom: 14px; }
.kicker-light { color: var(--gold-bright); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); color: inherit; }
.section-dark .section-head h2 { color: #fff; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-sub { color: rgba(255,255,255,0.72); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-copy p { margin-bottom: 20px; color: var(--muted); font-size: 1.08rem; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.vm-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); }
.vm-label { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy-800); margin-bottom: 10px; font-weight: 600; }
.vm-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.aside-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.aside-card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,163,58,0.28), transparent 70%); }
.aside-card h3 { font-size: 1.55rem; margin-bottom: 22px; position: relative; }
.check-list { list-style: none; position: relative; }
.check-list li { padding: 11px 0 11px 32px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1rem; color: rgba(255,255,255,0.88); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- Directors ---------- */
.directors-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; max-width: 760px; margin: 0 auto; }
.director-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 30px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.director-card::before { content: ""; position: absolute; top: 16px; left: 16px; width: var(--brace); height: var(--brace); border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.director-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.director-monogram {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  color: var(--navy-900); background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 10px 24px rgba(212,163,58,0.35);
}
.director-card h3 { font-size: 1.5rem; color: var(--navy-800); margin-bottom: 4px; }
.director-role { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; color: var(--gold-text); font-weight: 500; }

/* ---------- Business Focus ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.focus-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.focus-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); transition: width .35s var(--ease); }
.focus-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.focus-card:hover::after { width: 100%; }
.focus-icon { width: 58px; height: 58px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: var(--paper-3); color: var(--navy-700); transition: background .3s, color .3s; }
.focus-card:hover .focus-icon { background: var(--navy-800); color: var(--gold-bright); }
.focus-icon svg { width: 30px; height: 30px; }
.focus-card h3 { font-size: 1.35rem; color: var(--navy-800); margin-bottom: 12px; }
.focus-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 34px 30px; transition: transform .3s var(--ease), background .3s; }
.why-card:hover { transform: translateY(-6px); background: var(--navy-600); }
.why-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 14px; line-height: 1; }
.why-card h3 { font-size: 1.32rem; color: #fff; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.72); font-size: 0.98rem; }

/* ---------- Projects ---------- */
.project-feature { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper); border: 1px solid var(--line); }
.project-feature::before { content: ""; position: absolute; z-index: 3; top: 18px; left: 18px; width: var(--brace); height: var(--brace); border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.project-media { position: relative; background: linear-gradient(150deg, var(--navy-900), var(--navy-600)); display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.project-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 70% 10%, rgba(212,163,58,0.22), transparent 60%); }
.project-icon { width: 130px; height: 130px; border-radius: 22px; box-shadow: var(--shadow-lg); position: relative; }
.project-badge { position: absolute; top: 22px; right: 22px; z-index: 2; background: var(--gold); color: var(--navy-900); font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 16px; border-radius: 50px; }
.project-body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.project-body h3 { font-size: 2rem; color: var(--navy-800); margin-bottom: 18px; }
.project-body p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.project-note { font-style: italic; color: var(--graphite); font-size: 0.98rem !important; }
.project-body .btn { align-self: flex-start; margin-top: 14px; }

/* ---------- Partner ---------- */
.partner-grid { max-width: 920px; margin: 0 auto; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tag-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 50px;
  padding: 12px 24px; font-size: 0.98rem; color: var(--navy-800); font-weight: 400;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, color .25s, background .25s;
}
.tag-list li:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-text); }
.partner-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }

/* ---------- Inquiry ---------- */
.inquiry-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.inquiry-intro .kicker { text-align: left; }
.inquiry-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy-800); margin-bottom: 18px; }
.inquiry-intro > p { color: var(--muted); margin-bottom: 24px; font-size: 1.06rem; }
.inquiry-points { list-style: none; }
.inquiry-points li { padding: 9px 0 9px 28px; position: relative; color: var(--ink); font-size: 1rem; }
.inquiry-points li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

.inquiry-form-shell { position: relative; }
.inquiry-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: var(--navy-700); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,163,58,0.14);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,0.12); }
.field-error { display: block; min-height: 0; font-size: 0.82rem; color: #c9302c; margin-top: 6px; transition: min-height .2s; }
.field-error:empty { margin-top: 0; }

/* honeypot — hidden from humans & AT */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.inquiry-form .btn { margin-top: 6px; }
.form-status { margin-top: 16px; font-size: 0.95rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: #d9534f; }
.form-privacy { margin-top: 14px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* success confirmation */
.form-confirm {
  position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px 34px; gap: 14px;
}
.form-confirm[hidden] { display: none; }
.confirm-check { width: 64px; height: 64px; }
.confirm-check svg { width: 100%; height: 100%; }
.confirm-check circle { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: dash .6s var(--ease) forwards; }
.confirm-check path { stroke: var(--gold-deep); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash .4s .5s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form-confirm h3 { font-size: 1.6rem; color: var(--navy-800); outline: none; }
.form-confirm p { color: var(--muted); font-size: 1rem; max-width: 420px; }
.form-confirm a { color: var(--gold-text); border-bottom: 1px solid currentColor; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.contact-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 28px 30px; transition: transform .3s var(--ease), background .3s; }
.contact-card:hover { transform: translateY(-4px); background: var(--navy-600); }
.contact-label { display: block; text-transform: uppercase; letter-spacing: 1.6px; font-size: 0.74rem; color: var(--gold-bright); font-weight: 500; margin-bottom: 10px; }
.contact-value { font-size: 1.18rem; color: #fff; font-family: var(--serif); font-weight: 500; }
.contact-value a { transition: color .2s; }
.contact-value a:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.78); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 24px 48px; }
.footer-logo { height: 56px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,0.68); max-width: 320px; }
.footer-col-title { display: block; text-transform: uppercase; letter-spacing: 1.6px; font-size: 0.78rem; color: var(--gold-bright); font-weight: 600; margin-bottom: 18px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-contact a { font-size: 0.98rem; transition: color .2s; width: fit-content; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-bright); }
.footer-contact p { font-size: 0.98rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom p { font-size: 0.88rem; color: rgba(255,255,255,0.55); text-align: center; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: var(--gold-bright); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--navy-600); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top[hidden] { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* choreographed staggered children */
.reveal.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.stagger.in > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 80ms); }

/* section-head hairline draw */
.section-head.reveal .kicker { position: relative; }
.section-head.reveal .kicker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%) scaleX(0);
  bottom: -8px; width: 46px; height: 2px; background: var(--gold); transform-origin: center;
  transition: transform .6s .15s var(--ease);
}
.section-head.reveal.in .kicker::after { transform: translateX(-50%) scaleX(1); }

/* ---------- Mobile nav panel ---------- */
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100svh; width: min(340px, 84vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    background: var(--navy-900); padding: 90px 36px 40px;
    transform: translateX(100%); visibility: hidden;
    /* visibility flips instantly, but only AFTER the slide-out finishes on close,
       and immediately on open so the panel is focusable right away */
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  body.nav-open .nav {
    transform: translateX(0); visibility: visible;
    transition: transform .4s var(--ease), visibility 0s linear 0s;
  }
  .nav-link { color: #fff !important; font-size: 1.15rem; padding: 12px 0; width: 100%; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 18px 0 0; width: 100%; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,16,32,0.5); z-index: 99; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-wrap { grid-template-columns: 1fr; gap: 36px; }
  .project-feature { grid-template-columns: 1fr; }
  .project-media { min-height: 240px; }
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(-n+2) { border-top: 0; }
  .glance-item:nth-child(odd) { border-left: 0; }
  .glance-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --brace: 18px; }
  .hero-tag::before, .hero-tag::after,
  .director-card::before, .project-feature::before { border-width: 1px; }
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 110px 0 70px; min-height: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .vm-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .directors-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .project-body { padding: 34px 26px; }
  .inquiry-form { padding: 28px 22px; }
  .glance-grid { grid-template-columns: 1fr; }
  .glance-item { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,0.08); }
  .glance-item:first-child { border-top: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto !important; }

  .reveal, .reveal.stagger > *, .hero-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal.stagger.in > * { transition-delay: 0ms !important; }
  .section-head.reveal .kicker::after { transform: translateX(-50%) scaleX(1) !important; }
  .scroll-cue span { animation: none !important; }
  .confirm-check circle, .confirm-check path { animation: none !important; stroke-dashoffset: 0 !important; }
  .to-top { transition: opacity .001ms !important; }
}
