/* ============================================================
   AVEA — design A, Night / Day (D-2026-10-24-01).
   Postal.id's layout — fixed header with a centre capsule, menu
   panel, pill buttons, large rounded panels, a label column on
   the left — in AVEA's own colours, Hanken Grotesk and wordmark.
   From the home page of the design canvas, "AVEA Design
   Explorations". Night is the default; <html data-theme="day">
   is Day. Every page uses it: the inner pages (A-022) are the
   home page's blocks plus a few of their own, at the end.
   ============================================================ */

/* — Self-hosted Hanken Grotesk (variable; 400 and 500 used) — */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* — The two colour sets. Every colour on the page comes from here. — */
:root {
  color-scheme: dark;
  --bg:      #1a2a31;                  /* page */
  --raised:  #21343c;                  /* raised panel */
  --card:    #1a2a31;                  /* card inside a panel */
  --fg:      #eef3f5;                  /* text */
  --body:    #b9c6cd;                  /* secondary text */
  --soft:    rgba(238,243,245,0.5);    /* soft second line of big headings */
  --label:   #8fb6c7;                  /* small labels */
  --line:    rgba(238,243,245,0.12);   /* hairlines */
  --chip:    rgba(238,243,245,0.18);   /* chip border */
  --pri:     #eef3f5;                  /* primary button */
  --prifg:   #1a2a31;                  /*   and its text */
  --ghost:   rgba(238,243,245,0.22);   /* outline button border */
  --ghostfg: #b9c6cd;                  /*   and its text */
  --cap:     #21343c;                  /* header capsule */
  --capfg:   #eef3f5;
  --capin:   #1a2a31;                  /* the theme button inside it */
  --menu:    #21343c;                  /* menu panel */
  --dot:     #8fb6c7;                  /* dots */
  --veil:    rgba(26,42,49,0.84);      /* overlay on photos */
  --veilfg:  #eef3f5;
  --ice:     #8fb6c7;                  /* ice feature panel */
  --icefg:   #1a2a31;                  /*   and its text */

  --fade: background-color .35s ease, color .35s ease, border-color .35s ease;
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg:      #ffffff;
  --raised:  #eef3f5;
  --card:    #ffffff;
  --fg:      #1a2a31;
  --body:    #52656e;
  --soft:    #5b8aa0;                  /* large text only: 24px and up */
  --label:   #52656e;
  --line:    #dbe3e7;
  --chip:    #d6dee2;
  --pri:     #21343c;
  --prifg:   #ffffff;
  --ghost:   #d6dee2;
  --ghostfg: #52656e;
  --cap:     #21343c;
  --capfg:   #ffffff;
  --capin:   #1a2a31;
  --menu:    #e6ecef;
  --dot:     #5b8aa0;
  --veil:    rgba(255,255,255,0.92);
  --veilfg:  #1a2a31;
}

/* Every colour fades with the mode. */
body, body * { transition: var(--fade); }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4, strong, b { font-weight: 500; }      /* nothing heavier than 500 */
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a, button { transition: var(--fade), opacity .2s ease; }
a:hover { opacity: .64; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.capsule :focus-visible { outline-color: var(--capfg); }

.soft { color: var(--soft); }
.dot { display: block; flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--dot); }

/* ---------- Buttons: design A's three ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
}
.btn--primary { background: var(--pri); color: var(--prifg); }
.btn--outline { border-color: var(--ghost); color: var(--ghostfg); }
.btn--arrow { width: 64px; height: 64px; padding: 0; background: var(--pri); color: var(--prifg); }
.btn--arrow svg { width: 22px; height: 22px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Chips and labels ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--chip); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--body); }
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--chip);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.label { font-size: 14px; color: var(--label); }
.veil { background: var(--veil); color: var(--veilfg); }

/* ============================================================
   HEADER — wordmark, the capsule (Menu, Night/Day, scroll
   readout), account and "For hotels". Fixed; once the page
   scrolls, only the capsule stays.
   ============================================================ */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 90; pointer-events: none; }
.head__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px; }
.head__mark, .capsule, .head__side, .menu { pointer-events: auto; }
.head__mark { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: .08em; }
.head__mark svg { flex: none; width: 22px; height: 19px; }
.head__mark, .head__side { transition: var(--fade), opacity .3s ease; }
.head.is-away .head__mark, .head.is-away .head__side { opacity: 0; pointer-events: none; }
.head.is-away .head__mark:focus-within, .head.is-away .head__side:focus-within { opacity: 1; pointer-events: auto; }

.capsule { display: flex; align-items: center; gap: 12px; background: var(--cap); color: var(--capfg); border-radius: 999px; padding: 6px 6px 6px 20px; }
.capsule__menu {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px 0 0;
  background: none;
  border: 0;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-size: 17px;
  letter-spacing: -.02em;
  cursor: pointer;
}
.capsule__menu:hover { opacity: .64; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: var(--fade), transform .25s ease; }
.capsule__menu[aria-expanded="true"] .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.capsule__menu[aria-expanded="true"] .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.capsule__word { min-width: 44px; text-align: left; }
.capsule__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--capin);
  color: inherit;
  cursor: pointer;
}
.capsule__theme svg { width: 18px; height: 18px; }
.icon-sun, [data-theme="day"] .icon-moon { display: none; }
[data-theme="day"] .icon-sun { display: block; }
.capsule__pct { min-width: 3.5em; padding-right: 12px; font-size: 12px; text-align: right; color: #b9c6cd; font-variant-numeric: tabular-nums; }

.head__side { display: flex; align-items: center; gap: 8px; }
.head__account { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ghost); border-radius: 999px; }
.head__account svg { width: 18px; height: 18px; }

/* ---------- The menu panel, dropping from behind the capsule ---------- */
.menu {
  position: fixed;
  top: 84px;
  left: clamp(16px, 2.2vw, 32px);
  right: clamp(16px, 2.2vw, 32px);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: 32px;
  background: var(--menu);
  color: var(--fg);
  box-shadow: 0 24px 60px -24px rgba(26,42,49,.5);
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  transition: var(--fade), transform .3s ease, opacity .3s ease, visibility .3s;
}
.menu.is-open { transform: none; opacity: 1; visibility: visible; }
.menu__group { flex: 1 1 220px; display: flex; flex-direction: column; gap: 20px; }
.menu__group + .menu__group { border-left: 1px solid var(--line); padding-left: 40px; }
.menu__label, .foot__label { font-size: 12px; color: var(--body); }
.menu__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; }
.menu__links--big { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.menu__note { color: var(--body); }
.menu__actions { flex: 0 1 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: flex; flex-direction: column; gap: 24px; padding: 104px 32px 0; }
.hero__photo { position: relative; height: 600px; overflow: hidden; border-radius: 48px; background: var(--raised); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 10px 18px; font-size: 14px; }
.hero__quote {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
  padding: 24px 28px;
}
.hero__said { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 40px; }
.hero h1, .page-title { font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: .94; letter-spacing: -.03em; }
.hero__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hero__meta > p { max-width: 380px; color: var(--body); text-align: right; }

/* ============================================================
   LEFT-LABEL ROWS — "The concept", "The intelligence", "For hotels"
   ============================================================ */
.row { display: flex; flex-wrap: wrap; margin-top: 160px; border-top: 1px solid var(--line); }
.row__label { flex: 1 1 280px; max-width: 456px; padding: 32px; font-size: 18px; }
.row__body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; padding: 32px; }
.display { font-weight: 400; font-size: clamp(3.25rem, 8.3vw, 7.5rem); line-height: 1; letter-spacing: -.03em; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.title { max-width: 640px; font-weight: 400; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.lead { max-width: 380px; color: var(--body); }

/* ============================================================
   PANELS — the ice panel, the portfolio, retail and concierge
   ============================================================ */
.wrap { position: relative; padding: 0 8px; margin-top: 8px; }
.wrap--first { margin-top: 64px; }
.panel { position: relative; border-radius: 48px; padding: clamp(32px, 5.5vw, 80px); background: var(--raised); }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-top: 40px; }
.panel__title { max-width: 760px; font-weight: 500; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.panel__lead { max-width: 400px; color: var(--body); }
.panel__arrow { position: absolute; top: clamp(24px, 5.5vw, 80px); right: clamp(24px, 5.5vw, 80px); }

/* The ice panel is the same in both modes; its inner tints are the canvas's. */
.panel--ice { background: var(--ice); color: var(--icefg); }
.panel--ice .tag { border-color: rgba(26,42,49,0.35); }
.panel--ice .dot { background: #1a2a31; }
.panel--ice .soft { color: #3a545e; }
.panel--ice .panel__lead, .step p { color: #21343c; }

.steps, .cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5.5vw, 80px); }
.step { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; border-radius: 24px; padding: 32px; background: rgba(26,42,49,0.08); }
.step .step__num { font-size: 64px; line-height: 1; letter-spacing: -.03em; color: inherit; }
.step h3, .step h4, .card h3, .card h4 { font-size: 20px; font-weight: 500; }

.card { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--card); }
.card img { width: 100%; height: 260px; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.card p { font-size: 15px; color: var(--body); }

.pair { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; margin-top: 8px; }
.feature { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; border-radius: 48px; padding: clamp(16px, 2.8vw, 40px); background: var(--raised); }
.feature img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; }
.feature__text { display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(8px, 2.8vw, 40px) clamp(8px, 2.8vw, 40px); }
.feature h3 { font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.feature__text > p:last-child { max-width: 520px; color: var(--body); }

/* ---------- The intelligence: photo and stat cells ---------- */
.media { display: flex; flex-wrap: wrap; gap: 8px; }
.media__img { flex: 2 1 420px; min-width: 0; height: 440px; object-fit: cover; border-radius: 32px; }
.stats { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.stat { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-radius: 24px; padding: 32px; background: var(--raised); }
.stat__num { font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.stat p + p { color: var(--body); }

/* ---------- For hotels: the ruled list ---------- */
.ruled { display: flex; flex-wrap: wrap; gap: 0 32px; }
.ruled li { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding: 24px 0; }
.ruled h3 { font-size: 20px; font-weight: 500; }
.ruled p { font-size: 15px; color: var(--body); }

/* ============================================================
   FOOTER CARD, with the large wordmark
   ============================================================ */
.foot { padding: 0 8px 8px; margin-top: 160px; }
.foot__card { display: flex; flex-direction: column; gap: 80px; border-radius: 48px; padding: clamp(32px, 5.5vw, 80px); background: var(--raised); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot__lead { display: flex; flex-direction: column; gap: 24px; max-width: 440px; }
.foot__line { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.foot__mark { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); font-size: clamp(4rem, 12vw, 10rem); font-weight: 500; line-height: .8; letter-spacing: .02em; }
.foot__mark svg { flex: none; width: 1em; height: .86em; }
.foot__copy { font-size: 12px; color: var(--body); }

/* ============================================================
   INNER PAGES — the home page's blocks, plus the opening row,
   a film, plain cards, a question list, running text and the
   host's line
   ============================================================ */
/* The opening row: the page's label on the left, its title and lead on the right. */
.row--intro { margin-top: 0; border-top: 0; padding-top: 72px; }
.row--intro .lead { max-width: 560px; font-size: 18px; }
.lead--wide { max-width: 680px; }

/* A film in a rounded frame. */
.film { height: clamp(320px, 42vw, 600px); overflow: hidden; border-radius: 48px; background: var(--raised); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A photo at the head of running text. */
.photo { width: 100%; height: clamp(260px, 32vw, 460px); object-fit: cover; border-radius: 32px; }

/* Plain cards: a label, a title and a few lines, on the raised colour. */
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.note { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; padding: 32px; background: var(--raised); }
.note h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.note p:not(.label), .note li { font-size: 15px; color: var(--body); }
.note ul { display: flex; flex-direction: column; gap: 6px; }

/* A question list: each question beside its answer, under a hairline. */
.faq li { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid var(--line); padding: 24px 0; }
.faq h3 { flex: 1 1 240px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.faq p { flex: 2 1 320px; max-width: 600px; color: var(--body); }

/* Running text: the evidence articles, the privacy policy, the longer arguments. */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--body); }
.prose h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.prose h2:not(:first-child) { margin-top: 24px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 1.25em; list-style: disc; }
.note a, .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* The host's line to the guest, as on the home page's photo. */
.quote { display: flex; flex-direction: column; gap: 12px; max-width: 460px; border-radius: 24px; padding: 24px 28px; background: var(--raised); }
.quote__said { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }

/* ============================================================
   REVEAL ON SCROLL — js/site.js adds .in; nothing waits under
   reduced motion
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: var(--fade), opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-stagger] .reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: var(--fade), opacity .7s cubic-bezier(.2,.7,.2,1) var(--stagger, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--stagger, 0ms);
}
.js [data-reveal-stagger].in .reveal-child { opacity: 1; transform: none; }

/* ============================================================
   PHONE — the canvas's fluid layout stacks; the gutter is 16px
   ============================================================ */
@media (max-width: 680px) {
  .head__bar { padding: 16px; }
  .capsule__word, .capsule__pct, .head__cta { display: none; }
  .menu { top: 80px; }
  .menu__group + .menu__group { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .menu__actions { flex-basis: 100%; }
  .hero { padding: 96px 16px 0; }
  .hero__photo { height: 520px; }
  .hero__meta { align-items: flex-start; }
  .hero__meta > p { text-align: left; }
  .row, .foot { margin-top: 96px; }
  .row__label, .row__body { padding: 24px 16px; }
  .feature img { height: 260px; }
  .media__img { height: 300px; }
  .film { border-radius: 32px; }
  .note { padding: 24px; }
}

/* Nothing moves when the device asks for less motion: no fades, no slides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, body *, body *::before, body *::after { transition: none !important; animation: none !important; }
}
