/* Animal Heaven — tokens */
:root {
  --bg: #ffffff;
  --surface: #f3f3f1;
  --sand: #e5dccf;
  --night: #0c0c0d;
  --ink: #0c0c0d;
  --ink-inv: #f5f5f4;
  --muted: #55555b;
  --muted-inv: #b4b4b8;
  --accent: #afcdf0;
  --accent-press: #93bae8;
  --open: #1f9d55;
  --closed: #c9302c;

  --display: "Instrument Serif", "Times New Roman", serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  /* five type steps */
  --t-xl: clamp(60px, 9.4vw, 156px);
  --t-l: clamp(44px, 5.4vw, 88px);
  --t-m: clamp(24px, 2.5vw, 36px);
  --t-body: 18px;
  --t-s: 15px;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 24px;
  --r: 22px;
  --section: clamp(120px, 12vw, 180px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-press); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--m); top: 12px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--ink-inv); padding: 10px 16px; border-radius: 99px; z-index: 50; }
.skip:focus { clip-path: none; width: auto; height: auto; }

/* Buttons — one shape: pill */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px;
  font: 500 var(--t-s)/1 var(--text); text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-press); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; }

/* Text links with a drawn underline */
.line {
  position: relative; text-decoration: none; font-weight: 500;
}
.line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.line:hover::after, .line:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--m) 32px;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); min-height: 88px; }
.wordmark { font: 400 var(--t-m)/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.bar-links { display: flex; gap: 32px; margin-left: auto; margin-right: 16px; font-size: var(--t-s); }

.hero-title {
  align-self: center;
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  font: 400 var(--t-xl)/.95 var(--display);
  letter-spacing: -0.035em;
}
.ht-a, .ht-b { flex: 0 0 auto; }
.reel {
  --fw: min(35vw, 56svh);
  --fh: calc(var(--fw) * 9 / 16);
  --peek: 60px;
  position: relative;
  width: var(--fw);
  height: calc(var(--fh) + 2 * (var(--peek) + var(--gap)));
  overflow: hidden;
  flex: 0 0 auto;
}
.reel-strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; gap: var(--gap);
  transform: translateY(calc(var(--peek) + var(--gap) - var(--i, 1) * (var(--fh) + var(--gap))));
  transition: transform 1.1s var(--ease);
}
.reel-strip img { width: 100%; height: var(--fh); object-fit: cover; border-radius: var(--r); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); }
.hero-lede { max-width: 34ch; }
.hero-act { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-s); font-weight: 500; }
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.is-open .dot { background: var(--open); }
.status.is-open .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--open);
  animation: ping 2.2s var(--ease) infinite;
}
.status.is-closed .dot { background: var(--closed); }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Intro: night chapter with the wolf ---------- */
.intro {
  margin: calc(var(--section) * .5) var(--m) 0;
  padding: clamp(56px, 7vw, 112px) clamp(24px, 4vw, 64px);
  background: var(--night); color: var(--ink-inv);
  border-radius: var(--r);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--gap);
  align-items: start;
}
.intro-h { grid-column: 1 / 7; font: 400 var(--t-l)/.95 var(--display); letter-spacing: -0.03em; }
.statement { grid-column: 1 / 7; grid-row: 2; font: 500 var(--t-m)/1.25 var(--text); letter-spacing: -0.01em; }
.ip img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) * .75); }
.ip-wolf { grid-column: 7 / 13; grid-row: 1 / 3; aspect-ratio: 5 / 3.4; }
.ip-wolf img { object-position: 45% 40%; }
.facts { grid-column: 1 / 7; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-self: end; }
.facts dt { font: 400 var(--t-l)/1 var(--display); letter-spacing: -0.02em; }
.facts dd { margin-top: 8px; font-size: var(--t-s); color: var(--muted-inv); max-width: 16ch; }
.ip-a { grid-column: 7 / 10; grid-row: 3; aspect-ratio: 1; }
.ip-b { grid-column: 10 / 13; grid-row: 3; aspect-ratio: 1; }

/* ---------- Features: paragraph with picture words ---------- */
.features { padding: var(--section) var(--m) 0; }
.features-h { font: 400 var(--t-l)/.95 var(--display); letter-spacing: -0.03em; margin-bottom: 56px; }
.picture-words {
  max-width: 1100px;
  font: 400 var(--t-m)/1.3 var(--display);
  letter-spacing: -0.01em;
}
.pw {
  display: inline-block; vertical-align: -0.12em;
  width: 2.3em; height: 1.1em;
  border-radius: .16em; overflow: hidden;
  background: var(--surface);
}
.pw img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pw:hover img { transform: scale(1.12); }
.features-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 96px; }
.svc { grid-column: 1 / 8; display: grid; gap: 6px; }
.svc-row {
  display: grid; grid-template-columns: 12em 1fr; gap: var(--gap);
  padding: 22px 28px; background: var(--surface); border-radius: var(--r);
  transition: background-color .3s var(--ease);
}
.svc-row:hover { background: var(--sand); }
.svc dt { font-weight: 600; }
.features-act { grid-column: 9 / 13; align-self: end; display: grid; gap: 28px; justify-items: start; }

/* ---------- Showcase: one frame, three distances ---------- */
.showcase {
  position: relative; height: 280svh;
  margin: var(--section) var(--m) 0;
  padding: 16px;
  background: var(--surface); border-radius: var(--r);
}
.sc-stage {
  --fw: min(32vw, 50svh);
  --fh: calc(var(--fw) * 1.25);
  position: sticky; top: 0; height: 100svh; overflow: hidden;
}
.sc-frame {
  position: absolute; left: 50%; top: 50%;
  width: var(--fw); height: var(--fh);
  transform: translate(-50%, -50%);
  overflow: hidden; border-radius: var(--r);
  background: var(--sand);
}
.sc-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  transform-origin: 50% 50%;
  transition: transform .9s var(--ease), transform-origin .9s var(--ease);
}
.showcase[data-stage="1"] .sc-frame img { transform: scale(1.8); transform-origin: 40% 80%; }
.showcase[data-stage="2"] .sc-frame img { transform: scale(2.4); transform-origin: 45% 22%; }
.sc-head { font: 400 var(--t-l)/.95 var(--display); letter-spacing: -0.03em; }
.sc-a, .sc-b { position: absolute; left: 0; right: 0; text-align: center; }
.sc-a { bottom: calc(50% + var(--fh) / 2 + 12px); }
.sc-b { top: calc(50% + var(--fh) / 2 + 8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.showcase[data-stage="0"] .sc-b { opacity: 0; transform: translateY(24px); }
.sc-caps { position: absolute; left: calc(50% + var(--fw) / 2 + 40px); top: calc(50% - var(--fh) / 2); width: 26ch; }
.sc-cap {
  position: absolute; top: 0; left: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.sc-cap.is-on { opacity: 1; transform: none; }
.sc-mark { position: absolute; left: 0; width: 1px; height: 90svh; }
.sc-mark[data-stage="0"] { top: 0; }
.sc-mark[data-stage="1"] { top: 90svh; }
.sc-mark[data-stage="2"] { top: 180svh; }

/* ---------- Quote spread edge to edge ---------- */
.quote {
  margin: var(--section) var(--m) 0;
  padding: 160px clamp(24px, 4vw, 64px) 120px;
  background: var(--sand); border-radius: var(--r);
}
.spread p { display: grid; gap: .25em; font: 400 var(--t-xl)/1 var(--display); letter-spacing: -0.035em; }
.sl { display: flex; justify-content: space-between; gap: .4em; }
.attr { display: flex; justify-content: space-between; gap: var(--gap); margin-top: 96px; font-weight: 500; }

/* ---------- Hours ---------- */
.hours { padding: var(--section) var(--m) 0; }
.hours-h { font: 400 var(--t-l)/.98 var(--display); letter-spacing: -0.03em; text-indent: 3vw; }
.hours-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 96px; }
.hours-left { grid-column: 1 / 6; display: grid; gap: 48px; align-content: space-between; }
.now { font: 500 var(--t-m)/1.25 var(--text); letter-spacing: -0.01em; }
.now strong { font-weight: 600; }
.hours-pic { width: min(100%, 380px); }
.hours-pic img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.table-wrap { grid-column: 7 / 13; display: grid; grid-template-columns: 6em 1fr; align-items: start; }
.table-name { font-size: var(--t-s); color: var(--muted); padding-top: 16px; }
.ht { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.ht th, .ht td { padding: 15px 22px; text-align: left; font-weight: 400; background: var(--surface); transition: background-color .3s var(--ease); }
.ht th { color: var(--muted); border-radius: var(--r) 0 0 var(--r); width: 7.5em; }
.ht td:last-child { text-align: right; border-radius: 0 var(--r) var(--r) 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht tr.grp th, .ht tr.grp td { border-top: 28px solid var(--bg); }
.ht tr:hover th, .ht tr:hover td { background: var(--sand); }
.ht tr.is-today th, .ht tr.is-today td { background: var(--night); color: var(--ink-inv); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) var(--m) 0; }
.contact-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.contact-say { grid-column: 1 / 6; font: 500 var(--t-m)/1.2 var(--text); letter-spacing: -0.01em; }
.contact-pic { grid-column: 7 / 9; }
.contact-pic img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); width: 100%; max-width: 200px; }
.contact-links { grid-column: 9 / 13; display: grid; gap: 12px; justify-items: start; }
.contact-q { font-weight: 600; margin-bottom: 8px; }
.contact-links a { text-decoration: underline; text-underline-offset: 5px; font-weight: 500; }
.contact-links a:hover { text-decoration-thickness: 2px; }
.contact-meta { margin-top: 12px; font-size: var(--t-s); color: var(--muted); }
.map { margin-top: 96px; border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 21 / 8; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer close ---------- */
.close {
  position: relative; overflow: hidden;
  margin-top: var(--section);
  min-height: 78svh;
  background: var(--night); color: var(--ink-inv);
  padding: 120px var(--m) 0;
  display: grid; grid-template-rows: 1fr auto auto; grid-template-columns: minmax(0, 1fr);
}
.close-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.close-inv { grid-column: 1 / 8; display: grid; gap: 40px; justify-items: start; }
.close-inv h2 { font: 400 var(--t-l)/.98 var(--display); letter-spacing: -0.03em; }
.close-links { grid-column: 10 / 13; display: grid; gap: 14px; justify-items: start; }
.legal { display: flex; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; font-size: var(--t-s); color: var(--muted-inv); padding-bottom: 16px; }
.giant {
  font: 400 19.6vw/.8 var(--display); letter-spacing: -0.04em;
  white-space: nowrap; margin-left: -.02em;
  transform: translateY(22%);
}

/* ---------- Floating contact buttons (they truly float, so they carry a shadow) ---------- */
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40; display: grid; gap: 12px; justify-items: end;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.js .fab:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.fab-btn {
  position: relative; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(12, 12, 13, .22); /* taste-skill-ignore: floating control */
  transition: transform .25s var(--ease);
}
.fab-btn:hover { transform: scale(1.07); }
.fab-btn:active { transform: scale(.95); }
.fab-wa { background: #25d366; color: #ffffff; }
.fab-call { background: var(--accent); color: var(--ink); }
.fab-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 8px 14px; border-radius: 999px;
  background: var(--night); color: var(--ink-inv);
  font-size: var(--t-s); font-weight: 500; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.fab-btn:hover .fab-tip, .fab-btn:focus-visible .fab-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (hover: none) { .fab-tip { display: none; } }

/* ---------- Entrances (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bar-links { gap: 20px; }
  .intro-h, .statement, .facts { grid-column: 1 / -1; grid-row: auto; }
  .ip-wolf { grid-column: 1 / -1; grid-row: auto; }
  .ip-a { grid-column: 1 / 7; grid-row: auto; }
  .ip-b { grid-column: 7 / 13; grid-row: auto; }
  .svc, .features-act { grid-column: 1 / -1; }
  .features-act { margin-top: 32px; }
  .sc-stage { --fw: min(52vw, 46svh); }
  .sc-caps { left: var(--m); right: var(--m); width: auto; top: auto; bottom: 32px; text-align: center; min-height: 3.2em; }
  .sc-cap { width: 100%; }
  .hours-left, .table-wrap { grid-column: 1 / -1; }
  .table-wrap { margin-top: 24px; }
  .contact-say { grid-column: 1 / 7; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --t-body: 17px; --t-l: 12vw; --section: 112px; --r: 18px; }
  .bar { min-height: 72px; }
  .bar-links { display: none; }
  .hero { padding-bottom: 24px; }
  .hero-title { flex-direction: column; align-items: stretch; gap: 12px; font-size: 21vw; padding: 24px 0; }
  .ht-a { align-self: flex-start; }
  .ht-b { align-self: flex-end; }
  .reel { --fw: calc(100vw - 2 * var(--m)); --fh: calc(var(--fw) * 3 / 4); --peek: 28px; --gap: 12px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-act { align-items: flex-start; width: 100%; }
  .hero-act .btn { width: 100%; justify-content: center; }

  .intro { gap: 32px 12px; padding: 56px 20px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

  .pw { width: 1.8em; }
  .svc-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .features-grid { margin-top: 56px; }
  .features-act .btn { width: 100%; justify-content: center; }

  .sc-stage { --fw: min(72vw, 44svh); }

  .quote { padding: 96px 20px 72px; }
  .spread p { font-size: var(--t-l); }
  .attr { flex-direction: column; gap: 4px; font-size: var(--t-s); margin-top: 56px; }
  .attr > :nth-child(2) { align-self: center; text-align: center; }
  .attr > :nth-child(3) { align-self: flex-end; }

  .hours-h { text-indent: 0; }
  .hours-grid { margin-top: 48px; }
  .table-wrap { display: block; }
  .table-name { display: none; }
  .ht th, .ht td { padding: 13px 16px; }
  .ht td:nth-child(2) { display: none; }
  .ht th { width: auto; }
  .hours-pic { width: 60%; justify-self: end; }

  .contact-row { grid-template-columns: 96px 1fr; gap: 16px 20px; }
  .contact-say { grid-column: 1 / -1; margin-bottom: 16px; }
  .contact-pic { grid-column: 1; }
  .contact-links { grid-column: 2; }
  .map { aspect-ratio: 4 / 5; margin-top: 56px; }

  .close { padding-top: 96px; }
  .close-top { grid-template-columns: 1fr; gap: 40px; }
  .close-inv, .close-links { grid-column: 1 / -1; }
  .close-inv .btn { width: 100%; justify-content: center; }
  .close-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .legal { flex-direction: column; gap: 4px; }
  .giant { font-size: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
