:root {
  --cream: #faf6e7;
  --red: #c82922;
  --black: #000000;
  --brown: #9f8b71;
  --taupe: #938069;
  --blush: #f5e3d5;

  --card-cream: #f0ecde;
  --card-light: #e1ddd0;
  --card-light-2: #e5e1d4;
  --label-dark: rgba(32, 29, 26, 0.5);

  --font-display: "Montserrat", sans-serif;
  --font-label: "Geist", "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

a {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--red);
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 231, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 12px 28px;
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

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

.hero {
  position: relative;
  padding: 64px 28px 0;
}

.hero-bg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1560px, 150vw);
  max-width: none;
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.hero-logo-lockup {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1254.716 / 468.16;
}

.hero-ladle {
  position: absolute;
  left: 22.156%;
  top: 0;
  width: 14.028%;
  height: auto;
}

.hero-wordmark {
  position: absolute;
  left: 0;
  top: 41.87%;
  width: 100%;
  height: auto;
}

.email-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.email-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 99px;
}

.email-input {
  flex: 1 1 160px;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--black);
}

.email-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.email-form .btn-primary {
  flex-shrink: 0;
  height: 48px;
}

.email-form .form-message {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--black);
}

.email-form .form-message:empty {
  display: none;
}

.email-form .form-message.success {
  color: #2f6b3a;
}

.email-form .form-message.error {
  color: #b3261e;
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.22;
  color: var(--black);
}

/* ---------- Shared section wrap ---------- */

.section-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 140px 28px 0;
}

.section-heading {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 80px);
  line-height: 1.1;
  letter-spacing: 0.8px;
  color: var(--red);
  text-align: center;
}

/* ---------- Statement card ---------- */

.statement-card {
  background: var(--brown);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 88px) clamp(20px, 6vw, 64px);
}

.statement {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 5.5vw, 80px);
  line-height: 1.15;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.statement-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pill {
  flex: 1 0 60px;
  min-width: 60px;
  height: 1.225em;
  border-radius: 100px;
}

.pill-red {
  background: var(--red);
}

.pill-cream {
  background: var(--cream);
}

.pill-blush {
  background: var(--blush);
  align-self: stretch;
  height: auto;
}

/* ---------- Split container (search / library) ---------- */

.split-container {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.panel {
  flex: 1 1 380px;
  min-width: 0;
  min-height: 600px;
  padding: 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(250, 246, 231, 0.63);
}

.eyebrow-dark {
  color: rgba(32, 29, 26, 0.56);
}

.search-panel {
  background: var(--red);
  justify-content: space-between;
}

.search-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-query {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.25;
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
}

.search-query strong {
  font-weight: 700;
  font-style: normal;
  color: var(--black);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
}

.library-panel {
  background: var(--taupe);
  gap: 32px;
}

.library-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-row-1,
.library-grid > .card {
  flex: 1;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
}

.card {
  height: 220px;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--label-dark);
}

.card-cream {
  background: var(--card-cream);
}

.card-red {
  background: var(--red);
}

.card-light {
  background: var(--card-light);
}

.card-light2 {
  background: var(--card-light-2);
}

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

.cta {
  position: relative;
  margin-top: 140px;
  overflow: clip;
  background: var(--red);
  padding: clamp(60px, 12vw, 120px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.cta-ladle {
  position: absolute;
  width: 60vw;
  max-width: 820px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.cta-ladle-1 {
  top: -30%;
  left: -30%;
  transform: rotate(45deg);
}

.cta-ladle-2 {
  top: -25%;
  right: -30%;
  transform: rotate(165deg);
}

.cta-heading {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 1100px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 120px);
  line-height: 1.1;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

.cta .email-form {
  position: relative;
  z-index: 1;
}

.cta-contact {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(250, 246, 231, 0.75);
}

.cta-contact a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-contact a:hover {
  color: #ffffff;
}

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

@media (max-width: 900px) {
  .split-container {
    flex-direction: column;
  }

  .panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .card {
    height: 150px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    align-items: center;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .statement-line {
    justify-content: center;
  }

  .panel {
    padding: 28px;
  }

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

  .card {
    height: 120px;
  }

  .section-wrap {
    padding-top: 80px;
  }

  .cta {
    margin-top: 80px;
  }

  .email-form-row {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .email-form-row .email-input {
    flex: 0 0 auto;
  }

  .email-form-row .btn-primary {
    flex: 0 0 auto;
    width: 100%;
  }
}
