
:root {
  --bg: #f4f0e8;
  --paper: #fbfaf6;
  --text: #1d1b18;
  --muted: #6f685f;
  --line: #d9d1c5;
  --accent: #9a7b43;
  --accent-dark: #6f552d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 232, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
}
nav a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72vh;
  padding: 90px 28px 74px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin-bottom: 18px;
}
h1, h2, h3 { font-weight: 400; margin-top: 0; }
h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
}
.hero-logo {
  width: min(100%, 360px);
  justify-self: center;
}
.hero-logo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.rule {
  width: 68px;
  height: 1px;
  background: var(--accent);
  margin: 30px 0;
}
.button-link {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 17px;
  border: 1px solid var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.button-link:hover { background: var(--text); color: var(--paper); }
.section { border-top: 1px solid var(--line); }
.section-inner, .page-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 28px;
}
.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-bottom: 46px;
}
.section-heading h2, .page-title {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}
.section-heading p, .page-intro {
  color: var(--muted);
  max-width: 700px;
  font-size: 17px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.card-kicker {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.card p { color: var(--muted); margin-top: 0; }
.card-meta {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 17px;
  font-size: 13px;
  color: var(--muted);
}
.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 36px;
}
.phase {
  border-top: 2px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.phase.active { border-top-color: var(--accent); color: var(--text); }
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px;
  font-size: 24px;
  line-height: 1.4;
  max-width: 820px;
}
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 28px 40px;
}
.content-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
}
.side-note { color: var(--muted); font-size: 14px; }
.prose { max-width: 780px; font-size: 17px; }
.prose h2 { font-size: 36px; margin-top: 52px; margin-bottom: 14px; }
.prose p { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 48px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; gap: 14px 18px; }
  .hero, .section-heading, .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; gap: 44px; }
  .hero-logo { max-width: 260px; justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .phase {
    border-top: 0;
    border-left: 2px solid var(--line);
    padding: 6px 0 6px 12px;
  }
  .phase.active { border-left-color: var(--accent); }
  .footer-inner { flex-direction: column; }
}


/* Queue */
.queue-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.queue-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.queue-number {
  font-size: 34px;
  line-height: 1;
  color: var(--accent-dark);
}

.queue-item h3 {
  margin: 0 0 5px;
  font-size: 24px;
}

.queue-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.queue-status {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--accent-dark);
  white-space: nowrap;
}

.capacity-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .queue-item {
    grid-template-columns: 54px 1fr;
  }
  .queue-status {
    grid-column: 2;
  }
}


.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-social {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-social a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.footer-separator {
  color: var(--line);
}

@media (max-width: 850px) {
  .footer-right {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}


/* Social icons */
.footer-social {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-bottom: 0;
}

.social-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.youtube-link {
  color: #b52d24;
}

/* Project image slots */
.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card > .card-kicker,
.project-card > h3,
.project-card > p,
.project-card > .card-meta {
  margin-left: 28px;
  margin-right: 28px;
}

.project-card > .card-kicker {
  margin-top: 25px;
}

.project-card > .card-meta {
  margin-bottom: 26px;
}

.project-image {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

/* FAQ */
.faq {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  position: relative;
  font-size: 19px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 19px;
  font-size: 25px;
  font-weight: 300;
  color: var(--accent-dark);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--muted);
  max-width: 760px;
  margin: -4px 0 24px;
  padding-right: 36px;
}


/* Previous work / project showcase */
.project-image-link {
  display: block;
}

.project-card h3 a:hover,
.card-meta a:hover {
  color: var(--accent-dark);
}

.project-showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 74px;
}

.project-showcase-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
}

.showcase-main-image {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.015);
}

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

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


/* V8: scrolling + permanent footer */
html {
  min-height: 100%;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 94px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(244, 240, 232, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 850px) {
  body {
    padding-bottom: 150px;
  }

  .site-footer {
    position: fixed;
  }

  .footer-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}


/* V9: clearer sim-racing positioning */
.category-cards .card {
  min-height: 225px;
}

.category-cards .card h3 {
  font-size: 30px;
}


/* V10: fixed top navigation, normal footer */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(244, 240, 232, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body {
  padding-top: 90px;
  padding-bottom: 0;
}

/* Footer appears naturally at the bottom of the page */
.site-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 850px) {
  body {
    padding-top: 145px;
    padding-bottom: 0;
  }

  .site-footer {
    position: static;
  }
}


/* V11: normal scrolling header + normal footer */
.site-header {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body {
  padding-top: 0;
  padding-bottom: 0;
}

/* Keep footer in normal document flow */
.site-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 850px) {
  body {
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-header {
    position: static;
  }

  .site-footer {
    position: static;
  }
}
