/* ============================================================
   StL Garage Door Depot — shared design system
   Type: Oswald (display) + Source Sans 3 (body, 18px floor)
   Color: red #C8102E, black #0F0F10, white, warm offwhite
   ============================================================ */

:root {
  --red: #C8102E;
  --red-deep: #A60D26;
  --red-ink: #5a0712;
  --ink: #0F0F10;
  --ink-2: #2a2a2c;
  --muted: #5b5b60;
  --line: #e6e3dc;
  --bg: #ffffff;
  --bg-warm: #f6f4f0;
  --bg-warm-2: #efeae0;
  --shadow-sm: 0 1px 2px rgba(15,15,16,.06), 0 2px 6px rgba(15,15,16,.04);
  --shadow-md: 0 4px 14px rgba(15,15,16,.08), 0 12px 32px rgba(15,15,16,.06);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Helvetica, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 3px; }

p { margin: 0 0 1em; text-wrap: pretty; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 32px; height: 3px;
  background: var(--red);
  display: inline-block;
}

.lead {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ----- Layout helpers ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.divider {
  height: 6px;
  background: var(--red);
  width: 56px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 56px;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 6px 0 -2px rgba(166,13,38,.35);
}
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); }
.btn-red:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

.btn .arrow { font-size: 22px; line-height: 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-strip {
  background: var(--ink);
  color: #fff;
  font-size: 16px;
}
.header-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header-strip a { color: #fff; text-decoration: none; }
.header-strip .strip-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.header-strip .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #38d36f; margin-right: 8px; box-shadow: 0 0 0 3px rgba(56,211,111,.2);
}

.header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 64px; width: auto; }

.nav-primary {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-primary a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.nav-primary a:hover { color: var(--red); }
.nav-primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-cta .btn {
  padding: 12px 20px;
  font-size: 16px;
  min-height: 44px;
  letter-spacing: 0.05em;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.header-phone .icon {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
}
.header-phone:hover { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 48px; height: 48px;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  z-index: 100;
  padding: 88px 28px 32px;
  box-shadow: -20px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.06em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.nav-drawer .btn { margin-top: 24px; width: 100%; }
.nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: 2px solid var(--ink);
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,15,16,.4);
  z-index: 90;
}
.nav-scrim.show { display: block; }

@media (max-width: 980px) {
  .nav-primary, .header-cta .btn, .header-cta .header-phone .label { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .header-phone { font-size: 0; }
  .header-cta .header-phone .icon { width: 44px; height: 44px; font-size: 18px; }
  .nav-drawer { display: block; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: #d6d4cf;
  padding: 80px 0 32px;
  margin-top: 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.site-footer a { color: #d6d4cf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block img {
  height: 90px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .contact-line { display: flex; gap: 12px; align-items: flex-start; }
.site-footer .contact-line .label {
  font-family: var(--display);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
  min-width: 70px;
  font-size: 16px;
  padding-top: 2px;
}
.site-footer .legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #8a8884;
  font-size: 16px;
}
.site-footer .service-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}
.site-footer .service-area::before {
  content: ""; width: 12px; height: 12px; background: var(--red);
  display: inline-block;
}

@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Mobile sticky CTA bar ----- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--ink);
  border-top: 3px solid var(--red);
  padding: 12px;
  gap: 10px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
}
.mobile-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 2px;
}
.mobile-cta .call-btn {
  background: #fff; color: var(--ink);
}
.mobile-cta .book-btn {
  background: var(--red); color: #fff;
}

@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .hide-sm { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--bg-warm);
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero .hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: -1;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: clamp(56px, 8vw, 120px) 0;
}
.hero-copy h1 .red { color: var(--red); }
.hero-copy .lead { margin-top: 24px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .num {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.hero-stats .stat .lbl {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--display);
  color: var(--ink-2);
}

.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
}
.hero-media image-slot { width: 100%; height: 100%; }
.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: #fff;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 320px;
  box-shadow: var(--shadow-md);
}
.hero-badge .badge-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-badge .badge-text {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.hero-badge .badge-text strong { color: var(--red); display: block; font-size: 22px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 5/4; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ----- Cards (Why Choose Us) ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 4px;
  background: var(--red);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .num {
  font-family: var(--display);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 17px; }

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* ----- Service tiles ----- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.tile image-slot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.tile .tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,16,0) 30%, rgba(15,15,16,.85) 100%);
  z-index: -1;
}
.tile-body { padding: 32px; }
.tile h3 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.tile p { color: rgba(255,255,255,.85); margin-bottom: 16px; font-size: 17px; }
.tile .more {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  color: #fff;
  display: inline-flex; gap: 10px; align-items: center;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.tile:hover .more { color: var(--red); }

@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

/* ----- Testimonial ----- */
.testimonial {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "“";
  position: absolute;
  font-family: Georgia, serif;
  font-size: 480px;
  color: var(--red);
  opacity: 0.15;
  top: -120px; left: 4vw;
  line-height: 1;
}
.testimonial .wrap { position: relative; }
.testimonial blockquote {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.35;
  font-family: var(--display);
  font-weight: 400;
  max-width: none;
  text-wrap: pretty;
}
.testimonial .quote-meta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d6d4cf;
  font-size: 17px;
}
.testimonial .stars { color: var(--red); letter-spacing: 4px; font-size: 22px; }
.testimonial .reviews-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255,255,255,.4);
  padding: 14px 22px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 17px;
  transition: background .15s ease, color .15s ease;
}
.testimonial .reviews-cta:hover { background: #fff; color: var(--ink); }
.testimonial .stars-google {
  display: inline-flex; gap: 2px; align-items: center;
}

/* ----- Big CTA Band ----- */
.cta-band {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.cta-band h2 { color: #fff; font-size: clamp(36px, 4.5vw, 64px); margin: 0; }
.cta-band .cta-buttons { display: flex; flex-direction: column; gap: 14px; }
.cta-band .cta-buttons .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .cta-buttons .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .cta-buttons .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.cta-band .cta-buttons .btn-outline:hover { background: #fff; color: var(--red); }
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 60px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

@media (max-width: 800px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
}

/* ----- Section heading bar ----- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head .head-text { max-width: 60ch; }
.section-head h2 { margin-bottom: 12px; }
.section-head .head-aside {
  font-size: 18px;
  color: var(--muted);
  max-width: 36ch;
}
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
}

/* ----- Two-column body content ----- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.content-grid h2 { margin-bottom: 24px; }
.content-grid p { font-size: 19px; color: var(--ink-2); margin-bottom: 1em; }
.content-grid .key-points {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.content-grid .key-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 18px;
}
.content-grid .key-points li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}
.content-grid .feature-card {
  background: var(--bg-warm);
  padding: 32px;
  border-left: 6px solid var(--red);
}
.content-grid .feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.content-grid .feature-card p { font-size: 17px; margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- Page header (subpages) ----- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero .crumbs {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 16px;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}
.page-hero .crumbs a { color: rgba(255,255,255,.6); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--red); }
.page-hero h1 { color: #fff; }
.page-hero h1 .red { color: var(--red); }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 16px; }
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--red);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero-media {
  aspect-ratio: 5/4;
  position: relative;
}
.page-hero-media image-slot { width: 100%; height: 100%; }

@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* Full-bleed image hero variant */
.page-hero--image {
  padding: clamp(120px, 18vw, 220px) 0;
  isolation: isolate;
}
.page-hero--image .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.page-hero--image .page-hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,15,16,.85) 0%, rgba(15,15,16,.55) 55%, rgba(15,15,16,.35) 100%);
  z-index: -1;
}
.page-hero-single {
  max-width: 720px;
}
.page-hero-single .lead { color: rgba(255,255,255,.92); }
@media (max-width: 720px) {
  .page-hero--image .page-hero-tint {
    background: linear-gradient(180deg, rgba(15,15,16,.5) 0%, rgba(15,15,16,.85) 100%);
  }
}

/* ----- Gallery grid ----- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-pill {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  min-height: 48px;
}
.filter-pill:hover { background: var(--ink); color: #fff; }
.filter-pill.active { background: var(--red); color: #fff; border-color: var(--red); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 4/3;
  transition: opacity .2s ease, transform .25s ease;
}
.gallery-item.tall { aspect-ratio: 3/4; grid-row: span 1; }
.gallery-item image-slot { width: 100%; height: 100%; }
.gallery-item .gal-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,15,16,.92) 100%);
  color: #fff;
}
.gallery-item .gal-meta .gal-cat {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  color: var(--red);
  margin-bottom: 4px;
}
.gallery-item .gal-meta .gal-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.gallery-item.hidden { display: none; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ----- About story layout ----- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.story-grid--solo {
  grid-template-columns: 1fr;
  max-width: 880px;
}
.story-portrait {
  aspect-ratio: 4/5;
  position: relative;
}
.story-portrait image-slot { width: 100%; height: 100%; }
.story-portrait .corner-mark {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  color: #fff;
  padding: 22px 28px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 17px;
  line-height: 1.3;
}
.story-portrait .corner-mark strong { font-size: 32px; display: block; }
.story-grid .story-text h2 { margin-bottom: 16px; }
.story-grid .signature {
  margin-top: 32px;
  font-family: "Caveat", "Brush Script MT", cursive;
  font-size: 42px;
  color: var(--red);
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ----- Credentials strip ----- */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.cred {
  text-align: center;
}
.cred .big {
  font-family: var(--display);
  font-size: 44px;
  color: var(--red);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.cred .lbl {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  color: var(--ink-2);
}
@media (max-width: 760px) { .creds { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ----- Process / Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 4px solid var(--ink);
}
.step .step-num {
  position: absolute;
  top: -24px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
}
.step h3 { font-size: 22px; margin: 16px 0 8px; }
.step p { font-size: 17px; color: var(--muted); margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ----- Image-slot placeholder styling ----- */
image-slot {
  --slot-bg: linear-gradient(135deg, #eee9df 0 25%, #e6dfd1 25% 50%, #eee9df 50% 75%, #e6dfd1 75%);
  --slot-color: #6d6a63;
  --slot-font: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ----- Carousel ----- */
.carousel {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16/9;
  background: var(--ink);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 88px 28px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,15,16,.85) 70%);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 18px;
  line-height: 1.3;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.carousel-arrow:hover { background: var(--red); color: #fff; }
.carousel-arrow:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px;
  z-index: 2;
}
.carousel-dots button {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button:hover { background: rgba(255,255,255,.7); }
.carousel-dots button.active {
  background: var(--red);
  transform: scaleY(1.6);
}
.carousel-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
  .carousel-slide { aspect-ratio: 4/3; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .carousel-slide figcaption { padding: 20px 20px 36px; font-size: 16px; }
  .carousel-dots { display: none; }
}

/* ----- Scroll-in animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Misc utility ----- */
.text-center { text-align: center; }
.maxw-text { max-width: 60ch; }
.mt-0 { margin-top: 0; }
.bg-warm { background: var(--bg-warm); }
.bg-ink { background: var(--ink); color: #fff; }

/* ----- Tweaks panel customization ----- */
[data-display="anton"] { --display: "Anton", "Oswald", system-ui, sans-serif; }
[data-display="oswald"] { --display: "Oswald", "Arial Narrow", system-ui, sans-serif; }
[data-display="roboto-slab"] { --display: "Roboto Slab", Georgia, serif; }
[data-display="archivo-black"] { --display: "Archivo Black", "Oswald", system-ui, sans-serif; }
