/* ============================================================
   Fidgr — homepage
   Orange + blue theme. Copy, numbers, and photos are placeholders.
   Product material colors live in .fig so artwork can be recolored
   in one place.
   ============================================================ */

:root {
  --bg: #fdfbf8;
  --tint: #f5f3ef;
  --ink: #16213a;
  --muted: #5d6675;
  --faint: #98a0af;
  --hairline: rgba(22, 33, 58, .12);
  --surface: #ffffff;
  --deep: #101a30;

  --orange: #f97316;
  --orange-dark: #e2620a;
  --orange-ink: #b4440a;
  --orange-wash: rgba(249, 115, 22, .12);

  --blue: #2563eb;
  --blue-light: #c7dbff;
  --blue-dark: #12306b;
  --blue-ink: #1d4ed8;
  --blue-wash: rgba(37, 99, 235, .12);

  --accent: var(--orange);
  --accent-ink: var(--orange-ink);

  --radius: 16px;
  --radius-lg: 26px;

  --wrap: 1120px;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* --- artwork material ramps --- */
.fig,
.hero__art {
  --mat-light: #ffd0a1;
  --mat-mid: #f97316;
  --mat-dark: #7c3703;
  --mat-well1: #401d02;
  --mat-well2: #a9541a;
  --mat-line: #4d2403;
  --mat-sheen: #ffe3c7;
  --mat-occl: #3d1a02;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 20px; top: -70px; z-index: 60;
  background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: 0 0 12px 12px; transition: top .18s ease;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.ph { border-bottom: 1px dashed rgba(249, 115, 22, .5); padding-bottom: 1px; }

.kicker {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.kicker--light { color: #ffb877; }

h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 11px;
  background: rgba(22, 33, 58, .05); color: var(--ink);
  font-size: 15.5px; font-weight: 500;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; border-color: rgba(22, 33, 58, .18); }
.btn--ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue-ink); }
.btn--sm { padding: 10px 17px; font-size: 15px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(253, 251, 248, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--hairline); background: rgba(253, 251, 248, .97); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; color: var(--orange); }
.brand__word { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a:not(.btn) { font-size: 15.5px; color: var(--muted); transition: color .16s ease; }
.nav__links > a:not(.btn):hover { color: var(--blue-ink); }
.nav__mail { font-variant-numeric: tabular-nums; }
.nav__cta { display: none; }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--hairline);
  border-radius: 10px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 16px; height: 1.6px; background: var(--ink); transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; padding: 56px 0 40px;
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(37, 99, 235, .12), transparent 70%),
    radial-gradient(680px 400px at 4% 2%, rgba(249, 115, 22, .14), transparent 72%),
    linear-gradient(180deg, #fdf9f4 0%, var(--bg) 82%);
}
.hero__grid {
  display: grid; grid-template-columns: .78fr 1.22fr;
  gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin-bottom: 22px; }
.hero__line { font-size: 19px; color: var(--muted); max-width: 40ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Hero product artwork — v5 composition, photos side by side, equal size.
   Deliberately oversized: the product should read before the copy does. */
.hero__art {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; align-items: center;
  margin-right: -7%;
}
/* soft halo so the renders sit forward of the page */
.hero__art::before {
  content: ""; position: absolute; inset: -6% -2%;
  background:
    radial-gradient(closest-side at 32% 50%, rgba(37, 99, 235, .16), transparent 100%),
    radial-gradient(closest-side at 74% 50%, rgba(249, 115, 22, .18), transparent 100%);
  filter: blur(24px); z-index: -1;
}

.shot { margin: 0; position: relative; }
.shot img {
  width: 100%; height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 26px rgba(22, 33, 58, .18));
}

/* the blue six-arm shot turns slowly on its own axis */
.shot--main img { animation: revolve 34s linear infinite; }
.shot--side { animation: float 9s ease-in-out infinite 1.2s; }

/* vector fallback stays available but unused */
.hero__svg { width: 100%; height: auto; }
.hero__star { transform-origin: 180px 200px; animation: spin 90s linear infinite; }
.hero__barrel { transform-origin: 470px 208px; animation: float 9s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes revolve {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ticks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hairline);
}
.ticks li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.ticks li:nth-child(even)::before { background: var(--blue); }

/* ---------- Blocks ---------- */

.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--ink {
  background:
    radial-gradient(700px 400px at 88% 0%, rgba(37, 99, 235, .34), transparent 70%),
    radial-gradient(600px 360px at 4% 100%, rgba(249, 115, 22, .22), transparent 72%),
    var(--deep);
  color: #eef2f8;
}

.block { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.block--flip .block__art { order: 2; }
.block__art {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 26px;
  display: grid; place-items: center;
}
.block__art svg { width: 100%; height: auto; }

/* Transparent product photo: strip the white studio background */
.photo {
  width: 100%; height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
}

.block__copy p { color: var(--muted); font-size: 17px; max-width: 44ch; }
.block__copy p + p { margin-top: 14px; }
.block__copy h2 { margin-bottom: 18px; }

.head { margin-bottom: 56px; }
.head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.head__line { color: var(--muted); font-size: 17px; }

/* ---------- Shapes ---------- */

.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.shape { text-align: center; }
.shape__art {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 14% 12% 6%; margin-bottom: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.shape__art img { mix-blend-mode: multiply; }
.shape:hover .shape__art { transform: translateY(-4px); border-color: rgba(37, 99, 235, .35); }
.shape__art svg { width: 100%; height: auto; }
.shape__art--soon { display: grid; place-items: center; min-height: 210px; background: rgba(255, 255, 255, .6); }
.shape h3 { font-size: 22px; margin-bottom: 6px; }
.shape p { color: var(--muted); font-size: 15.5px; max-width: 30ch; margin: 0 auto; }

/* ---------- Practice band ---------- */

.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.practice h2 { color: #fff; }
.practice__line { color: rgba(238, 242, 248, .78); font-size: 17px; max-width: 40ch; margin-bottom: 28px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.tags li {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(199, 219, 255, .3);
  background: rgba(37, 99, 235, .16);
  font-size: 14.5px; color: #e2ebfa;
}
.tags li:nth-child(3n) { border-color: rgba(255, 208, 161, .34); background: rgba(249, 115, 22, .16); }
.note--light { color: rgba(238, 242, 248, .55); margin-top: 34px; font-size: 14px; }

/* ---------- Quote ---------- */

.quote { max-width: 820px; text-align: center; }
.quote blockquote {
  margin: 0 0 26px; font-family: var(--font-display);
  font-size: clamp(23px, 2.6vw, 32px); line-height: 1.36; letter-spacing: -.02em;
}
.quote figcaption { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--orange-wash), var(--blue-wash));
  border: 1px solid rgba(37, 99, 235, .2);
}

/* ---------- CTA ---------- */

.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 52px; border-radius: var(--radius-lg); border: 1px solid rgba(37, 99, 235, .18);
  background:
    radial-gradient(520px 300px at 6% 6%, rgba(249, 115, 22, .16), transparent 70%),
    radial-gradient(520px 300px at 96% 96%, rgba(37, 99, 235, .16), transparent 70%),
    var(--surface);
}
.cta__copy p { color: var(--muted); font-size: 16.5px; max-width: 38ch; }

.cta__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-link {
  display: inline-block;
  font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500; letter-spacing: -.02em; color: var(--ink);
  border-bottom: 2px solid rgba(249, 115, 22, .45);
  padding-bottom: 3px;
  transition: color .18s ease, border-color .18s ease;
}
.contact-link:hover { color: var(--blue-ink); border-bottom-color: var(--blue-ink); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 44px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.footer__inner p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.footer__contact { margin-top: 10px; }
.footer__contact a {
  font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: border-color .16s ease, color .16s ease;
}
.footer__contact a:hover { color: var(--blue-ink); border-bottom-color: var(--blue-ink); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--blue-ink); }
.footer__legal { grid-column: 1 / -1; color: var(--faint); font-size: 13.5px; }

/* ---------- Responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1000px) {
  .hero { padding: 40px 0 34px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { max-width: 620px; margin: 0 auto; width: 100%; }
  .block { grid-template-columns: 1fr; gap: 32px; }
  .block--flip .block__art { order: 0; }
  .shapes { grid-template-columns: 1fr 1fr; gap: 24px; }
  .practice { grid-template-columns: 1fr; gap: 28px; }
  .cta { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero__art { gap: 12px; }
  .shapes { grid-template-columns: 1fr; }
  .ticks { gap: 8px 22px; }
  .ticks li { font-size: 12.5px; }
  .footer__inner { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px 22px 24px;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
    transform: translateY(-130%); transition: transform .26s ease; pointer-events: none;
  }
  .nav__links.is-open { transform: none; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 12px 0; font-size: 16.5px; color: var(--ink); }
  .nav__cta { display: inline-flex; margin-top: 12px; }
  .nav__toggle { display: flex; }
  .form__row { flex-direction: column; }
  .cta__contact { width: 100%; }
}
