/* Shared base for the six demo websites.
   Each page sets its own identity through the variables below plus a small page-specific block. */
:root {
  --bg: #fff; --fg: #111; --muted: #666; --accent: #111; --on-accent: #fff;
  --surface: #f3f3f3; --line: rgba(0, 0, 0, 0.1);
  --head: Georgia, serif; --body: system-ui, sans-serif;
  --hw: 400; --ht: -0.02em; --tt: none;
  --r: 0px; --rb: 0px;
  --nav-fg: #fff;
  --gutter: clamp(18px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.h1, .h2, .h3 { font-family: var(--head); font-weight: var(--hw); letter-spacing: var(--ht); text-transform: var(--tt); line-height: 1.02; text-wrap: balance; }
.h1 { font-size: clamp(3rem, 8.5vw, 8rem); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 52ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--accent); border-radius: var(--rb); background: var(--accent); color: var(--on-accent); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--nav-fg); transition: background-color 0.4s var(--ease), color 0.4s, box-shadow 0.4s; }
.nav.is-solid { background: var(--bg); color: var(--fg); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 84px; }
.logo { margin-right: auto; font-family: var(--head); font-size: 1.5rem; font-weight: var(--hw); letter-spacing: 0.08em; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; font-size: 0.95rem; }
.nav-links a { padding: 6px 0; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }
.nav:not(.is-solid) .btn--nav { background: transparent; border-color: currentColor; color: inherit; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: currentColor; }
@media (max-width: 900px) {
  .nav-links, .nav .btn--nav { display: none; }
  .burger { display: block; }
  .nav.open { background: var(--bg); color: var(--fg); }
  .nav.open .nav-links { position: absolute; top: 84px; left: 0; right: 0; display: grid; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.3); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
}

/* Sections */
.sec { padding-block: clamp(80px, 11vw, 160px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lead { max-width: 42ch; }

.grid3 { display: grid; gap: clamp(20px, 2.5vw, 32px); }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; gap: 6px; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--surface); margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-meta { color: var(--muted); font-size: 0.92rem; }
.card-price { font-weight: 600; }

.split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .lead { margin-top: 24px; }
.split .btn { margin-top: 36px; }

.band { position: relative; display: grid; place-items: center; min-height: 80vh; padding: 120px var(--gutter); color: #fff; text-align: center; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.45); }
.band > div { position: relative; z-index: 2; max-width: 900px; }

.rows { border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows li span:first-child { color: var(--muted); }
.rows li span:last-child { text-align: right; font-weight: 500; }

.cta { text-align: center; }
.cta .h2 { max-width: 16ch; margin-inline: auto; }
.cta .lead { margin: 22px auto 0; }
.cta .btn { margin-top: 40px; }

.foot { padding: 64px 0 120px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .logo { display: block; margin-bottom: 12px; color: var(--fg); }
.foot h3 { margin-bottom: 10px; color: var(--fg); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Demo badge: fixed pill that links back to the portfolio */
.demo-pill {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f3f3f1;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 0.8125rem;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.demo-pill a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; transition: background-color 0.2s; }
.demo-pill a:hover { background: rgba(255, 255, 255, 0.1); }
.demo-pill .dp-tag { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; color: #e8e8e5; font-weight: 600; }
.demo-pill .dp-tag svg { width: 9px; height: 15px; fill: currentColor; }
.demo-pill .dp-cta { background: #ffffff; color: #0b0b0c; font-weight: 700; }
.demo-pill .dp-cta:hover { background: #e8e8e5; }
.dp-lang { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.dp-lang button { min-width: 34px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: #8a8b90; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.dp-lang button.is-active { background: rgba(255, 255, 255, 0.18); color: #f3f3f1; }
@media (max-width: 600px) {
  .demo-pill .dp-tag { display: none; }
  .demo-pill a { padding: 0 10px; }
}

/* Reveal */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
