:root {
  color-scheme: light;
  --paper: #eef2e8;
  --paper-raised: #f8faf5;
  --ink: #17322a;
  --ink-soft: #426057;
  --forest: #173f35;
  --forest-deep: #0d2b24;
  --accent: #c84a2f;
  --on-dark: #f5f8f2;
  --line: rgba(23, 50, 42, 0.2);
  --light-line: rgba(238, 242, 232, 0.24);
  --shadow: 0 28px 80px rgba(31, 62, 50, 0.16);
  --page-pad: clamp(1rem, 3vw, 3.75rem);
  --max: 1500px;
  --header-h: 82px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--paper-raised);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 0 var(--page-pad);
  color: var(--ink);
  background: rgba(238, 242, 232, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(238, 242, 232, 0.97);
}

.wordmark {
  width: max-content;
  display: grid;
  font-size: 0.78rem;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wordmark span:last-child {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.25rem);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-nav a,
.header-order,
.text-link {
  position: relative;
}

.primary-nav a::after,
.header-order::after,
.text-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.35rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.primary-nav a:hover::after,
.header-order:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-order {
  justify-self: end;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero {
  position: relative;
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) var(--page-pad) 2.25rem;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(560px, 1.3fr);
  gap: clamp(2rem, 5vw, 6.5rem);
  align-items: stretch;
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 6vh, 5.25rem) 0 3rem;
  animation: copy-in 900ms var(--ease) both;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1,
h2 {
  font-family: "Bahnschrift Condensed", "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-stretch: condensed;
}

h1 {
  margin-bottom: 2rem;
  font-size: 5.7rem;
  line-height: 0.82;
  font-weight: 850;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1.8rem;
  font-size: 4.6rem;
  line-height: 0.94;
  font-weight: 780;
}

.hero-deck {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--on-dark);
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-deep);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.button-secondary:hover {
  color: var(--paper-raised);
  background: var(--ink);
}

.hero-address {
  margin: clamp(2.5rem, 7vh, 5.5rem) 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero-media {
  min-height: min(78vh, 860px);
  margin: 0;
  overflow: hidden;
  background: #6e8a50;
  box-shadow: var(--shadow);
}

.hero > *,
.opening > *,
.story-grid > *,
.counter-story > *,
.detail-story > *,
.visit > * {
  min-width: 0;
}

.hero-media img {
  object-position: 58% 55%;
  transform: scale(1.01);
  animation: hero-settle 1200ms var(--ease) both;
}

.chapter-marker {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  z-index: 7;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  color: var(--on-dark);
  background: var(--forest);
  transform: translateY(-50%);
}

.chapter-marker span {
  color: rgba(248, 250, 245, 0.65);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chapter-marker strong {
  font-size: 0.75rem;
  font-weight: 750;
}

.opening {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8rem, 15vw, 15rem) var(--page-pad);
  display: grid;
  grid-template-columns: 1.15fr 0.65fr;
  gap: clamp(4rem, 10vw, 11rem);
  align-items: end;
}

.opening-heading h2 {
  margin-bottom: 0;
}

.opening-copy {
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.opening-copy p:last-child {
  margin: 2.2rem 0 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.story-grid {
  min-height: 920px;
  display: grid;
  grid-template-columns: minmax(2rem, 0.25fr) minmax(300px, 0.7fr) minmax(320px, 0.9fr) minmax(2rem, 0.25fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
  color: var(--on-dark);
  background: var(--forest);
}

.portrait-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: min(76vh, 790px);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(6, 25, 20, 0.35);
}

.portrait-wrap img {
  object-position: 50% 47%;
}

.story-copy {
  grid-column: 3;
  align-self: end;
  padding-bottom: 5rem;
}

.story-copy h2 {
  max-width: 12ch;
}

.story-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: rgba(248, 250, 245, 0.72);
  font-size: 1.08rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.margin-note {
  grid-column: 3;
  align-self: start;
  max-width: 22rem;
  margin: 0;
  padding-top: 1.25rem;
  color: rgba(248, 250, 245, 0.58);
  border-top: 1px solid var(--light-line);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.counter-story {
  min-height: 860px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  background: var(--paper-raised);
}

.counter-image {
  min-height: 860px;
  overflow: hidden;
}

.counter-image img {
  object-position: 50% 45%;
}

.counter-copy {
  align-self: center;
  padding: clamp(4rem, 8vw, 9rem) clamp(2rem, 6vw, 7rem);
}

.counter-copy h2 {
  max-width: 10ch;
}

.counter-copy > p:not(.eyebrow) {
  max-width: 33rem;
  margin-bottom: 2.3rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.button-light {
  color: var(--on-dark);
  background: var(--forest);
}

.detail-story {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8rem, 13vw, 13rem) var(--page-pad);
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(280px, 0.75fr) minmax(380px, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
}

.detail-intro {
  align-self: start;
  padding-top: 2rem;
}

.detail-intro h2 {
  max-width: 9ch;
}

.detail-intro > p:not(.eyebrow),
.detail-caption {
  max-width: 30rem;
  color: var(--ink-soft);
}

.coffee-image,
.table-image {
  margin: 0;
  overflow: hidden;
}

.coffee-image {
  aspect-ratio: 3 / 4;
}

.coffee-image img {
  object-position: 50% 52%;
}

.table-image {
  aspect-ratio: 1 / 1;
}

.detail-caption {
  grid-column: 3;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.visit {
  min-height: 820px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  color: var(--on-dark);
  background: var(--forest-deep);
}

.visit-copy {
  align-self: center;
  max-width: 650px;
  padding-left: max(0px, calc((100vw - var(--max)) / 2));
}

.visit-copy h2 {
  max-width: 10ch;
}

.visit address {
  margin-bottom: 2.6rem;
  color: rgba(248, 250, 245, 0.72);
  font-size: 1.18rem;
  font-style: normal;
}

.button-accent {
  color: #fff8f5;
  background: var(--accent);
}

.button-accent:hover {
  background: #a83823;
}

.button-outline-light {
  color: var(--on-dark);
  border-color: rgba(248, 250, 245, 0.7);
}

.button-outline-light:hover {
  color: var(--forest-deep);
  background: var(--paper-raised);
}

.text-link-light {
  color: var(--on-dark);
  margin: 0 0 0 0.6rem;
}

.map-shell {
  position: relative;
  min-height: 620px;
  align-self: stretch;
  overflow: hidden;
  background: #d9dfd5;
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  border: 0;
  filter: saturate(0.78) contrast(1.05);
}

.map-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: rgba(248, 250, 245, 0.94);
  font-size: 0.75rem;
  font-weight: 750;
}

.map-failure {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 6rem);
  color: #17322a;
  background: #e7ece3;
}

.map-failure[hidden] {
  display: none;
}

.map-failure .eyebrow,
.map-failure p {
  margin: 0;
}

.map-failure strong {
  max-width: 16ch;
  font-family: "Bahnschrift Condensed", "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

.map-failure > p:not(.eyebrow) {
  max-width: 34rem;
  color: #426057;
}

.map-shell.has-map-failure iframe {
  visibility: hidden;
}

.map-shell.has-map-failure .map-status {
  z-index: 3;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: 3rem var(--page-pad) 5rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
  font-weight: 750;
}

.mobile-actions {
  display: none;
}

.image-reveal {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
  opacity: 1;
  transition: clip-path 950ms var(--ease), transform 950ms var(--ease), opacity 500ms ease;
}

.motion-ready .image-reveal:not(.is-visible) {
  clip-path: inset(0 10% 0 0);
  transform: translateX(-18px);
  opacity: 0.38;
}

.motion-ready .image-reveal.is-visible {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
  opacity: 1;
}

.reveal-copy {
  transform: translateY(0);
  opacity: 1;
  transition: transform 760ms var(--ease), opacity 620ms ease;
}

.motion-ready .reveal-copy:not(.is-visible) {
  transform: translateY(28px);
  opacity: 0;
}

.motion-ready .reveal-copy.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-settle {
  from { opacity: 0.45; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.01); }
}

@media (max-width: 1100px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(270px, 0.75fr) minmax(440px, 1.25fr);
    gap: 2.5rem;
  }

  .chapter-marker {
    display: none;
  }

  .story-grid {
    grid-template-columns: minmax(2rem, 0.15fr) minmax(300px, 0.85fr) minmax(300px, 1fr) minmax(2rem, 0.15fr);
  }

  .detail-story {
    grid-template-columns: 0.7fr 0.8fr 1fr;
  }

  .visit {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --page-pad: 1rem;
  }

  body {
    padding-bottom: 64px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 0 1rem;
  }

  .header-order {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 2.25rem) 1rem 1rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    margin-bottom: 1.5rem;
    max-width: 100%;
    font-size: 3.45rem;
    line-height: 0.84;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-deck {
    margin-bottom: 1.5rem;
  }

  .hero-address {
    margin-top: 2rem;
  }

  .hero-media {
    min-height: auto;
    aspect-ratio: 4 / 3;
    box-shadow: 0 18px 45px rgba(31, 62, 50, 0.16);
  }

  .hero-media img {
    object-position: 60% 55%;
  }

  .opening,
  .story-grid,
  .counter-story,
  .detail-story,
  .visit {
    display: grid;
    grid-template-columns: 1fr;
  }

  .opening {
    padding: 7rem 1rem;
    gap: 2.5rem;
  }

  .opening-heading h2 {
    max-width: 9ch;
  }

  .story-grid {
    min-height: auto;
    padding: 5.5rem 1rem 6rem;
    gap: 3rem;
  }

  .portrait-wrap,
  .story-copy,
  .margin-note {
    grid-column: 1;
    grid-row: auto;
  }

  .portrait-wrap {
    width: min(88%, 430px);
    height: auto;
    aspect-ratio: 3 / 5;
    justify-self: end;
  }

  .story-copy {
    padding: 0;
  }

  .margin-note {
    max-width: none;
  }

  .counter-story {
    min-height: auto;
  }

  .counter-image {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .counter-copy {
    padding: 5rem 1rem 6rem;
  }

  .detail-story {
    padding: 7rem 1rem;
    gap: 2.5rem;
  }

  .detail-intro {
    padding-top: 0;
  }

  .coffee-image {
    width: min(78%, 380px);
    justify-self: end;
  }

  .table-image {
    width: min(92%, 500px);
  }

  .detail-caption {
    grid-column: 1;
  }

  .visit {
    min-height: auto;
    padding: 6rem 1rem 1rem;
    gap: 4rem;
  }

  .visit-copy {
    padding-left: 0;
  }

  .visit-actions {
    align-items: flex-start;
  }

  .text-link-light {
    width: 100%;
    margin: 1.2rem 0 0;
  }

  .map-shell,
  .map-shell iframe {
    min-height: 460px;
  }

  .map-failure {
    padding: 2rem;
  }

  .map-failure strong {
    font-size: 2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 3rem 1rem 4rem;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }

  .mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 12;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: var(--on-dark);
    background: var(--forest-deep);
    border-top: 1px solid rgba(248, 250, 245, 0.18);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-actions a + a {
    border-left: 1px solid rgba(248, 250, 245, 0.18);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #10231e;
    --paper-raised: #17332b;
    --ink: #edf2e8;
    --ink-soft: #b5c5bb;
    --forest: #204d40;
    --forest-deep: #091b17;
    --accent: #ed7456;
    --line: rgba(237, 242, 232, 0.18);
    --light-line: rgba(237, 242, 232, 0.2);
    --shadow: 0 28px 80px rgba(2, 12, 9, 0.34);
  }

  .site-header,
  .site-header.is-scrolled {
    background: rgba(16, 35, 30, 0.94);
  }

  .map-shell iframe {
    filter: saturate(0.68) contrast(1.08) brightness(0.84);
  }
}

@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;
  }

  .image-reveal,
  .reveal-copy {
    clip-path: none;
    transform: none;
    opacity: 1;
  }
}
