/* =========================================================
   The Acre — honestly baked sourdough, Carmarthenshire
   Warm artisan bakery: sage green on oat/cream, crust browns.
   Newsreader (serif) + Karla (sans).
   ========================================================= */

:root {
  --cream:   #f4ecdc;
  --cream-2: #ece1cb;
  --paper:   #faf4e8;
  --ink:     #2c2519;
  --muted:   #7c7060;
  --green:   #415a43;   /* logo sage/forest */
  --green-d: #2d4131;
  --crust:   #9c5f2f;   /* warm crust brown */
  --crust-l: #c2824a;
  --line:    #ddcfb4;

  --maxw: 1200px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(120% 80% at 100% 0, rgba(156,95,47,.06), transparent 55%),
                    radial-gradient(90% 70% at 0 100%, rgba(65,90,67,.08), transparent 50%);
}
h1,h2,h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }

/* ---------- cinematic intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--cream); display: grid; place-items: center;
  transition: transform .85s cubic-bezier(.76,0,.24,1); }
.intro.is-done { transform: translateY(-101%); }
.intro__inner { text-align: center; color: var(--green); }
.intro__logo { width: min(380px, 76vw); height: auto; opacity: 0; clip-path: inset(0 100% 0 0);
  animation: logoReveal 1.5s cubic-bezier(.65,0,.35,1) forwards .3s; }
@keyframes logoReveal { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 22% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
.intro__loaf { width: 132px; height: 88px; }
.intro__loaf path:first-of-type { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.5s var(--ease) forwards .25s; }
.intro__loaf path:last-of-type { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s var(--ease) forwards .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__name { display: block; margin-top: 1.1rem; font-weight: 700; letter-spacing: .42em; font-size: 1.1rem; color: var(--green-d); opacity: 0; animation: introUp .8s var(--ease) forwards 1.15s; }
.intro__tag { display: block; margin-top: .45rem; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--crust); opacity: 0; animation: introUp .8s var(--ease) forwards 1.4s; }
@keyframes introUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- masked text reveal ---------- */
.t-reveal { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.t-inner { display: block; transform: translateY(112%); transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.t-reveal.is-in .t-inner { transform: none; }
@media (prefers-reduced-motion: reduce){ .t-inner { transform: none; transition: none; } .intro{ display: none; } }

.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.eyebrow { display: inline-block; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--crust); margin-bottom: .6rem; }
.eyebrow--light { color: var(--crust-l); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; font-family: var(--font-body); font-weight: 700;
  font-size: .92rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn--solid { background: var(--green); color: var(--cream); }
.btn--solid:hover { background: var(--green-d); transform: translateY(-2px); }
.btn--ghost { border-color: var(--green); color: var(--green-d); }
.btn--ghost:hover { background: var(--green); color: var(--cream); transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--ink); padding: .6rem 1.2rem; font-size: .85rem; }
.btn--line:hover { border-color: var(--crust); color: var(--crust); }
.btn--cream { background: var(--cream); color: var(--green-d); }
.btn--cream:hover { transform: translateY(-2px); background: #fff; }
.btn--wide { width: 100%; padding: 1rem; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.1rem,4vw,2.6rem); background: rgba(244,236,220,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.hdr.is-stuck { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-d); }
.brand__icon { width: 40px; height: 27px; color: var(--green); }
.brand__logo { height: 42px; width: auto; display: block; }
.brand__name { font-family: var(--font-body); font-weight: 700; letter-spacing: .28em; font-size: 1rem; }
.nav__menu { list-style: none; display: flex; align-items: center; gap: 1.8rem; margin: 0; padding: 0; }
.nav__menu a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); transition: color .2s; }
.nav__menu a:hover { color: var(--crust); }
.nav__cta { background: var(--green); color: var(--cream) !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav__cta:hover { background: var(--green-d); }
.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 25px; height: 2px; background: var(--green-d); transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem,6vw,5rem) clamp(1.2rem,4vw,2.6rem) clamp(2rem,4vw,3rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero__tag { font-style: italic; font-family: var(--font-display); font-size: 1.2rem; color: var(--crust); margin: 0 0 1rem; }
.hero__title { font-size: clamp(2.8rem,7vw,5.2rem); }
.hero__title em { color: var(--green); }
.hero__lede { font-size: 1.1rem; color: var(--muted); max-width: 44ch; margin: 1.6rem 0 2.2rem; }
.hero__lede strong { color: var(--ink); }
.ingredients { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; padding: 0; }
.ingredients li { font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--green-d);
  background: rgba(65,90,67,.08); border: 1px solid var(--line); padding: .28rem .85rem; border-radius: 999px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: 220px 220px 14px 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(44,37,25,.5); border: 1px solid var(--line); aspect-ratio: 3/4; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__zoom { transform: scale(1.02); animation: kenburns 20s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.07); } }
.hero__inset { position: absolute; top: -22px; right: -22px; width: 38%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 14px; border: 5px solid var(--cream); box-shadow: 0 18px 34px -18px rgba(44,37,25,.55);
  animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.seal { position: absolute; left: -34px; bottom: 30px; width: 116px; height: 116px; color: var(--cream);
  background: var(--crust); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(44,37,25,.6); }
.seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__text { font-family: var(--font-body); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; fill: var(--cream); text-transform: uppercase; }
.seal use { color: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee { background: var(--green); color: var(--cream); overflow: hidden; padding: .7rem 0; border-top: 1px solid var(--green-d); border-bottom: 1px solid var(--green-d); }
.marquee__track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; white-space: nowrap; padding-right: 1rem; opacity: .92; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem,8vw,7rem) clamp(1.2rem,4vw,2.6rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.story__media { position: relative; padding-bottom: 24px; }
.story__media img { width: 74%; height: auto; border-radius: 12px; box-shadow: 0 22px 50px -28px rgba(44,37,25,.5); border: 1px solid var(--line); aspect-ratio: 3/4; object-fit: cover; }
.story__media--2 { position: absolute; right: 0; bottom: 0; width: 42% !important; border: 5px solid var(--cream) !important; box-shadow: 0 18px 34px -18px rgba(44,37,25,.5); }
.story__text h2 { font-size: clamp(2rem,4.5vw,3rem); margin-bottom: 1rem; }
.story__text p { font-size: 1.06rem; color: #4a4234; }
.story__sign { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--green); margin-top: .5rem; }

/* ---------- cinematic parallax band ---------- */
.band { position: relative; height: clamp(360px,58vh,560px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.band__img { position: absolute; inset: -12% 0; background-size: cover; background-position: center 40%; will-change: transform; }
.band__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,26,16,.55), rgba(34,26,16,.4)); }
.band__text { position: relative; z-index: 2; text-align: center; color: var(--cream); padding: 0 1.4rem; }
.band__kicker { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: #f0d9b6; margin: 0 0 .6rem; }
.band__text h2 { font-size: clamp(2.2rem,6vw,4rem); color: var(--cream); }
.band__text em { font-style: italic; color: #f0d9b6; }

/* ---------- section head ---------- */
.section__head { max-width: 620px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); text-align: center; }
.section__head h2 { font-size: clamp(2rem,4.5vw,3rem); }
.section__sub { color: var(--muted); margin-top: .8rem; }

/* ---------- bakes / products ---------- */
.bakes { max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem,4vw,3rem) clamp(1.2rem,4vw,2.6rem) clamp(3.5rem,7vw,6rem); }
.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(44,37,25,.45); }
.product__img { aspect-ratio: 4/3; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.product__body { padding: 1.3rem 1.4rem 1.5rem; }
.product__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.product__row h3 { font-size: 1.4rem; }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--crust); }
.product__body p { font-size: .95rem; color: var(--muted); margin: .5rem 0 1.1rem; }

/* ---------- reviews carousel ---------- */
.reviews { max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem,3vw,2rem) clamp(1.2rem,4vw,2.6rem) clamp(3rem,6vw,5rem); }
.reviews__wrap { position: relative; }
.reviews__track { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: .5rem .2rem 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: center; flex: 0 0 clamp(280px, 80vw, 380px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.7rem; box-shadow: 0 18px 40px -28px rgba(44,37,25,.4); }
.review__stars { color: var(--crust-l); letter-spacing: .15em; font-size: 1rem; margin-bottom: .8rem; }
.review blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.review cite { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--green); }
.rev__nav { position: absolute; top: 42%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: var(--green-d); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(44,37,25,.4); transition: background-color .2s, transform .2s; }
.rev__nav:hover { background: var(--green); color: var(--cream); }
.rev__prev { left: -10px; } .rev__next { right: -10px; }
@media (max-width: 720px){ .rev__nav { display: none; } }

/* ---------- pull quote ---------- */
.quote { max-width: 880px; margin: 0 auto; padding: clamp(1rem,3vw,2rem) clamp(1.2rem,4vw,2.6rem) clamp(3rem,6vw,5rem); text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.8rem,5vw,3.2rem); line-height: 1.2; color: var(--green-d); }

/* ---------- order ---------- */
.order { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order__grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem,7vw,6rem) clamp(1.2rem,4vw,2.6rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.order__intro h2 { font-size: clamp(2rem,4.5vw,3rem); margin: .3rem 0 1rem; }
.order__intro p { color: var(--muted); }
.order__intro a { color: var(--green); font-weight: 700; }
.order__facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .8rem; }
.order__facts li { border-top: 1px solid var(--line); padding-top: .8rem; color: var(--ink); }
.order__facts span { display: inline-block; min-width: 96px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--crust); font-weight: 700; }
.order__facts a { color: var(--green); font-weight: 600; }
.order__form { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem,3vw,2rem); }
.field { margin-bottom: 1rem; } .field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(65,90,67,.14); }

/* ---------- find us ---------- */
.find { background: var(--green); color: var(--cream); }
.find__inner { max-width: 760px; margin: 0 auto; padding: clamp(3.5rem,8vw,6.5rem) clamp(1.2rem,4vw,2.6rem); text-align: center; }
.find__inner h2 { color: var(--cream); font-size: clamp(2rem,5vw,3.2rem); margin: .3rem 0 1rem; }
.find__inner p { color: rgba(244,236,220,.85); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------- footer ---------- */
.ftr { text-align: center; padding: clamp(2.5rem,5vw,3.5rem) 1.4rem; }
.ftr__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--green-d); justify-content: center; }
.ftr__brand .brand__icon { width: 34px; height: 23px; color: var(--green); }
.ftr__brand span { font-weight: 700; letter-spacing: .28em; }
.ftr__logo { height: 96px; width: auto; margin: 0 auto; }
.ftr__tag { font-family: var(--font-display); font-style: italic; color: var(--crust); margin: .4rem 0 1rem; }
.ftr__links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }
.ftr__links a { text-decoration: none; font-weight: 600; color: var(--green); }
.ftr__links a:hover { color: var(--crust); }
.ftr__copy { font-size: .82rem; color: var(--muted); margin: 0; }
.ftr__credit { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.ftr__credit a { color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.ftr__credit a:hover { color: var(--crust); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } .seal svg,.marquee__track,.hero__zoom,.hero__inset{ animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 880px){
  .hero { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  .story { grid-template-columns: 1fr; }
  .story__media { max-width: 480px; display: flex; gap: 12px; padding-bottom: 0; }
  .story__media img { width: 50%; }
  .story__media--2 { position: static; width: 50% !important; align-self: flex-end; }
  .order__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; right: 0; top: 0; height: 100svh; width: min(80vw,300px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem 2.2rem;
    background: var(--paper); border-left: 1px solid var(--line);
    transform: translateX(12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility .35s; }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2){ transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 540px){ .products { grid-template-columns: 1fr; } .field2 { grid-template-columns: 1fr; } .brand__logo { height: 34px; } .ftr__logo { height: 78px; } }
