/* ==========================================================================
   InventHelp — Site 13
   Frosted glass panels over a luminous gradient ground.
   Airy geometric sans, translucent sheets, thin light borders.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, li {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a { color: inherit; }

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  /* ink */
  --ink:       #14162b;
  --ink-mid:   #3d4260;
  --ink-soft:  #5f6584;

  /* ground */
  --ground:    #eef1fb;
  --ground-2:  #e6ecfb;

  /* luminous accents */
  --violet:    #5b46e5;
  --violet-lo: #7b6bf0;
  --cyan:      #0e9bb5;
  --rose:      #c2439b;

  /* glass */
  --glass:        rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-thin:   rgba(255, 255, 255, 0.34);
  --edge:         rgba(255, 255, 255, 0.80);
  --edge-soft:    rgba(103, 112, 168, 0.20);
  --blur:         saturate(165%) blur(20px);

  --shadow-sm: 0 8px 22px -14px rgba(23, 26, 61, 0.42);
  --shadow-md: 0 26px 60px -34px rgba(23, 26, 61, 0.55);
  --shadow-lg: 0 44px 90px -46px rgba(23, 26, 61, 0.62);

  --sans:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --display: 'Sora', 'Manrope', 'Segoe UI', Arial, sans-serif;

  --measure: 68ch;
  --gutter:  1.6rem;
  --radius:  26px;
  --radius-sm: 16px;

  --step-2: 0.68rem;
  --step-1: 0.79rem;
  --step0:  1.06rem;
  --step1:  1.24rem;
  --step2:  1.55rem;
  --step3:  2.05rem;
  --step4:  3.05rem;
}

/* --- 3. Base ------------------------------------------------------------- */

body {
  position: relative;
  min-height: 100%;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step0);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* The gradient ground: fixed, soft, and behind every pane of glass. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 40rem at 12% -6%,  rgba(122, 106, 240, 0.42), transparent 62%),
    radial-gradient(52rem 38rem at 92% 8%,   rgba(14, 155, 181, 0.34),  transparent 60%),
    radial-gradient(46rem 40rem at 78% 92%,  rgba(194, 67, 155, 0.26),  transparent 62%),
    radial-gradient(50rem 42rem at 4% 88%,   rgba(94, 168, 246, 0.30),  transparent 64%),
    linear-gradient(168deg, var(--ground) 0%, var(--ground-2) 48%, #f4f1fb 100%);
}

/* A fine grain so the large flat washes never band. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.30) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,0.18) 0 1px, transparent 1px 3px);
}

::selection {
  background: rgba(91, 70, 229, 0.22);
  color: var(--ink);
}

a {
  color: #3f2fc4;
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(91, 70, 229, 0.45), rgba(14, 155, 181, 0.45));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 0.08em;
  transition: color 0.18s ease, background-size 0.18s ease;
}

a:hover {
  color: var(--rose);
  background-image: linear-gradient(90deg, rgba(194, 67, 155, 0.7), rgba(194, 67, 155, 0.7));
  background-size: 100% 2px;
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
  background-image: none;
}

strong { font-weight: 700; }

/* --- 4. Shell ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared glass recipe */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* --- 5. Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 10px 30px -26px rgba(23, 26, 61, 0.7);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2.5rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
  background-image: none;
  padding-bottom: 0;
}

.brand img { width: 196px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background-image: none;
  padding: 0.42rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--glass-thin);
  border-color: var(--edge);
}

.site-nav a[aria-current='page'] {
  color: #2c1f8f;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(91, 70, 229, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
}

/* --- 6. Hero + title block ----------------------------------------------- */

.masthead { padding: 2.6rem 0 0; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 0.6rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--glass-thin);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-lg);
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 20 / 9;
  background: rgba(255, 255, 255, 0.4);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.title-block {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin: -4.5rem auto 0;
  padding: 2.9rem 3rem 2.6rem;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Support pages open on the title block alone. */
.title-block.solo { margin-top: 0; }

.kicker {
  display: inline-block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #33228f;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(91, 70, 229, 0.26);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.35rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step4);
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
  background: linear-gradient(104deg, #1b1746 0%, #3b2bb0 46%, #0e7f9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.standfirst {
  font-size: var(--step1);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-mid);
  margin-top: 1.4rem;
  max-width: 46rem;
}

.byline {
  display: inline-block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge-soft);
}

/* --- 7. Article ---------------------------------------------------------- */

.article {
  padding: 3.2rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

/* Each section is its own pane of glass. */
.sheet {
  position: relative;
  padding: 2.9rem 3rem 2.5rem;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* A luminous hairline along the top edge of every pane. */
.sheet::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2.6rem;
  right: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 70, 229, 0.55), rgba(14, 155, 181, 0.5), transparent);
}

.sheet > p,
.sheet > ul,
.sheet > ol { max-width: var(--measure); }

.sheet > p { margin-bottom: 1.4rem; }

.sheet > p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step1);
  line-height: 1.68;
  font-weight: 500;
  color: var(--ink-mid);
}

.lead strong { color: var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.eyebrow::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 155, 181, 0.45), transparent);
}

.sheet > h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step3);
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: 1.3rem;
  max-width: 24ch;
  text-wrap: balance;
}

.sheet > h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step2);
  line-height: 1.26;
  letter-spacing: -0.018em;
  margin: 2.2rem 0 0.85rem;
}

/* Lists */

.sheet ul li,
.sheet ol li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
}

.sheet ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-lo), var(--cyan));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.sheet ol { counter-reset: seq; }

.sheet ol li { counter-increment: seq; }

.sheet ol li::before {
  content: counter(seq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--violet);
  line-height: 2.4;
}

/* Data rows — the small figure/label pairs used in the ledger sections */

.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.9rem 0 1.9rem;
  padding: 0;
}

.ledger li {
  padding: 1.15rem 1.25rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.ledger li::before { display: none; }

.ledger .fig {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2f2196;
}

.ledger .cap {
  display: block;
  font-size: 0.79rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* Pull quote */

.pull {
  position: relative;
  margin: 2.4rem 0;
  padding: 2rem 2.2rem 1.8rem 2.5rem;
  background: linear-gradient(120deg, rgba(255,255,255,0.78), rgba(255,255,255,0.5));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pull::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--violet), var(--cyan) 60%, var(--rose));
}

.pull p {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step2);
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 40ch;
}

.pull .attrib {
  display: block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* Figures */

figure.shot {
  margin: 2.3rem 0;
  padding: 0.5rem;
  background: var(--glass-thin);
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius-sm) + 8px);
  box-shadow: var(--shadow-md);
}

/* Inside a sheet, a figure stretches to the pane's inner edges. */
.sheet > figure.shot {
  margin-left: -1rem;
  margin-right: -1rem;
}

figure.shot .frame {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
}

figure.shot .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

figure.shot figcaption {
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.85rem 0.7rem 0.35rem;
}

/* A figure that stands between panes, at full container width. */
.article > figure.band {
  margin: 0;
  padding: 0.6rem;
}

.ratio-wide  { aspect-ratio: 16 / 9; }
.ratio-cine  { aspect-ratio: 21 / 9; }
.ratio-still { aspect-ratio: 3 / 2; }
.ratio-tall  { aspect-ratio: 4 / 5; }

/* Closing line */

.closing {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-soft);
  font-size: var(--step1);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: var(--measure);
}

.endnote {
  display: inline-block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.6rem;
}

/* --- 8. Footer ----------------------------------------------------------- */

.site-footer {
  margin-top: 1rem;
  padding: 2.6rem 0 3rem;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--edge);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  padding: 1.9rem 2.2rem;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.footer-mark {
  line-height: 0;
  background-image: none;
  padding-bottom: 0;
}

.footer-mark img { width: 172px; height: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.4rem;
}

.footer-nav a {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background-image: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-nav a:hover {
  color: #2c1f8f;
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--edge);
}

/* Injected link columns */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.footer-cols section {
  padding: 1.7rem 1.8rem;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.footer-cols h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2c1f8f;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--edge-soft);
}

.footer-cols ul li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 0.95rem;
  line-height: 1.5;
}

.footer-cols ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-lo), var(--cyan));
}

.footer-cols a {
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  background-image: none;
  padding-bottom: 0;
}

.footer-cols a:hover { color: var(--rose); text-decoration: underline; }

.copyright {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-soft);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- 9. Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --step4: 2.7rem; }
  .title-block { padding: 2.5rem 2.4rem 2.3rem; }
  .sheet { padding: 2.5rem 2.4rem 2.2rem; }
}

@media (max-width: 900px) {
  :root {
    --step4: 2.32rem;
    --step3: 1.8rem;
    --step2: 1.4rem;
    --radius: 22px;
  }

  .masthead { padding-top: 1.9rem; }

  .hero-media { aspect-ratio: 16 / 9; }

  .title-block {
    margin-top: -3rem;
    padding: 2.2rem 2rem 2rem;
  }

  .sheet { padding: 2.2rem 2rem 1.9rem; }

  .sheet::before { left: 1.8rem; right: 1.8rem; }

  .sheet > h2 { max-width: 28ch; }

  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root {
    --step0: 1.01rem;
    --step4: 1.95rem;
    --step3: 1.55rem;
    --step2: 1.28rem;
    --step1: 1.12rem;
    --gutter: 1.05rem;
    --radius: 18px;
    --radius-sm: 13px;
  }

  body { line-height: 1.72; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .brand img { width: 160px; }

  .site-nav { gap: 0.35rem 0.3rem; }

  .site-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.34rem 0.7rem;
  }

  .hero-card { padding: 0.4rem; }

  .hero-media { aspect-ratio: 3 / 2; }

  .title-block {
    margin-top: -2rem;
    padding: 1.7rem 1.35rem 1.6rem;
  }

  .kicker { font-size: 0.63rem; letter-spacing: 0.18em; margin-bottom: 1.1rem; }

  .article { padding: 2.2rem 0 2.8rem; gap: 1.3rem; }

  .sheet { padding: 1.75rem 1.35rem 1.5rem; }

  .sheet::before { left: 1.2rem; right: 1.2rem; }

  .sheet > figure.shot { margin-left: -0.55rem; margin-right: -0.55rem; }

  .ledger { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }

  .pull { padding: 1.5rem 1.3rem 1.4rem 1.6rem; }

  .ratio-cine  { aspect-ratio: 16 / 10; }
  .ratio-wide  { aspect-ratio: 4 / 3; }
  .ratio-still { aspect-ratio: 4 / 3; }
  .ratio-tall  { aspect-ratio: 3 / 4; }

  .footer-top { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.3rem; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .footer-cols section { padding: 1.4rem 1.3rem; }
}

/* --- 10. Fallbacks, motion, print ---------------------------------------- */

/* Where backdrop-filter is unavailable, thicken the panes so text stays legible. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header,
  .site-footer,
  .sheet,
  .title-block,
  .pull,
  .footer-cols section { background: rgba(255, 255, 255, 0.9); }
}

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

@media print {
  body::before,
  body::after { display: none; }
  .site-header, .site-footer { display: none; }
  body { background: #fff; }
  .sheet, .title-block { box-shadow: none; border-color: #ddd; background: #fff; }
  h1 { color: #14162b; -webkit-text-fill-color: #14162b; }
}
