/* =========================================================
   Otto's Coffee — styles
   Palette taken from the shop: black sign, cream walls,
   pine counter, gold globe lamps, kraft-paper posts.
   ========================================================= */

:root {
  --ink: #141110;
  --espresso: #2b221d;
  --coffee: #3d2f27;
  --kraft: #7a5c48;
  --sand: #c2b5a6;
  --paper: #ebe3d7;
  --cream: #f5f0e8;
  --white: #fffdf9;
  --wood: #d6b07c;
  --wood-dark: #b98d58;
  --gold: #c9a25a;
  --blue: #c8d6ea;
  --peach: #f3c4a2;
  --green: #6fae7c;

  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --nav-h: 72px;
  /* height of the phone's status bar / notch area (0 on desktop) */
  --safe-top: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 12px); }

body {
  position: relative;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain, like the kraft posts on Instagram. Absolute, not fixed: iPhone
   Safari tints its status bar from the fixed element at the top of the screen,
   and a full-screen fixed layer here would hide the nav bar from it. */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }

.mono { font-family: var(--mono); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* line-art icons share one stroke style */
svg use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 14px;
}

/* highlighter tape (from the "Mitos del café" post) */
.tape {
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 60%;
  padding: 0 .18em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 900ms var(--ease) 350ms;
}
.tape--blue { background-image: linear-gradient(var(--blue), var(--blue)); }
.tape--peach { background-image: linear-gradient(var(--peach), var(--peach)); }
.is-in .tape, .tape.is-in { background-size: 100% 88%; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font: 600 .98rem/1 var(--sans);
  text-decoration: none;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background 200ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(20, 17, 16, .55); }
.btn:active { transform: translateY(0); }
.btn--dark { --bg: var(--ink); --fg: var(--cream); }
.btn--ghost:hover { --bg: var(--white); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--line { --fg: var(--cream); --bd: rgba(245, 240, 232, .45); }
.btn--line:hover { --bd: var(--cream); }
.btn__icon { width: 20px; height: 20px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  /* the bar reaches up under the phone's status bar, so no page shows above it */
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  transition: background 300ms, box-shadow 300ms;
}
.nav.is-scrolled {
  background: rgba(245, 240, 232, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(20, 17, 16, .08);
}
.nav__inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 2; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  transition: transform 500ms var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__mark svg { width: 30px; height: 30px; margin-left: 2px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 400; font-size: 1.28rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--kraft); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  position: relative;
  text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav__links a:not(.nav__insta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__insta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 400 !important; }
.nav__insta svg { width: 22px; height: 22px; }

.nav__tools { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

.lang { display: flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(20, 17, 16, .18); }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: 700 .74rem/1 var(--mono); letter-spacing: .08em;
  padding: 7px 10px; border-radius: 999px; color: var(--ink);
  transition: background 200ms, color 200ms;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.burger {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(20, 17, 16, .18); background: transparent; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: transform 350ms var(--ease), top 350ms var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.nav.is-open .burger span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: calc(var(--nav-h) + var(--safe-top) + 40px) 0 72px; position: relative; }
.hero__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(20, 17, 16, .08);
  font: 400 .85rem/1 var(--mono);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 700ms var(--ease) 100ms forwards;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); position: relative; }
.status.is-open .status__dot { background: var(--green); }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: ping 1.8s ease-out infinite;
}

.hero__title { font-size: clamp(3rem, 7.6vw, 6rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.reveal-line { display: block; overflow: hidden; padding-bottom: .3em; margin-bottom: -.22em; }
.reveal-line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1000ms var(--ease) forwards; }
.reveal-line:nth-child(1) > span { animation-delay: 150ms; }
.reveal-line:nth-child(2) > span { animation-delay: 270ms; }
.reveal-line:nth-child(3) > span { animation-delay: 390ms; }
.hero__title em {
  font-style: normal; font-weight: 300; color: var(--kraft);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c40-8 70 4 110-2s70-7 110 0 50 2 76-3' fill='none' stroke='%23c9a25a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 0% .22em;
  animation: squiggle 900ms var(--ease) 1100ms forwards;
  padding-bottom: .06em;
}

.hero__lead { max-width: 30rem; margin: 26px 0 32px; font-size: 1.12rem; color: var(--coffee); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__addr { margin-top: 30px; font-size: .86rem; letter-spacing: .12em; color: var(--kraft); }
.hero__lead, .hero__cta, .hero__addr { opacity: 0; animation: fadeUp 800ms var(--ease) forwards; }
.hero__lead { animation-delay: 550ms; }
.hero__cta { animation-delay: 680ms; }
.hero__addr { animation-delay: 800ms; }

.hero__art { position: relative; padding-top: 90px; opacity: 0; animation: fadeIn 1200ms var(--ease) 200ms forwards; }
.arch {
  margin: 0;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(43, 34, 29, .55);
  position: relative; z-index: 1;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.08); animation: settle 2200ms var(--ease) 200ms forwards; }

/* gold globe pendants, like the lamp over the counter */
.lamps { position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 2; pointer-events: none; }
.lamp {
  position: absolute; top: -40px; left: var(--x);
  width: 2px; height: calc(var(--len) + 40px);
  background: linear-gradient(var(--gold), var(--wood-dark));
  transform-origin: top center;
  animation: sway 6s ease-in-out var(--d) infinite alternate;
}
.lamp::before {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 8px;
  background: var(--gold); border-radius: 3px 3px 0 0; transform: translateX(-50%);
}
.lamp::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 40px; height: 40px; border-radius: 50%;
  transform: translate(-50%, 2px);
  background: radial-gradient(circle at 40% 38%, #fffbe9 0 12%, #ffe8a8 24%, rgba(255, 214, 130, .55) 52%, rgba(255, 220, 160, .22) 70%);
  box-shadow: 0 0 22px 6px rgba(255, 205, 120, .45), inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: glow 3.5s ease-in-out var(--d) infinite alternate;
}

.seal {
  position: absolute; left: -28px; bottom: 36px; z-index: 3;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal__ring text { fill: var(--cream); font: 700 10.2px var(--mono); letter-spacing: 1.6px; }
.seal__cup { position: relative; width: 44px; height: 44px; }
.seal__cup svg { width: 44px; height: 44px; }

/* rising steam */
.steam { position: absolute; left: 50%; bottom: 100%; width: 24px; height: 24px; transform: translateX(-50%); }
.steam i {
  position: absolute; bottom: 0; width: 2px; height: 14px; border-radius: 2px;
  background: currentColor; opacity: 0;
  animation: steam 2.6s ease-in infinite;
}
.steam i:nth-child(1) { left: 4px; animation-delay: 0s; }
.steam i:nth-child(2) { left: 11px; animation-delay: .8s; }
.steam i:nth-child(3) { left: 18px; animation-delay: 1.6s; }

/* =========================================================
   TICKER
   ========================================================= */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker__track span {
  font: 400 1rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.ticker__track span::after {
  content: ""; width: 9px; height: 13px; margin: 0 28px;
  border: 1.5px solid var(--gold); border-radius: 50%; transform: rotate(25deg);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head { max-width: 40rem; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.025em; }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; color: var(--coffee); }
.section-head--light { color: var(--cream); }
.section-head--light .eyebrow { color: var(--wood); }
.section-head--light p:not(.eyebrow) { color: var(--sand); }
.section-head--light .tape { color: var(--ink); }

/* =========================================================
   MENU — letter boards
   ========================================================= */
.menu {
  background: var(--espresso);
  color: var(--cream);
  padding: clamp(80px, 11vw, 130px) 0;
  position: relative;
}

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

.board {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 7px),
    #171312;
  border: 14px solid var(--wood);
  border-image: linear-gradient(135deg, #e4c391, var(--wood) 40%, var(--wood-dark) 70%, #e0bd88) 1;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 0 40px rgba(0, 0, 0, .55);
  transform: rotate(-.6deg);
}
.board + .board { transform: rotate(.7deg); margin-top: 40px; }

.board__title {
  font: 700 .9rem/1 var(--mono); letter-spacing: .4em; text-transform: uppercase;
  color: var(--wood); margin-bottom: 26px;
}
.board__list { list-style: none; margin: 0; padding: 0; }
.board__list li {
  display: flex; align-items: baseline; gap: 10px;
  font: 700 clamp(1rem, 1.8vw, 1.22rem)/1.25 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: #f1ece4;
  padding: 7px 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.board__list li:nth-child(3n) { rotate: -.35deg; }
.board__list li:nth-child(4n + 1) { rotate: .3deg; }
.board__list li span { flex: 1; display: flex; align-items: baseline; min-width: 0; }
.board__list li span::after {
  content: ""; flex: 1; min-width: 16px; margin: 0 4px 0 12px;
  border-bottom: 2px dotted rgba(241, 236, 228, .22);
  transform: translateY(-4px);
}
.board__list li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.board__list li.gap { margin-top: 18px; }
.board__sub span { color: var(--peach); font-size: .82em; letter-spacing: .24em; }
.board__sub span::after { display: none; }
.board.is-in .board__list li { opacity: 1; transform: none; }

.board__note {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(241, 236, 228, .18);
  font: 400 .86rem/1.5 var(--mono); color: var(--sand);
}

.menu__foot { margin-top: 56px; text-align: center; font-size: .82rem; letter-spacing: .14em; color: var(--sand); text-transform: uppercase; }

/* =========================================================
   OTTO
   ========================================================= */
.otto { padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 90px); }
.otto__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }

.otto__photo { margin: 0; position: relative; }
.otto__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px;
  outline: 6px solid var(--ink); outline-offset: -6px;
  box-shadow: 0 34px 60px -30px rgba(43, 34, 29, .6);
  transform: rotate(-2.5deg);
  transition: transform 700ms var(--ease);
}
.otto__photo:hover img { transform: rotate(0deg) scale(1.01); }
.otto__photo::before {
  content: ""; position: absolute; z-index: 2; top: -14px; left: 50%;
  width: 120px; height: 32px; background: rgba(243, 196, 162, .85);
  transform: translateX(-50%) rotate(3deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.otto__photo figcaption { margin-top: 22px; text-align: center; color: var(--kraft); font-size: .92rem; }

.otto__copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.025em; margin-bottom: 26px; }
.otto__copy p:not(.eyebrow) { font-size: 1.12rem; color: var(--coffee); max-width: 34rem; }
.otto__copy p + p { margin-top: 16px; }
.otto__copy .sign { margin-top: 28px; color: var(--kraft); font-size: 1rem; }

/* =========================================================
   VALUES
   ========================================================= */
.values { padding: 30px 0 clamp(80px, 10vw, 120px); }
.values__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  box-shadow: 0 0 0 1px rgba(20, 17, 16, .06);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(20, 17, 16, .06), 0 24px 40px -24px rgba(43, 34, 29, .4); }
.value__icon { width: 52px; height: 52px; color: var(--ink); margin-bottom: 20px; transition: transform 500ms var(--ease); }
.value:hover .value__icon { transform: rotate(-10deg) scale(1.08); }
.value h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.value p { font-size: .98rem; color: var(--coffee); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--paper); padding: clamp(80px, 11vw, 130px) 0; }
.polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.polaroid {
  margin: 0; position: relative;
  background: var(--white);
  padding: 12px 12px 0;
  box-shadow: 0 24px 40px -24px rgba(43, 34, 29, .5);
  transform: rotate(var(--r, 0deg));
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
.polaroid:nth-child(2) { margin-top: 48px; }
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 34px 50px -26px rgba(43, 34, 29, .55); z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { padding: 16px 4px 20px; text-align: center; font-size: .95rem; color: var(--coffee); }
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px;
  background: rgba(200, 214, 234, .85); transform: translateX(-50%) rotate(-4deg);
}
.polaroid:nth-child(2)::before { background: rgba(243, 196, 162, .85); transform: translateX(-50%) rotate(3deg); }
.gallery__more { margin-top: 56px; text-align: center; }

/* =========================================================
   VISIT
   ========================================================= */
.visit { background: var(--espresso); color: var(--cream); padding: clamp(80px, 11vw, 130px) 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit .eyebrow { color: var(--wood); }
.visit h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.03em; margin-bottom: 36px; }

.facts { margin: 0 0 36px; display: grid; gap: 22px; }
.fact { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(245, 240, 232, .12); }
.fact dt { display: flex; align-items: center; gap: 10px; font: 400 .8rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); align-self: start; padding-top: 3px; }
.fact dt svg { width: 22px; height: 22px; color: var(--wood); flex: none; }
.fact dd { margin: 0; font-size: 1.12rem; font-weight: 500; }
.fact dd a { text-decoration-color: rgba(245, 240, 232, .4); text-underline-offset: 4px; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--coffee); box-shadow: 0 0 0 1px rgba(245, 240, 232, .1); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.55) sepia(.2) contrast(1.05); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--cream); text-align: center; position: relative; }


.footer__inner { padding-top: 60px; padding-bottom: 48px; }
.bean-buddy { width: 92px; margin: 0 auto 18px; color: var(--ink); }
.bean-buddy svg { width: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bean-buddy__body { animation: bob 3s ease-in-out infinite; transform-origin: 60px 126px; }
.bean-buddy__arm { animation: wave 1.6s ease-in-out infinite; transform-origin: 98px 70px; }
.footer__brand { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.footer__sub { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--kraft); margin-top: 6px; }
.footer__links { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__links span { color: var(--sand); }
.footer__small { margin-top: 28px; font-size: .78rem; color: var(--kraft); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 900ms var(--ease), translate 900ms var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.values__grid .reveal:nth-child(2), .polaroids .reveal:nth-child(2) { transition-delay: 100ms; }
.values__grid .reveal:nth-child(3), .polaroids .reveal:nth-child(3) { transition-delay: 200ms; }
.values__grid .reveal:nth-child(4) { transition-delay: 300ms; }
.no-js .reveal, .no-js .board__list li { opacity: 1; translate: none; transform: none; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes settle { to { transform: scale(1); } }
@keyframes squiggle { to { background-size: 100% .22em; } }
@keyframes sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
@keyframes glow { from { filter: brightness(.95); } to { filter: brightness(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes steam {
  0% { opacity: 0; transform: translateY(6px) scaleY(.6); }
  30% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-14px) translateX(3px) scaleY(1.1); }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }

  .burger { display: block; }
  /* On phones the bar is always solid: page content never shows through it.
     No backdrop-filter here either: it would turn the bar into the containing
     block of the fixed full-screen menu and squeeze the menu into the bar. */
  .nav, .nav.is-scrolled {
    background: var(--cream);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream);
    opacity: 0; visibility: hidden;
    transition: opacity 350ms var(--ease), visibility 0s linear 350ms;
  }
  .nav__links a { font-size: 1.9rem; font-weight: 500; transform: translateY(12px); transition: transform 500ms var(--ease); }
  .nav__links .nav__insta { font-size: 1.05rem; margin-top: 10px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav.is-open .nav__links a { transform: none; }
  .nav.is-open { background: var(--cream); }

  .hero { padding-top: calc(var(--nav-h) + var(--safe-top) + 28px); padding-bottom: 56px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; width: 100%; margin: 0 auto; padding-top: 70px; }
  .seal { left: -6px; width: 112px; height: 112px; }

  .boards { grid-template-columns: 1fr; }
  .board + .board { margin-top: 0; }

  .otto__grid { grid-template-columns: 1fr; }
  .otto__photo { max-width: 420px; margin: 0 auto; }

  /* gallery turns into a swipeable strip */
  .polaroids {
    display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 24px var(--gutter) 30px;
    scrollbar-width: none;
  }
  .polaroids::-webkit-scrollbar { display: none; }
  .polaroid { flex: 0 0 78%; scroll-snap-align: center; }
  .polaroid:nth-child(2) { margin-top: 0; }

  .visit__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.12rem; }
  .brand__mark { width: 38px; height: 38px; }
  .values__grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .board { border-width: 10px; }
  .board__list li { letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}
