/* Farmyard homepage: a paper-cut farm */
:root {
  --sky: #f1f2ea;
  --sun: #e0b25a;
  --butter: #f1e2b4;
  --wool: #fefdfb;
  --grass-far: #b7bf90;
  --grass: #7c9258;
  --paddock: #566b3a;
  --pine: #33371b;
  --barn: #b25539;
  --soil: #6f4f39;
  --wheat: #d6b267;
  --pond: #a9bdb0;
  --ink: #2a2d17;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --gable: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
  --gambrel: polygon(50% 0, 84% 11%, 100% 31%, 100% 100%, 0 100%, 0 31%, 16% 11%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body { margin: 0; background: var(--wool); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-stretch: 80%; line-height: .92; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8.6vw, 9rem); }
h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h3 { font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.wrap { width: min(1320px, 100% - 64px); margin-inline: auto; }
.mono { font: 500 .78rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1.4rem; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 1.05rem 1.7rem; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; transition: transform .4s var(--ease), background .3s, color .3s; }
.btn i { width: 26px; height: 26px; border-radius: 50%; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.btn i::after { content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-top: 2px solid; border-right: 2px solid; transform: translateX(-1px) rotate(45deg); }
.btn:hover { transform: translateY(-3px); }
.btn:hover i { transform: translateX(5px); }
.btn-red { background: var(--barn); color: var(--wool); }
.btn-red i::after { border-color: var(--barn); }
.btn-green { background: var(--pine); color: var(--wool); }
.btn-green i::after { border-color: var(--pine); }
.btn-cream { background: var(--wool); color: var(--barn); }
.btn-cream i::after { border-color: var(--wool); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--wool); }
.btn-ghost.light { border-color: var(--wool); color: var(--wool); }
.btn-ghost.light:hover { background: var(--wool); color: var(--barn); }
.btn-small { padding: .8rem 1.3rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
[data-depth] { translate: 0 var(--py, 0px); will-change: translate; }

/* Header: a floating pill */
.site-header { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%); width: min(1320px, 100% - 32px); display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(51, 55, 27, .6); }
.brand { font: 800 1.9rem/1 var(--display); font-stretch: 78%; letter-spacing: -.05em; text-decoration: none; color: var(--paddock); padding-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--barn); }
.nav-toggle { display: none; }

/* HERO */
.hero { position: relative; background: linear-gradient(var(--wool), var(--wool) 40%, var(--sky)); padding-top: clamp(96px, 7.5vw, 116px); overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; }
.hero-copy { position: relative; z-index: 3; text-align: center; width: min(1200px, 100% - 40px); margin: auto; padding-block: clamp(14px, 2vw, 30px); }
.tag-line { font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; }
.hero h1 { color: var(--pine); font-size: clamp(2.5rem, 5.6vw, 5.6rem); }
.hl { position: relative; white-space: nowrap; color: var(--paddock); }
.hl::after { content: ''; position: absolute; left: -2%; right: 2%; bottom: .04em; height: .16em; background: var(--sun); border-radius: 999px; z-index: -1; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.45; max-width: 34rem; margin: 1.5rem auto 1.9rem; font-weight: 500; }
.hero .btn-row { justify-content: center; }

.scene { position: relative; width: 100%; height: clamp(240px, min(34vw, 46svh), 520px); flex: none; }
.sun { position: absolute; left: 67%; bottom: 47%; width: 9.5%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.hill { position: absolute; left: 0; width: 100%; bottom: -1px; }
.hill-far { height: 66%; fill: var(--grass-far); }
.hill-mid { height: 47%; fill: var(--grass); }
.hill-near { height: 25%; fill: var(--pine); z-index: 4; }
.tree { position: absolute; fill: var(--paddock); }
.tree rect { fill: var(--pine); }
.tree-1 { left: 5%; bottom: 44%; width: 5.4%; }
.tree-2 { left: 88%; bottom: 40%; width: 4.4%; }
.tree-3 { left: 45.5%; bottom: 17%; width: 4.2%; z-index: 2; fill: var(--pine); }
.sheep { position: absolute; width: 4%; z-index: 3; }
.sheep .w { fill: var(--wool); } .sheep .d { fill: var(--pine); }
.sheep-1 { left: 85%; bottom: 23%; }
.sheep-2 { left: 9%; bottom: 20%; width: 3.2%; transform: scaleX(-1); }

/* Buildings: photo "windows" cut like farm buildings, with a paper layer behind */
.bld { position: absolute; z-index: 2; }
.bld img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.bld .paper { position: absolute; inset: 0; translate: -4.5% -3.5%; }
.barn img, .barn .paper { clip-path: var(--gambrel); }
.shed img, .shed .paper { clip-path: var(--gable); }
.silo img, .silo .paper { border-radius: 999px 999px 0 0; }
.barn .paper { background: var(--barn); }
.silo .paper { background: var(--wool); }
.shed .paper { background: var(--sun); translate: 4.5% -3.5%; }
.art { position: absolute; z-index: 2; }
.barn-art { left: 23%; bottom: 17%; width: 15%; }
.barn-art .wall { fill: var(--barn); }
.barn-art .trim, .barn-art .cross { fill: none; stroke: var(--wool); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.barn-art .cross { stroke: var(--barn); stroke-width: 3; }
.barn-art .door { fill: var(--wool); }
.silo-art { left: 39%; bottom: 19%; width: 4.2%; }
.silo-art .body { fill: var(--wool); } .silo-art .cap { fill: var(--sun); }
.silo-art .band { fill: none; stroke: var(--sky); stroke-width: 4; }

/* STATEMENT */
.statement { background: var(--pine); color: var(--wool); padding: clamp(50px, 7vw, 110px) 0 clamp(80px, 10vw, 150px); }
.statement .mono { color: var(--sun); }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; max-width: 1140px; }
.big-words { font: 700 clamp(2.3rem, 4.9vw, 4.9rem)/.96 var(--display); font-stretch: 80%; letter-spacing: -.035em; margin: 0 0 clamp(28px, 3.5vw, 52px); text-wrap: balance; }
.big-words span { opacity: .16; transition: opacity .35s; }
.big-words span.lit { opacity: 1; }
.statement-text { font-size: 1.2rem; line-height: 1.5; max-width: 30rem; margin: 0; color: rgba(248, 243, 230, .86); }
.statement-photo { position: relative; z-index: 1; width: 92%; justify-self: end; aspect-ratio: 1 / 1.3; --blob: 24% 28% 26% 30% / 19% 17% 21% 18%; }
.statement-photo img { border-radius: var(--blob); object-position: 50% 50%; }
.statement-photo .paper { background: var(--paddock); border-radius: var(--blob); translate: 2.2% 2.4%; rotate: 2.5deg; opacity: .7; }

/* TICKER */
.ticker { background: var(--sun); color: var(--pine); overflow: hidden; padding: 22px 0 26px; rotate: -1.2deg; margin: -34px -2vw 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { font: 700 clamp(1.8rem, 3.4vw, 3.2rem)/1 var(--display); font-stretch: 80%; letter-spacing: -.03em; white-space: nowrap; display: flex; align-items: center; }
.ticker em { font: 500 .4em/1.2 var(--sans); letter-spacing: 0; margin-left: .9em; opacity: .85; }
.ticker span::after { content: ''; width: .42em; height: .52em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--barn); margin: 0 .7em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* DIFFERENT: animated tiles */
.different { padding: clamp(90px, 11vw, 170px) 0 clamp(90px, 11vw, 160px); position: relative; overflow: hidden; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(36px, 5vw, 70px); }
.split-head h2 { max-width: 11ch; }
.split-head p { max-width: 26rem; margin: 0 0 .6rem; }
.split-head .mono { text-align: right; }
.diff-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.diff-visual { position: relative; }
.blob-photo { position: relative; aspect-ratio: 1 / 1.24; --blob: 24% 28% 26% 30% / 20% 18% 22% 19%; }
.blob-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: var(--blob); object-position: 55% 0%; }
.blob-photo .paper { position: absolute; inset: 0; border-radius: var(--blob); background: var(--grass-far); translate: -2.2% 2.2%; rotate: -2.5deg; opacity: .7; }
.different .wrap { position: relative; z-index: 1; }
.diff-copy h2 { margin-bottom: clamp(26px, 3vw, 44px); max-width: 11ch; }
.pills { list-style: none; margin: 0 0 clamp(26px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pills li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; padding: 20px 24px 22px 20px; background: #fff; border: 1px solid rgba(42, 45, 23, .07); border-radius: 30px; box-shadow: 0 18px 34px -22px rgba(51, 55, 27, .38); transition: opacity .9s ease, transform .9s var(--ease), translate .5s var(--ease), box-shadow .5s; }
.pills li:hover { translate: 0 -5px; box-shadow: 0 26px 40px -22px rgba(51, 55, 27, .45); }
.pills li:nth-child(4n+1) { border-radius: 30px 30px 30px 44px; } .pills li:nth-child(4n+2) { border-radius: 30px 44px 30px 30px; }
.pills li:nth-child(4n+3) { border-radius: 44px 30px 30px 30px; } .pills li:nth-child(4n) { border-radius: 30px 30px 44px 30px; }
.pills li:nth-child(even) { transition-delay: .1s, .1s, 0s, 0s; }
.pills .n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center; font: 500 .85rem/1 var(--mono); background: var(--grass); color: var(--wool); }
.pills li:nth-child(2) .n { background: var(--sun); color: var(--pine); } .pills li:nth-child(3) .n { background: var(--pond); color: var(--pine); }
.pills li:nth-child(4) .n { background: var(--soil); } .pills li:nth-child(5) .n { background: var(--barn); }
.pills li:nth-child(6) .n { background: var(--grass-far); color: var(--pine); } .pills li:nth-child(7) .n { background: var(--pine); }
.pills li:nth-child(8) .n { background: var(--wheat); color: var(--pine); }
.pills h3 { font-weight: 650; font-stretch: 88%; font-size: 1.18rem; line-height: 1.12; letter-spacing: -.015em; }
.pills p { margin: .4rem 0 0; font-size: .93rem; line-height: 1.45; color: rgba(42, 45, 23, .7); }

/* LEARNING */
.learning { background: var(--sky); padding: clamp(90px, 11vw, 170px) 0; text-align: center; }
.farm-head { max-width: 46rem; margin: 0 auto clamp(40px, 5vw, 72px); }
.farm-head h2 { color: var(--pine); margin-bottom: 1.6rem; }
.farm-head p:last-child { font-size: 1.12rem; max-width: 40rem; margin-inline: auto; }
.farm-band { display: grid; grid-template-columns: 1fr 1.9fr 1fr; gap: clamp(10px, 1.4vw, 20px); height: clamp(260px, 36vw, 520px); }
.farm-band figure { overflow: hidden; border-radius: 34px; }
.farm-band .f1 { border-radius: 90px 34px 34px 60px / 80px 34px 34px 70px; }
.farm-band .f2 { border-radius: 40px 46px 38px 48px; }
.farm-band .f3 { border-radius: 34px 80px 70px 34px / 34px 90px 60px 34px; }
.farm-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.farm-band figure:hover img { transform: scale(1.05); }
.farm-band .f2 img { object-position: 50% 50%; }
.farm-band .f3 img { object-position: 55% 30%; }
.learning blockquote { margin: clamp(48px, 6vw, 90px) auto 0; max-width: 22em; font: 700 clamp(1.7rem, 3.4vw, 3.3rem)/1.04 var(--display); font-stretch: 80%; letter-spacing: -.03em; color: var(--pine); text-wrap: balance; }
.learning mark { background: none; color: inherit; box-shadow: inset 0 -.2em 0 var(--sun); }
.farm-cta { margin: clamp(28px, 3vw, 44px) 0 0; }

/* QUESTIONS */
.questions { padding: clamp(90px, 11vw, 170px) 0 clamp(100px, 12vw, 180px); }
.q-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.q-intro h2 { margin-bottom: 1.6rem; }
.q-intro p { max-width: 24rem; }
.q-list details { border-bottom: 2px solid var(--ink); }
.q-list details:first-child { border-top: 2px solid var(--ink); }
.q-list summary { list-style: none; cursor: pointer; padding: 24px 60px 24px 0; position: relative; font: 600 clamp(1.3rem, 1.9vw, 1.75rem)/1.1 var(--display); font-stretch: 84%; letter-spacing: -.02em; }
.q-list summary::-webkit-details-marker { display: none; }
.q-list summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: var(--sun); display: grid; place-content: center; font: 500 1.5rem/1 var(--sans); transition: rotate .4s var(--ease), background .3s; }
.q-list details[open] summary::after { rotate: 45deg; background: var(--barn); color: var(--wool); }
.q-list details p { max-width: 36rem; padding-bottom: 14px; font-size: 1.08rem; }

/* VISIT */
.visit { position: relative; padding: 0 0 clamp(150px, 17vw, 260px); overflow: hidden; }
.visit-panel { position: relative; overflow: hidden; border-radius: 70px 56px 64px 52px / 56px 64px 52px 70px; min-height: clamp(600px, 56vw, 800px); display: grid; place-items: start center; color: var(--wool); isolation: isolate; }
.visit-panel img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 47%; z-index: -2; }
.visit-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(51, 55, 27, .82), rgba(51, 55, 27, .55) 42%, rgba(51, 55, 27, 0) 68%); }
.visit-copy { text-align: center; padding: clamp(44px, 5vw, 72px) 24px 0; max-width: 52rem; }
.visit .mono { color: var(--sun); }
.visit-copy h2 { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.visit-copy > p:not(.mono) { max-width: 34rem; margin-inline: auto; font-size: 1.12rem; }
.visit .btn-row { margin-top: 1.6rem; justify-content: center; }
.visit .btn-cream { color: var(--pine); }
.visit .btn-cream i::after { border-color: var(--wool); }
.details { display: flex; justify-content: center; gap: clamp(32px, 7vw, 110px); margin: clamp(32px, 4vw, 52px) 0 0; text-align: center; }
.details dt { font: 500 .76rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--barn); margin-bottom: 10px; }
.details dd { margin: 0; font: 600 1.3rem/1.2 var(--display); font-stretch: 84%; letter-spacing: -.01em; }
.visit-hill { height: clamp(80px, 11vw, 170px); fill: var(--pine); }

/* FOOTER */
.site-footer { background: var(--pine); color: var(--wool); padding: 40px 0 26px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; margin-left: max(32px, (100% - 1320px) / 2); }
.site-footer .mono { color: var(--sun); margin-bottom: .8rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-logo { margin: clamp(48px, 6vw, 90px) 0 clamp(20px, 3vw, 40px); display: flex; justify-content: center; }
.footer-logo img { width: clamp(180px, 20vw, 280px); height: auto; }
.footer-about { max-width: 46ch; margin: 0 auto clamp(28px, 3vw, 44px); padding: 0 20px; text-align: center; font-size: .95rem; line-height: 1.5; opacity: .8; }
.footer-base { display: flex; justify-content: space-between; padding-top: 22px; font: 400 .76rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.footer-base p { margin: 0; }

/* Tablet */
@media (max-width: 980px) {
  .nav-toggle { display: grid; gap: 6px; width: 48px; height: 48px; place-content: center; background: var(--paddock); border: 0; border-radius: 50%; cursor: pointer; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--wool); border-radius: 2px; transition: transform .3s; }
  .open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header { padding-left: 22px; }
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--wool); border-radius: 28px; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; box-shadow: 0 20px 40px -20px rgba(51, 55, 27, .6); display: none; }
  .open .nav { display: flex; }
  .nav a:not(.btn) { font: 700 2rem/1 var(--display); font-stretch: 80%; letter-spacing: -.03em; }
  .q-grid, .statement-grid { grid-template-columns: 1fr; }
  .statement-photo { width: min(460px, 100% - 20px); justify-self: start; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-visual { width: min(480px, 100%); margin-inline: auto; }
  .split-head .mono { text-align: left; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 1.6rem; }
  .hero { padding-top: 104px; }
  .scene { height: min(62vw, 40svh); }
  .barn-art { left: 10%; width: 32%; bottom: 15%; }
  .silo-art { left: 44%; width: 9%; bottom: 17%; }
  .sun { left: 68%; width: 15%; bottom: 52%; }
  .tree-1, .tree-2, .sheep-2 { display: none; }
  .tree-3 { left: 56%; width: 8%; }
  .sheep-1 { width: 8%; left: 80%; bottom: 20%; z-index: 5; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .ticker { margin-top: -22px; padding: 14px 0 17px; }
  .pills { grid-template-columns: 1fr; }
  .farm-band { grid-template-columns: 1fr 1fr; height: auto; }
  .farm-band figure { aspect-ratio: 1 / 1.15; }
  .farm-band .f2 { grid-column: 1 / -1; order: -1; aspect-ratio: 1.35 / 1; }
  .details { flex-direction: column; gap: 24px; }
  .visit-panel { border-radius: 40px; min-height: 680px; }
  .visit-panel img { top: 0; height: 138%; object-position: 50% 0; }
  .visit-copy > p:not(.mono) { display: none; }
  .visit-copy h2 { margin-bottom: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; margin-left: 20px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .big-words span { opacity: 1; }
  .btn, .pills li { transition: none !important; }
  }
