/* FoodSight website. White pages, one deep aubergine night for the moments of weight,
   the brand aubergine for the subject. Playfair Display speaks, Inter works.
   Values follow the FoodSight Design Standard (03 Product & Tech/Brand/Design Standard). */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --mist: #F7F5F8;
  --ink: #16121A;
  --ink-62: rgba(22, 18, 26, .62);
  --ink-42: rgba(22, 18, 26, .42);
  --ink-10: rgba(22, 18, 26, .10);
  --aubergine: #3A1C3E;
  --night: #21112A;
  --night-glow: #33193D;
  --lilac: #B9A3BD;
  --on-night-64: rgba(255, 255, 255, .64);
  --on-night-14: rgba(255, 255, 255, .14);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
  --t-touch: 160ms;
  --t-line: 1100ms;
  --t-enter: 1000ms;
  --t-draw: 1600ms;
  --t-move: 1300ms;
  --t-ground: 900ms;
  --stagger: 90ms;
  --rise: 28px;
  --blur: 10px;

  --wrap: 1180px;
  --margin: clamp(24px, 6vw, 96px);
  --top-h: 76px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --rise: 0px; --blur: 0px; --t-line: 1ms; --t-enter: 1ms; --t-draw: 1ms; --t-move: 1ms; --t-ground: 1ms; --stagger: 0ms; }
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--night); color: var(--white); }

:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 4px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--white); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--margin)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 10px 16px; background: var(--night); color: var(--white); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: inherit; }
h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.02em; max-width: 19ch; }
h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -.01em; }

.run { font: 500 15px/1.4 var(--sans); color: var(--aubergine); margin-bottom: 20px; }
.night .run { color: var(--lilac); }

.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-62); max-width: 56ch; margin-top: 24px; }
.lead strong { color: var(--ink); font-weight: 500; }
.night .lead { color: var(--on-night-64); }

p { color: var(--ink-62); }
.night p { color: var(--on-night-64); }
h3 + p { margin-top: 10px; }

/* ---------- arrivals ---------- */

[data-in] {
  opacity: 0; transform: translateY(var(--rise)); filter: blur(var(--blur));
  transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out), filter var(--t-enter) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
[data-in].in { opacity: 1; transform: none; filter: none; }
[data-lines] .mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-lines] .ln { display: block; transform: translateY(110%); transition: transform var(--t-line) var(--ease-out); transition-delay: calc(60ms + var(--l, 0) * var(--stagger)); }
[data-lines].in .ln { transform: none; }
.no-js [data-in], .no-js [data-lines] .ln { opacity: 1; transform: none; filter: none; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-touch) linear;
}
.top.scrolled { border-bottom-color: var(--ink-10); }
.bar { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font: 500 15px/1 var(--sans); color: var(--ink-62); transition: color var(--t-touch) linear; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { color: var(--aubergine); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 8px;
  background: var(--night); color: var(--white) !important; font: 500 15px/1 var(--sans);
  transition: background-color var(--t-touch) linear, transform var(--t-touch) linear;
}
.button:hover { background: var(--aubergine); }
.button:active { transform: translateY(1px); }
.button.small { padding: 11px 16px; }
.night .button { background: var(--white); color: var(--night) !important; }
.night .button:hover { background: var(--mist); }
.link { font: 500 15px/1 var(--sans); color: var(--ink); border-bottom: 1px solid var(--ink-42); padding-bottom: 4px; transition: border-color var(--t-touch) linear; }
.link:hover { border-color: var(--ink); }

.menu { display: none; width: 44px; height: 44px; position: relative; }
.menu .lines, .menu .lines::before, .menu .lines::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform var(--t-touch) linear, background-color var(--t-touch) linear; }
.menu .lines { top: 21px; }
.menu .lines::before { left: 0; top: -7px; }
.menu .lines::after { left: 0; top: 7px; }
.menu[aria-expanded="true"] .lines { background: transparent; }
.menu[aria-expanded="true"] .lines::before { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] .lines::after { transform: translateY(-7px) rotate(-45deg); }
.sheet { display: none; padding: 8px var(--margin) 24px; border-top: 1px solid var(--ink-10); }
.sheet a { display: block; padding: 14px 0; font: 500 18px/1.2 var(--serif); border-bottom: 1px solid var(--ink-10); }
.sheet a:last-child { border: 0; }
.sheet:not([hidden]) { display: block; }

/* ---------- the story: one scene, pinned; four steps beside it ---------- */

.story-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps-col { order: -1; }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 12vh; }
.step-1 { min-height: calc(100svh - var(--top-h)); padding-top: 4vh; }
.step h1 { max-width: 11ch; }
.step h2 { max-width: 15ch; }
.step .lead { max-width: 46ch; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

.stage-col { position: relative; align-self: stretch; }
.stage {
  position: sticky; top: calc(var(--top-h) + 20px);
  height: min(calc(100svh - var(--top-h) - 40px), 780px);
  border-radius: 16px; overflow: hidden;
}
.stage svg { width: 100%; height: 100%; overflow: hidden; display: block; }
.stage [data-cam] { transform-origin: 0 0; transition: transform 1.25s cubic-bezier(.65, .05, .25, 1); }

/* the world, in the deck's own language */
.stage .layer { transition: opacity .7s ease; }
.stage .hid { opacity: 0; pointer-events: none; }
.stage .cube { transition: opacity .7s ease, transform 1.1s cubic-bezier(.65, .05, .25, 1); }
.stage .cube polygon { stroke: none; }
.stage .layer.hid .cube { transform: translateY(28px); }
.stage .cube.a .top { fill: #B9A3BD; } .stage .cube.a .lf { fill: #7C6180; } .stage .cube.a .rt { fill: #563A5A; }
.stage .cube.d .top { fill: #8D7591; } .stage .cube.d .lf { fill: #563A5A; } .stage .cube.d .rt { fill: #3A1C3E; }
.stage .cube.g .top { fill: #EBE7EC; } .stage .cube.g .lf { fill: #DCD6DE; } .stage .cube.g .rt { fill: #CFC7D2; }
.stage .cube.s .top { fill: #C9B6CC; } .stage .cube.s .lf { fill: #A88DAD; } .stage .cube.s .rt { fill: #8D7591; }
.stage .lbl { font: 600 18px var(--sans); fill: var(--ink); transition: opacity .6s ease; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.stage .lbl.sm { font-size: 15px; font-weight: 500; fill: var(--ink-62); }
.stage .ring { fill: none; stroke: var(--aubergine); stroke-width: 1.2; stroke-dasharray: 4 5; transition: opacity .7s ease; }
.stage .wire { stroke: #B9A3BD; stroke-width: 1; fill: none; }
.stage .dot { fill: var(--aubergine); }
.stage .dot.b { fill: #B9A3BD; }
.stage .dial-line { stroke: #E7E1E9; stroke-width: 3; stroke-linecap: round; }
.stage .dial-tick { stroke: #B9A3BD; stroke-width: 1.5; }

.stage-cap {
  position: absolute; left: 20px; bottom: 20px; max-width: min(44ch, calc(100% - 40px));
  border: 1px solid var(--aubergine); background: var(--mist);
  padding: 12px 16px; font: 500 15px/1.45 var(--serif); color: var(--ink);
}
.stage-cap span { display: block; transition: opacity 450ms ease, transform 450ms ease; }
.stage-cap span.fade { opacity: 0; transform: translateY(6px); }

/* ---------- sections ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section + .section { border-top: 1px solid var(--ink-10); }
.three, .four { display: grid; gap: 40px 48px; margin-top: clamp(40px, 5vw, 64px); }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.three > div, .four > div { border-top: 1px solid var(--ink-10); padding-top: 22px; }
.three p, .four p { max-width: 34ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(40px, 5vw, 64px); }
.panel { border-top: 1px solid var(--ink-10); padding-top: 22px; }
.panel p { max-width: 40ch; }
.cert { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.cert img { width: 96px; height: auto; }

/* ---------- the night band ---------- */

.night { position: relative; color: var(--white); padding-block: clamp(80px, 11vw, 150px); overflow: hidden; isolation: isolate; }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 600px at 88% 0%, var(--night-glow), transparent 60%), var(--night);
  transform: scaleY(0); transform-origin: top; transition: transform var(--t-ground) var(--ease-in-out);
}
.night.in::before { transform: none; }
.night h2 { color: var(--white); max-width: 20ch; }
.night h3 { color: var(--white); }


/* ---------- tills ---------- */

.tills { display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.wall { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 40px; }
.wall li { height: 26px; display: flex; align-items: center; }
.wall img { height: 22px; width: auto; max-width: 128px; opacity: .85; transition: opacity var(--t-touch) linear; }
.wall li:hover img { opacity: 1; }
.more { border-left: 1px solid var(--ink-10); padding-left: 32px; display: flex; flex-direction: column; gap: 6px; }
.more-num { font: 500 clamp(32px, 3vw, 44px)/1 var(--serif); letter-spacing: -.02em; color: var(--aubergine); white-space: nowrap; }
.more-label { font: 500 15px/1.3 var(--sans); color: var(--ink-62); }

/* ---------- the ask ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: clamp(40px, 5vw, 64px); }
.steps li { border-top: 1px solid var(--on-night-14); padding-top: 22px; }
.step-num { display: block; font: 500 22px/1 var(--serif); color: var(--lilac); margin-bottom: 14px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.aside { margin-top: 28px; font-size: 16px; }
.aside a { color: var(--ink); border-bottom: 1px solid var(--ink-42); padding-bottom: 2px; }
.aside a:hover { border-color: var(--ink); }
.form { display: grid; gap: 28px; }
.form[hidden] { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.field { display: grid; gap: 6px; position: relative; }
.field label { font: 500 14px/1.4 var(--sans); color: var(--ink-62); }
.field input, .field textarea {
  font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-42); border-radius: 0;
  padding: 10px 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--aubergine); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.field:focus-within::after { transform: none; }
.field input:focus, .field textarea:focus { outline: none; }
.botcheck { display: none; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.status { font-size: 15px; }
.status.error { color: var(--aubergine); }
.fine { font-size: 14px; color: var(--ink-42); max-width: 48ch; }
.thanks { border-top: 1px solid var(--ink-10); padding-top: 24px; }
.thanks h3 { color: var(--ink); }
.thanks:not([hidden]) { display: block; }

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

.foot { border-top: 1px solid var(--ink-10); padding-block: 32px; font: 500 15px/1.4 var(--sans); color: var(--ink-62); }
.foot-grid { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.foot-grid img { width: auto; height: 28px; }
.foot a { color: var(--ink); }
.foot .copy { margin-left: auto; }

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

@media (max-width: 1000px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .steps-col { order: 0; }
  .stage-col { position: sticky; top: var(--top-h); z-index: 1; background: var(--white); padding-bottom: 12px; align-self: start; }
  .stage { position: relative; top: auto; height: 42svh; min-height: 300px; }
  .step { min-height: 58svh; padding-block: 8vh; }
  .step-1 { min-height: 58svh; }
  .four { grid-template-columns: repeat(2, 1fr); }
  .tills { grid-template-columns: 1fr; gap: 32px; }
  .more { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-10); padding-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top-h: 64px; }
  .brand img { height: 34px; }
  .nav { display: none; }
  .menu { display: block; }
  .three, .steps, .two, .row { grid-template-columns: 1fr; }
  .wall { gap: 20px 28px; }
  .wall img { height: 18px; max-width: 104px; }
  .foot .copy { margin-left: 0; }
  .stage-cap { font-size: 14px; left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 10px 12px; }
}
@media (max-width: 520px) {
  .four { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 72px 1fr; gap: 18px; }
  .cert img { width: 72px; }
}

@media print {
  [data-in], [data-lines] .ln { opacity: 1 !important; transform: none !important; filter: none !important; }
  .night::before, .stage::before { transform: none; }
  .top, .skip, .menu { display: none; }
  .stage { position: static; }
}
