/* Shared plumbing for the concept sites under /work/sites.
   Only structure lives here (reset, nav skeleton, hero skeleton, scroll reveal,
   form skeleton, the "concept site" badge). Every site sets its own colors,
   fonts and layout in its own <style>. */

*, *::before, *::after { box-sizing: border-box; }
:root { --pad: 48px; --max: 1200px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: 84px; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* Nav: wordmark left, links, call to action, and a "Menu" word on small screens */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: 30px;
  padding: 0 var(--pad); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.nav .mark { text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav .links { display: flex; gap: 28px; }
.nav .links a, .nav .tel { text-decoration: none; white-space: nowrap; }
.nav .cta { white-space: nowrap; }
.nav .menu { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; }

/* Hero: full-bleed photo with the type sitting low on a scrim */
.hero { position: relative; isolation: isolate; height: clamp(560px, 100svh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--scrim, none); }

/* Scroll reveal. Only hides things once the script has loaded. */
.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-rv].in { opacity: 1; transform: none; }

/* Forms: they look real and send nothing */
.f { display: grid; gap: 18px; }
.f label { display: grid; gap: 6px; }
.f input, .f select, .f textarea { width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; outline: 0; }
.f textarea { min-height: 96px; resize: vertical; }
.f button { cursor: pointer; justify-self: start; }

/* The badge that says this is a concept and links back to the portfolio */
.cs-badge { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(10, 10, 8, 0.9); color: #e8e0d0;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0.02em; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); border: 1px solid rgba(184, 151, 74, 0.5); backdrop-filter: blur(8px); }
.cs-badge b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #b8974a; color: #0a0a08; font: 700 10px/1 Georgia, serif; }
.cs-badge span { opacity: 0.7; }
.cs-badge:hover span { opacity: 1; }
.shot .cs-badge { display: none; }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav { gap: 16px; height: 64px; }
  .nav .menu { display: block; }
  .nav .tel { display: none; }
  .nav .links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 4px var(--pad) 18px;
    background: var(--panel, #fff); color: var(--panel-fg, #111); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.35);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .nav .links a { padding: 15px 0; border-bottom: 1px solid rgba(128, 128, 128, 0.25); }
  .menu-open .nav .links { opacity: 1; transform: none; pointer-events: auto; }
  .cs-badge span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { transform: none; transition: opacity 0.4s; }
}
