:root {
  --ink: #20201b;
  --ink-soft: #5f6058;
  --paper: #efede6;
  --paper-deep: #e5e1d8;
  --cream: #e7dfd0;
  --night: #20221d;
  --night-soft: #2a2c25;
  --line: rgba(32, 32, 27, 0.17);
  --line-light: rgba(239, 237, 230, 0.18);
  --terracotta: #bc6947;
  --terracotta-light: #db8b63;
  --sage: #75836d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Space Grotesk", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --page: min(1280px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::selection {
  color: var(--paper);
  background: var(--terracotta);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.section-light,
.section-cream,
.section-dark {
  position: relative;
  overflow: hidden;
}

.section-light {
  background: var(--paper);
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  color: var(--paper);
  background: var(--night);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  height: 76px;
  margin-inline: auto;
  color: var(--paper);
  transition: color 300ms ease, background 300ms ease, transform 300ms ease;
}

.site-header::before {
  position: absolute;
  right: calc((var(--page) - 100vw) / 2);
  bottom: 0;
  left: calc((var(--page) - 100vw) / 2);
  height: 1px;
  background: rgba(239, 237, 230, 0.25);
  content: "";
  transition: background 300ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(239, 237, 230, 0.88);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled::before {
  background: var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 19px;
  height: 19px;
  transform: rotate(-22deg);
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 5px;
  background: currentColor;
}

.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 13px; }

.brand-year {
  margin-left: -5px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.58;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin-left: 5vw;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a,
.header-cta,
.footer-bottom a {
  transition: opacity 200ms ease, color 200ms ease;
}

.main-nav a:hover,
.footer-bottom a:hover {
  opacity: 0.58;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrow,
.button-icon {
  font-size: 17px;
  line-height: 0.7;
  transition: transform 200ms ease;
}

.header-cta:hover .arrow,
.text-link:hover span,
.button:hover .button-icon,
.footer-mail:hover span {
  transform: translate(3px, -3px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 200ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--paper);
  background: var(--night);
  isolation: isolate;
}

.hero-video,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  z-index: -3;
  opacity: 0.29;
  filter: saturate(0.72) sepia(0.16) contrast(1.08);
  transform: scale(1.04);
}

.hero-wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(26, 27, 23, 0.97) 0%, rgba(26, 27, 23, 0.83) 35%, rgba(26, 27, 23, 0.3) 78%, rgba(26, 27, 23, 0.68) 100%),
    linear-gradient(0deg, rgba(26, 27, 23, 0.9) 0%, transparent 33%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  min-height: calc(100svh - 78px);
  padding-top: 100px;
  padding-bottom: 140px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: rgba(239, 237, 230, 0.66);
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(117, 131, 109, 0.13);
}

.eyebrow-dot.warm {
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(188, 105, 71, 0.13);
}

.eyebrow-dot.terracotta {
  background: var(--terracotta-light);
  box-shadow: 0 0 0 4px rgba(219, 139, 99, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.075em;
}

h1 {
  max-width: 720px;
  font-size: clamp(4.4rem, 8.4vw, 8.7rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(3rem, 5vw, 5.9rem);
  line-height: 0.9;
}

h1 em,
h2 em {
  color: var(--terracotta-light);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.1em;
}

.hero-lede {
  max-width: 340px;
  margin: 36px 0 32px;
  color: rgba(239, 237, 230, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 182px;
  padding: 16px 17px 16px 19px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.button-light:hover {
  color: var(--paper);
  background: var(--terracotta);
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.button-dark:hover {
  background: var(--terracotta);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  font-size: 16px;
  line-height: 0.5;
  transition: transform 200ms ease;
}

.dark-link {
  color: var(--ink);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(650px, 72vh);
  margin-right: -8vw;
  isolation: isolate;
}

#bean-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 560px;
  cursor: grab;
}

#bean-canvas:active {
  cursor: grabbing;
}

.stage-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(219, 139, 99, 0.46);
  border-radius: 50%;
  pointer-events: none;
}

.stage-orbit-one {
  width: 72%;
  height: 42%;
  transform: rotate(-27deg);
}

.stage-orbit-two {
  width: 84%;
  height: 56%;
  border-color: rgba(239, 237, 230, 0.14);
  transform: rotate(34deg);
}

.stage-label,
.stage-caption {
  position: absolute;
  z-index: 3;
  color: rgba(239, 237, 230, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.stage-label span {
  color: var(--terracotta-light);
}

.stage-label-top {
  top: 15%;
  right: 12%;
}

.stage-caption {
  bottom: 16%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-caption-line {
  display: inline-block;
  width: 27px;
  height: 1px;
  background: var(--terracotta-light);
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 31px;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: rgba(239, 237, 230, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--terracotta-light);
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.hero-stats span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-stats b {
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.manifesto {
  padding: clamp(100px, 14vw, 210px) 0 clamp(120px, 15vw, 220px);
}

.manifesto::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 35vw;
  height: 100%;
  background: var(--paper-deep);
  content: "";
  opacity: 0.5;
}

.manifesto-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.25fr 1.4fr 0.65fr;
  gap: 30px;
}

.vertical-label {
  align-self: start;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.manifesto-main h2 {
  max-width: 810px;
}

.manifesto-main h2 em,
.faq h2 em,
.contact h2 em {
  color: var(--terracotta);
}

.manifesto-side {
  align-self: end;
  max-width: 255px;
  padding-bottom: 5px;
}

.manifesto-side p,
.faq-intro-copy,
.contact-lede {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.manifesto-side p {
  margin-bottom: 29px;
}

.coffee-slider {
  padding: clamp(92px, 10vw, 150px) 0 120px;
}

.coffee-slider::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 37%;
  background: linear-gradient(135deg, transparent, rgba(117, 131, 109, 0.09));
  content: "";
  pointer-events: none;
}

.section-heading,
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.gallery-heading h2 {
  margin-top: 0;
}

.heading-note,
.gallery-heading > p {
  margin: 0 0 7px;
  color: rgba(239, 237, 230, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider-shell {
  position: relative;
  margin-top: 78px;
}

.slider-topline,
.slider-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(239, 237, 230, 0.5);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.slider-topline {
  margin-bottom: 18px;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(239, 237, 230, 0.29);
  border-radius: 50%;
  color: var(--paper);
  background: transparent;
  font-size: 17px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.slider-button:hover {
  border-color: var(--terracotta-light);
  color: var(--ink);
  background: var(--terracotta-light);
  transform: translateY(-2px);
}

.coffee-track {
  display: flex;
  gap: 15px;
  padding: 0 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.coffee-track::-webkit-scrollbar {
  display: none;
}

.coffee-card {
  position: relative;
  flex: 0 0 clamp(250px, 26vw, 350px);
  min-height: clamp(350px, 37vw, 475px);
  overflow: hidden;
  color: var(--paper);
  background: #514538;
  scroll-snap-align: start;
  isolation: isolate;
  transition: flex-basis 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 300ms ease;
}

.coffee-card:first-child {
  flex-basis: clamp(290px, 30vw, 410px);
}

.coffee-card:hover {
  transform: translateY(-8px);
}

.coffee-card:focus-visible {
  outline: 2px solid var(--terracotta-light);
  outline-offset: 5px;
}

.card-image-wrap,
.card-image-wrap img,
.card-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-image-wrap {
  z-index: -2;
  overflow: hidden;
}

.card-image-wrap img {
  object-fit: cover;
  filter: saturate(0.76) contrast(1.03);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.coffee-card:hover img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.08);
}

.card-overlay {
  z-index: -1;
  background: linear-gradient(0deg, rgba(21, 22, 19, 0.91) 0%, rgba(21, 22, 19, 0.12) 63%, rgba(21, 22, 19, 0.13) 100%);
}

.card-number {
  position: absolute;
  top: 23px;
  left: 23px;
  color: rgba(239, 237, 230, 0.7);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.card-content {
  position: absolute;
  right: 23px;
  bottom: 23px;
  left: 23px;
}

.card-origin {
  margin-bottom: 9px;
  color: var(--terracotta-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-content h3 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 500;
  letter-spacing: -0.07em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(239, 237, 230, 0.36);
  color: rgba(239, 237, 230, 0.68);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-link b {
  color: var(--paper);
  font-size: 15px;
  font-weight: 400;
}

.slider-bottomline {
  gap: 20px;
  margin-top: 8px;
}

.progress-track {
  width: 100%;
  height: 1px;
  background: rgba(239, 237, 230, 0.18);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 2px;
  background: var(--terracotta-light);
  transition: width 400ms ease;
}

.slider-count {
  min-width: 53px;
  text-align: right;
}

.slider-count b {
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(440px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 9vw, 155px);
  padding-top: clamp(100px, 13vw, 190px);
  padding-bottom: clamp(100px, 13vw, 190px);
}

.detail-copy {
  max-width: 430px;
}

.detail-copy h2 {
  color: var(--ink);
  margin-bottom: 32px;
}

.detail-description {
  max-width: 365px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.detail-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(32, 32, 27, 0.21);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-visual {
  min-width: 0;
}

.detail-image-frame {
  position: relative;
  height: min(600px, 48vw);
  min-height: 420px;
  overflow: hidden;
  background: #7e5947;
}

.detail-image-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 30, 24, 0.04), rgba(31, 30, 24, 0.24));
  content: "";
  pointer-events: none;
}

.detail-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
  transition: opacity 200ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-image-frame:hover img {
  transform: scale(1.04);
}

.image-stamp {
  position: absolute;
  right: 25px;
  bottom: 22px;
  z-index: 1;
  color: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.image-stamp small {
  color: rgba(239, 237, 230, 0.66);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.detail-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-data div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 14px 0;
  border-right: 1px solid var(--line);
}

.detail-data div + div {
  padding-left: 18px;
}

.detail-data div:last-child {
  border-right: 0;
}

.detail-data span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-data strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.faq {
  padding: clamp(100px, 13vw, 185px) 0;
}

.faq::before {
  position: absolute;
  top: 12%;
  left: -10vw;
  width: 280px;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 10vw, 170px);
}

.faq-intro .vertical-label {
  margin-bottom: 76px;
}

.faq-intro h2 {
  margin-bottom: 30px;
}

.faq-intro-copy {
  max-width: 290px;
}

.faq-list {
  align-self: end;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: -0.04em;
  text-align: left;
}

.faq-question span {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.faq-question small {
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.faq-question b {
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer > div {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  max-width: 480px;
  margin: -1px 42px 25px 37px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.gallery {
  padding: clamp(100px, 12vw, 170px) 0 clamp(110px, 14vw, 200px);
}

.gallery-heading {
  align-items: end;
  margin-bottom: 72px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.92fr 0.78fr;
  grid-template-rows: 300px 290px 215px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--night-soft);
  isolation: isolate;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(19, 20, 17, 0.88), rgba(19, 20, 17, 0.02) 56%);
  content: "";
  pointer-events: none;
}

.gallery-item img {
  position: absolute;
  inset: -9% 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
  transition: filter 450ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.07);
}

.gallery-item figcaption {
  position: absolute;
  right: 20px;
  bottom: 19px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gallery-item figcaption span {
  color: var(--terracotta-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-item figcaption b {
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 1;
}

.gallery-item-square {
  grid-column: 3;
  grid-row: 1;
}

.gallery-item-small {
  grid-column: 3;
  grid-row: 2;
}

.second-wide {
  grid-column: 2 / span 2;
  grid-row: 3;
}

.contact {
  padding: clamp(100px, 13vw, 180px) 0 clamp(90px, 12vw, 160px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(60px, 10vw, 150px);
}

.contact-copy h2 {
  margin-bottom: 31px;
}

.contact-lede {
  max-width: 315px;
  margin-bottom: 61px;
}

.contact-details {
  display: grid;
  gap: 23px;
  max-width: 230px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.contact-details div {
  display: grid;
  gap: 7px;
}

.contact-details span,
.contact-details strong {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.contact-details span {
  color: var(--terracotta);
}

.contact-details strong {
  color: var(--ink);
}

.contact-right {
  min-width: 0;
}

.map-card {
  position: relative;
  overflow: hidden;
  background: #d5d7c8;
}

.map-topline,
.map-bottomline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: rgba(32, 32, 27, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-topline {
  border-bottom: 1px solid rgba(32, 32, 27, 0.15);
}

.map-bottomline {
  border-top: 1px solid rgba(32, 32, 27, 0.15);
}

.map-bottomline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-bottomline i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #637e5a;
  box-shadow: 0 0 0 4px rgba(99, 126, 90, 0.16);
}

.map-bottomline a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.map-drawing {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  background: #d9dccb;
}

.map-road {
  fill: none;
  stroke: rgba(32, 32, 27, 0.16);
  stroke-width: 9;
}

.map-road.road-major {
  stroke: rgba(32, 32, 27, 0.22);
  stroke-width: 16;
}

.map-road.thin {
  stroke-width: 4;
}

.map-route {
  fill: none;
  stroke: var(--terracotta);
  stroke-dasharray: 6 9;
  stroke-linecap: round;
  stroke-width: 3;
}

.map-pin-halo {
  fill: rgba(188, 105, 71, 0.16);
  stroke: rgba(188, 105, 71, 0.4);
  stroke-width: 1;
}

.map-pin {
  fill: var(--terracotta);
  stroke: var(--paper);
  stroke-width: 4;
}

.map-drawing text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
}

.map-drawing .map-small-label {
  fill: rgba(32, 32, 27, 0.45);
  font-size: 9px;
}

.contact-form {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.form-heading,
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-heading {
  padding: 16px 0 24px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-form label > span {
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  padding: 10px 0 13px;
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
  transition: border-color 200ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(95, 96, 88, 0.62);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--terracotta);
}

.form-submit-row {
  align-items: center;
  margin-top: 15px;
}

.form-status {
  max-width: 230px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer {
  padding: 55px 0 25px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  padding-bottom: 85px;
}

.footer-brand {
  color: var(--paper);
}

.footer-top p,
.footer-mail {
  margin: 0;
  color: rgba(239, 237, 230, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-mail {
  justify-self: end;
  color: var(--terracotta-light);
  border-bottom: 1px solid rgba(219, 139, 99, 0.5);
  padding-bottom: 6px;
}

.footer-mail span {
  display: inline-block;
  margin-left: 6px;
  color: var(--paper);
  font-size: 16px;
  line-height: 0.6;
  transition: transform 200ms ease;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 21px;
  color: rgba(239, 237, 230, 0.43);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-bottom div {
  display: flex;
  gap: 26px;
}

.back-top {
  color: var(--paper);
}

.reveal {
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 48px);
  }

  .main-nav {
    gap: 18px;
    margin-left: 0;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .hero-stage {
    margin-right: -10vw;
  }

  h1 {
    font-size: clamp(4.2rem, 9vw, 6.5rem);
  }

  .manifesto-grid,
  .detail-grid,
  .contact-grid {
    gap: 45px;
  }

  .detail-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .gallery-grid {
    grid-template-rows: 250px 250px 190px;
  }
}

@media (max-width: 700px) {
  :root {
    --page: calc(100vw - 36px);
  }

  .site-header {
    height: 66px;
  }

  .main-nav {
    position: fixed;
    top: 66px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    visibility: hidden;
    padding: 10px 20px 15px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .site-header.menu-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
    padding: 5px 0 5px 10px;
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero-grid {
    display: block;
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .hero-copy {
    min-height: 540px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .hero-lede {
    max-width: 290px;
    margin-top: 30px;
  }

  .hero-stage {
    position: absolute;
    top: 400px;
    right: -21vw;
    left: 13vw;
    min-height: 450px;
    opacity: 0.85;
  }

  #bean-canvas {
    min-height: 430px;
  }

  .stage-label-top {
    top: 18%;
    right: 18%;
  }

  .hero-bottom {
    bottom: 22px;
    align-items: start;
  }

  .hero-stats {
    display: none;
  }

  .manifesto-grid,
  .detail-grid,
  .faq-grid,
  .contact-grid {
    display: block;
  }

  .vertical-label {
    margin-bottom: 45px;
  }

  .manifesto-side {
    max-width: 300px;
    margin-top: 40px;
    margin-left: auto;
  }

  .section-heading,
  .gallery-heading {
    display: block;
  }

  .heading-note,
  .gallery-heading > p {
    margin-top: 28px;
  }

  .slider-shell {
    margin-top: 48px;
  }

  .coffee-card,
  .coffee-card:first-child {
    flex-basis: min(79vw, 340px);
    min-height: 430px;
  }

  .detail-grid {
    padding-top: 100px;
    padding-bottom: 105px;
  }

  .detail-copy {
    max-width: 420px;
    margin-bottom: 56px;
  }

  .detail-image-frame {
    height: 110vw;
    min-height: 400px;
    max-height: 570px;
  }

  .faq-intro .vertical-label {
    margin-bottom: 45px;
  }

  .faq-list {
    margin-top: 56px;
  }

  .gallery-heading {
    margin-bottom: 48px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 200px 250px 200px;
  }

  .gallery-item-tall {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .gallery-item-wide {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-item-square {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-item-small {
    grid-column: 1;
    grid-row: 3;
  }

  .second-wide {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  .contact-lede {
    max-width: 320px;
    margin-bottom: 45px;
  }

  .contact-right {
    margin-top: 65px;
  }

  .map-drawing {
    min-height: 210px;
  }

  .form-row {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 45px 20px;
    padding-bottom: 65px;
  }

  .footer-top p {
    justify-self: end;
  }

  .footer-mail {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .footer-bottom {
    align-items: start;
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer-bottom div {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
