/* Visual language matches the existing Tech Ridge 3D Models site. */
:root {
  --terracotta: #8f3b26;
  --terracotta-600: #a8482f;
  --sand: #f6efe3;
  --sand-200: #ecdfc8;
  --cream: #fbf8f2;
  --charcoal: #24221f;
  --ink: #2f2b27;
  --muted: #625a52;
  --sky: #3d78a8;
  --gold: #e9b872;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(36, 34, 31, .06), 0 8px 24px rgba(36, 34, 31, .08);
  --header-h: 64px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-600); }
h1, h2 { font-family: var(--font-serif); color: var(--charcoal); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.85rem, 5vw, 3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--charcoal);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: .75rem; color: #fff; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(36, 34, 31, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--terracotta);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand span { color: var(--charcoal); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { background: var(--sand-200); color: var(--charcoal); }

.hero {
  padding: clamp(1.6rem, 4vw, 2.75rem) 0 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 .6rem;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.4rem;
}

.video-frame {
  margin: 0;
}
.video-shell {
  background: #1b1a18;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  background: #1b1a18;
}
.video-meta {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.about {
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}
.about .prose { max-width: 42rem; }
.about a { font-weight: 600; }

.site-footer {
  background: #1b1a18;
  color: #cfc6b8;
  padding: 1.6rem 0;
  font-size: .9rem;
  margin-top: auto;
}
.site-footer a { color: var(--gold); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.5rem;
}
.footer-brand {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.footer-legal { font-size: .8rem; color: #bdb3a5; }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.08rem; }
  .lead { font-size: 1.05rem; }
}
