/* Dili Gourmet — Boss console prototype
   Direction: split stage (seed 410414097), redrawn for a console:
   fixed desk panel on the left, scrolling work column on the right.
   Palette: Osteria's own green and red on warm paper — light, not severe. */

@font-face { font-family: Switzer; src: url(fonts/Switzer-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Switzer; src: url(fonts/Switzer-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Switzer; src: url(fonts/Switzer-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Switzer; src: url(fonts/Switzer-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Switzer; src: url(fonts/Switzer-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ground: #EEF1E9;   /* page ground: bone with a green cast, not yellow */
  --desk:   #E2ECDB;   /* fixed half: pale green wash */
  --panel:  #F7FAF4;   /* work column */
  --card:   #FFFFFF;   /* tiles on the work column */
  --paper:  #FFFFFF;   /* solid white on dark fills (active pills, key buttons) */
  --inset:  #E9EDE4;   /* recessed rows */
  --tint:   #DBE7D2;
  --bar:    #BCCDB5;
  --ink:    #13130E;
  --muted:  #3A3A31;
  --dim:    #4A4A42;
  --line:   #DDE2D6;
  --green:  #027D3C;   /* brand green: the action, the good figure, the peak */
  --green-deep: #00622C; /* large filled panels that carry white running text (7.5:1) */
  --red:    #C90710;   /* brand red: only what needs a person */
  --good:   #0B7A42;
  --bad:    #C90710;

  --t-1: 16px;
  --t-2: 16px;
  --t-3: 20px;
  --t-4: clamp(26px, 2.4vw, 34px);
  --t-5: clamp(44px, 4.9vw, 70px);

  --pad: clamp(20px, 3vw, 56px);
  --sect: clamp(40px, 4.2vw, 72px);
  --desk-w: clamp(320px, 29vw, 408px);
  --r: 14px;
  --r-s: 10px;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Switzer, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-2);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: #fff; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ---------- shared controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: var(--r-s); cursor: pointer;
  padding: 13px 20px; min-height: 48px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: var(--t-1); letter-spacing: 0.01em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: #046A34; }

.textlink {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: var(--t-1); font-weight: 500; color: var(--muted);
  transition: color .18s ease;
}
.textlink:hover { color: var(--green); }

/* ================= GATE ================= */
.gate[hidden] { display: none; }
.gate { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); }
.gate-form {
  padding: clamp(28px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; width: 100%; margin-inline: auto;
}
.gate-top { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-bottom: clamp(36px, 6vh, 76px); }
.gate-top .mark { width: 40px; height: 40px; object-fit: contain; }
.gate-top .wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }

.gate h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 70px); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 13ch;
}
.gate .lead { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 36ch; line-height: 1.5; }
.gate form { margin-top: clamp(24px, 3.6vh, 34px); display: grid; gap: 16px; max-width: 400px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.field input {
  height: 54px; padding: 0 16px; border: 0; border-radius: var(--r-s);
  background: #fff; color: var(--ink); font-size: var(--t-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .18s ease, background-color .18s ease;
}
.field input::placeholder { color: var(--dim); letter-spacing: 0; }
.field input { color: var(--ink); }
.field input[type="password"]::placeholder { letter-spacing: 0.02em; }
.field input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--green); }
.field input[type="password"] { letter-spacing: 0.3em; }
.gate .btn-accent { justify-content: space-between; margin-top: 6px; }
.gate .demo { color: var(--dim); font-size: 14px; margin-top: 2px; }
.gate .note { margin-top: 28px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 44ch; }
.gate .err { color: var(--red); font-size: var(--t-1); }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gate h1, .gate .lead, .gate form, .gate .note, .gate-top { animation: gate-in .62s cubic-bezier(.2,.8,.2,1) both; }
.gate h1 { animation-delay: .06s; }
.gate .lead { animation-delay: .14s; }
.gate form { animation-delay: .22s; }
.gate .note { animation-delay: .30s; }
.house-list img { animation: gate-in .7s cubic-bezier(.2,.8,.2,1) both; }
.house-list li:nth-child(1) img { animation-delay: .12s; }
.house-list li:nth-child(2) img { animation-delay: .2s; }
.house-list li:nth-child(3) img { animation-delay: .28s; }
.house-list li:nth-child(4) img { animation-delay: .36s; }

.gate-house {
  background: var(--green-deep); color: #fff; padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.house-list { display: grid; gap: 26px; margin-block: auto; }
.house-list li { display: flex; align-items: center; gap: 18px; }
.house-list li span { display: grid; gap: 3px; color: rgba(255,255,255,.74); font-size: var(--t-1); line-height: 1.4; }
.house-list li b {
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05; color: #fff; letter-spacing: -0.01em;
}
.house-list img {
  width: 176px; height: 132px; object-fit: cover; flex: none; border-radius: var(--r-s);
  background: #EDEFE6; padding: 5px;                  /* a print on the wall: tone step, no shadow */
}
.gate-house p { color: rgba(255,255,255,.82); font-size: var(--t-1); line-height: 1.6; max-width: 30ch; }

/* ================= SHELL ================= */
.shell { display: grid; grid-template-columns: var(--desk-w) minmax(0, 1fr); align-items: start; }
.shell > * { min-width: 0; }
.shell[hidden] { display: none; }

/* ---------- desk (fixed half) ---------- */
.desk {
  position: sticky; top: 0; height: 100svh; overflow-y: auto; overflow-x: hidden;
  max-width: 100vw;
  background: var(--desk);
  padding: 26px clamp(20px, 2.4vw, 32px) 22px;
  display: flex; flex-direction: column; gap: 24px;
  scrollbar-width: none;
}
.desk::-webkit-scrollbar { display: none; }
.desk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; line-height: 1.1; }
.brand span { color: var(--muted); font-size: var(--t-1); }

.take { display: grid; gap: 6px; }
.take-label { color: var(--muted); font-size: var(--t-1); }
.take-figure {
  font-size: var(--t-5); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92;
  display: flex; align-items: baseline; gap: 0; color: var(--ink);
  transition: opacity .2s ease;
}
.take-figure .cur { font-size: 0.32em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 1px; }
.take-name { flex-basis: 100%; font-size: var(--t-1); font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.4; }
.take-pace { color: var(--muted); font-size: var(--t-1); line-height: 1.45; }
.take-pace b { color: var(--ink); font-weight: 600; }
.take-pace b.down { color: var(--red); }

.cashbar {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #fff; border: 0; border-radius: var(--r-s); cursor: pointer;
  padding: 13px 15px; color: var(--ink);
  transition: background-color .18s ease, transform .18s ease;
}
.cashbar:hover { transform: translateY(-1px); }
.cashbar .dot { width: 9px; height: 9px; background: var(--red); flex: none; border-radius: 50%; }
.cashbar .lbl { display: grid; gap: 1px; }
.cashbar .lbl span { color: var(--muted); font-size: var(--t-1); }
.cashbar .lbl strong { font-size: var(--t-2); font-weight: 600; }

.scope { display: grid; gap: 1px; border-radius: var(--r-s); overflow: hidden; background: var(--line); }
.scope button {
  display: grid; gap: 2px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.62); border: 0; padding: 10px 13px; color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.scope button span { font-size: 13px; color: var(--dim); line-height: 1.35; }
.scope button:hover { background: #fff; color: var(--ink); }
.scope button[aria-pressed="true"] { background: var(--green); color: #fff; }
.scope button[aria-pressed="true"] span { color: rgba(255,255,255,.78); }

.period { display: flex; gap: 2px; }
.period button {
  flex: 1; cursor: pointer; border: 0; background: rgba(255,255,255,.62); color: var(--muted);
  padding: 9px 4px; font-size: var(--t-1); font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}
.period button:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.period button:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.period button:hover { color: var(--ink); background: #fff; }
.period button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }

.views { display: grid; gap: 1px; }
.views button {
  display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none;
  padding: 8px 0; color: var(--muted); font-size: var(--t-2); font-weight: 500; text-align: left;
  transition: color .18s ease, padding-left .18s ease;
}
.views button::before {
  content: ''; width: 6px; height: 6px; background: transparent; flex: none;
  border-radius: 50%; transition: background-color .18s ease;
}
.views button:hover { color: var(--ink); }
.views button[aria-current="true"] { color: var(--ink); padding-left: 6px; font-weight: 600; }
.views button[aria-current="true"]::before { background: var(--green); }
.views .badge {
  margin-left: auto; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--red); padding: 1px 7px; min-width: 20px; text-align: center; border-radius: 999px;
}
.desk-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.stamp { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--t-1); }
.stamp .pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- work column ---------- */
.work { background: var(--panel); min-height: 100svh; padding: clamp(26px, 3.2vw, 44px) var(--pad) 0; }
.work-inner { max-width: 1080px; }

.chip {
  border: 0; border-radius: var(--r-s); cursor: pointer; background: var(--inset); color: var(--muted);
  padding: 9px 14px; font-size: var(--t-1); font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}
.chip:hover { color: var(--ink); background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }

/* the group's own kitchens — compact strip, never a hero */
.kitchens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.kitchens figure { background: var(--card); border-radius: var(--r-s); overflow: hidden; }
.kitchens img { width: 100%; height: 128px; object-fit: cover; }
.kitchens figcaption { padding: 10px 12px 12px; font-size: var(--t-1); color: var(--muted); }
.kitchens figcaption b { display: block; color: var(--ink); font-size: var(--t-2); font-weight: 600; }
@media (max-width: 940px) {
  .kitchens { grid-template-columns: 1fr 1fr; }
  .kitchens img { height: 110px; }
}

.view { display: none; }
.view.active { display: block; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; }
.view-head h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-4); line-height: 1.02; letter-spacing: -0.015em; }
.view-head p { color: var(--muted); font-size: var(--t-2); margin-top: 8px; max-width: 46ch; }

/* alerts */
.alerts { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.alerts li { background: var(--card); }
.alerts button {
  width: 100%; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 15px 18px; color: var(--ink);
  transition: background-color .18s ease;
}
.alerts button:hover { background: #FCFBF6; }
.alerts .txt { font-size: var(--t-2); flex: 1 1 260px; }
.alerts .go { color: var(--green); font-size: var(--t-1); font-weight: 600; white-space: nowrap; }
.alerts button:hover .go { text-decoration: underline; text-underline-offset: 3px; }

/* mosaic: chart + two figure tiles */
.mosaic { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 2px; }
.mosaic .charttile { background: var(--card); border-radius: var(--r); padding: 24px 24px 18px; display: flex; flex-direction: column; gap: 18px; }
.mosaic .stiles { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.mosaic .stile { background: var(--tint); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.mosaic .stile:nth-child(2) { background: var(--green-deep); color: #fff; }
.stile .fig { font-size: var(--t-4); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stile .cap { color: var(--muted); font-size: var(--t-1); line-height: 1.4; }
.stile .cap b { color: var(--ink); font-weight: 600; }
.mosaic .stile:nth-child(2) .cap { color: rgba(255,255,255,.94); }
.mosaic .stile:nth-child(2) .cap b { color: #fff; }
.tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-head h3 { font-size: var(--t-2); font-weight: 600; }
.tile-head span { color: var(--dim); font-size: var(--t-1); text-align: right; }

/* chart */
.chart { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .bar { fill: var(--bar); transform-box: fill-box; transform-origin: bottom; animation: grow .6s cubic-bezier(.2,.8,.2,1) both; }
.chart .bar.peak { fill: var(--green); }
.chart .band { fill: var(--ink); opacity: .10; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }

/* two-up section */
.pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h3 { font-size: var(--t-3); font-weight: 600; letter-spacing: -0.01em; }
.block-head .sub { color: var(--dim); font-size: var(--t-1); }

/* share rows */
.shares { display: grid; gap: 14px; }
.share-row { display: grid; gap: 7px; }
.share-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-2); }
.share-top .amt { color: var(--muted); font-weight: 500; }
.share-track { height: 9px; background: var(--inset); border-radius: 999px; position: relative; overflow: hidden; }
.share-fill { height: 100%; background: var(--green); border-radius: 999px; transform-origin: left; animation: wipe .7s cubic-bezier(.2,.8,.2,1) both; }
.share-fill.s2 { background: #4E9F72; }
.share-fill.s3 { background: #9CBF9F; }
.share-fill.s4 { background: var(--red); }
.share-fill.s5 { background: #0B5C33; }
.share-fill.s6 { background: #E08A90; }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: var(--t-2); }
thead th {
  text-align: left; font-size: var(--t-1); font-weight: 500; color: var(--dim);
  padding: 0 0 10px; border-bottom: 1px solid var(--line);
}
tbody td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
td .sub { color: var(--dim); font-size: var(--t-1); }
.pos { color: var(--good); }
.neg { color: var(--bad); }

/* metric strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.strip div { background: var(--card); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.strip .k { color: var(--muted); font-size: var(--t-1); }
.strip .v { font-size: var(--t-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.strip .v small { font-size: var(--t-1); font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.pipeline div { background: var(--card); border-radius: var(--r); padding: 22px 20px; display: grid; gap: 6px; }
.pipeline .v { font-size: var(--t-4); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pipeline .k { color: var(--muted); font-size: var(--t-1); }

/* scenario */
.scenario { background: var(--card); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 22px; }
.scenario-opts { display: flex; flex-wrap: wrap; gap: 2px; }
.scenario-opts button {
  border: 0; border-radius: 999px; cursor: pointer; background: var(--inset); color: var(--muted);
  padding: 10px 15px; font-size: var(--t-1); font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}
.scenario-opts button:hover { color: var(--ink); background: var(--tint); }
.scenario-opts button[aria-pressed="true"] { background: var(--green); color: #fff; font-weight: 600; }
.scenario-out { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.scenario-out .fig { font-size: var(--t-4); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.scenario-out .delta { font-size: var(--t-2); color: var(--muted); }
.scenario-out .delta .sub { color: var(--dim); }

/* audit */
.audit { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.audit li { background: var(--card); padding: 13px 18px; display: grid; gap: 3px; }
.audit .who { font-size: var(--t-1); color: var(--dim); }
.audit .what { font-size: var(--t-2); }
.audit .what b { font-weight: 600; }

/* footer close */
.close {
  margin-top: var(--sect); padding: 36px 0 52px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.close strong {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--t-4); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.close p { color: var(--dim); font-size: var(--t-1); max-width: 32ch; line-height: 1.6; }

.sect { margin-top: var(--sect); }
.sect:first-of-type { margin-top: 0; }
.hint { color: var(--dim); font-size: var(--t-1); line-height: 1.5; margin-top: 10px; max-width: 56ch; }

/* motion */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 940px) {
  .gate { grid-template-columns: 1fr; }
  .gate-house { order: -1; padding: 20px; }
  .house-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; }
  .house-list li { gap: 8px; }
  .house-list li b { font-size: 17px; }
  .house-list li span { font-size: 11.5px; }
  .house-list img { width: 56px; height: 56px; }
  .gate-house p { display: none; }
  .gate-form { padding: 26px 20px 44px; max-width: none; }

  .shell { grid-template-columns: 1fr; }
  .desk { position: static; height: auto; overflow: visible; gap: 16px; padding: 18px 20px 16px; }
  .take-figure { font-size: 50px; }
  .cashbar { display: none; }
  .scope { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .scope button { padding: 9px 10px; font-size: var(--t-1); }
  .scope button span { display: none; }
  .period button { padding: 8px 4px; }
  .views {
    display: flex; flex-wrap: wrap; gap: 5px;
    position: sticky; top: 0; z-index: 20; padding: 10px 0 8px;
    background: var(--desk); max-width: 100%;
    margin-inline: -20px; padding-inline: 20px;
  }
  .views::-webkit-scrollbar { display: none; }
  .views button {
    white-space: nowrap; padding: 9px 12px; font-size: var(--t-1); flex: none;
    background: rgba(255,255,255,.72); color: var(--muted); border-radius: 999px;
  }
  .views button::before { display: none; }
  .views button[aria-current="true"] { padding-left: 12px; background: var(--ink); color: #fff; }
  .views .badge { background: var(--red); }
  .desk-foot { display: none; }

  .work { padding: 20px 20px 0; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .stiles { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; gap: 34px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .chart { height: 150px; }
  .view-head { padding-bottom: 22px; }
  .close { padding-bottom: 40px; }

  .tablewrap { overflow-x: auto; }
  .tablewrap table { min-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- language switch + small additions ---------- */
.langs {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line);
}
.langs button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  min-width: 36px; padding: 5px 8px; line-height: 1.35;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--muted);
  transition: color .18s ease, background-color .18s ease;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gate-top .langs { margin-left: auto; }
.desk-actions { display: flex; align-items: center; gap: 10px; }
.desk-actions .textlink { padding-left: 10px; border-left: 1px solid var(--line); }
.scope button .s-name { font-size: var(--t-2); line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; gap: 2px; }
.searchbox { display: block; margin-bottom: 18px; max-width: 420px; }
.searchbox input {
  width: 100%; height: 48px; border: 0; border-radius: var(--r-s); padding: 0 15px;
  background: var(--card); color: var(--ink); font-size: var(--t-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.searchbox input::placeholder { color: var(--dim); }
.searchbox input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub-head { font-size: var(--t-3); font-weight: 600; margin-bottom: 14px; }

/* ---------- pass 2: pictures, tables on small screens, one slow move ---------- */
/* the kitchen photographs drift a touch so the page is not a still: 26s, 4.5% */
.kitchens img { animation: kitchen-drift 26s ease-in-out infinite alternate; will-change: transform; }
.kitchens figure:nth-child(2) img { animation-delay: -6s; }
.kitchens figure:nth-child(3) img { animation-delay: -12s; }
.kitchens figure:nth-child(4) img { animation-delay: -18s; }
@keyframes kitchen-drift { from { transform: scale(1); } to { transform: scale(1.045); } }
.kitchens.ov img { height: 150px; animation-duration: 30s; }
.kitchens.ov figcaption b { font-size: var(--t-1); }
.kitchens.ov figcaption span { font-size: 13px; color: var(--dim); }

/* phones: the tables fit the screen instead of scrolling sideways */
@media (max-width: 760px) {
  .tablewrap { overflow-x: visible; }
  .tablewrap table { min-width: 0; }
  table { font-size: 15px; }
  thead th { font-size: 13px; }
  tbody td { padding: 11px 0; }
  td .sub { font-size: 13px; }
  .kitchens.ov { grid-template-columns: 1fr 1fr; }
  .kitchens.ov img { height: 120px; }
}

/* ---------- pass 3: the gate's own parts arrive one after another ---------- */
.gate .langs { animation: gate-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: .12s; }
.house-list li b { animation: gate-in .58s cubic-bezier(.2,.8,.2,1) both; }
.house-list li:nth-child(1) b { animation-delay: .18s; }
.house-list li:nth-child(2) b { animation-delay: .25s; }
.house-list li:nth-child(3) b { animation-delay: .32s; }
.house-list li:nth-child(4) b { animation-delay: .39s; }
.gate .field { animation: gate-in .5s cubic-bezier(.2,.8,.2,1) both; }
.gate .field:nth-of-type(1) { animation-delay: .26s; }
.gate .field:nth-of-type(2) { animation-delay: .32s; }
.gate .btn { animation: gate-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: .38s; }
.gate .demo { animation: gate-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: .44s; }
.gate .note { animation: gate-in .58s cubic-bezier(.2,.8,.2,1) both; animation-delay: .34s; }

/* the overview photo band is photographs, not another row of cards */
.kitchens.ov figure { background: transparent; border-radius: 0; }
.kitchens.ov img { border-radius: var(--r-s); }
.kitchens.ov figcaption { padding: 10px 2px 0; }

/* ---------- pass 4: phones — label rides with its figure, numbers before the chart ---------- */
@media (max-width: 940px) {
  .take-name { flex-basis: auto; margin-right: 2px; }
  .brand span { display: none; }
  .mosaic { gap: 16px; }
  .mosaic .stiles { order: -1; }
  .strip { gap: 24px 20px; }
  .strip div { background: transparent; border-radius: 0; padding: 0; }
}
