/* Freshly Cubed: simple revision.
   The brand pair is mango and white, as in the logo. Mango for the header, the page
   opening and the footer; warm white for everything between. One serif with character
   for headings, one plain sans for text. No cards, no badges on headings, no numbers. */
/* Metropolis (SIL Open Font Licence), self-hosted: the geometric sans closest to the logo */
@font-face { font-family: 'Metropolis'; src: url('../fonts/metropolis-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('../fonts/metropolis-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
:root {
  --mango: #F8AE1C;
  --ink: #2A2118;
  --ink-soft: #4A3A22;
  --paper: #FFFDF8;
  --cream: #FFF4DA;
  --muted: #6B5D4A;
  --line: rgba(42, 33, 24, 0.14);
  --display: 'Raleway', 'Montserrat', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  --section: clamp(64px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.section { padding-block: var(--section); }
.mango { background: var(--mango); color: var(--ink); }
.cream { background: var(--cream); }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 70px); font-weight: 600; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 48ch; }
.mango .lede { color: var(--ink-soft); }
.text { max-width: 58ch; }
.text p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 22px; align-content: start; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; font: 700 16px/1 var(--body); color: var(--paper); background: var(--ink); text-decoration: none; border-radius: 999px; transition: background-color 180ms ease-out, color 180ms ease-out; }
.btn:hover { background: var(--paper); color: var(--ink); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { text-decoration-color: var(--mango); }
.mango .link:hover { text-decoration-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Header: mango, white logo, as in the brand mark */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--mango); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand img { height: 48px; width: auto; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px var(--body); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; font: 700 15px var(--body); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--mango); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px; }
  .nav-list a { width: 100%; min-height: 52px; font-size: 19px; }
}
@media (max-width: 400px) { .brand img { height: 40px; } }

/* Page opening: continues the mango header */
.opening { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.opening .stack { max-width: 760px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.two--top { align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.opening-img { width: 100%; max-width: 560px; justify-self: center; }

/* Home: five into one */
.five { display: grid; gap: 14px; justify-items: center; margin: 0; }
.five svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.five .ring { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.35; }
.five .orbit { transform-origin: 230px 190px; }
.five .core { transform-box: fill-box; transform-origin: center; }
.quiet-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 4px; font: 600 14px var(--body); color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiet-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.quote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; text-wrap: balance; }
@media (max-width: 760px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder img { max-width: 220px; } }

/* The Idea: make it your own */
.uses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.uses li { display: grid; justify-items: center; gap: 12px; text-align: center; font-weight: 600; }
.uses img { width: 100%; max-width: 128px; aspect-ratio: 1; padding: 2%; background: #FFFFFF; border-radius: 50%; border: 1px solid var(--line); }
@media (max-width: 700px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group { display: grid; gap: 24px; padding-top: 36px; border-top: 1px solid var(--line); }
.group + .group { margin-top: 48px; }
.label { font: 700 13px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; list-style: none; margin: 0; padding: 0; }
.extras li { display: grid; gap: 4px; }
.extras b { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
@media (max-width: 700px) { .extras { grid-template-columns: minmax(0, 1fr); } }

/* Why: a plain list of decisions */
.choices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.choices li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 48px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.choices p { max-width: 54ch; }
.choices .label { margin-top: 6px; }
@media (max-width: 760px) { .choices li { grid-template-columns: minmax(0, 1fr); padding: 24px 0; } }

/* Story */
.people { display: flex; gap: 16px; align-items: flex-end; }
.people figure { margin: 0; display: grid; gap: 10px; flex: 1 1 0; min-width: 0; }
.people img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.people figcaption { font-weight: 700; font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact > * { display: grid; gap: 18px; align-content: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input { width: 100%; min-height: 50px; padding: 10px 14px; font: 400 17px var(--body); color: var(--ink); background: #FFFFFF; border: 1px solid rgba(42, 33, 24, 0.4); border-radius: 6px; }
.field input:focus-visible { outline: 3px solid var(--mango); outline-offset: 0; border-color: var(--ink); }
.form-status { font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer: mango, no dark strip */
.site-footer { background: var(--mango); color: var(--ink); padding-block: clamp(56px, 7vw, 96px) 28px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.footer-cta .stack { gap: 10px; max-width: 640px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.footer-brand { display: grid; gap: 12px; }
.footer-brand img { width: 180px; }
.footer-brand a:not(:first-child) { font-weight: 700; }
.footer-brand .social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.footer-brand .social:hover span:first-of-type { text-decoration: underline; text-underline-offset: 4px; }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.social svg .fill { fill: currentColor; stroke: 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; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0 32px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badges img { height: 64px; width: auto; filter: brightness(0); opacity: 0.85; }
.badges img.wide { height: 40px; }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: 14px; color: var(--ink-soft); }

/* Motion: the home page only. The graphic rests on its finished frame without motion. */
@media (prefers-reduced-motion: no-preference) {
  .five .orbit { animation: fc-spin 30s linear infinite; }
  .five .dot { animation: fc-converge 11s cubic-bezier(.2, .8, .2, 1) infinite; }
  .five .core { animation: fc-core 11s cubic-bezier(.2, .8, .2, 1) infinite; }
  [data-play-loop] * { animation-play-state: paused; }
  [data-play-loop].is-visible:not(.is-paused) * { animation-play-state: running; }
}
@keyframes fc-spin { to { transform: rotate(360deg); } }
@keyframes fc-converge {
  0%, 40% { transform: translateX(0); opacity: 1; }
  54% { transform: translateX(-130px); opacity: 1; }
  58%, 84% { transform: translateX(-130px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes fc-core {
  0%, 46% { transform: scale(0.4); opacity: 0.35; }
  58% { transform: scale(1.1); opacity: 1; }
  64%, 84% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.4); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Inside the Cube: ingredient photo with callouts */
.anatomy { position: relative; display: grid; gap: 28px; }
.anatomy-photo { position: relative; }
.anatomy-photo img { display: block; width: 100%; height: auto; }
.marker, .anatomy-lines { display: none; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: start; }
.callout { padding-top: 16px; border-top: 1px solid var(--line); transition: border-color .2s; }
.callout h3 { font-size: 22px; line-height: 1.2; transition: color .2s; }
.callout .label { margin-top: 6px; }
.callout p.muted { margin-top: 10px; font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) and (max-width: 899px) { .anatomy { grid-template-columns: 1fr 1fr; } .anatomy-photo { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .anatomy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); grid-template-areas: "left photo right"; column-gap: clamp(40px, 5vw, 72px); align-items: stretch; }
  .anatomy-photo { grid-area: photo; align-self: center; }
  .callouts--left { grid-area: left; grid-auto-rows: min-content; align-content: space-between; }
  .callouts--right { grid-area: right; align-content: space-between; }
  .marker { display: block; position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); transition: transform .2s, background-color .2s; }
  .anatomy-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .anatomy-lines line { stroke: var(--ink); stroke-width: 1; opacity: .35; transition: opacity .2s; }
  .anatomy-lines line.is-active { opacity: 1; }
  .callout { border-top-color: var(--ink); }
  .callout.is-active h3 { color: #B8650A; }
  .marker.is-active { transform: scale(1.5); background: #B8650A; }
}

/* Why page: equal-height rows so spacing is consistent whether a description runs to one line or two */
@media (min-width: 761px) { .choices--even p { min-height: 3.2em; min-height: 2lh; } .choices--even li { align-items: start; } }

/* Our Story: three text boxes */
:root { --moss: #2D4A28; --sage: #EDF1E6; --honey: #FADA8A; --peach: #FFD6A5; --tint-yellow: #FFECAD; --tint-cream: #FFF4DA; --tint-orange: #FFDDB3; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.story-box { border-radius: 14px; padding: clamp(24px, 3.6vw, 44px); }
.story-box h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 16px; }
.story-box p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.story-box p + p { margin-top: 1em; }
.story-box--honey { background: var(--tint-yellow); color: var(--ink); }
.story-box--sage { background: var(--tint-cream); color: var(--ink); }
.story-box--mission { background: var(--tint-orange); color: var(--ink); }
.story-box--mission p { max-width: 70ch; }
.story-faces { display: flex; gap: 14px; margin-top: 24px; }
.story-faces figure { margin: 0; flex: 1 1 0; max-width: 180px; }
.story-faces img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.story-faces figcaption { margin-top: 10px; display: grid; gap: 2px; font-size: 15px; line-height: 1.25; }
.story-faces figcaption span { color: var(--muted); }
.story-by { margin: -6px 0 14px; font-style: italic; color: var(--muted); }
.story-box--who .story-who-text p { max-width: 62ch; }
@media (min-width: 761px) {
  .story-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .story-box--who { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
  .story-box--who .story-faces { margin-top: 0; justify-content: flex-end; }
  .story-box--who .story-faces figure { max-width: 190px; }
  .story-box--story { grid-column: 1 / span 7; }
  .story-box--mission { grid-column: 8 / span 5; }
}

/* Wide headers: Inside the Cube one-line title, Our Story full-width quote */
.opening--wide .stack { max-width: none; }
.h-oneline { font-size: clamp(26px, 4vw, 52px); }
.story-quote { font-size: clamp(28px, 4.1vw, 58px); line-height: 1.15; max-width: none; }
@media (min-width: 900px) { .h-oneline { white-space: nowrap; } }
