/* =========================================================
   NOWERA — Concept-study demo sites (shared base)
   Each demo sets its own theme tokens on :root.
   ========================================================= */
@font-face { font-family: "Metropolis"; src: url("../fonts/metropolis-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/metropolis-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/metropolis-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/metropolis-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #fff; --ink: #111; --muted: #6b6b6b; --accent: #b08a57; --soft: #f1ede6; --surface: #fff; --line: rgba(0, 0, 0, 0.1);
  --on-accent: #fff;
  --head: "Metropolis", "Helvetica Neue", Arial, sans-serif;
  --body: "Metropolis", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 400;
  --head-case: none;
  --radius: 6px;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
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; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.h1, .h2, .h3 { font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6.2rem); line-height: 0.95; }
.h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); line-height: 1; }
.h3 { font-size: 1.35rem; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0 1.6rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.9375rem; font-weight: 500; border: 1px solid var(--ink); transition: transform 0.35s cubic-bezier(.22,1,.36,1), background-color 0.3s, color 0.3s; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--o { background: transparent; color: var(--ink); }
.btn--o:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 2rem; height: 76px; }
.logo { font-size: 1rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin-right: auto; }
.logo small { display: block; font-size: 0.6rem; font-weight: 400; letter-spacing: 0.2em; color: var(--muted); }
.hdr__in nav { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--muted); }
.hdr__in nav a:hover { color: var(--ink); }
.hdr .btn { min-height: 42px; padding: 0 1.2rem; font-size: 0.85rem; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); place-items: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); box-shadow: 0 5px 0 var(--ink); transform: translateY(-2.5px); }
.drawer { display: none; }

/* ---- hero ---- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero--split .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero .h1 { margin-top: 1.2rem; }
.hero .lead { margin-top: 1.5rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--soft); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--full { position: relative; padding: 0; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero--full .hero__bg { position: absolute; inset: 0; }
.hero--full .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--full .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.84) 100%); }
.hero--full .kicker { color: rgba(255, 255, 255, 0.86); }
.hero--full .wrap { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero--full .lead { color: rgba(255,255,255,.78); }

/* ---- generic sections ---- */
.sec { padding: clamp(4rem, 9vw, 8rem) 0; }
.sec--soft { background: var(--soft); }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec__head .lead { max-width: 28em; }
.band { aspect-ratio: 21 / 8; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.card__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.card__meta { font-size: 0.875rem; color: var(--muted); }
.tag { position: absolute; top: 12px; left: 12px; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--bg); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 6; background: var(--soft); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split .lead { margin-top: 1.4rem; }
.checks { display: grid; gap: 0.9rem; margin-top: 2rem; }
.checks li { display: flex; gap: 0.8rem; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats > div { padding: 2rem 2rem 0 0; }
.stats > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.95rem; }

.cta { border-radius: calc(var(--radius) * 2); padding: clamp(3rem, 8vw, 6rem) var(--pad); background: var(--ink); color: var(--bg); text-align: center; }
.cta .lead { margin: 1.2rem auto 0; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cta .btn { margin-top: 2rem; }

.ftr { padding: 4rem 0 2.5rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.ftr h4 { margin: 0 0 0.8rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.ftr li + li { margin-top: 0.35rem; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }

/* concept-study ribbon (standalone view only) */
.nv-ribbon { position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.6rem 0.55rem 1.1rem; border-radius: 999px; background: rgba(9, 9, 9, 0.88); color: #f8f5ef; font: 500 0.78rem/1.2 "Metropolis", Arial, sans-serif; letter-spacing: 0.02em; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.nv-ribbon b { color: #d2ac72; font-weight: 500; }
.nv-ribbon a { padding: 0.45rem 0.9rem; border-radius: 999px; background: #d2ac72; color: #090909; }

/* embedded in a NOWERA device frame */
.is-embed { scroll-behavior: auto; scrollbar-width: none; }
.is-embed::-webkit-scrollbar { display: none; }
.is-embed .rv { transition-duration: 0.6s; }

@media (max-width: 900px) {
  .hdr__in nav, .hdr__in .btn { display: none; }
  .burger { display: grid; }
  .hdr__in { height: 64px; }
  .drawer.is-open { display: grid; gap: 1rem; padding: 1rem var(--pad) 1.5rem; border-top: 1px solid var(--line); font-size: 1.1rem; }
  .hero--split .wrap, .split { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3.6; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sec__head { flex-direction: column; align-items: start; }
  .band { aspect-ratio: 4 / 3; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__btns .btn { flex: 1 1 100%; }
  .ftr__bottom { flex-direction: column; }
  .nv-ribbon span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}
