/* Shared styles for lighter project case study pages.
   Used by: simplehuman, doordash, parley, arizona-tesla,
   deli-home-printer, xiaomi-remote.html */

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

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #e8e6e2;
  --accent: #ff4500;
  --max: 1240px;
  --pad: 36px;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.brand .sub { color: var(--muted); margin-left: 8px; font-weight: 400; }
.nav-back {
  font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, gap 0.2s var(--ease);
}
.nav-back:hover { color: var(--ink); gap: 10px; }

/* HERO */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--line); }
.hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--muted-2); border-radius: 50%; align-self: center; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 1100px;
  color: var(--ink);
}
.hero-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted); max-width: 720px;
  line-height: 1.55;
}

/* PROJECT META */
.project-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pm strong {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.pm span { font-size: 14px; color: var(--ink-2); }

/* OVERVIEW */
.overview {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.overview-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.section-label {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; padding-top: 4px;
}
.overview-copy p {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
}
.overview-copy p:last-child { margin-bottom: 0; }
.overview-copy p.muted { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.overview-copy em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
}

/* PULL QUOTE */
.pullquote {
  padding: 90px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.pullquote-inner {
  max-width: 880px; margin: 0 auto;
  padding: 0 var(--pad);
}
.pullquote-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px; font-weight: 500;
}
.pullquote p {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.pullquote p em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent);
}

/* GALLERY */
.gallery-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.gallery-section .section-label { margin-bottom: 36px; display: block; }
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery-item {
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-item.col-2 { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.col-3 { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item.col-4 { grid-column: span 4; aspect-ratio: 2/1; }
.gallery-item.col-6 { grid-column: span 6; aspect-ratio: 16/9; }
.gallery-item.full { grid-column: 1 / -1; aspect-ratio: 21/9; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* TWO-COL */
.two-col {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.two-col-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-grid .col h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.two-col-grid .col p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* END CTA */
.end-cta { padding: 100px 0; text-align: center; }
.end-cta-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.end-cta h3 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.03em; line-height: 1.05; font-weight: 500;
  margin-bottom: 28px;
}
.end-cta h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; color: var(--accent);
}
.end-cta-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  border: 1px solid var(--ink);
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }

footer.site {
  padding: 28px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  :root { --pad: 24px; }
  .hero { padding: 60px 0 40px; }
  .overview, .gallery-section, .two-col, .pullquote { padding: 60px 0; }
  .overview-grid, .two-col-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item.col-2, .gallery-item.col-3, .gallery-item.col-4, .gallery-item.col-6 { grid-column: span 2; aspect-ratio: 16/10; }
  .gallery-item.full { grid-column: 1 / -1; aspect-ratio: 16/10; }
  footer.site { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .project-meta { grid-template-columns: 1fr; gap: 16px; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
