/* ═══════════════════════════════════════════════════════
   ATELIER BUILD CO. — Shared Stylesheet
   Academia/Classical design system, light theme
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --bg:          #FAFAFA;
  --bg-alt:      #F0F0F0;
  --fg:          #111111;
  --muted:       #E8E8E8;
  --muted-fg:    #6B6B6B;
  --border:      #D8D8D8;
  --accent:      #1A1A1A;
  --accent-dark: #000000;
  --accent-lt:   #4A4A4A;
  --crimson:     #6B1F1A;
  --crimson-lt:  #8A2820;
  --accent-fg:   #FAFAFA;

  --brass: linear-gradient(180deg, #3A3A3A 0%, #1C1C1C 50%, #050505 100%);

  --f-head: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Crimson Pro', Georgia, serif;
  --f-disp: 'Cinzel', Georgia, serif;

  --t-fast:  150ms;
  --t-base:  300ms;
  --t-slow:  500ms;
  --t-drama: 700ms;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   ATMOSPHERIC OVERLAYS
───────────────────────────────────────────── */
#texture-overlay {
  position: fixed; inset: 0;
  z-index: 9000; pointer-events: none;
  opacity: .03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
}
#vignette-overlay {
  position: fixed; inset: 0;
  z-index: 8999; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 55%, rgba(0,0,0,.08) 100%);
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.wrap        { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap--narrow { max-width: 920px;  margin: 0 auto; padding: 0 40px; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────── */
.vol-label {
  display: block;
  font-family: var(--f-disp); font-size: .625rem;
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--accent); margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--f-head);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400; line-height: 1.1; color: var(--fg);
}
.section-intro {
  font-family: var(--f-body); font-size: 1.0625rem;
  color: var(--muted-fg); line-height: 1.7; max-width: 580px;
}

/* ─────────────────────────────────────────────
   ORNATE DIVIDER
───────────────────────────────────────────── */
.divider {
  position: relative; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--border) 18%,
    var(--accent) 50%, var(--border) 82%, transparent 100%);
}
.divider::before {
  content: attr(data-glyph);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--f-disp); font-size: .7rem;
  color: var(--accent); background: var(--bg);
  padding: 0 .875rem; line-height: 1;
}
.divider--alt::before  { background: var(--bg-alt); }
.divider--white::before { background: #fff; }

/* ─────────────────────────────────────────────
   CORNER FLOURISH
───────────────────────────────────────────── */
.flourish { position: relative; }
.flourish::before, .flourish::after {
  content: ""; position: absolute;
  border: 1.5px solid var(--accent); opacity: .5;
  transition: opacity var(--t-base) var(--ease); pointer-events: none;
}
.flourish::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.flourish::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.flourish--sm::before, .flourish--sm::after { width: 22px; height: 22px; }
.flourish--md::before, .flourish--md::after { width: 32px; height: 32px; }
.flourish--lg::before, .flourish--lg::after { width: 48px; height: 48px; }
.flourish:hover::before, .flourish:hover::after { opacity: 1; }

/* ─────────────────────────────────────────────
   ARCH-TOP  &  SEPIA
───────────────────────────────────────────── */
.arch-top { border-radius: 40% 40% 0 0 / 20% 20% 0 0; overflow: hidden; }

.sepia-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.55) contrast(.95) brightness(.9);
  transition: filter var(--t-drama) var(--ease), transform var(--t-drama) var(--ease);
}
.sepia-wrap:hover .sepia-img {
  filter: sepia(0) contrast(1) brightness(.97);
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   WAX SEAL
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-disp); font-size: .6875rem;
  text-transform: uppercase; letter-spacing: .15em;
  border-radius: 4px; height: 48px; padding: 0 2rem;
  transition: all var(--t-slow) var(--ease);
  text-shadow: 1px 1px 1px rgba(0,0,0,.35), -1px -1px 1px rgba(255,255,255,.06);
}
.btn--primary {
  background: var(--fg); color: var(--accent-fg);
  border: 2px solid var(--fg);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.btn--primary:hover {
  background: transparent; color: var(--fg);
  border-color: var(--fg);
  box-shadow: none;
}
.btn--primary:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.btn--secondary {
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
}
.btn--secondary:hover {
  background: var(--fg); border-color: var(--fg); color: var(--accent-fg);
}
.btn--secondary:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ─────────────────────────────────────────────
   DROP CAP
───────────────────────────────────────────── */
.drop-cap::first-letter {
  font-family: var(--f-disp); font-size: 4.75rem; font-weight: 500;
  float: left; margin-right: .75rem; line-height: .8;
  color: var(--accent); text-shadow: 1px 1px 2px rgba(0,0,0,.12);
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATION
───────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   BLUEPRINT PLACEHOLDER
───────────────────────────────────────────── */
.blueprint {
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.025) .5px, transparent .5px),
    linear-gradient(90deg, rgba(0,0,0,.025) .5px, transparent .5px),
    linear-gradient(160deg, #EEEEEE 0%, #F8F8F8 40%, #EBEBEB 70%, #F4F4F4 100%);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px, 100% 100%;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.blueprint__mark {
  opacity: .25;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.blueprint__mark-label {
  font-family: var(--f-disp); font-size: .5rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
}
.blueprint__mark-rule {
  width: 1px; height: 56px;
  background: linear-gradient(transparent, var(--accent), transparent);
}
.blueprint__mark-a {
  font-family: var(--f-head); font-size: 5.5rem;
  color: var(--accent); font-weight: 300; line-height: 1;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px 0 4px; height: 100px;
  background: rgba(250,250,250,.93);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(180,180,180,.55);
  transition: background var(--t-base), box-shadow var(--t-base);
}
#nav.scrolled {
  background: rgba(250,250,250,.99);
  box-shadow: 0 1px 0 rgba(180,180,180,.75);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo__stamp {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo__stamp { overflow: hidden; }
.nav-logo__stamp img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); }
.nav-logo__text { display: none; }
.nav-logo__name {
  display: block; font-family: var(--f-disp); font-size: .75rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--fg);
}
.nav-logo__tag {
  display: block; font-family: var(--f-body); font-size: .6875rem;
  font-style: italic; color: var(--muted-fg); letter-spacing: .04em;
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-family: var(--f-disp); font-size: .625rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted-fg);
  transition: color var(--t-base), text-decoration-color var(--t-base);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(17,17,17,.35);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--accent); transition: all var(--t-base);
}

#mobile-nav {
  position: fixed; top: 200px; left: 0; right: 0;
  background: rgba(250,250,250,.99);
  border-bottom: 1px solid var(--border);
  padding: 2rem 40px;
  display: none; flex-direction: column; gap: 1.5rem; z-index: 499;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-family: var(--f-disp); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted-fg);
  transition: color var(--t-base);
}
#mobile-nav a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   SECTION SHELLS
───────────────────────────────────────────── */
.sec { padding: 120px 0; }
.sec--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-head { text-align: center; margin-bottom: 5rem; }
.sec-head .divider { width: 120px; margin: 0 auto 2rem; }
.sec-head .section-intro { margin: 1.5rem auto 0; text-align: center; }

/* ─────────────────────────────────────────────
   PROCLAMATION FRAME
───────────────────────────────────────────── */
.proclamation-frame {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 5rem 6rem; position: relative;
}
.proclamation-frame::before, .proclamation-frame::after {
  content: ""; position: absolute;
  width: 44px; height: 44px;
  border: 2px solid var(--accent); opacity: .45; pointer-events: none;
}
.proclamation-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.proclamation-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.proclamation-label {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  font-family: var(--f-disp); font-size: .625rem;
  text-transform: uppercase; letter-spacing: .3em; color: var(--accent);
  margin-bottom: 1.75rem;
}
.proclamation-label::before, .proclamation-label::after {
  content: ""; display: block; height: 1px; width: 80px;
}
.proclamation-label::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.proclamation-label::after  { background: linear-gradient(90deg, var(--accent), transparent); }

.proclamation-title {
  font-family: var(--f-head);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 400; line-height: 1.15;
  color: var(--fg); text-align: center; margin-bottom: 2.75rem;
}
.proclamation-title em { font-style: italic; color: var(--accent); }

.proclamation-body p {
  font-size: 1.0625rem; color: var(--muted-fg);
  line-height: 1.82; margin-bottom: 1.5rem;
}
.proclamation-body p:last-child { margin-bottom: 0; }
.proclamation-cta { text-align: center; margin-top: 3.25rem; }

/* ─────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────── */
#stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 3rem 2.5rem; text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--t-base);
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(0,0,0,.04); }
.stat-num {
  display: block; font-family: var(--f-head); font-size: 3.25rem;
  font-weight: 300; line-height: 1; color: var(--fg);
  transition: color var(--t-base), transform var(--t-base);
}
.stat-num sup { font-size: 1.5rem; color: var(--accent); }
.stat:hover .stat-num { color: var(--accent); transform: scale(1.08); }
.stat-label {
  display: block; margin-top: .625rem;
  font-family: var(--f-disp); font-size: .5625rem;
  text-transform: uppercase; letter-spacing: .25em; color: var(--muted-fg);
  transition: color var(--t-base);
}
.stat:hover .stat-label { color: var(--accent); }

/* ─────────────────────────────────────────────
   CONTACT / CTA SECTION
───────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-title {
  font-family: var(--f-head);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400; line-height: 1.1; color: var(--fg); margin-bottom: 1.25rem;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-sub {
  font-size: 1.0625rem; color: var(--muted-fg);
  max-width: 500px; margin: 0 auto 3.5rem; line-height: 1.7;
}
.cta-form { display: flex; gap: 0; max-width: 520px; margin: 0 auto 2.5rem; }
.cta-input {
  flex: 1; height: 48px; padding: 0 1.25rem;
  background: var(--bg); border: 1px solid var(--border);
  border-right: none; border-radius: 4px 0 0 4px;
  color: var(--fg); font-family: var(--f-body); font-size: 1rem; font-style: italic;
  transition: border-color var(--t-base);
}
.cta-input::placeholder { color: var(--muted-fg); }
.cta-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,0,0,.07); }
.cta-form .btn { border-radius: 0 4px 4px 0; flex-shrink: 0; }
.cta-details { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.cta-detail-label {
  display: block; font-family: var(--f-disp); font-size: .5625rem;
  text-transform: uppercase; letter-spacing: .25em; color: var(--muted-fg); margin-bottom: .3rem;
}
.cta-detail-val { font-size: 1rem; color: var(--fg); transition: color var(--t-base); }
.cta-detail-val:hover { color: var(--accent); }
.cta-sep { font-family: var(--f-disp); color: var(--border); font-size: .7rem; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem; margin-bottom: 3.5rem;
}
.footer-brand-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.footer-brand-logo .stamp {
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.footer-brand-logo .stamp img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.footer-brand-name {
  display: block; font-family: var(--f-disp); font-size: .6875rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg);
}
.footer-brand-tag {
  display: block; font-family: var(--f-body); font-size: .6875rem;
  font-style: italic; color: var(--muted-fg);
}
.footer-desc { font-size: .9375rem; color: var(--muted-fg); line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-family: var(--f-disp); font-size: .5625rem;
  text-transform: uppercase; letter-spacing: .25em; color: var(--accent); margin-bottom: 1.5rem;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem 1.5rem; align-content: start; }
.footer-links a { font-size: .9375rem; color: var(--muted-fg); transition: color var(--t-base); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.footer-contact-icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-text { font-size: .9375rem; color: var(--muted-fg); line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy, .footer-location {
  font-family: var(--f-disp); font-size: .5rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted-fg);
}
.footer-tag { font-family: var(--f-body); font-size: .875rem; font-style: italic; color: var(--muted-fg); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .wrap, .wrap--narrow { padding: 0 24px; }
  #nav { padding: 0 24px 0 4px; height: 72px; align-items: center; }
  #mobile-nav { top: 72px; }
  .nav-logo__stamp { width: 60px; height: 60px; }
  .nav-links, #nav > .btn { display: none; }
  .nav-hamburger { display: flex; }
  .sec { padding: 80px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner .stat:nth-child(2) { border-right: none; }
  .stats-inner .stat:nth-child(3),
  .stats-inner .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .proclamation-frame { padding: 2.5rem 1.75rem; }
  .proclamation-frame::before, .proclamation-frame::after { width: 32px; height: 32px; }
  .cta-form { flex-direction: column; gap: .75rem; }
  .cta-input, .cta-form .btn { border-radius: 4px; border-right: 1px solid var(--border); width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-desc { max-width: 100%; }
}

/* ─────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────── */
.gallery-item { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms;
}
.lb-overlay.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; font-size: 1.1rem; transition: all 200ms;
}
.lb-close:hover { color: #fff; background: rgba(255,255,255,.18); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; font-size: 1.25rem; transition: all 200ms;
}
.lb-nav:hover { color: #fff; background: rgba(255,255,255,.18); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-disp); font-size: .5rem;
  text-transform: uppercase; letter-spacing: .25em; color: rgba(255,255,255,.4);
}

/* ─────────────────────────────────────────────
   SHARED NAV/FOOTER JS HELPERS
───────────────────────────────────────────── */
/* (JS included inline in each page) */
