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

:root {
  --stone-dark:   #2C2416;
  --stone-warm:   #8B6914;
  --stone-mid:    #C4A35A;
  --stone-light:  #E8D9B5;
  --stone-cream:  #F5EED8;
  --stone-white:  #FDFAF3;
  --stone-blue:   #4A5E6D;
  --stone-rust:   #9B4F2E;
  --text-primary: #1E1A12;
  --text-muted:   #6B5E42;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--stone-white);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* background grid removed */

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-light);
}

.logo {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-cream);
  text-decoration: none;
  background: var(--stone-rust);
  padding: 0.45rem 1rem;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2.5rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--stone-warm); }

/* ── GLOBAL FONT SIZE BUMP ── */
html { font-size: 17px; }

/* ── HERO ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 3rem 4rem;
  gap: 4rem;
  z-index: 1;
}

.hero-text { max-width: 560px; }

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone-rust);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--stone-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--stone-warm);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

/* hero CTA uses .btn-primary */

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s 0.5s forwards;
}

.stone-grid {
  display: grid;
  grid-template-columns: repeat(6, 52px);
  grid-template-rows: repeat(6, 52px);
  gap: 6px;
  transform: rotate(-8deg);
}

.stone-block {
  border-radius: 2px;
  animation: blockIn 0.4s both;
}

/* Color map for blocks */
.c-rust  { background: var(--stone-rust); }
.c-warm  { background: var(--stone-warm); }
.c-mid   { background: var(--stone-mid); }
.c-light { background: var(--stone-light); }
.c-blue  { background: var(--stone-blue); }
.c-dark  { background: var(--stone-dark); }
.c-empty { background: transparent; }

/* Arch shape overlay */
.arch-overlay {
  position: absolute;
  width: 200px;
  height: 280px;
  border: 3px solid var(--stone-warm);
  border-radius: 100px 100px 0 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) rotate(-8deg);
  opacity: 0.4;
  pointer-events: none;
}

/* ── DIVIDER ── */
.section-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3rem;
  margin: 2rem 0;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone-light);
}
.section-divider span {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-mid);
}

/* ── THREE PILLARS ── */
.pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-light);
  border-top: 1px solid var(--stone-light);
  border-bottom: 1px solid var(--stone-light);
  margin: 0 0 6rem;
}

.pillar {
  background: var(--stone-white);
  padding: 3.5rem 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: background 0.3s;
}
.pillar:hover { background: var(--stone-cream); }
.pillar.visible {
  animation: fadeUp 0.7s forwards;
}
.pillar:nth-child(2) { animation-delay: 0.15s; }
.pillar:nth-child(3) { animation-delay: 0.3s; }

.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--stone-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--stone-dark);
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── HISTORY BAND ── */
.history-band {
  position: relative;
  z-index: 1;
  background: var(--stone-dark);
  color: var(--stone-cream);
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  overflow: hidden;
}

.history-band::before {
  content: '1880';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
}

.history-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-mid);
  margin-bottom: 1.5rem;
}

.history-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--stone-cream);
}

.history-title em {
  font-style: italic;
  color: var(--stone-mid);
}

.history-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(232, 217, 181, 0.7);
  margin-bottom: 2rem;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--stone-mid);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 217, 181, 0.5);
  margin-top: 0.4rem;
}

/* Blueprint image */
.blueprint {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.blueprint-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
}

/* ── PRODUCT SECTION ── */
.products {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--stone-dark);
}

.section-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-warm);
  text-decoration: none;
  border-bottom: 1px solid var(--stone-mid);
  padding-bottom: 2px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--stone-cream);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover { transform: translateY(-4px); }

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.product-card.architectural::before { background: var(--stone-rust); }
.product-card.play3d::before { background: var(--stone-blue); }
.product-card.design::before { background: var(--stone-warm); }

.card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--stone-dark);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-warm);
}

/* Block decoration in card */
.card-blocks {
  position: absolute;
  bottom: -10px;
  right: -10px;
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 3px;
  opacity: 0.2;
  transform: rotate(10deg);
}
.cb { height: 18px; border-radius: 1px; }
.cb-r { background: var(--stone-rust); }
.cb-w { background: var(--stone-warm); }
.cb-b { background: var(--stone-blue); }
.cb-d { background: var(--stone-dark); }

/* ── QUOTE ── */
.quote-band {
  position: relative;
  z-index: 1;
  background: var(--stone-cream);
  padding: 5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--stone-light);
  border-bottom: 1px solid var(--stone-light);
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--stone-light);
  margin-bottom: 1rem;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--stone-dark);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.quote-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── FINAL CTA ── */
.final-cta {
  position: relative;
  z-index: 1;
  padding: 7rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--stone-dark);
  max-width: 600px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.final-cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--stone-rust);
  color: var(--stone-cream);
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--stone-dark);
  transform: translateY(-2px);
}

/* footer now defined in bridge/footer section above */

/* ── BRIDGE SECTION ── */
.bridge {
  position: relative;
  z-index: 1;
  background: var(--stone-cream);
  border-bottom: 1px solid var(--stone-light);
  padding: 3.5rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr 2px 1fr 2px 1fr;
  gap: 0;
  margin-top: 64px; /* header height offset */
}

.bridge-node {
  padding: 0 3rem;
  text-align: center;
}

.bridge-node:first-child { padding-left: 1rem; }
.bridge-node:last-child  { padding-right: 1rem; }

.bridge-divider {
  background: var(--stone-light);
  align-self: stretch;
  margin: 1rem 0;
}

.bridge-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-mid);
  margin-bottom: 0.6rem;
}

.bridge-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-dark);
  margin-bottom: 0.75rem;
}

.bridge-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--stone-mid);
  transition: color 0.2s;
}
.bridge-name a:hover { color: var(--stone-warm); }

.bridge-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 240px;
  margin: 0 auto;
}

.bridge-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--stone-mid);
  padding-top: 1.5rem;
}

/* ── FOOTER EXPANDED ── */
footer {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.footer-col {
  padding: 2.5rem 2.5rem;
}

.footer-col:nth-child(1) { background: #7A5A4A; }  /* muted terracotta */
.footer-col:nth-child(2) { background: #A89070; }  /* muted tan/ochre */
.footer-col:nth-child(3) { background: #4A5A62; }  /* muted slate blue */

.footer-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.footer-col-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.footer-col-text a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.footer-col-text a:hover { color: var(--stone-cream); border-bottom-color: var(--stone-cream); }

.footer-center-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--stone-dark);
  line-height: 1.7;
  text-align: center;
}

.footer-bottom {
  background: var(--stone-dark);
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-light);
}

@media (max-width: 900px) {
  .bridge { grid-template-columns: 1fr; padding: 2rem 1.5rem; margin-top: 58px; }
  .bridge-divider { display: none; }
  .bridge-connector { display: none; }
  .bridge-node { padding: 1.5rem 0; border-bottom: 1px solid var(--stone-light); }
  .bridge-node:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── BUTTON SCROLL ANIMATION ── */
@keyframes btnSlideIn {
  0%   { opacity: 0; transform: translateX(-32px); }
  60%  { opacity: 1; transform: translateX(6px); }
  100% { opacity: 1; transform: translateX(0); }
}

.btn-animate {
  opacity: 0;
}
.btn-animate.btn-visible {
  animation: btnSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes blockIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header { padding: 1rem 1.5rem; }
  nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 2rem;
    gap: 1.5rem;
    min-height: unset;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }
  .stone-grid {
    grid-template-columns: repeat(6, 36px);
    grid-template-rows: repeat(6, 36px);
    gap: 4px;
  }
  .arch-overlay {
    width: 140px;
    height: 196px;
  }
  .pillars { grid-template-columns: 1fr; }
  .history-band { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 3rem; }
  .history-band::before { font-size: 8rem; }
  .product-cards { grid-template-columns: 1fr; }
  .products, .final-cta { padding: 4rem 1.5rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
  </style>
