html { scroll-padding-top: 0; scroll-behavior: smooth; }
body { font-size: 16px; }
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%; background: var(--green); border-bottom: 1px solid var(--line);
  transition: transform .4s ease, opacity .4s ease;
}
.site-nav nav { gap: clamp(12px,3vw,36px); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.nav-brand { display: block; width: 82px; flex-shrink: 0; }
.nav-brand svg,.opening-brand svg { display: block; width: 100%; mix-blend-mode: darken; }
.js-opening .site-nav:not(:focus-within) { transform: translateY(-100%); opacity: 0; }
.panel {
  min-height: 100svh; display: grid; place-items: center;
  padding: 106px 5% 58px; border-bottom: 1px solid var(--line);
}
.opening-panel { position: relative; padding: 24px 24px clamp(180px,28svh,245px); }
.opening-brand { width: min(46vw,620px); translate: -12vw 0; animation: logo-enter .85s ease both; }
.opening-quote { position: absolute; right: 7%; bottom: 7%; width: min(52vw,600px); margin: 0; text-align: right; }
.opening-quote blockquote { margin: 0 0 10px; font: 500 clamp(17px,2.15vw,29px)/1.25 var(--serif); }
.opening-quote blockquote span { display: block; }
.opening-quote figcaption { font-size: 13px; }
@keyframes logo-enter { from { opacity: 0; transform: scale(.94); } }
.panel-inner { width: min(100%,1160px); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px; }
h2 { font-size: clamp(38px,5.5vw,72px); }
h3 { font: 500 clamp(24px,2.7vw,35px)/1.12 var(--serif); margin: 0 0 12px; }
.origin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,3vw,42px); }
.origin-grid article { border-top: 1px solid var(--line); padding-top: 14px; }
.origin-grid h3 { text-align: center; }
#origins h2,#origins .eyebrow { text-align: center; }
.origin-story { margin: 24px 0 0; text-align: start; font-size: 15px; line-height: 1.85; text-wrap: pretty; }
.origin-art { height: clamp(140px,19vw,235px); display: grid; place-items: center; margin-bottom: 20px; }
.origin-art svg { width: 100%; height: 100%; }
.atlas,.coffeehouse { background: #e7d9ae; border: 1px solid #73664355; overflow: hidden; }
.land { fill: #b1b483; stroke: #7c7855; stroke-width: 1; }
.route { fill: none; stroke: #823e2e; stroke-width: 2.5; stroke-dasharray: 5 5; animation: coffee-route 12s linear infinite; }
.atlas-labels { fill: #452e22; font: bold 13px Georgia,serif; }
@keyframes coffee-route { to { stroke-dashoffset: -100; } }
.people-panel { background: #d1d9a7; }
.profile,.works { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px,6vw,90px); }
.portrait { margin: 0; width: min(100%, 390px); justify-self: center; overflow: hidden; border: 1px solid var(--line); }
.portrait img { display: block; width: 100%; height: auto; }
.lead { font-size: 21px; }
.enquiry-panel { position: relative; isolation: isolate; overflow: hidden; background: #203d2b; color: #f4efdb; text-align: center; }
.coffee-words {
  position: absolute; inset: -12% -15%; z-index: -1; opacity: .24;
  display: grid; align-content: space-evenly; transform: rotate(-10deg);
  font: 500 clamp(16px,2.6vw,34px)/1.12 var(--serif); pointer-events: none;
}
.coffee-words > div { display: flex; justify-content: center; align-items: center; gap: clamp(10px,1.8vw,26px); white-space: nowrap; }
.coffee-words > div:nth-child(even) { transform: translateX(-7%); }
.coffee-words span:nth-child(3n + 1) { font-size: 1.3em; }
.coffee-words span:nth-child(3n + 2) { font-size: .66em; letter-spacing: .08em; text-transform: uppercase; }
.dialogue { max-width: 670px; padding: clamp(22px,5vw,58px); background: #203d2bf2; border: 1px solid #e4dcc275; }
#coffee-prompt { min-height: 3lh; }
textarea { display: block; width: 100%; padding: 14px; background: #f4efdb; color: #203d2b; border: 1px solid #e4dcc2; font: inherit; resize: vertical; }
button { margin-top: 15px; padding: 11px 18px; background: #c6d197; color: #203d2b; border: 0; min-height: 44px; font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.dialogue-input { position: relative; }
.dialogue-input textarea { padding-inline-end: 66px; }
.dialogue-input button { position: absolute; top: 8px; right: 8px; width: 44px; margin: 0; padding: 0; font-size: 22px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.contact-map { position: relative; min-height: 370px; overflow: hidden; border: 1px solid var(--line); background: #dfe4bc; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#contact h2 { font-size: clamp(18.62px, 2.695vw, 35.28px); margin-bottom: 2px; margin-inline-start: -3px; }
#contact .works > div:last-child { text-align: left; }
.division { margin-bottom: 14px; }
.contact-links { display: grid; justify-items: start; gap: 8px; margin-top: 20px; overflow-wrap: anywhere; }
.contact-links a { text-decoration: underline; text-underline-offset: 4px; }
.section-enter { animation: section-enter .8s cubic-bezier(.22,.61,.36,1) both; }
.section-enter .origin-grid article,.section-enter.profile > *,.section-enter.works > * {
  animation: section-enter .75s cubic-bezier(.22,.61,.36,1) both;
}
.section-enter .origin-grid article:nth-child(2),.section-enter.profile > :nth-child(2),.section-enter.works > :nth-child(2) { animation-delay: .12s; }
.section-enter .origin-grid article:nth-child(3) { animation-delay: .24s; }
@keyframes section-enter { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 680px) {
  .site-nav { padding: 10px 4%; }
  .nav-brand { width: 58px; }
  .site-nav nav { gap: 12px; }
  .site-nav nav a { font-size: 11px; }
  .panel { padding: 88px 6% 44px; }
  .opening-panel { padding: 20px 20px 205px; }
  .opening-brand { width: 70vw; translate: -8vw 0; }
  .opening-quote { right: 7%; bottom: 7%; width: 86%; }
  .opening-quote blockquote { font-size: clamp(12px,4vw,23px); }
  .origin-grid,.profile,.works { grid-template-columns: minmax(0,1fr); }
  .origin-art { height: 190px; }
  .portrait { width: min(100%, 320px); }
  .contact-map { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
