/* ============================================================
   Kelsey · Finds Love — styles
   Solid sage green, no gradients. Tweak via the variables below.
   ============================================================ */

:root {
  --sage:      #9caf88;  /* solid sage green — primary */
  --sage-dk:   #5f7648;  /* deep sage — buttons, accents */
  --bg:        #ffffff;  /* page background */
  --forest:    #2f3a29;  /* headings */
  --forest-sf: #4f5a3f;  /* soft body text */
  --card:      #ffffff;
  --card-alt:  #e7ecd8;  /* contact card */
  --line:      #d7dcc4;
  --brick:     #b5613f;  /* "not for me" marker */
  --leaf:      #3f6a33;  /* "green flag" marker */
  --ink:       #2b2f26;
  --shadow:    0 18px 40px -20px rgba(47, 58, 41, 0.35);
  --radius:    22px;
  --maxw:      1080px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- layout helpers ---------- */
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px;
}
.section-head { text-align: center; margin-bottom: 22px; }
.kicker {
  display: inline-block;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-dk); font-weight: 700; margin-bottom: 10px;
}
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--forest); line-height: 1.18; }
.section-sub { color: var(--forest-sf); margin-top: 12px; }
.subhead { text-align: center; font-size: clamp(1.2rem, 3.6vw, 1.5rem); color: var(--forest); line-height: 1.18; margin: 30px 0 16px; }
.about-facts { max-width: 480px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: 0 10px 24px -18px rgba(47,58,41,.4); display: flex; flex-direction: column; }
.about-note { max-width: 480px; margin: 26px auto 0; text-align: center; color: var(--forest-sf); font-size: 1.05rem; line-height: 1.5; }
.fact { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.fact:not(:last-child) { border-bottom: 1px dashed var(--line); }
.fact-emoji { font-size: 1.2rem; flex-shrink: 0; }
.fact-k { color: var(--sage-dk); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; min-width: 104px; flex-shrink: 0; }
.fact-v { color: var(--forest); font-weight: 600; }
.section-sub code, .about-grid code {
  background: var(--card); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line);
  font-size: .85em;
}

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 22px 24px;
}
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 22px; }
.nav-links a {
  color: var(--forest-sf); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--sage-dk); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 20px 24px;
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; text-align: center;
}
.eyebrow {
  color: var(--sage-dk); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 14px;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 7vw, 3.2rem); line-height: 1.05; color: var(--forest);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.accent { color: var(--sage-dk); }
.tagline { font-size: 1.02rem; color: var(--forest-sf); max-width: 46ch; margin: 0 auto; }
.hero-photo { max-width: 180px; margin: 0 auto; order: -1; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.photo-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  padding: 12px; background: var(--card); box-shadow: var(--shadow);
  transform: rotate(-3deg); transition: transform .4s ease;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.photo-placeholder {
  width: 100%; height: 100%; border-radius: 14px;
  background: var(--sage);
  display: grid; place-content: center; text-align: center;
  font-size: 3rem; color: var(--sage-dk);
}
.photo-placeholder span { display: block; font-size: .95rem; margin-top: 8px; letter-spacing: .04em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; border: none;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease; cursor: pointer;
}
.btn-primary {
  color: #fff; background: var(--sage-dk);
  box-shadow: 0 12px 24px -12px rgba(47, 58, 41, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(47, 58, 41, .6); }
.btn-ghost { color: var(--forest); background: var(--card); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-icon { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-left: 7px; display: inline-block; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; }
.fact-emoji { color: var(--sage-dk); }
.adv-card-icon, .adv-choice-icon, .adv-summary-badge { color: var(--sage-dk); }
.cc-card-emoji { color: var(--sage-dk); }
.mash-doodle { color: var(--sage); }
.mash-cat h4 .ico, .mash-future-list .fi { color: var(--sage-dk); }
.adv-summary h3 .ico, .mash-future-card h3 .ico { color: var(--sage-dk); vertical-align: -0.12em; }
.mash-hold .ico, .mash-future-card h3 .ico { vertical-align: -0.16em; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
  max-width: 900px; margin: 0 auto;
}
.about-grid .lead { font-size: 1.25rem; color: var(--forest); font-weight: 500; }
.about-grid p { color: var(--forest-sf); }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; text-align: center; box-shadow: 0 10px 24px -18px rgba(47,58,41,.4);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-emoji { font-size: 1.9rem; }
.card h3 { color: var(--sage-dk); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 10px 0 4px; }
.card p { color: var(--forest); font-weight: 600; }

/* ---------- chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li {
  background: var(--card); border: 1px solid var(--line); color: var(--forest);
  padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: .88rem;
  box-shadow: 0 8px 18px -16px rgba(47,58,41,.5); transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.chips li:hover { transform: translateY(-3px); background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- ceramics ---------- */
.pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.piece { margin: 0; text-align: center; }
.piece-photo {
  aspect-ratio: 1 / 1; border-radius: 18px; box-shadow: var(--shadow);
  display: grid; place-content: center; font-size: 2.4rem;
  transform: rotate(-2deg); transition: transform .3s ease;
}
.piece:nth-child(even) .piece-photo { transform: rotate(2deg); }
.piece:hover .piece-photo { transform: rotate(0deg) scale(1.04); }
.piece-photo.clay1 { background: #9caf88; }
.piece-photo.clay2 { background: #8ba377; }
.piece-photo.clay3 { background: #aeb894; }
.piece-photo.clay4 { background: #7e9468; }
.piece figcaption { margin-top: 12px; }
.piece figcaption strong { display: block; color: var(--forest); font-size: 1rem; }
.piece figcaption span { color: var(--forest-sf); font-size: .88rem; }

/* ---------- on the map ---------- */
.map-card { max-width: 940px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.us-map { width: 100%; height: auto; display: block; }
.us-map circle { transition: transform .15s ease; transform-box: fill-box; transform-origin: center; }
.us-map circle:hover { transform: scale(1.35); }
.map-legend { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--forest-sf); font-weight: 600; font-size: .9rem; }
.legend-item::before { content: ""; width: 14px; height: 14px; border-radius: 50%; }
.legend-lived::before { background: #3f5f2e; }
.legend-park::before { background: #6f8f5a; }
.map-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.map-lists h3 { color: var(--forest); font-size: 1rem; margin-bottom: 12px; }
.map-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.map-chips li { background: #f3f6ec; border: 1px solid var(--line); color: var(--forest); padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }

/* ---------- spend a day with me (choose your own adventure) ---------- */
.adv { --adv-cream: #faf7ee; --adv-gold: #e0a83e; max-width: 780px; margin: 0 auto; }
.adv-screen { animation: advIn .42s ease; }
@keyframes advIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.adv-lead { text-align: center; color: var(--forest-sf); font-size: 1.05rem; max-width: 46ch; margin: 0 auto 26px; }
.adv-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.adv-card { text-align: left; background: var(--adv-cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; font-family: inherit; display: flex; gap: 12px; align-items: center; min-height: 44px; box-shadow: 0 10px 24px -18px rgba(47,58,41,.4); transition: transform .18s, box-shadow .2s, border-color .2s; }
.adv-card:hover { transform: translateY(-5px); border-color: var(--sage); box-shadow: 0 20px 36px -20px rgba(47,58,41,.5); }
.adv-card:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.adv-card-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.adv-card h3 { color: var(--forest); font-size: 1rem; margin-bottom: 3px; }
.adv-card p { color: var(--forest-sf); font-size: .85rem; line-height: 1.45; }
.adv-step-label { text-align: center; color: var(--forest-sf); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.adv-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.adv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.adv-dot.done { background: var(--sage); }
.adv-dot.current { background: var(--adv-gold); transform: scale(1.35); }
.adv-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--sage-dk); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .9rem; margin-bottom: 12px; }
.adv-back:hover { text-decoration: underline; }
.adv-intro { text-align: center; color: var(--forest-sf); font-style: italic; margin-bottom: 6px; }
.adv-q { text-align: center; color: var(--forest); font-size: 1.18rem; font-weight: 700; margin-bottom: 16px; }
.adv-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.adv-choice { display: flex; align-items: center; gap: 11px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--forest); font-size: .95rem; min-height: 44px; transition: transform .15s, border-color .15s, background .15s, box-shadow .2s; }
.adv-choice:hover { transform: translateY(-3px); border-color: var(--sage); background: #f3f6ec; box-shadow: 0 12px 24px -18px rgba(47,58,41,.5); }
.adv-choice:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.adv-choice-icon { font-size: 1.35rem; flex-shrink: 0; }
.adv-summary { text-align: center; }
.adv-summary-badge { font-size: 2rem; }
.adv-summary h3 { color: var(--forest); font-size: 1.3rem; margin: 6px 0 12px; }
.adv-story { background: var(--adv-cream); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--forest); font-size: 1.02rem; line-height: 1.6; box-shadow: var(--shadow); }
.adv-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.adv-tag { background: #f3f6ec; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--sage-dk); }
.adv-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.adv-btn { padding: 12px 22px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--forest); font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; transition: transform .15s, background .15s, border-color .15s; }
.adv-btn:hover { transform: translateY(-2px); border-color: var(--sage); }
.adv-btn:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.adv-btn-primary { background: var(--sage-dk); color: #fff; border-color: var(--sage-dk); }
.adv-btn-primary:hover { background: #4f6338; border-color: #4f6338; }
@media (min-width: 600px) { .adv-cards, .adv-choices { grid-template-columns: 1fr 1fr; } }

/* ---------- MASH game ---------- */
#mash { padding-top: 34px; padding-bottom: 34px; }
#mash .section-head { margin-bottom: 16px; }
.mash-board[hidden], .mash-controls[hidden] { display: none; }
.mash { --mash-hand: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Comic Sans MS", cursive; --mash-paper: #fffdf6; position: relative; max-width: 860px; margin: 0 auto; }
.mash-board { position: relative; background-color: var(--mash-paper); background-image: repeating-linear-gradient(transparent, transparent 27px, #d5e4f0 27px, #d5e4f0 28px); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 18px 38px; box-shadow: 0 14px 30px -20px rgba(47,58,41,.35); overflow: hidden; }
.mash-board::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 2px; background: #e6a3a3; }
.mash-doodle { position: absolute; font-size: 1.4rem; opacity: .5; pointer-events: none; z-index: 1; }
.mash-title { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-bottom: 12px; }
.mash-letter { font-family: var(--mash-hand); font-size: 1.2rem; font-weight: 700; color: var(--forest); position: relative; }
.mash-letter b { color: var(--sage-dk); }
.mash-cats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 12px; }
.mash-cat h4 { font-family: var(--mash-hand); font-size: .92rem; color: var(--sage-dk); margin-bottom: 2px; }
.mash-opts { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.mash-opt { position: relative; width: fit-content; padding: 1px 4px; color: var(--forest); font-size: .82rem; font-family: var(--mash-hand); transition: opacity .3s; }
.mash-item.crossed { opacity: .4; }
.mash-item.crossed::before, .mash-item.crossed::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2.5px; background: #c0392b; border-radius: 2px; transform-origin: left center; }
.mash-item.crossed::before { --r: -11deg; transform: translateY(-50%) rotate(var(--r)) scaleX(0); animation: mashX .26s ease forwards; }
.mash-item.crossed::after { --r: 9deg; transform: translateY(-50%) rotate(var(--r)) scaleX(0); animation: mashX .26s ease .1s forwards; }
@keyframes mashX { to { transform: translateY(-50%) rotate(var(--r)) scaleX(1); } }
.mash-item.mash-winner { color: var(--sage-dk); font-weight: 700; }
.mash-item.mash-winner::after { content: ""; position: absolute; inset: -5px -9px; border: 2.5px solid var(--sage); border-radius: 60% 40% 55% 45% / 52% 56% 44% 48%; transform: rotate(-2deg); animation: mashPop .45s cubic-bezier(.34,1.6,.5,1); pointer-events: none; }
@keyframes mashPop { from { opacity: 0; transform: rotate(-2deg) scale(.55); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
.mash-controls { text-align: center; margin-top: 18px; }
.mash-hint { font-family: var(--mash-hand); color: var(--forest-sf); font-size: .95rem; margin-bottom: 2px; }
.mash-tally { min-height: 24px; display: flex; gap: 16px; justify-content: center; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.mash-group { position: relative; display: inline-flex; gap: 5px; padding: 0 3px; }
.mash-mark { width: 3px; height: 28px; background: var(--forest); border-radius: 2px; animation: mashMarkIn .12s ease; }
.mash-slash { position: absolute; left: -5px; right: -5px; top: 50%; height: 3px; background: var(--forest); border-radius: 2px; transform: translateY(-50%) rotate(-20deg); animation: mashMarkIn .12s ease; }
@keyframes mashMarkIn { from { opacity: 0; transform: scaleY(.2); } }
.mash-hold { font-family: var(--mash-hand); font-size: 1.12rem; background: var(--sage-dk); color: #fff; border: none; border-radius: 14px; padding: 14px 28px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); user-select: none; touch-action: none; transition: transform .1s, box-shadow .1s, background .1s; }
.mash-hold.holding { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.18); background: #4f6338; }
.mash-hold:disabled { opacity: .5; cursor: default; }
.mash-hold:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mash-num-out { font-family: var(--mash-hand); font-size: 1.55rem; color: var(--sage-dk); font-weight: 800; margin-top: 8px; animation: mashPop .5s cubic-bezier(.34,1.6,.5,1); }
.mash-future { display: flex; justify-content: center; margin-top: 18px; }
.mash-future-card { position: relative; background: var(--mash-paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; max-width: 440px; width: 100%; box-shadow: 0 18px 40px -18px rgba(47,58,41,.45); animation: ccUnfold .55s cubic-bezier(.34,1.5,.5,1); text-align: center; }
.mash-future-card h3 { font-family: var(--mash-hand); font-size: 1.5rem; color: var(--forest); margin-bottom: 16px; }
.mash-future-list { list-style: none; display: flex; flex-direction: column; gap: 11px; text-align: left; }
.mash-future-list li { display: flex; gap: 10px; align-items: baseline; color: var(--forest); font-size: .96rem; opacity: 0; transform: translateY(8px); animation: mashLine .45s ease forwards; }
.mash-future-list .fi { font-size: 1.25rem; flex-shrink: 0; }
.mash-future-list .fk { color: var(--forest-sf); font-size: .92rem; }
.mash-future-list b { color: var(--forest); }
@keyframes mashLine { to { opacity: 1; transform: none; } }
.mash-play { margin-top: 26px; font-family: var(--mash-hand); font-size: 1.12rem; background: var(--sage-dk); color: #fff; border: none; border-radius: 999px; padding: 13px 28px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s; }
.mash-play:hover { transform: translateY(-1px); }
.mash-play:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.mash-play:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mash-confetti-piece { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; z-index: 20; pointer-events: none; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translateY(115vh) rotate(680deg); } }
@media (min-width: 720px) { .mash-cats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- cootie catcher (paper fortune teller) ---------- */
.cc { --cc-font: "Comic Sans MS", "Chalkboard SE", "Comic Neue", "Segoe Print", system-ui, sans-serif; --cc-red: #e4572e; --cc-blue: #3a86c8; --cc-green: #3fa34d; --cc-yellow: #f2c14e; --cc-paper: #fbf7ec; --cc-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"); max-width: 520px; margin: 0 auto; text-align: center; }
.cc-step { font-family: var(--cc-font); font-weight: 700; color: var(--sage-dk); font-size: 1.05rem; margin-bottom: 16px; min-height: 1.4em; }
.cc-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: min(80vw, 330px); perspective: 950px; }
.cc-stage[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the folded-paper catcher: 4 triangular flaps meeting at center */
.cc-catcher { position: relative; width: min(74vw, 300px); aspect-ratio: 1; transform-style: preserve-3d; transition: transform .3s cubic-bezier(.34,1.3,.5,1); filter: drop-shadow(0 16px 22px rgba(47,58,41,.26)); }
.cc-catcher.is-dim { opacity: .12; filter: none; }
.cc-flap { position: absolute; inset: 0; border: 0; margin: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-style: preserve-3d; transition: transform .34s cubic-bezier(.34,1.3,.5,1), filter .18s; }
.cc-flap::before { content: ""; position: absolute; inset: 0; background-color: var(--flap-bg, #ccc); background-image: linear-gradient(135deg, rgba(255,255,255,.22), rgba(0,0,0,.10)), var(--cc-tex); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cc-flap:disabled { cursor: default; }
.cc-flap:not(:disabled):hover::before { filter: brightness(1.07) saturate(1.05); }
.cc-flap:not(:disabled):active { transform: scale(.97); }
.cc-flap:focus-visible { outline: none; }
.cc-flap:focus-visible::before { box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 6px rgba(255,255,255,.7); }
.cc-top    { clip-path: polygon(0 0, 100% 0, 50% 50%);       --flap-bg: var(--cc-red);    transform-origin: center top; }
.cc-right  { clip-path: polygon(100% 0, 100% 100%, 50% 50%); --flap-bg: var(--cc-blue);   transform-origin: right center; }
.cc-bottom { clip-path: polygon(100% 100%, 0 100%, 50% 50%); --flap-bg: var(--cc-green);  transform-origin: center bottom; }
.cc-left   { clip-path: polygon(0 100%, 0 0, 50% 50%);       --flap-bg: var(--cc-yellow); transform-origin: left center; }
/* inner (open) faces are cream paper */
.cc-catcher.is-open .cc-flap { --flap-bg: var(--cc-paper); }
.cc-flap-label { position: absolute; transform: translate(-50%, -50%); font-family: var(--cc-font); font-weight: 800; font-size: clamp(.9rem, 4vw, 1.15rem); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); pointer-events: none; z-index: 2; }
.cc-top .cc-flap-label    { top: 21%; left: 50%; }
.cc-right .cc-flap-label  { top: 50%; left: 79%; }
.cc-bottom .cc-flap-label { top: 79%; left: 50%; }
.cc-left .cc-flap-label   { top: 50%; left: 21%; }
.cc-left .cc-flap-label   { color: #4a3b12; text-shadow: none; }
.cc-catcher.is-open .cc-flap-label { color: var(--forest); text-shadow: none; font-size: clamp(1.3rem, 6.5vw, 1.85rem); }
/* fold lines drawn over the paper */
.cc-catcher::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(45deg, transparent calc(50% - 1px), rgba(0,0,0,.13) 50%, transparent calc(50% + 1px)), linear-gradient(-45deg, transparent calc(50% - 1px), rgba(0,0,0,.13) 50%, transparent calc(50% + 1px)); }

/* gentle rest-open pose */
.cc-catcher.is-open .cc-top    { transform: translateY(-4%) rotateX(6deg); }
.cc-catcher.is-open .cc-bottom { transform: translateY(4%) rotateX(-6deg); }
.cc-catcher.is-open .cc-left   { transform: translateX(-4%) rotateY(-6deg); }
.cc-catcher.is-open .cc-right  { transform: translateX(4%) rotateY(6deg); }
/* horizontal chomp (left/right lips open wide) */
.cc-catcher.chomp-h .cc-left  { transform: translateX(-15%) rotateY(-34deg); }
.cc-catcher.chomp-h .cc-right { transform: translateX(15%) rotateY(34deg); }
.cc-catcher.chomp-h .cc-top    { transform: translateY(-3%); }
.cc-catcher.chomp-h .cc-bottom { transform: translateY(3%); }
/* vertical chomp (top/bottom lips open wide) */
.cc-catcher.chomp-v .cc-top    { transform: translateY(-15%) rotateX(34deg); }
.cc-catcher.chomp-v .cc-bottom { transform: translateY(15%) rotateX(-34deg); }
.cc-catcher.chomp-v .cc-left   { transform: translateX(-3%); }
.cc-catcher.chomp-v .cc-right  { transform: translateX(3%); }
/* finishing bounce */
.cc-catcher.is-bounce { animation: ccBounce .34s ease; }
@keyframes ccBounce { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 70% { transform: scale(.98); } 100% { transform: scale(1); } }
/* final flap lift to reveal the fortune */
.cc-flap.lift { z-index: 1; filter: brightness(1.08); }
.cc-top.lift    { transform: rotateX(-120deg); }
.cc-bottom.lift { transform: rotateX(120deg); }
.cc-left.lift   { transform: rotateY(120deg); }
.cc-right.lift  { transform: rotateY(-120deg); }

/* running count bubble */
.cc-count { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 30%; aspect-ratio: 1; border-radius: 50%; background: #fffdf7; color: var(--forest); display: grid; place-content: center; font-family: var(--cc-font); font-weight: 800; font-size: clamp(1.1rem, 5.5vw, 1.6rem); box-shadow: 0 3px 8px rgba(0,0,0,.24); z-index: 6; pointer-events: none; opacity: 0; transition: transform .18s cubic-bezier(.34,1.6,.5,1), opacity .16s; }
.cc-count.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.cc-reveal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 8; }
.cc-reveal[hidden] { display: none; }
.cc-again { font-family: var(--cc-font); font-weight: 700; border: none; border-radius: 14px; padding: 12px 22px; cursor: pointer; font-size: 1rem; color: #fff; background: var(--sage-dk); box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s; margin-top: 6px; }
.cc-again:hover { transform: translateY(-1px); }
.cc-again:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.cc-again:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.cc-card { background: #fffdf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; max-width: 360px; box-shadow: 0 16px 36px -18px rgba(47,58,41,.45); animation: ccUnfold .55s cubic-bezier(.34,1.5,.5,1); }
.cc-card-emoji { font-size: 3rem; line-height: 1; }
.cc-card-title { font-family: var(--cc-font); color: var(--forest); font-size: 1.3rem; margin: 10px 0 6px; }
.cc-card-sub { color: var(--forest-sf); font-size: .92rem; margin-bottom: 18px; }
@keyframes ccUnfold { from { opacity: 0; transform: perspective(700px) rotateX(-72deg) scale(.82); transform-origin: top center; } to { opacity: 1; transform: none; } }

/* ---------- looking for ---------- */
.looking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.looking-col { background: var(--card); border-radius: 20px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.looking-col h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--forest); }
.looking-col ul { list-style: none; }
.looking-col li { padding: 9px 0 9px 30px; position: relative; color: var(--forest-sf); border-bottom: 1px dashed var(--line); }
.looking-col li:last-child { border-bottom: 0; }
.green li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 800; }
.red li::before { content: "✕"; position: absolute; left: 0; color: var(--brick); font-weight: 800; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-card {
  background: var(--card-alt);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 32px 22px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow);
}
.contact-card h2 { margin-bottom: 26px; }
.contact-sub { color: var(--forest-sf); font-size: 1.1rem; max-width: 42ch; margin: 0 auto 28px; }
.contact-fine { color: var(--forest-sf); font-size: .9rem; margin-top: 18px; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 24px 50px; color: var(--forest-sf); font-size: .95rem;
}
.to-top { color: var(--sage-dk); text-decoration: none; font-weight: 700; }
.to-top:hover { text-decoration: underline; }
.footer-note { display: inline-flex; align-items: center; gap: 6px; color: var(--forest-sf); }
.footer-note .ico { color: var(--sage-dk); }

/* ---------- guess-my-answer game ---------- */
.score-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); color: var(--sage-dk); font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-top: 16px; box-shadow: 0 8px 18px -16px rgba(47,58,41,.5); }
.quiz { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.quiz-q { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; box-shadow: 0 10px 24px -18px rgba(47,58,41,.4); }
.quiz-q h3 { color: var(--forest); font-size: 1.12rem; margin-bottom: 14px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--forest); font-weight: 600; font-size: .98rem; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, transform .1s, opacity .15s; }
.opt:hover:not(:disabled) { border-color: var(--sage); transform: translateX(3px); }
.opt:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.opt:disabled { cursor: default; }
.opt.correct { background: #e8f0dc; border-color: var(--sage-dk); color: var(--sage-dk); }
.opt.correct::after { content: " ✓"; font-weight: 900; }
.opt.wrong { background: #f6e3dc; border-color: var(--brick); color: var(--brick); }
.opt.wrong::after { content: " ✕"; font-weight: 900; }
.opt.dim { opacity: .5; }
.reveal { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--sage); background: #f2f5ea; border-radius: 8px; color: var(--forest-sf); font-size: .95rem; display: none; }
.reveal.show { display: block; }
.reveal strong { color: var(--sage-dk); }
.quiz-result { max-width: 720px; margin: 22px auto 0; background: var(--card-alt); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--shadow); display: none; }
.quiz-result.show { display: block; }
.quiz-result h3 { color: var(--forest); font-size: 1.3rem; margin-bottom: 6px; }
.quiz-result p { color: var(--forest-sf); }

/* ---------- reveal on scroll ---------- */
.section { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.section.in-view { opacity: 1; transform: none; }

/* ---------- message modal + review ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,36,26,.5); }
.modal-card { position: relative; z-index: 1; background: var(--card-alt); width: 100%; min-height: 100%; max-width: 560px; padding: 26px 20px 40px; overflow-y: auto; animation: modalIn .3s ease; }
@keyframes modalIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 620px) { .modal { align-items: center; padding: 24px; } .modal-card { min-height: 0; max-height: 92vh; border-radius: 20px; box-shadow: var(--shadow); } }
.modal-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: none; background: none; font-size: 1.9rem; line-height: 1; color: var(--forest-sf); cursor: pointer; border-radius: 999px; }
.modal-x:hover { background: rgba(0,0,0,.06); }
.modal-title { display: flex; align-items: center; gap: 8px; color: var(--forest); font-size: 1.4rem; margin: 2px 0 18px; }
.modal-title .ico { color: var(--sage-dk); }
.field { display: block; margin-bottom: 16px; }
.field-label { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--forest); font-size: .92rem; margin-bottom: 6px; }
.field-label .ico { color: var(--sage-dk); }
.field-label em { color: var(--brick); font-style: normal; }
.field input[type="text"], .field textarea, .field input[type="file"] { width: 100%; font-family: inherit; font-size: 1rem; color: var(--forest); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field input[type="file"] { padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 74px; }
.field input.invalid, .field textarea.invalid { border-color: var(--brick); background: #fdf3ef; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage-dk); outline-offset: 1px; border-color: var(--sage-dk); }
.photo-preview { margin-top: 10px; }
.photo-preview img { max-width: 140px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.field-error { color: var(--brick); font-weight: 600; font-size: .9rem; margin: 4px 0 12px; }
.file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.upload-btn { display: inline-block; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--sage-dk); background: #fff; border: 1px solid var(--sage-dk); border-radius: 999px; padding: 10px 18px; transition: background .15s; }
.upload-btn:hover { background: #f3f6ec; }
.upload-btn.invalid { border-color: var(--brick); color: var(--brick); }
.file-hidden:focus-visible + .upload-btn { outline: 2px solid var(--sage-dk); outline-offset: 2px; }
.file-name { display: inline-block; margin-left: 10px; color: var(--forest-sf); font-size: .88rem; word-break: break-all; }
.modal-send { margin-top: 4px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.modal-send .ico { width: 1.1em; height: 1.1em; }
.modal-thanks { text-align: center; max-width: 420px; padding: 44px 26px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 620px) { .modal-thanks { min-height: 0; } }
.thanks-icon { color: var(--sage-dk); margin-bottom: 6px; }
.thanks-icon .ico { width: 3rem; height: 3rem; }
.modal-thanks h2 { color: var(--forest); margin-bottom: 6px; }
.modal-thanks p { color: var(--forest-sf); margin-bottom: 22px; }
.review { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; padding: 24px 20px 60px; }
.review[hidden] { display: none; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto 20px; }
.review-head h2 { display: flex; align-items: center; gap: 8px; color: var(--forest); font-size: 1.4rem; }
.review-head .ico { color: var(--sage-dk); }
.review-close { color: var(--sage-dk); font-weight: 700; text-decoration: none; white-space: nowrap; }
.review-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.review-empty { color: var(--forest-sf); text-align: center; padding: 40px 0; }
.review-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 10px 24px -18px rgba(47,58,41,.4); }
.review-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.review-body { min-width: 0; }
.review-body h3 { color: var(--forest); font-size: 1.1rem; margin-bottom: 2px; }
.review-meta { color: var(--forest-sf); font-size: .82rem; margin-bottom: 8px; }
.review-body p { color: var(--forest); font-size: .95rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.review-body strong { color: var(--sage-dk); }
@media (max-width: 480px) { .review-card { flex-direction: column; } .review-photo { width: 100%; height: 180px; } }


/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (min-width: 761px) {
  .section { padding: 60px 24px; }
  .hero-inner { grid-template-columns: 1fr 1.15fr; gap: 48px; padding: 36px 24px 64px; text-align: left; }
  .hero-photo { max-width: 300px; order: 0; }
  .tagline { margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .map-lists { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .section { opacity: 1; transform: none; }
  .cc-catcher, .cc-flap, .cc-count { transition: none !important; }
  .cc-flap.lift { transform: none; opacity: 0; }
}
