/* Méli Mélo Artisan Bakery — production stylesheet */
:root {
  --cream: #fef7f8;
  --paper: #fffdfb;
  --purple: #452177;
  --purple-2: #5D3490;
  --pink: #d96193;
  --gold: #f9c43a;
  --ink: #2d2533;
  --muted: #766e78;
  --line: rgba(69,33,119,.14);
  --white: #fff;
  --shadow: 0 24px 70px rgba(69,33,119,.12);
  --radius: 28px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--purple); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; left: 18px; top: 18px; z-index: 9999; background: var(--white); color: var(--purple); padding: 12px 16px; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.eyebrow, .micro-label { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--purple); }
.micro-label { font-size: 11px; color: var(--muted); }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--serif); color: var(--purple); font-weight: 500; letter-spacing: -.04em; line-height: .95; }
h1 { font-size: clamp(58px, 8vw, 110px); }
h2 { font-size: clamp(48px, 6vw, 82px); }
h3 { font-size: 34px; }
em { font-weight: 400; color: var(--pink); }

.btn { min-height: 52px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 800; letter-spacing: .01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 12px 25px rgba(69,33,119,.18); }
.btn-primary:hover { background: var(--purple-2); box-shadow: 0 16px 30px rgba(69,33,119,.24); }
.btn-secondary { background: var(--pink); color: var(--white); }
.btn-quiet { border-color: var(--line); color: var(--purple); background: rgba(255,255,255,.55); }
.btn-light { background: var(--white); color: var(--purple); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.text-link { color: var(--purple); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(69,33,119,.25); text-underline-offset: 5px; }

/* announcement + nav */
.stand-bar { background: var(--purple); color: rgba(255,255,255,.92); font-size: 12px; }
.stand-bar__inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.stand-bar__inner a { color: var(--gold); font-weight: 800; }
.stand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(249,196,58,.12); }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(254,247,248,.88); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(69,33,119,.06); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { width: 92px; height: 74px; display: flex; align-items: center; }
.brand img { width: 92px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.site-nav { display: flex; gap: 30px; align-items: center; font-size: 13px; font-weight: 750; }
.site-nav > a:not(.nav-order) { position: relative; }
.site-nav > a:not(.nav-order)::after { content:""; position:absolute; left:0; right:100%; bottom:-5px; height:1px; background:var(--purple); transition:right .2s ease; }
.site-nav > a:not(.nav-order):hover::after { right:0; }
.nav-order { background: var(--purple); color: var(--white); padding: 11px 18px; border-radius: 999px; }
.menu-toggle { display:none; width:44px; height:44px; border:0; background:transparent; padding:10px; }
.menu-toggle span:not(.sr-only) { display:block; height:1.5px; margin:6px 0; background:var(--purple); transition:.2s ease; }

/* hero */
.hero { padding-top: 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-lead { max-width: 620px; font-family: var(--serif); font-size: clamp(21px,2vw,28px); line-height: 1.38; color: #534b58; }
.hero-actions { margin-top: 34px; display:flex; flex-wrap:wrap; gap:12px; }
.hero-notes { margin-top: 36px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.hero-notes i { width:4px; height:4px; border-radius:50%; background:var(--gold); }
.hero-visual { position: relative; min-width: 0; }
.hero-image-wrap { position: relative; border-radius: 48% 48% 26px 26px / 36% 36% 26px 26px; overflow:hidden; aspect-ratio: .83; box-shadow: var(--shadow); background:#ddd; }
.hero-image-wrap::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(69,33,119,0) 58%,rgba(69,33,119,.22)); pointer-events:none; }
.hero-image-wrap img { width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-stamp { position:absolute; left:28px; bottom:28px; z-index:2; width:110px; height:110px; border-radius:50%; display:grid; place-content:center; text-align:center; background:var(--gold); color:var(--purple); transform:rotate(-8deg); }
.hero-stamp span { font-size:9px; font-weight:900; letter-spacing:.12em; }
.hero-stamp strong { font-family:var(--serif); font-size:38px; line-height:1; }
.hero-logo-card { position:absolute; right:-48px; bottom:-45px; width:200px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:var(--cream); box-shadow:0 18px 45px rgba(69,33,119,.12); border:1px solid rgba(69,33,119,.09); }
.hero-logo-card img { width:86%; height:auto; aspect-ratio:1 / 1; object-fit:contain; }

/* manifesto */
.manifesto { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.36); }
.manifesto-grid { display:grid; grid-template-columns:.36fr 1.64fr; gap:36px; align-items:start; }
.manifesto-line { margin:0; font-family:var(--serif); color:var(--purple); font-size:clamp(35px,5vw,68px); line-height:1.08; letter-spacing:-.035em; }
.manifesto-line span { color:var(--pink); font-style:italic; }

/* heading */
.section-heading { display:grid; grid-template-columns:1.2fr .8fr; gap:72px; align-items:end; margin-bottom:58px; }
.section-heading h2 { margin-bottom:0; }
.section-intro { max-width:440px; margin:0 0 8px; color:var(--muted); font-size:17px; }

/* products */
.breads { background:var(--paper); }
.product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.product-card { min-width:0; }
.product-image { position:relative; overflow:hidden; border-radius:var(--radius); aspect-ratio:.88; background:#eadfe3; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-image img { transform:scale(1.035); }
.price-pill { position:absolute; top:18px; right:18px; width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:var(--cream); color:var(--purple); font-family:var(--serif); font-size:23px; box-shadow:0 9px 30px rgba(69,33,119,.12); }
.product-copy { padding:24px 8px 0; }
.product-copy h3 { margin-bottom:12px; }
.product-copy p:not(.micro-label) { color:var(--muted); min-height:78px; }

/* story */
.story { background:var(--cream); overflow:hidden; }
.story-grid { display:grid; grid-template-columns:1fr .88fr; gap:86px; align-items:center; }
.story-image { position:relative; }
.story-image > img { width:100%; aspect-ratio:.88; object-fit:cover; border-radius:28px 220px 28px 28px; box-shadow:var(--shadow); }
.story-tag { position:absolute; left:-24px; bottom:32px; background:var(--gold); color:var(--purple); border-radius:50%; width:152px; height:152px; display:grid; place-items:center; text-align:center; padding:25px; font-size:11px; line-height:1.5; text-transform:uppercase; font-weight:900; letter-spacing:.1em; transform:rotate(7deg); }
.story-copy h2 { margin-bottom:30px; }
.story-copy > p { color:var(--muted); font-size:17px; max-width:560px; }
.story-copy .story-lead { font-family:var(--serif); color:var(--ink); font-size:25px; line-height:1.4; }
.script-note { margin-top:34px!important; color:var(--pink)!important; font-family:var(--serif)!important; font-style:italic; font-size:29px!important; }

/* process */
.process { background:var(--purple); color:rgba(255,255,255,.86); }
.process .eyebrow, .eyebrow-light { color:var(--gold); }
.process h2, .process h3 { color:var(--white); }
.process .section-intro { color:rgba(255,255,255,.67); }
.steps { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.16); border-bottom:1px solid rgba(255,255,255,.16); }
.step { min-height:245px; padding:35px 34px; border-right:1px solid rgba(255,255,255,.16); }
.step:last-child { border-right:0; }
.step span { color:var(--gold); font-size:12px; font-weight:900; letter-spacing:.14em; }
.step h3 { margin:48px 0 12px; }
.step p { color:rgba(255,255,255,.68); max-width:250px; }
.center-cta { text-align:center; margin-top:36px; }
.process .btn-primary { background:var(--gold); color:var(--purple); box-shadow:none; }

/* craft */
.craft { background:var(--paper); }
.craft-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:86px; align-items:center; }
.craft-copy > p:not(.eyebrow) { color:var(--muted); max-width:480px; font-size:17px; }
.craft-list { list-style:none; margin:35px 0 0; padding:0; border-top:1px solid var(--line); }
.craft-list li { display:flex; align-items:center; gap:20px; padding:15px 0; border-bottom:1px solid var(--line); font-family:var(--serif); color:var(--purple); font-size:23px; }
.craft-list span { font-family:var(--sans); font-size:10px; font-weight:900; letter-spacing:.14em; color:var(--pink); }
.craft-images { min-height:650px; position:relative; }
.craft-main { position:absolute; top:0; right:0; width:72%; aspect-ratio:.88; object-fit:cover; border-radius:260px 260px 28px 28px; box-shadow:var(--shadow); }
.craft-small { position:absolute; left:0; bottom:0; width:49%; aspect-ratio:1; object-fit:cover; border-radius:28px; border:12px solid var(--paper); box-shadow:0 18px 45px rgba(69,33,119,.13); }

/* bread stand */
.bread-stand { background:var(--cream); }
.stand-card { position:relative; overflow:hidden; min-height:520px; background:var(--pink); color:var(--white); border-radius:36px; display:grid; grid-template-columns: 1.08fr .92fr; align-items:stretch; box-shadow:var(--shadow); }
.stand-card::before { content:""; position:absolute; width:420px; height:420px; border:1px solid rgba(255,255,255,.22); border-radius:50%; left:-110px; top:-210px; }
.stand-card__copy { padding:72px; position:relative; z-index:2; }
.stand-card h2 { color:var(--white); margin-bottom:24px; }
.stand-card p:not(.eyebrow) { max-width:610px; color:rgba(255,255,255,.82); font-size:18px; }
.stand-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.stand-card__art { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 42px 48px; background: rgba(69,33,119,.14); clip-path: none;}
.stand-card__art img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 18px; box-shadow: 0 18px 45px rgba(69,33,119,.20); border: 1px solid rgba(255,255,255,.22); opacity: 1;}
  
/* instagram */
.instagram { background:var(--paper); }
.insta-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:34px; }
.insta-heading h2 { margin-bottom:0; }
.insta-grid { display:grid; grid-template-columns:1fr 1.12fr 1fr; gap:16px; }
.insta-grid img { width:100%; height:430px; object-fit:cover; border-radius:20px; }
.insta-grid img:nth-child(2) { transform:translateY(34px); }

/* final cta */
.final-cta { background:var(--cream); }
.final-cta__inner { text-align:center; max-width:760px; }
.final-cta__inner p:not(.eyebrow) { max-width:550px; margin:0 auto 28px; color:var(--muted); font-size:17px; }
.final-cta__inner h2 { margin-bottom:26px; }

/* footer */
.site-footer { background:#24103D; color:rgba(255,255,255,.72); padding:70px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.5fr .65fr .85fr; gap:70px; padding-bottom:50px; }
.footer-brand img { width:170px; height:auto; aspect-ratio:1 / 1; object-fit:contain; margin-bottom:20px; }
.footer-brand p { max-width:430px; }
.site-footer a, .site-footer span { display:block; padding:5px 0; }
.site-footer a:hover { color:var(--gold); }
.footer-title { color:var(--white); font-size:12px; text-transform:uppercase; letter-spacing:.16em; font-weight:900; }
.footer-bottom { padding-top:20px; border-top:1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; gap:20px; font-size:12px; }
.footer-bottom p { margin:0; }

/* Order page */
.order-page { background:var(--paper); }
.order-hero { background:var(--cream); border-bottom:1px solid var(--line); }
.order-hero__grid { display:grid; grid-template-columns:1.25fr .75fr; gap:70px; align-items:end; }
.order-hero h1 { font-size:clamp(52px,7vw,92px); margin-bottom:0; }
.order-hero__note { border-left:1px solid var(--line); padding-left:32px; }
.order-hero__note strong { display:block; font-family:var(--serif); font-size:32px; color:var(--pink); margin-bottom:10px; }
.order-hero__note p { color:var(--muted); margin:0; }
.order-layout { display:grid; grid-template-columns:1.15fr .65fr; gap:72px; align-items:start; }
.order-form { background:var(--white); border:1px solid var(--line); border-radius:30px; padding:46px; box-shadow:0 22px 55px rgba(69,33,119,.07); }
.form-block { display:grid; grid-template-columns:52px 1fr; gap:22px; padding:28px 0; border-bottom:1px solid var(--line); }
.form-block:first-child { padding-top:0; }
.form-step { margin:7px 0 0; color:var(--pink); font-weight:900; font-size:11px; letter-spacing:.15em; }
.form-grid-two { grid-template-columns:52px 1fr 1fr; }
label, legend { display:block; color:var(--purple); font-family:var(--serif); font-size:23px; line-height:1.2; margin-bottom:11px; }
label span { font-family:var(--sans); font-size:11px; color:var(--muted); }
fieldset { border:0; padding:0; margin:0; min-width:0; }
input[type="text"], select, textarea { width:100%; border:1px solid var(--line); background:#fffafa; color:var(--ink); padding:14px 15px; border-radius:13px; outline:0; transition:border-color .2s ease, box-shadow .2s ease; }
input[type="text"]:focus, select:focus, textarea:focus { border-color:var(--purple-2); box-shadow:0 0 0 4px rgba(92,42,145,.08); }
textarea { resize:vertical; }
.bread-options { display:grid; gap:10px; }
.bread-option { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0; padding:16px 18px; border:1px solid var(--line); border-radius:15px; cursor:pointer; background:#fffafa; transition:.2s ease; }
.bread-option:hover { border-color:rgba(69,33,119,.35); }
.bread-option input { position:absolute; opacity:0; pointer-events:none; }
.bread-option:has(input:checked) { background:rgba(69,33,119,.05); border-color:var(--purple); }
.bread-option__text { display:flex; flex-direction:column; }
.bread-option__text strong { font-family:var(--sans); font-size:14px; color:var(--ink); }
.bread-option__text small { color:var(--muted); font-family:var(--sans); font-size:12px; }
.radio-ui { width:20px; height:20px; border-radius:50%; border:1px solid var(--purple); flex:0 0 auto; position:relative; }
.bread-option input:checked + .bread-option__text + .radio-ui::after { content:""; position:absolute; inset:4px; border-radius:50%; background:var(--purple); }
.order-summary { margin-top:28px; background:var(--cream); border-radius:16px; padding:18px 20px; }
.order-summary > div { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.order-summary strong { font-family:var(--serif); font-size:28px; color:var(--purple); }
.order-summary p { margin:4px 0 0; font-size:11px; color:var(--muted); }
.form-error { color:#a22c46; background:#fff0f3; border:1px solid #ffd6df; padding:12px 14px; border-radius:10px; margin-top:16px; }
.send-options { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.send-options .btn { border:0; }
.privacy-note { color:var(--muted); font-size:11px; margin:14px 0 0; }
.order-aside { position:sticky; top:130px; }
.order-aside > img { width:100%; aspect-ratio:.86; object-fit:cover; border-radius:28px 160px 28px 28px; }
.order-aside__card { margin-top:16px; padding:28px; border-radius:22px; background:var(--purple); color:rgba(255,255,255,.8); }
.order-aside__card .micro-label { color:var(--gold); }
.order-aside__card h2 { color:var(--white); font-size:42px; margin-bottom:18px; }
.order-aside__card a { display:block; color:var(--white); padding:7px 0; border-bottom:1px solid rgba(255,255,255,.14); }
.not-found__inner { max-width:720px; text-align:center; }
.not-found__inner p:not(.eyebrow) { color:var(--muted); font-size:19px; }

/* reveal */
.reveal { opacity:0; transform:translateY(20px); transition:opacity .65s ease, transform .65s ease; transition-delay:var(--delay,0ms); }
.reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.product-image img{transition:none} }

/* responsive */
@media (max-width: 960px) {
  .section { padding:82px 0; }
  .hero-grid, .story-grid, .craft-grid, .order-layout, .order-hero__grid { grid-template-columns:1fr; gap:48px; }
  .hero-visual { max-width:680px; margin-inline:auto; }
  .hero-logo-card { right:10px; }
  .manifesto-grid { grid-template-columns:1fr; gap:12px; }
  .section-heading { grid-template-columns:1fr; gap:20px; }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .product-card:last-child { grid-column:1/-1; max-width:calc(50% - 12px); }
  .steps { grid-template-columns:1fr; }
  .step { border-right:0; border-bottom:1px solid rgba(255,255,255,.16); min-height:auto; }
  .step:last-child { border-bottom:0; }
  .step h3 { margin-top:24px; }
  .craft-images { min-height:560px; }
  .stand-card { grid-template-columns: 1fr;}
  .stand-card__art {display: flex; padding: 0 32px 44px; background: transparent; }
  .stand-card__art img { width: min(100%, 430px); max-height: none;}
  .insta-grid img { height:330px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .order-aside { position:static; display:grid; grid-template-columns:.8fr 1fr; gap:16px; }
  .order-aside__card { margin-top:0; }
}

@media (max-width: 760px) {
  .container { width:min(100% - 28px, 1180px); }
  .stand-bar__inner { min-height:44px; flex-wrap:wrap; gap:5px 9px; padding:7px 0; }
  .stand-dot { display:none; }
  .nav-wrap { min-height:72px; }
  .brand, .brand img { width:76px; height:76px; }
  .menu-toggle { display:block; z-index:1002; }
  .site-nav { position:fixed; inset:0 0 auto 0; top:0; min-height:100dvh; background:var(--cream); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:24px; padding:90px 28px 40px; transform:translateX(100%); transition:transform .28s ease; z-index:1001; font-family:var(--serif); font-size:36px; }
  .site-nav.is-open { transform:none; }
  .site-nav .nav-order { font-family:var(--sans); font-size:14px; }
  .menu-toggle.is-open span:nth-child(1) { transform:translateY(7.5px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity:0; }
  .menu-toggle.is-open span:nth-child(3) { transform:translateY(-7.5px) rotate(-45deg); }
  body.menu-open { overflow:hidden; }
  .hero { padding-top:45px; }
  .hero-grid { gap:42px; }
  .hero-actions { align-items:stretch; }
  .hero-actions .btn { width:100%; }
  .hero-image-wrap { aspect-ratio:.94; }
  .hero-logo-card { width:145px; bottom:-30px; }
  .hero-stamp { width:92px; height:92px; }
  .hero-stamp strong { font-size:31px; }
  .manifesto-line { font-size:44px; }
  .product-grid { grid-template-columns:1fr; gap:42px; }
  .product-card:last-child { grid-column:auto; max-width:none; }
  .product-copy p:not(.micro-label) { min-height:0; }
  .story-grid { gap:58px; }
  .story-tag { width:122px; height:122px; left:-4px; bottom:20px; }
  .craft-images { min-height:460px; }
  .craft-main { width:82%; }
  .craft-small { width:54%; border-width:8px; }
  .stand-card__copy { padding:44px 28px; }
  .stand-actions .btn { width:100%; }
  .insta-heading { align-items:flex-start; flex-direction:column; }
  .insta-grid { grid-template-columns:1fr 1fr; }
  .insta-grid img { height:260px; }
  .insta-grid img:nth-child(2) { transform:none; }
  .insta-grid img:nth-child(3) { grid-column:1/-1; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
  .footer-brand { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .form-block, .form-grid-two { grid-template-columns:1fr; gap:12px; }
  .form-step { margin-bottom:-2px; }
  .order-form { padding:26px 18px; }
  .order-aside { grid-template-columns:1fr; }
  .order-aside__card { margin-top:0; }
  .send-options .btn { width:100%; }
}

@media (max-width: 600px) {

  .stand-card__art {
    padding: 0 24px 30px;
  }

  .stand-card__art img {
    width: 100%;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  h1 { font-size:54px; }
  h2 { font-size:46px; }
  .hero-notes { gap:8px; }
  .insta-grid { grid-template-columns:1fr; }
  .insta-grid img, .insta-grid img:nth-child(3) { grid-column:auto; height:310px; }
}

/* ========================================
   MÉLI MÉLO — STORY WAVE
   New Wave inspired alternating editorial layout
======================================== */

.story-wave {
  background: var(--cream);
  overflow: hidden;
}

.story-wave__inner {
  display: grid;
  gap: 68px;
}

.story-wave__row {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(380px, 1.12fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: center;
}

.story-wave__row--two {
  grid-template-columns: minmax(380px, 1.12fr) minmax(300px, .88fr);
}

.story-wave__figure {
  margin: 0;
  width: min(100%, 430px);
}

.story-wave__figure--community {
  justify-self: start;
}

.story-wave__figure--starter {
  justify-self: end;
}

.story-wave__image-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 430px;
  background: #eadfe3;
  border-radius: 220px 220px 24px 24px;
  box-shadow: var(--shadow);
}

.story-wave__figure--starter .story-wave__image-shell {
  height: 400px;
}

.story-wave__image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-wave__figure--community img {
  object-position: center 42%;
}

.story-wave__figure--starter img {
  object-position: center 49%;
}

.story-wave__figure figcaption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.story-wave__copy {
  max-width: 600px;
}

.story-wave__copy--primary {
  justify-self: start;
}

.story-wave__copy--secondary {
  justify-self: end;
  max-width: 560px;
}

.story-wave__copy h2 {
  margin: 0 0 26px;
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: .98;
}

.story-wave__copy h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  color: var(--purple);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.story-wave__lead {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--purple);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.42;
}

.story-wave__body {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.story-wave__links {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.story-wave__links > div {
  display: grid;
  grid-template-columns: 38px 96px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.story-wave__links span {
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.story-wave__links strong {
  color: var(--purple);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.story-wave__links small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Keep the alternating two-column composition on tablets.
   The previous version switched to one column at 980px, which is why
   the section appeared stacked much earlier than intended. */
@media (max-width: 820px) {
  .story-wave__row,
  .story-wave__row--two {
    grid-template-columns: minmax(240px, .9fr) minmax(300px, 1.1fr);
    gap: 34px;
  }

  .story-wave__image-shell {
    height: 360px;
  }

  .story-wave__figure--starter .story-wave__image-shell {
    height: 340px;
  }

  .story-wave__copy h2 {
    font-size: clamp(42px, 6vw, 56px);
  }

  .story-wave__copy h3 {
    font-size: clamp(35px, 5vw, 48px);
  }
}

@media (max-width: 680px) {
  .story-wave {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .story-wave__inner {
    gap: 48px;
  }

  .story-wave__row,
  .story-wave__row--two {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-wave__copy,
  .story-wave__copy--primary,
  .story-wave__copy--secondary,
  .story-wave__figure,
  .story-wave__figure--community,
  .story-wave__figure--starter {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .story-wave__row--two .story-wave__copy--secondary {
    order: 1;
  }

  .story-wave__row--two .story-wave__figure--starter {
    order: 2;
  }

  .story-wave__image-shell,
  .story-wave__figure--starter .story-wave__image-shell {
    height: 310px;
    border-radius: 150px 150px 20px 20px;
  }

  .story-wave__figure--community img {
    object-position: center 38%;
  }

  .story-wave__copy h2,
  .story-wave__copy h3 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .story-wave__links > div {
    grid-template-columns: 34px 78px 1fr;
  }
}

@media (max-width: 420px) {
  .story-wave__image-shell,
  .story-wave__figure--starter .story-wave__image-shell {
    height: 280px;
  }

  .story-wave__figure figcaption {
    font-size: 14px;
  }

  .story-wave__links > div {
    grid-template-columns: 30px 70px 1fr;
    gap: 8px;
  }
}

