@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --bg: #fff8ed;
  --surface: #fffdf8;
  --surface-2: #ffe7ee;
  --surface-3: #ffd6e2;
  --text: #442019;
  --muted: #8d736b;
  --pink: #ec3479;
  --pink-2: #ff6ca0;
  --cream: #fff3c7;
  --blush: #ffc7da;
  --green: #9aa91a;
  --line: rgba(68,32,25,.12);
  --shadow: 0 28px 80px rgba(102,44,63,.14);
  --max: 1280px;
  --content: 770px;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 3%, rgba(255,243,199,.95), transparent 22%),
    linear-gradient(180deg, #fffaf0 0%, #fff5f7 100%);
  color: var(--text);
  font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.narrow { max-width: var(--content); }
.section-shell {
  position: relative;
  padding: 118px 0;
  overflow: clip;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Nunito", "DM Sans", sans-serif;
  text-wrap: balance;
}
h1 {
  margin-bottom: 14px;
  font-size: clamp(4.5rem, 10vw, 9.2rem);
  line-height: .9;
  letter-spacing: -.03em;
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
p { color: var(--muted); text-wrap: pretty; }
.lede {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.65;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  padding: 28px 0;
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portfolio-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(16px);
}
.back-link {
  color: var(--text);
  text-decoration: none;
  font-size: .94rem;
}

/* Hero */
.hero {
  min-height: 1000px;
  padding-top: 170px;
  padding-bottom: 0;
}
.hero-copy { position: relative; z-index: 2; }
.hero-dek {
  margin-bottom: 24px;
  max-width: 920px;
  color: var(--text);
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.hero-intro {
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.72;
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta div {
  min-height: 112px;
  padding: 20px 22px 20px 0;
}
.project-meta div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.project-meta dt {
  margin-bottom: 7px;
  color: var(--pink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-meta dd {
  margin: 0;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.55;
}
.hero-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
  margin-top: 76px;
}
.hero-phones .phone { width: min(28vw, 340px); }
.hero-phones .phone-a { transform: translateY(74px) rotate(-5deg); }
.hero-phones .phone-b { z-index: 2; width: min(31vw, 390px); }
.hero-phones .phone-c { transform: translateY(74px) rotate(5deg); }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.glow-pink { width: 520px; height: 520px; right: -160px; top: 100px; background: rgba(255,108,160,.28); }
.glow-cream { width: 480px; height: 480px; left: -170px; bottom: 20px; background: rgba(255,225,120,.3); }

.phone {
  overflow: hidden;
  border: 1px solid rgba(68,32,25,.08);
  border-radius: 38px;
  background: #fff8f5;
  box-shadow: var(--shadow);
}

/* Problem */
.problem {
  background: rgba(255,255,255,.42);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 70px;
}
.problem-grid article {
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.problem-grid article:nth-child(2) { background: rgba(255,231,238,.65); }
.problem-grid article:nth-child(3) { background: rgba(255,243,199,.58); }

/* Strategy */
.flow-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 70px;
}
.flow-step {
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.6);
}
.flow-step span {
  display: block;
  color: var(--pink);
  font-size: .75rem;
  font-weight: 800;
}
.flow-step strong {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  font-size: 1.3rem;
}
.flow-step small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
}
.flow-arrow { color: #cfa1ae; font-size: 1.4rem; }

/* Shared */
.section-heading {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.section-heading > p {
  max-width: 420px;
  margin-bottom: 18px;
  line-height: 1.72;
}
.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.sticky-copy {
  position: sticky;
  top: 72px;
  align-self: start;
}
.feature-phone {
  width: min(420px, 100%);
  margin-inline: auto;
}
.plain-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  position: relative;
}
.plain-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 800;
}

/* Product */
.product {
  background: linear-gradient(180deg, rgba(255,231,238,.42), rgba(255,255,255,0));
}
.product-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.product-grid > .phone {
  width: min(430px, 100%);
  margin-inline: auto;
}
.product-copy {
  display: grid;
  gap: 18px;
}
.principle-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}
.principle-card .number {
  color: var(--pink);
  font-weight: 900;
  font-size: .74rem;
}
.principle-card h3 { margin-top: 22px; }

/* Fulfillment */
.fulfillment {
  background: rgba(255,255,255,.45);
}
.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fulfillment-grid article { min-width: 0; }
.fulfillment-grid h3 {
  min-height: 64px;
  max-width: 27ch;
}
.fulfillment-grid .phone { margin-top: 28px; }

/* Decision */
.decision-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,243,199,.72), transparent 28%),
    linear-gradient(135deg, #ffe0e9, #fff9ec);
  border: 1px solid rgba(236,52,121,.13);
}
.decision-card h2 { font-size: clamp(2.4rem, 4.7vw, 4.8rem); }

/* System */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.system-card {
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.65);
}
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(68,32,25,.06);
}
.swatch.pink { background: var(--pink); }
.swatch.cream { background: var(--cream); }
.swatch.brown { background: var(--text); }
.swatch.blush { background: var(--blush); }
.type-sample {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: var(--text);
}
.mini-nav {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: #fff3f7;
}
.mini-nav span {
  flex: 1;
  padding: 12px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
.mini-nav span:first-child { background: #ffdbe7; color: var(--pink); }

/* Outcome */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.outcome-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.outcome-grid li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.outcome-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 900;
}
.next-card {
  padding: clamp(40px, 6vw, 82px);
  border: 1px solid rgba(236,52,121,.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,243,199,.78), transparent 30%),
    linear-gradient(135deg, rgba(255,199,218,.72), rgba(255,255,255,.66));
}

/* Footer */
.site-footer {
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}
.footer-inner a {
  color: var(--text);
  text-decoration: none;
}

/* UI polish */
.problem-grid article,
.flow-step,
.principle-card,
.system-card,
.next-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover:hover) {
  .problem-grid article:hover,
  .flow-step:hover,
  .principle-card:hover,
  .system-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(102,44,63,.08);
  }
}

@media (max-width: 1024px) {
  .section-shell { padding: 96px 0; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-meta div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .project-meta div:nth-child(4) { border-top: 1px solid var(--line); }
  .flow-line { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .problem-grid,
  .fulfillment-grid,
  .system-grid { grid-template-columns: 1fr 1fr; }
  .fulfillment-grid article:last-child,
  .system-grid article:last-child { grid-column: 1 / -1; max-width: 50%; }
  .hero { min-height: auto; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section-shell { padding: 78px 0; }
  .site-header { padding-top: 18px; }
  h1 { font-size: clamp(4rem, 22vw, 6.8rem); }
  h2 { font-size: clamp(2.3rem, 11.5vw, 4rem); }
  .hero { padding-top: 126px; }
  .hero-intro, .lede { line-height: 1.6; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta div,
  .project-meta div + div {
    min-height: auto;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .project-meta div:first-child { border-top: 0; }

  .hero-phones {
    justify-content: flex-start;
    gap: 14px;
    width: calc(100% + 80px);
    margin-left: -40px;
    overflow: hidden;
  }
  .hero-phones .phone,
  .hero-phones .phone-b {
    flex: 0 0 55vw;
    width: 55vw;
  }
  .hero-phones .phone-a { transform: translateY(36px) rotate(-4deg); }
  .hero-phones .phone-c { transform: translateY(36px) rotate(4deg); }

  .problem-grid,
  .section-heading,
  .split,
  .split.reverse,
  .product-grid,
  .fulfillment-grid,
  .decision-card,
  .system-grid,
  .outcome-grid { grid-template-columns: 1fr; }

  .problem-grid article { min-height: 0; }
  .flow-line { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; margin-bottom: 48px; }
  .sticky-copy { position: static; }
  .feature-phone,
  .product-grid > .phone { width: min(82vw, 390px); }
  .fulfillment-grid h3 { min-height: 0; }
  .fulfillment-grid .phone { width: min(82vw, 390px); margin-inline: auto; }
  .fulfillment-grid article:last-child,
  .system-grid article:last-child { grid-column: auto; max-width: none; }
  .decision-card { gap: 24px; padding: 32px 26px; }
  .outcome-grid { gap: 34px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* AI-assisted process */
.ai-process {
  background:
    radial-gradient(circle at 14% 18%, rgba(255,108,160,.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,231,238,.28));
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.ai-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.ai-grid article > span {
  display: block;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 800;
}

.ai-grid article h3 {
  margin-top: 38px;
}

.ai-grid article p {
  font-size: .9rem;
  line-height: 1.65;
}

.process-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  color: var(--text);
  font-size: .92rem;
}

.process-line span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  line-height: 1.2;
}

.process-line i {
  color: #c99aa8;
  font-style: normal;
}

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

  .ai-grid article:last-child {
    grid-column: 1 / -1;
  }
}

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

  .ai-grid article:last-child {
    grid-column: auto;
  }

  .process-line {
    justify-content: flex-start;
  }

  .process-line i {
    display: none;
  }
}
