/* ==========================================================================
   Sprinkle Stars — Design tokens
   ========================================================================== */

:root {
  /* Palette */
  --navy: #0b1a2b;
  --navy-raised: #12233a;
  --navy-deep: #081422;
  --cream: #f6f0e4;
  --cream-panel: #eee3ce;
  --ink: #191410;
  --ink-soft: #4a4136;
  --brass: #b78a4a;
  --brass-light: #d7ad74;
  --brass-dim: #8a6738;
  --paper-on-navy: #efe7d6;
  --paper-on-navy-soft: #c3b79f;

  --line-on-navy: rgba(239, 231, 214, 0.16);
  --line-on-cream: rgba(25, 20, 16, 0.14);

  /* Type */
  --font-serif: "Spectral", "Iowan Old Style", "Georgia", serif;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --edge: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --measure: 42rem;
  --radius-sm: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Site is intentionally single-theme (deep navy editorial); no separate
       dark-mode palette is needed since the base is already dark-dominant. */
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Visible focus ring on every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.visually-hidden {
  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: var(--edge);
  top: -3rem;
  background: var(--brass);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Type
   ========================================================================== */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brass-light);
}

.section--on-cream .eyebrow {
  color: var(--brass-dim);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--paper-on-navy);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.section--on-navy h2 {
  color: var(--paper-on-navy);
}

.section--on-cream h2 {
  color: var(--ink);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.25;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  max-width: var(--measure);
}

.section--on-navy .lede {
  color: var(--paper-on-navy-soft);
}

.section--on-cream .lede {
  color: var(--ink-soft);
}

.body-copy {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 38rem;
}

.section--on-navy .body-copy {
  color: var(--paper-on-navy-soft);
}

.section--on-cream .body-copy {
  color: var(--ink-soft);
}

.body-copy + .body-copy {
  margin-top: 1.15em;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--on-navy {
  background: var(--navy);
}

.section--on-cream {
  background: var(--cream);
}

.section--panel {
  background: var(--cream-panel);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line-on-cream);
  margin: 0;
}

.section--on-navy .rule {
  background: var(--line-on-navy);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: 0.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col--reverse {
    direction: ltr;
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 26, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--brass-light);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__word {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--paper-on-navy);
  line-height: 1;
}

.brand__word span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  color: var(--paper-on-navy-soft);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.4rem);
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--paper-on-navy-soft);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--paper-on-navy);
  border-color: var(--brass);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--paper-on-navy);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 65px 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid var(--line-on-navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--edge) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line-on-navy);
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Media
   ========================================================================== */

.media {
  --ar: 4 / 3;
  position: relative;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: var(--navy-raised);
  border: 1px solid var(--line-on-navy);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--tall { --ar: 3 / 4; }
.media--wide { --ar: 16 / 9; }
.media--square { --ar: 1 / 1; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media .media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 34, 0.55) 0%,
    rgba(8, 20, 34, 0.72) 55%,
    rgba(8, 20, 34, 0.94) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(6rem, 16vw, 11rem) clamp(4.5rem, 10vw, 7rem);
  max-width: 46rem;
}

.hero__content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero__content .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.hero h1 {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero .lede {
  color: var(--paper-on-navy-soft);
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.38s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .lede {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  color: var(--paper-on-navy-soft);
  font-size: 0.8rem;
}

.hero__scroll-cue span.line {
  width: 34px;
  height: 1px;
  background: var(--line-on-navy);
  display: block;
}

/* ==========================================================================
   Product grid (Product range)
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.25rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.25rem);
}

.product-card .media {
  --ar: 4 / 3;
  margin-bottom: 1.25rem;
}

.product-card .media img {
  transition: transform 0.5s var(--ease);
}

.product-card:hover .media img {
  transform: scale(1.04);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--paper-on-navy);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.product-card__desc {
  font-family: var(--font-sans);
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--paper-on-navy-soft);
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-card .media {
    --ar: 5 / 4;
  }
}

/* ==========================================================================
   Strengths — hallmark stamps
   ========================================================================== */

.strengths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 940px) {
  .strengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .strengths {
    grid-template-columns: 1fr;
  }
}

.strength {
  text-align: center;
  padding-inline: 0.5rem;
}

.hallmark {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--line-on-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-dim);
}

.hallmark svg {
  width: 34px;
  height: 34px;
}

.strength h3 {
  margin-bottom: 0.65rem;
}

.strength p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================================
   People / stat-free callouts
   ========================================================================== */

.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--paper-on-navy);
  border-left: 2px solid var(--brass);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  max-width: 34rem;
}

/* ==========================================================================
   Why Sprinkle Stars (closing anchor)
   ========================================================================== */

.why {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.why__media {
  position: absolute;
  inset: 0;
}

.why__media .media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
}

.why__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 24, 0.88) 0%,
    rgba(6, 14, 24, 0.7) 45%,
    rgba(6, 14, 24, 0.92) 100%
  );
}

.why__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.why__content h2 {
  color: var(--paper-on-navy);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.why__content .body-copy {
  color: var(--paper-on-navy-soft);
  max-width: 40rem;
  font-size: 1.0625rem;
}

.why__content .body-copy + .body-copy {
  margin-top: 1.3em;
}

.why__mark {
  width: 40px;
  height: 40px;
  color: var(--brass);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-card .eyebrow {
  display: block;
  margin-bottom: 0.85rem;
}

.contact-card p,
.contact-card a {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  text-decoration: none;
  color: var(--paper-on-navy);
}

.contact-card a {
  display: block;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-card a:hover {
  border-color: var(--brass);
  color: var(--brass-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-on-navy);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .brand__mark {
  width: 22px;
  height: 22px;
}

.site-footer small {
  color: var(--paper-on-navy-soft);
  font-size: 0.8rem;
}

.site-footer__note {
  color: var(--paper-on-navy-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 22rem;
  text-align: right;
}

@media (max-width: 700px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .site-footer__note {
    text-align: left;
  }
}

/* ==========================================================================
   Misc content blocks
   ========================================================================== */

.stack {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.origin-media {
  --ar: 5 / 4;
}
