/* BadgeUpgrade – minimal site. Light/dark follows the device setting. */
:root {
  --bg: #f4f3f0;
  --surface: #e9e7e2;
  --text: #111111;
  --muted: #6b6964;
  --line: rgba(0, 0, 0, .1);
  --accent: #b08a4f;          /* brushed gold, picks up the lanyard tone */
  --btn-bg: #111111;
  --btn-text: #f4f3f0;
  --header-bg: rgba(244, 243, 240, .72);
  --radius: 18px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #161618;
    --text: #f2f1ee;
    --muted: #8e8c87;
    --line: rgba(255, 255, 255, .1);
    --accent: #d2ad6f;
    --btn-bg: #f2f1ee;
    --btn-text: #0b0b0c;
    --header-bg: rgba(11, 11, 12, .68);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; letter-spacing: .14em; font-size: 14px; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .shop {
  color: var(--btn-text); background: var(--btn-bg);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.nav .shop:hover { color: var(--btn-text); opacity: .85; }
@media (max-width: 520px) {
  .logo { font-size: 12px; letter-spacing: .1em; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .shop { padding: 7px 12px; }
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 8.5vw, 120px); }
h2 { font-size: clamp(34px, 5.5vw, 76px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.01em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34ch; margin: 22px 0 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--btn-bg); color: var(--btn-text);
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.on-image { background: #fff; color: #111; }
.btn.ghost.on-image { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18); animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%);
}
.hero .wrap {
  position: relative; z-index: 1; width: 100%; max-width: 1680px;
  padding-top: 90px; padding-bottom: clamp(16px, 4vh, 48px); will-change: transform, opacity;
}
/* wide, low box in the lower part of the image: title left, text + buttons right */
.hero-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end;
  gap: clamp(24px, 5vw, 96px);
  opacity: 0; animation: boxIn 1.4s .2s cubic-bezier(.2,.8,.2,1) forwards;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 4vw, 56px);
  border-radius: 24px;
  background: rgba(8, 8, 10, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.hero h1 { font-size: clamp(42px, 5.6vw, 92px); }
.hero .eyebrow { color: var(--accent); }
.hero-side { justify-self: end; max-width: 440px; }
.hero .lead { color: rgba(255,255,255,.9); margin: 0; }
.hero .btns { margin-top: 24px; }
@media (max-width: 860px) {
  .hero-box { grid-template-columns: 1fr; gap: 18px; }
  .hero-side { justify-self: start; }
}
.hero .eyebrow, .hero .lead, .hero .btns { opacity: 0; animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero .eyebrow { animation-delay: .5s; }
.hero .lead { animation-delay: 1.1s; }
.hero .btns { animation-delay: 1.3s; }
@keyframes heroIn { to { transform: scale(1.04); } }
@keyframes boxIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.page-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(40px, 6vw, 80px); }

/* ---------- Full-bleed images ---------- */
.bleed { width: 100%; height: clamp(420px, 90vh, 980px); object-fit: cover; }
.framed { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Motion: image curtain + parallax ---------- */
.js .framed.clip {
  clip-path: inset(14% 10% 14% 10% round calc(var(--radius) * 2));
  transition: clip-path 1.5s cubic-bezier(.7,0,.2,1), opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.js .framed.clip.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .framed.clip img { scale: 1.4; transition: scale 2s cubic-bezier(.2,.8,.2,1); will-change: translate; }
.js .framed.clip.in img { scale: 1.12; }
.js .framed.clip.diagram img, .js .framed.clip.contain img { scale: 1.15; }
.js .framed.clip.diagram.in img, .js .framed.clip.contain.in img { scale: 1; }

/* ---------- Motion: split headlines ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > i {
  display: inline-block; font-style: normal; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 70ms);
}
.split-in .w > i { transform: none; }

/* ---------- Motion: progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}
.header { transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.header.hide { transform: translateY(-100%); }

/* ---------- Expanding full-bleed image ---------- */
.expand { height: clamp(460px, 92vh, 1000px); overflow: hidden; clip-path: inset(0 6% 0 6% round 28px); will-change: clip-path; }
.expand img { width: 100%; height: 100%; object-fit: cover; scale: 1.25; will-change: scale, translate; }

/* ---------- Scrubbed quote ---------- */
[data-scrub] .sw { opacity: .16; transition: opacity .35s ease; }
[data-scrub] .sw.on { opacity: 1; }

/* ---------- Magnetic buttons ---------- */
.btn { transition: transform .2s ease, opacity .2s ease, translate .5s cubic-bezier(.2,.8,.2,1); }

/* ---------- Feature trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 7vw, 90px); }
.trio .num { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.trio h3 { margin: 14px 0 10px; }
.trio p { margin: 0; color: var(--muted); font-size: 16px; }
.trio > div { border-top: 1px solid var(--line); padding-top: 22px; }
/* Problem: deliberately dull. Solution: accent lines. */
.problems .num { color: var(--muted); font-size: 16px; }
.problems h3 { color: var(--muted); }
.solution { padding-top: 0; }
.checks { margin-top: 32px; }
.checks > div { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--accent); }
.checks .num { color: var(--accent); font-weight: 600; font-size: 16px; }
.checks h3 { margin: 0 0 4px; }
.checks p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip { grid-template-columns: 1fr 1.15fr; }
.split.flip .framed { order: 2; }
.split .framed { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .framed { order: 0; }
}

.layers { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: l; }
.layers li {
  counter-increment: l; display: flex; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px;
}
.layers li::before { content: "0" counter(l); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }

/* exploded view sits on white – keep it calm in dark mode */
.diagram { background: #fff; aspect-ratio: auto !important; padding: clamp(16px, 3vw, 40px); }
.diagram img { object-fit: contain; }

/* ---------- Gallery (Showroom) ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 24px); }
.gallery figure { margin: 0; }
.gallery .framed { height: 100%; }
.g-wide  { grid-column: span 12; aspect-ratio: 16 / 9; }
.g-big   { grid-column: span 7;  aspect-ratio: 4 / 5; }
.g-small { grid-column: span 5;  aspect-ratio: 4 / 5; }
.g-half  { grid-column: span 6;  aspect-ratio: 1 / 1; }
.gallery figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--muted); padding: 12px 4px 0;
}
.gallery figure { display: flex; flex-direction: column; }
.gallery figure .framed { flex: 1; }
.gallery figure.g-wide, .gallery figure.g-big, .gallery figure.g-small, .gallery figure.g-half { aspect-ratio: auto; }
.gallery figure.g-wide .framed { aspect-ratio: 16 / 9; }
.gallery figure.g-big .framed, .gallery figure.g-small .framed { aspect-ratio: 4 / 5; }
.gallery figure.g-half .framed { aspect-ratio: 1 / 1; }
.gallery .contain img { object-fit: contain; padding: 8%; }
@media (max-width: 760px) {
  .g-big, .g-small, .g-half { grid-column: span 12; }
  .gallery figure.g-wide .framed { aspect-ratio: 4 / 3; }
}

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.specs div { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.specs strong { display: block; font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.specs span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.person { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.person .framed { aspect-ratio: 4 / 5; }
.person blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.person .name { margin-top: 28px; font-weight: 600; }
.person .role { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.values > div { border-top: 1px solid var(--line); padding-top: 22px; }
.values p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- Launch signup ---------- */
.launch { background: var(--surface); }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .launch-grid { grid-template-columns: 1fr; } }
.signup { display: flex; flex-direction: column; gap: 14px; }
.signup label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.signup input, .signup textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.signup input:focus, .signup textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.signup input[aria-invalid="true"] { border-color: #d0453a; }
.signup .btn { justify-content: center; border: 0; cursor: pointer; margin-top: 6px; font-family: inherit; }
.signup .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--accent); font-weight: 600; }
.form-note.err { color: #d0453a; }

/* ---------- Team photo placeholder ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 2px dashed var(--line); background: var(--surface); color: var(--muted);
  padding: 24px;
}
.placeholder svg { width: 48px; height: 48px; margin: 0 auto 14px; opacity: .6; }
.placeholder strong { display: block; color: var(--text); font-size: 18px; font-weight: 600; }
.placeholder span { font-size: 14px; }
@media (max-width: 760px) { .placeholder { aspect-ratio: 4 / 3; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 14ch; margin: 0 auto; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .btns { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ---------- Scroll reveal (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  .hero-box, .hero .eyebrow, .hero .lead, .hero .btns { animation: none; opacity: 1; }
  .js .framed.clip { clip-path: none; transition: none; }
  .js .framed.clip img, .expand img { scale: 1; transition: none; }
  .expand { clip-path: none; }
  .w > i { transform: none; transition: none; }
  [data-scrub] .sw { opacity: 1; }
  .btn { transition: none; }
}

/* ---------- Team photo ---------- */
.team-photo { margin: 0; }
.team-photo figcaption { font-size: 14px; color: var(--muted); padding: 12px 4px 0; }

/* honeypot field: off-screen, invisible to people */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup { position: relative; }

/* single-column centered hero box (Coming Soon) */
.hero.center { align-items: center; }
.hero-box.solo { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; text-align: center; }
.hero-box.solo .lead { margin: 18px auto 0; max-width: 30ch; }
.hero-box.solo .btns { justify-content: center; }
.signup textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.signup label small { font-size: inherit; opacity: .7; }

/* ---------- WordPress ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- WPForms in the site design ---------- */
.signup-wrap { display: flex; flex-direction: column; gap: 14px; }
.signup-wrap .wpforms-container { margin: 0 !important; }
.signup-wrap .wpforms-form .wpforms-field-container { display: flex; flex-direction: column; gap: 14px; }
.signup-wrap .wpforms-form .wpforms-field { padding: 0 !important; margin: 0 !important; }
.signup-wrap .wpforms-form .wpforms-field-label {
  font-size: 14px !important; font-weight: 400 !important; color: var(--muted) !important; margin: 0 0 8px !important;
}
.signup-wrap .wpforms-form .wpforms-required-label { color: var(--accent) !important; }
.signup-wrap .wpforms-form input[type=text],
.signup-wrap .wpforms-form input[type=email],
.signup-wrap .wpforms-form textarea {
  width: 100% !important; max-width: 100% !important; height: auto !important;
  font: inherit !important; font-size: 17px !important; color: var(--text) !important;
  background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 14px !important;
  padding: 16px 18px !important; box-shadow: none !important; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.signup-wrap .wpforms-form textarea { min-height: 96px !important; resize: vertical; line-height: 1.5 !important; }
.signup-wrap .wpforms-form input:focus,
.signup-wrap .wpforms-form textarea:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent) !important;
}
.signup-wrap .wpforms-form input::placeholder, .signup-wrap .wpforms-form textarea::placeholder { color: var(--muted) !important; opacity: .8; }
.signup-wrap .wpforms-form .wpforms-field-limit-text, .signup-wrap .wpforms-form .wpforms-field-description { color: var(--muted) !important; font-size: 13px !important; }
.signup-wrap .wpforms-form .wpforms-submit-container { padding: 0 !important; margin-top: 20px !important; }
.signup-wrap .wpforms-form button[type=submit] {
  width: 100% !important; height: auto !important; display: inline-flex !important; justify-content: center; align-items: center;
  padding: 15px 26px !important; border-radius: 999px !important; border: 0 !important;
  background: var(--btn-bg) !important; color: var(--btn-text) !important;
  font: inherit !important; font-size: 16px !important; font-weight: 600 !important; cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.signup-wrap .wpforms-form button[type=submit]:hover { transform: translateY(-2px); }
.signup-wrap .wpforms-form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.signup-wrap label.wpforms-error, .signup-wrap .wpforms-error-container, .signup-wrap em.wpforms-error {
  color: #d0453a !important; font-size: 14px !important; font-style: normal !important; margin-top: 6px !important;
}
.signup-wrap .wpforms-form .wpforms-error { border-color: #d0453a !important; }
.signup-wrap .wpforms-confirmation-container-full, .signup-wrap .wpforms-confirmation-container {
  background: transparent !important; border: 1px solid var(--accent) !important; border-radius: 14px !important;
  color: var(--text) !important; padding: 20px 22px !important; margin: 0 !important; font-size: 17px;
}
.signup-wrap .wpforms-confirmation-container-full p { margin: 0; }
.form-placeholder { border: 2px dashed var(--line); border-radius: 14px; padding: 24px; color: var(--muted); }
