/* Example website: Marigold and Pine Events, a made up event planner. A one screen front page that opens on the founder, then six pages. */
:root {
  --pine: #1f3d2e;
  --pine-d: #14291f;
  --marigold: #f0a30a;
  --marigold-d: #c98400;
  --ivory: #fbf6ea;
  --sand: #f3ead5;
  --ink: #1d2a22;
  --soft: #5d6a60;
  --line: #e7dcc3;
  --shadow: 0 16px 36px rgba(20, 41, 31, .2);
  --bar-h: 34px;
  --head-h: 66px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--head-h) + 8px); }
body { margin: 0; font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--marigold-d); margin-bottom: 12px; }

.example-bar { position: sticky; top: 0; z-index: 60; height: var(--bar-h); background: var(--pine-d); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12px; }
.example-bar b { color: var(--marigold); font-weight: 600; margin-right: 6px; }

.site-head { position: sticky; top: var(--bar-h); z-index: 50; background: rgba(251, 246, 234, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; color: var(--pine); line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--soft); transition: background .2s, color .2s; }
.nav a:hover { background: var(--sand); color: var(--pine); }
.nav a[aria-current="page"] { background: var(--sand); color: var(--pine); }
.nav a.cta { background: var(--marigold); color: var(--pine-d); font-weight: 600; margin-left: 8px; padding: 9px 18px; }
.nav a.cta:hover { background: var(--marigold-d); color: #fff; }
.menu-btn { display: none; align-items: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; color: var(--pine-d); background: var(--marigold); padding: 10px 16px 10px 14px; border-radius: 999px; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars i { position: absolute; left: 0; right: 0; height: 2px; background: var(--pine-d); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.menu-btn .bars i:nth-child(1) { top: 0; }
.menu-btn .bars i:nth-child(2) { top: 5px; }
.menu-btn .bars i:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.menu-btn.hint { animation: pulse 1.8s ease-out 1.2s 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 163, 10, .6); } 70% { box-shadow: 0 0 0 14px rgba(240, 163, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 163, 10, 0); } }
.panel { display: none; }
@media (max-width: 960px) {
  :root { --head-h: 62px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .panel { display: block; position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + var(--head-h)); bottom: 0; background: var(--ivory); z-index: 45; padding: 18px 20px 28px; overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .panel.open { opacity: 1; transform: none; visibility: visible; }
  .panel p.lead { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 4px 0 10px; }
  .panel a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.7rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .panel a::after { content: '\203A'; color: var(--marigold-d); font-size: 1.7rem; }
  .panel a.cta { margin-top: 18px; justify-content: center; background: var(--marigold); color: var(--pine-d); border-radius: 999px; font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; border: 0; padding: 16px; }
  .panel a.cta::after { content: none; }
  body.menu-open { overflow: hidden; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn.primary { background: var(--marigold); color: var(--pine-d); box-shadow: 0 8px 20px rgba(240, 163, 10, .35); }
.btn.primary:hover { background: var(--marigold-d); color: #fff; transform: translateY(-2px); }
.btn.ghost { border-color: var(--pine); color: var(--pine); }
.btn.ghost:hover { background: var(--pine); color: #fff; transform: translateY(-2px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ===== The front: the founder in the middle, six cards fall around her ===== */
.front { min-height: calc(100dvh - var(--bar-h) - var(--head-h)); display: grid; place-items: center; padding: 18px 0 26px; overflow: hidden; background: radial-gradient(900px 520px at 50% 40%, #fff3cf 0%, rgba(255, 243, 207, 0) 70%), var(--ivory); }
.stage { width: min(1180px, 100%); padding: 0 20px; height: min(660px, calc(100dvh - var(--bar-h) - var(--head-h) - 44px)); display: grid; grid-template-columns: 1fr minmax(250px, 28%) 1fr; gap: 30px; align-items: stretch; }
.col { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-height: 0; }
.fwrap { flex: 1 1 0; min-height: 0; max-height: 190px; display: block; }
.fcard { position: relative; display: block; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; box-shadow: 0 12px 26px rgba(20, 41, 31, .22); transition: transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .3s; transform: rotate(var(--r, 0deg)); background: var(--pine); }
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; z-index: -2; }
.fcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 41, 31, .82) 0%, rgba(20, 41, 31, 0) 62%); z-index: -1; }
.fcard span { position: absolute; left: 16px; right: 16px; bottom: 12px; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.35rem; line-height: 1.1; }
.fcard small { display: block; font-family: 'Outfit', sans-serif; font-size: .78rem; opacity: .88; margin-top: 2px; }
.fcard:hover, .fcard:focus-visible { transform: translateY(-6px) rotate(0deg) scale(1.03); box-shadow: 0 20px 36px rgba(20, 41, 31, .32); }
.fcard:hover img { transform: scale(1.07); }
.fcard:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.col.left .fwrap:nth-child(2) { margin-left: 34px; }
.col.right .fwrap:nth-child(2) { margin-right: 34px; }
.portrait { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; gap: 14px; }
.frame { height: calc(100% - 132px); aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); border: 5px solid #fff; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.intro h1 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin: 0 0 4px; }
.intro p { margin: 0 0 10px; color: var(--soft); font-size: .98rem; line-height: 1.45; }
.intro .btn { padding: 11px 22px; font-size: .95rem; }

/* Opening: the portrait grows from a small circle, then the cards fall and sway as they land */
.js .frame { animation: grow 1.5s cubic-bezier(.22, .9, .3, 1) both; }
.js .intro { animation: fadeUp .9s ease 1.1s both; }
@keyframes grow { 0% { clip-path: circle(7% at 50% 42%); transform: scale(.5); opacity: 0; } 25% { opacity: 1; } 100% { clip-path: circle(80% at 50% 42%); transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .fwrap { opacity: 0; }
.js .fwrap.fall { opacity: 1; animation: fall 2.1s cubic-bezier(.3, .6, .35, 1) both; }
@keyframes fall {
  0% { opacity: 0; transform: translateY(-115vh) rotate(-8deg); }
  14% { opacity: 1; }
  55% { transform: translateY(16px) rotate(3deg); }
  72% { transform: translateY(-8px) rotate(-1.6deg); }
  86% { transform: translateY(3px) rotate(.7deg); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .front { display: block; min-height: 0; padding: 22px 0 34px; }
  .stage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; height: auto; padding: 0 18px; align-items: start; }
  .col { display: contents; }
  .portrait { grid-column: 1 / -1; order: -2; gap: 14px; padding-bottom: 6px; }
  .frame { height: auto; width: min(74vw, 320px); }
  .intro { max-width: 30em; }
  .intro h1 { font-size: 2rem; }
  .intro p { font-size: 1rem; }
  .cards-label { display: block; grid-column: 1 / -1; order: -1; margin: 22px 0 4px; }
  .fwrap { max-height: none; margin: 0 !important; aspect-ratio: 4 / 3.3; flex: none; }
  .fcard span { font-size: 1.15rem; left: 12px; right: 12px; }
  .fcard small { display: none; }
}
@media (max-width: 1100px) { .nav a { padding: 8px 9px; font-size: .92rem; } .nav a.cta { padding: 9px 14px; } }
.cards-label { display: none; text-align: center; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--marigold-d); font-weight: 600; }
@media (max-width: 960px) { .cards-label { display: block; } }

/* ===== Inner pages ===== */
section { padding: 70px 0; }
.page-hero { padding: 48px 0 10px; }
.page-hero p { color: var(--soft); max-width: 36em; font-size: 1.1rem; }
.sec-head { max-width: 38em; margin-bottom: 30px; }
.tint { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .pic { order: -1; }
.split p { color: var(--soft); }
.pic img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.pic.tall img { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery button { grid-column: span 2; border: 0; padding: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; position: relative; background: var(--sand); aspect-ratio: 1 / 1; isolation: isolate; text-align: left; }
.gallery button:nth-child(4), .gallery button:nth-child(5) { grid-column: span 3; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-size: .92rem; line-height: 1.3; background: linear-gradient(to top, rgba(20, 41, 31, .85), rgba(20, 41, 31, 0)); }
.menu-list { display: grid; gap: 0; }
.menu-item { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.menu-item p { margin: 0; color: var(--soft); }
.menu-item .for { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--marigold-d); letter-spacing: .06em; text-transform: uppercase; }
.faq { max-width: 780px; }
.faq details { border-top: 1px solid #d9ccb0; padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid #d9ccb0; }
.faq summary { cursor: pointer; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 36px; height: 36px; border-radius: 50%; background: var(--marigold); color: var(--pine-d); display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-size: 1.4rem; flex: none; transition: transform .25s; }
.faq details[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--soft); max-width: 36em; }
.sample-reviews { display: grid; gap: 0; max-width: 820px; }
.sample-review { padding: 28px 0; border-top: 1px solid var(--line); }
.sample-review:last-child { border-bottom: 1px solid var(--line); }
.sample-review .tag { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; background: var(--sand); color: var(--marigold-d); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.sample-review blockquote { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.45rem; line-height: 1.3; color: var(--pine); }
.sample-review p { margin: 10px 0 0; color: var(--soft); font-size: .95rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { border-top: 3px solid var(--marigold); padding-top: 14px; }
.step b { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem; color: var(--marigold-d); display: block; line-height: 1; margin-bottom: 8px; }
.step p { color: var(--soft); margin: 0; }
.form { max-width: 600px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #dccfb3; background: #fff; color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--marigold); outline-offset: 1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sent { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #e6efe6; color: var(--pine); font-weight: 500; }
.sent.show { display: block; }
.cta-band { background: var(--pine); color: #fff; text-align: center; border-radius: 26px; padding: 54px 24px; }
.cta-band p { color: #cfe0d6; max-width: 34em; margin: 0 auto 24px; }
.cta-sec { padding-top: 0; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 13, .93); display: none; align-items: center; justify-content: center; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-width: min(92vw, 900px); max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lb button { position: absolute; border: 0; cursor: pointer; background: rgba(255, 255, 255, .15); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .3); }
.lb .x { top: 16px; right: 16px; }
.lb .prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .cap2 { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .92rem; padding: 0 70px; }

.foot { background: var(--sand); padding: 44px 0 26px; font-size: .96rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.foot a { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--marigold-d); }
.foot .brand { padding: 0; display: inline-flex; }
.foot .notice { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft); font-size: .86rem; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .frame, .js .intro, .js .fwrap, .js .fwrap.fall, .menu-btn.hint { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .split.flip .pic { order: 0; }
  .pic.tall { max-width: 360px; margin: 0 auto; width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery button, .gallery button:nth-child(4), .gallery button:nth-child(5) { grid-column: span 1; aspect-ratio: 1 / 1; }
  .gallery button:nth-child(5) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .menu-item { grid-template-columns: 110px 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .form .two { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .btns .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  :root { --bar-h: 46px; }
  .example-bar { font-size: 12px; line-height: 1.3; }
  .brand { font-size: 1.15rem; }
}

/* The front page on a laptop is one screen: no footer to scroll to, just a short note */
.front-note { display: none; }
@media (min-width: 961px) {
  .is-front .foot { display: none; }
  .front { position: relative; min-height: calc(100dvh - var(--bar-h) - var(--head-h) - 2px); }
  .stage { height: min(660px, calc(100dvh - var(--bar-h) - var(--head-h) - 66px)); }
  .front-note { display: block; position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 12px; color: var(--soft); }
}
