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

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: #fff;
  color: #333;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-visible { opacity: 1; }
body.page-leaving { opacity: 0; }

/* ── NAV ── */
.site-nav {
  display: flex;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 0.5px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #2D1B4E;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 36px;
}

.nav-brand img { height: 32px; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: #2D1B4E; }

.nav-links a.active {
  color: #2D1B4E;
  border-bottom: 2px solid #F7AF2C;
  padding-bottom: 2px;
}

/* ── BANNER ── */
.construction-banner {
  background: #F5F0E8;
  border-bottom: 0.5px solid #DDD5C8;
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  color: #6B5F52;
  letter-spacing: 0.03em;
}

.banner-icon { color: #BA4F36; margin: 0 6px; }

/* ── INTRO ── */
.portfolio-intro {
  padding: 44px 40px 32px;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 52px;
  align-items: start;
}

.intro-eyebrow {
  font-size: 10px;
  font-weight: 800;
  color: #BA4F36;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intro-title {
  font-size: 36px;
  font-weight: 900;
  color: #2D1B4E;
  line-height: 1;
  margin-bottom: 10px;
}

.intro-tagline {
  font-size: 13px;
  font-style: italic;
  color: #522C81;
  font-weight: 500;
}

.intro-body-wrap {
  border-left: 2px solid #F7AF2C;
  padding-left: 24px;
}

.intro-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: #333;
}

.intro-body .highlight {
  color: #BA4F36;
  font-weight: 700;
}

/* ── INSTRUCTIONS ── */
.grid-instructions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.instruction-text {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.02em;
}

.instruction-dot {
  width: 4px;
  height: 4px;
  background: #ddd;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── MOSAIC GRID ── */
.mosaic-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tile-wrap {
  position: relative;
  height: 200px;
  cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.tile-static {
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease-in;
  z-index: 2;
}

.tile-static svg {
  width: 100%;
  height: 100%;
}

.tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: #fff;
  z-index: 3;
  transition: opacity 0.25s ease-in;
}

.tile-label-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2px;
}

.tile-label-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 5;
}

.tile-wrap:hover .tile-overlay { opacity: 1; }
.tile-wrap:hover .tile-static { opacity: 0; }
.tile-wrap:hover .tile-label { opacity: 0; }

.overlay-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.overlay-desc {
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}

/* Dark-text variants for amber tile */
.tile-label-dark { color: #4C3800; }
.tile-label-dark .tile-label-eyebrow,
.tile-label-dark .tile-label-title { color: #4C3800; }

.overlay-title-dark { color: #4C3800; }
.overlay-desc-dark { color: #4C3800; }

/* Quote tile */
.tile-quote {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border: 0.5px solid rgba(255,255,255,0.06);
}

.tile-quote-text {
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: #4C3800;
}

/* CC monogram tile */
.tile-monogram {
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255,255,255,0.06);
}

.monogram-letters {
  font-size: 38px;
  font-weight: 900;
  color: #F7AF2C;
  letter-spacing: 0.05em;
  line-height: 1;
}

.monogram-sub {
  font-size: 8px;
  font-weight: 700;
  color: #B7A5C9;
  letter-spacing: 0.4em;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ── MOSAIC MOMENTS ── */
.moments-wrapper {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 40px 60px;
}

.moments-block {
  background: #F5F0E8;
  padding: 24px 28px 28px;
  border: 0.5px solid #DDD5C8;
}

.moments-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.moments-label {
  font-size: 9px;
  font-weight: 800;
  color: #BA4F36;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.moments-divider {
  height: 0.5px;
  background: #DDD5C8;
  margin-bottom: 22px;
}

.moments-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  transition: opacity 0.2s ease;
}

.era-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.era-bar {
  width: 20px;
  height: 3px;
  border-radius: 1px;
  background: #BA4F36;
  flex-shrink: 0;
}

.era-label-text {
  font-size: 9px;
  font-weight: 800;
  color: #BA4F36;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.era-dates-text {
  font-size: 9px;
  color: #9A8F82;
  font-weight: 500;
}

.era-title-text {
  font-size: 18px;
  font-weight: 900;
  color: #2C1A4A;
  line-height: 1.2;
  margin-bottom: 10px;
}

.era-body-text {
  font-size: 11.5px;
  line-height: 1.8;
  color: #4A3F35;
}

.wisdom-block {
  border-left: 2px solid #BA4F36;
  padding: 10px 14px;
  background: rgba(186,79,54,0.04);
  margin-bottom: 16px;
}

.wisdom-label {
  font-size: 9px;
  font-weight: 800;
  color: #BA4F36;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mm-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin: 2px 3px 2px 0;
  background: rgba(82,44,129,0.08);
  color: #522C81;
}

.scrubber-track {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 0.5px solid #DDD5C8;
}

.scrubber-dots-wrap {
  position: relative;
  padding: 0 5px;
  margin-bottom: 12px;
}

.scrubber-line-bg {
  height: 1px;
  background: #DDD5C8;
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
}

.scrubber-line-fill {
  height: 1px;
  background: #BA4F36;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0%;
  transition: width 0.35s ease;
}

.scrubber-dots-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.era-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.era-dot.active { transform: scale(1.5); }

.scrubber-labels-row {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.scrubber-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.scrubber-btn {
  background: none;
  border: 0.5px solid #C8BFB0;
  color: #6B5F52;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.scrubber-btn:hover { border-color: #BA4F36; color: #BA4F36; }

.scrubber-counter {
  font-size: 9px;
  color: #9A8F82;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid #eee;
  padding: 20px 40px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

.site-footer a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: #2D1B4E; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .portfolio-intro { padding-left: 24px; padding-right: 24px; }
  .grid-instructions { padding-left: 24px; padding-right: 24px; }
  .mosaic-wrapper { padding-left: 24px; padding-right: 24px; }
  .moments-wrapper { padding-left: 24px; padding-right: 24px; }
  .intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .moments-content { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-nav { padding-left: 18px; padding-right: 18px; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .mosaic-grid { grid-template-columns: 1fr; }
  .tile-wrap, .tile-quote, .tile-monogram { height: 190px; }
  .site-footer { padding-left: 18px; padding-right: 18px; }
}
