/* Tischtap Studio — design system from the Claude Design handoff.
   The prototype pinned everything to a 1440px canvas and scaled it with `zoom`.
   Production reflows instead: desktop matches the design 1:1, everything below
   1200px is a real responsive layout. Sizes that shrink use clamp() against the
   design value, so the desktop rendering is unchanged. */

:root {
  --bg: rgb(255, 255, 250);
  --red: rgb(142, 24, 1);
  --red-hover: rgb(165, 70, 55);
  --ink: rgb(0, 0, 0);
  --ink-soft: rgb(26, 26, 26);
  --muted: rgba(0, 0, 0, 0.6);
  --pink: rgb(233, 166, 177);
  --purple: rgb(190, 155, 206);
  --green: rgb(30, 125, 63);
  --lime: rgb(200, 212, 62);
  --orange: rgb(245, 145, 63);
  --blue: rgb(66, 178, 239);
  --accent: rgb(206, 49, 49);
  --plum: rgb(76, 62, 82);
  --line: rgb(217, 217, 217);
  --white: rgb(255, 255, 255);

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-hand: 'Reenie Beanie', cursive;
  --f-form: Inter, system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 8px;
  --page: 1164px;
  --gutter: clamp(20px, 5vw, 68px);
  --btn-h: 57px;

  /* Display scale — design value is the clamp maximum. */
  --t-h1: clamp(38px, 5.6vw, 64px);
  --t-h2: clamp(32px, 4.8vw, 64px);
  --t-huge: clamp(40px, 6.6vw, 92px);
  --t-stat: clamp(64px, 8vw, 112px);
  --t-lead: clamp(16px, 1.5vw, 18px);
  --t-body: clamp(17px, 1.6vw, 20px);
  --t-label: clamp(20px, 2vw, 24px);
  --t-hand: clamp(30px, 3.4vw, 44px);

  --rainbow: linear-gradient(90deg, rgb(228,162,214) 0%, rgb(118,128,200) 6.73%, rgb(32,125,225) 14.9%, rgb(49,71,164) 22.6%, rgb(124,68,150) 30.29%, rgb(175,56,83) 34.62%, rgb(246,67,52) 36.72%, rgb(228,117,13) 40.28%, rgb(246,179,31) 42.85%, rgb(244,123,29) 46.02%, rgb(244,37,31) 50.77%, rgb(235,54,62) 55.52%, rgb(245,115,150) 61.85%, rgb(209,146,211) 70.16%, rgb(125,121,218) 76.1%, rgb(70,131,216) 78.87%, rgb(22,116,165) 83.08%, rgb(19,128,120) 89.35%, rgb(21,144,53) 93.78%, rgb(228,162,214) 100%);
}

* { box-sizing: border-box; }

/* Any `display` we set on a collapsible panel would otherwise beat the user
   agent's [hidden] rule, leaving every disclosure permanently open. */
[hidden] { display: none !important; }

/* `overflow-x: clip` must sit on the root as well as the body: the full-bleed
   marquee is sized in vw, which counts the scrollbar, and the few pixels of
   overhang would otherwise become a horizontal scrollbar on narrow screens. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink-soft); }

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

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.4; color: var(--red); }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--f-body); font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */

.wrap { width: min(var(--page), 100% - var(--gutter) * 2); margin-inline: auto; }

main.flow { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 149px); align-items: stretch; padding-top: clamp(48px, 6vw, 66px); }
main.flow > section { scroll-margin-top: 24px; }

.stack { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.gap-46 { gap: clamp(32px, 4vw, 46px); } .gap-57 { gap: clamp(32px, 4.5vw, 57px); }

.hand { font-family: var(--f-hand); font-size: var(--t-hand); line-height: 1.4; color: var(--ink); }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: var(--t-label); line-height: 1.4; color: var(--pink); }
.lead { font-family: var(--f-body); font-weight: 400; font-size: var(--t-lead); line-height: 1.4; color: var(--ink); }
.body { font-family: var(--f-body); font-weight: 500; font-size: var(--t-body); line-height: 1.4; color: var(--ink); }
.body-muted { font-family: var(--f-body); font-weight: 500; font-size: var(--t-body); line-height: 1.4; color: var(--muted); white-space: pre-line; }

/* ---------- brand + header ---------- */

.brand { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; line-height: 1; }
.brand-mark { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; color: var(--red); }
.brand-sub { font-family: var(--f-hand); font-size: clamp(31px, 3vw, 40px); color: var(--ink); }
a.brand:hover .brand-mark { color: var(--ink-soft); }

.site-head {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 693fr) minmax(0, 695fr);
  gap: clamp(24px, 3.6vw, 52px); align-items: center;
}
.site-head > .head-copy {
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px);
  padding: clamp(24px, 3vw, 42px) var(--gutter) clamp(32px, 3.4vw, 48px);
}
.head-copy .head-inner { display: flex; flex-direction: column; gap: clamp(28px, 3.2vw, 44px); }
.head-art { align-self: stretch; min-height: clamp(260px, 32vw, 466px); background-repeat: no-repeat; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 16px 24px; border-radius: var(--radius); border: 0;
  font-family: var(--f-body); font-weight: 700; font-size: 18px; line-height: 1.4;
  white-space: nowrap; cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; transform: translateY(-2px); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 1px var(--red); color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--muted); color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-2px); }
.btn-dark-ghost { box-shadow: inset 0 0 0 1px var(--muted), 0 0 0 1px var(--muted); color: var(--muted); }
.btn-dark-ghost:hover { background: var(--muted); color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: clamp(11px, 1.2vw, 16px); align-items: center; }

/* ---------- cards + panels ---------- */

.panel { border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
/* 700 : 440 is the design's split — the copy column is 700px wide inside a
   1164px container, and the form or artwork takes what is left after the gap.
   Both tracks must be stated in `fr`: pairing 700fr with 1fr makes the second
   track one seven-hundredth of the row. */
.panel-split {
  display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 440fr);
  gap: 24px; align-items: center;
}
.split-chairs { display: grid; grid-template-columns: minmax(0, 655fr) minmax(0, 423fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel-split > .panel-copy { display: flex; flex-direction: column; gap: 24px; padding: 0 clamp(0px, 2vw, 24px); }
.panel-art { min-height: clamp(260px, 36vw, 528px); background-repeat: no-repeat; }

/* ---------- marquee ---------- */

.marquee { position: relative; width: 100vw; max-width: 100%; margin-left: 50%; translate: -50% 0; height: 74px; overflow: hidden; }
.marquee-track { position: absolute; left: 0; top: 6px; display: flex; align-items: center; gap: 18px; padding-right: 18px; white-space: nowrap; }
.marquee-item { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.marquee-item span:first-child {
  display: flex; align-items: center; padding: 8px 16px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; color: var(--pink);
}
.marquee-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }

/* ---------- site menu ---------- */

.menu-open-btn {
  position: absolute; right: clamp(12px, 2vw, 42px); top: clamp(12px, 2vw, 42px); z-index: 20;
  width: 80px; height: 80px; padding: 16px; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; transition: transform 200ms ease;
}
.menu-open-btn:hover { transform: scale(1.08); }
.menu-open-btn svg { width: clamp(34px, 4vw, 48px); height: auto; }

.menu-panel {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow: auto;
  clip-path: circle(0px at calc(100% - 108px) 82px); pointer-events: none;
  transition: clip-path 700ms cubic-bezier(.7, 0, .2, 1);
}
.menu-panel[data-open="true"] { clip-path: circle(150% at calc(100% - 108px) 82px); pointer-events: auto; }
.menu-inner {
  position: relative; max-width: 1440px; min-height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; padding: clamp(20px, 3vw, 42px) var(--gutter) clamp(32px, 3.4vw, 48px);
}
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close {
  width: 80px; height: 80px; padding: 16px; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; transition: transform 300ms ease;
}
.menu-close:hover { transform: rotate(90deg); }
.menu-close svg { width: clamp(34px, 4vw, 48px); height: auto; }
.menu-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; padding-top: 32px; }
.menu-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-link {
  position: relative; display: flex; align-items: baseline; gap: clamp(10px, 2vw, 24px); padding: 6px 0;
  color: var(--red); opacity: 0; transform: translateY(40px);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1), color 200ms ease;
}
.menu-panel[data-open="true"] .menu-link { opacity: 1; transform: translateY(0); }
.menu-link:hover { color: var(--ink-soft); }
.menu-num { width: 40px; flex-shrink: 0; font-family: var(--f-body); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--muted); }
.menu-label { position: relative; font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 7vw, 80px); line-height: 1.15; white-space: nowrap; }
.menu-label .ul { position: absolute; left: 4px; right: 0; bottom: 4px; height: 10px; opacity: 0; background: var(--rainbow); }
.menu-link[aria-current="page"] .ul { opacity: 1; }
.menu-note { font-family: var(--f-hand); font-size: clamp(24px, 3vw, 44px); line-height: 1.4; white-space: nowrap; }
.menu-aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; opacity: 0; transition: opacity 600ms ease 400ms; }
.menu-panel[data-open="true"] .menu-aside { opacity: 1; }
.menu-aside .art { width: 351px; max-width: 100%; aspect-ratio: 351 / 434; background: url(../assets/art/b4694d5fee35eb81.webp) 62.158% 50.014% / 152.661% 92.665% no-repeat; }

/* ---------- forms ---------- */

.enquiry {
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 24px); padding: 24px;
  font-family: var(--f-form);
}
.enquiry label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.4; color: rgb(30, 30, 30); }
.enquiry input, .enquiry textarea, .enquiry select {
  border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 12px 16px;
  font-family: var(--f-form); font-size: 16px; color: rgb(30, 30, 30); background: #fff;
}
.enquiry input, .enquiry select { height: 40px; }
.enquiry textarea { min-height: 80px; resize: vertical; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible, .enquiry select:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.enquiry input::placeholder, .enquiry textarea::placeholder { color: rgb(179, 179, 179); }
.enquiry button[type="submit"] {
  height: 40px; border-radius: var(--radius-sm); background: rgb(44, 44, 44); border: 1px solid rgb(44, 44, 44);
  color: rgb(245, 245, 245); font-family: var(--f-form); font-size: 16px; cursor: pointer;
  transition: background-color 200ms ease;
}
.enquiry button[type="submit"]:hover:not(:disabled) { background: var(--red); }
.enquiry button[type="submit"]:disabled { opacity: .65; cursor: progress; }
.enquiry[data-busy="true"] input, .enquiry[data-busy="true"] textarea, .enquiry[data-busy="true"] select { opacity: .7; }

/* off-screen honeypot — not display:none, so bots that check visibility still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-family: var(--f-body); font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0; }
.form-note a { font-weight: 700; }
.form-status { font-family: var(--f-body); font-size: 15px; line-height: 1.4; margin: 0; }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { color: var(--accent); font-weight: 700; }
.form-sent {
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; text-align: center;
  font-family: var(--f-form);
}
.form-sent strong { font-family: var(--f-display); font-size: 24px; color: var(--red); }
.form-reply { padding: 10px; font-family: var(--f-body); font-size: 16px; line-height: 1.2; color: var(--ink); }

/* ---------- footer ---------- */

.footer-chairs { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; width: 100%; }
.footer-chairs > div {
  flex: 1 1 0; min-width: 0; aspect-ratio: 180.571 / 223.113;
  background-repeat: no-repeat; transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1);
}
.footer-chairs > div:hover { transform: translateY(-14px) rotate(-4deg); }
.footer-chairs > div:nth-child(even):hover { transform: translateY(-14px) rotate(4deg); }

.site-foot {
  display: grid; grid-template-columns: minmax(0, 567fr) minmax(0, 766fr); gap: 32px;
  padding: 24px 0 64px; align-items: start;
}
.foot-about { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-name { font-family: var(--f-body); font-weight: 700; font-size: 20px; line-height: 1.4; color: var(--ink); }
.foot-blurb { font-family: var(--f-body); font-weight: 400; font-size: 16px; line-height: 28px; color: var(--ink-soft); }
.foot-social { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.foot-social a {
  width: 68px; height: 68px; border-radius: var(--radius); display: flex; justify-content: center; align-items: center;
  color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red);
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}
.foot-social a:hover { transform: translateY(-2px); background: var(--red); color: var(--bg); }
.foot-social a.mail { width: 84px; background: var(--red); color: var(--bg); box-shadow: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-family: var(--f-body); font-weight: 500; font-size: 16px; line-height: 32px; }
.foot-col > span:first-child { color: rgba(26, 26, 26, 0.3); }
.foot-col a { color: var(--ink-soft); }
.foot-col a:hover { color: var(--red); }

/* ---------- motion ---------- */

[data-reveal] { will-change: opacity, translate; }
[data-draw] { will-change: clip-path; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-draw] { opacity: 1 !important; translate: none !important; clip-path: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .site-head { grid-template-columns: 1fr; }
  .head-art { order: 2; min-height: clamp(240px, 54vw, 420px); }
  .panel-split, .split-chairs { grid-template-columns: 1fr; }
  .panel-art { min-height: clamp(220px, 46vw, 420px); }
  .menu-body { grid-template-columns: 1fr; gap: 32px; }
  .menu-aside { display: none; }
  .site-foot { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .menu-link { flex-wrap: wrap; gap: 8px; }
  .menu-note { font-size: 22px; }
  .footer-chairs > div:nth-child(n + 5) { display: none; }
}

@media (max-width: 520px) {
  .foot-cols { grid-template-columns: 1fr; }
  .footer-chairs > div:nth-child(n + 4) { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}
