
/* Shared page canvas; the homepage supplies its own section surfaces. */
body {
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Phase 1C.1 Editorial Lavender Cake Atelier hero */
#home {
  position: relative;
  width: 100%;
  height: auto;
  background: var(--color-bg);
}

.home-hero-bg {
  position: relative;
  width: 100%;
  height: calc(100svh - 80px);
  min-height: 680px;
  max-height: 920px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  align-items: stretch;
  isolation: isolate;
  background: var(--color-bg);
}

.home-hero-media {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #edf1ef;
}

.home-hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: clamp(48px, 8vw, 112px);
  background: linear-gradient(
    90deg,
    var(--color-bg) 0%,
    rgba(255, 248, 239, 0.62) 34%,
    rgba(255, 248, 239, 0) 100%
  );
  pointer-events: none;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding:
    clamp(48px, 5vw, 96px)
    clamp(40px, 3.8vw, 64px)
    clamp(48px, 5vw, 96px)
    clamp(48px, 6vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-4);
  box-sizing: border-box;
}

.home-tagline {
  position: static;
  width: 100%;
  max-width: none;
  text-align: left;
  z-index: 2;
  pointer-events: auto;
  animation: none;
}

.home-tagline h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 4.65vw, 4.875rem);
  line-height: 1.01;
  color: var(--color-plum);
  text-shadow: none;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  position: static;
  display: block;
  animation: none;
}

.home-tagline h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero-subtitle {
  max-width: 39ch;
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.55;
}

.home-hero-content .hero-top-right {
  position: static;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  transform: none;
  z-index: 2;
  pointer-events: auto;
}

.home-hero-content .hero-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--motion-standard) var(--motion-ease),
    border-color var(--motion-standard) var(--motion-ease),
    color var(--motion-standard) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.home-hero-content .hero-btn:hover {
  transform: translateY(-1px);
}

.home-hero-content .hero-btn-primary {
  background: var(--color-plum);
  border-color: var(--color-plum);
  color: var(--color-bg);
}

.home-hero-content .hero-btn-primary:hover {
  background: var(--color-plum-soft);
  border-color: var(--color-plum-soft);
  color: var(--color-bg);
}

.home-hero-content .hero-btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--color-plum);
  color: var(--color-plum);
}

.home-hero-content .hero-btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.home-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(64px, 8vh, 104px);
  background: linear-gradient(to bottom, rgba(255, 248, 239, 0) 0%, var(--color-surface-warm) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 1025px) {
  .home-hero-fade {
    height: 140px;
    background: linear-gradient(
      to bottom,
      rgba(255, 248, 239, 0) 0%,
      rgba(246, 239, 231, 0.72) 62%,
      var(--color-surface-warm) 86%,
      var(--color-surface-warm) 100%
    );
    z-index: 3;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .home-hero-content {
    padding-right: 40px;
    padding-left: 48px;
  }

  .home-tagline h1 {
    font-size: clamp(3.25rem, 5vw, 3.6rem);
  }

  .home-hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .home-hero-bg {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    background: var(--color-bg);
  }

  .home-hero-media {
    grid-column: 1;
    grid-row: 2;
    height: clamp(600px, 78vw, 760px);
  }

  .home-hero-media::before {
    inset: 0 0 auto;
    width: 100%;
    height: clamp(32px, 5vw, 48px);
    background: linear-gradient(
      to bottom,
      var(--color-bg) 0%,
      rgba(255, 248, 239, 0.62) 42%,
      rgba(255, 248, 239, 0) 100%
    );
  }

  .home-hero-media img {
    object-position: center 22%;
  }

  .home-hero-content {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    padding:
      clamp(48px, 7vw, 72px)
      clamp(20px, 6vw, 64px)
      clamp(32px, 4vw, 40px);
    justify-content: flex-start;
    gap: var(--space-3);
  }

  .home-tagline {
    width: min(100%, 620px);
  }

  .home-tagline h1 {
    max-width: none;
    font-size: clamp(3rem, 7.2vw, 4.35rem);
    line-height: 1;
  }

  .home-hero-subtitle {
    max-width: 44ch;
    margin-top: var(--space-3);
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.55;
  }

  .home-hero-content .hero-top-right {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }

  .home-hero-content .hero-btn {
    width: auto;
    min-width: 156px;
    min-height: 50px;
    padding: 0 22px;
  }
}

@media (max-width: 560px) {
  .home-hero-content {
    padding: 48px clamp(18px, 5vw, 24px) 32px;
  }

  .home-tagline {
    width: 100%;
  }

  .home-tagline h1 {
    font-size: clamp(2.75rem, 10.8vw, 3.1rem);
  }

  .home-hero-content .hero-top-right {
    width: min(100%, 420px);
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }

  .home-hero-content .hero-btn {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
  }
}

/* Phase 1C.2A founder/about section */
.home-info {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(80px, 8vw, 104px) clamp(24px, 4vw, 48px);
  background: var(--color-surface-warm);
}

.home-info-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 72px);
}

.home-text,
.home-image {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
}

.home-info.animate .home-text,
.home-info.animate .home-image {
  opacity: 1;
  transform: translateY(0);
}

.home-info.animate .home-image {
  transition-delay: 40ms;
}

.home-text {
  order: 2;
  max-width: 590px;
  color: var(--color-text);
  font-family: var(--font-ui);
  text-align: left;
}

.home-eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-text h2 {
  max-width: 10.5em;
  margin: 0;
  color: var(--color-plum);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-founder-copy {
  max-width: 58ch;
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.home-signature {
  margin: var(--space-5) 0 0;
  color: var(--color-plum);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  line-height: 1.1;
}

.founder-press-links {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.founder-article-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--color-plum);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition:
    color var(--motion-standard) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.founder-article-link::after {
  content: "↗";
  font-size: 0.86em;
  line-height: 1;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.founder-article-link:hover {
  color: var(--color-accent);
  transform: translateY(-1px);
}

.founder-article-link:hover::after {
  transform: translate(1px, -1px);
}

.home-image {
  order: 1;
  position: relative;
  width: min(100%, 380px);
  justify-self: start;
}

.home-image::before {
  content: "";
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: var(--color-lavender);
  pointer-events: none;
}

.home-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 380px);
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .home-text,
  .home-image,
  .home-info.animate .home-image {
    transition-delay: 0ms;
    transform: none;
  }
}

@media (max-width: 768px) {
  .home-info {
    padding: clamp(56px, 14vw, 72px) 18px;
  }

  .home-info-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .home-text {
    order: 1;
    max-width: none;
  }

  .home-image {
    order: 2;
    width: min(82vw, 320px);
    margin-inline: auto;
    justify-self: center;
  }

  .home-image::before {
    inset: 16px -10px -14px 16px;
  }

  .home-image img {
    width: 100%;
    max-width: none;
    height: auto;
  }

  .home-text h2 {
    max-width: 11em;
    font-size: clamp(1.875rem, 9vw, 2.25rem);
    line-height: 1.08;
  }

  .home-founder-copy {
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.68;
  }

  .home-signature {
    font-size: 1.75rem;
  }

  .founder-press-links {
    width: min(100%, 360px);
    display: grid;
    gap: var(--space-2);
  }

  .founder-article-link {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .home-info {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-image::before {
    inset: 12px -6px -12px 12px;
  }
}
