/* ==========================================================================
   YB Freezing — design system
   Cold ground, apricot accent. Familjen Grotesk + IBM Plex Sans / Mono.
   ========================================================================== */

:root {
  --ink:          oklch(0.17 0.021 245);
  --ink-2:        oklch(0.24 0.024 245);
  --paper:        oklch(0.975 0.004 245);
  --paper-2:      oklch(0.94 0.008 245);
  --surface:      oklch(1 0 0);
  --text:         oklch(0.20 0.02 245);
  --text-dim:     oklch(0.52 0.02 245);
  --text-mid:     oklch(0.42 0.02 245);
  --on-dark:      oklch(0.95 0.006 245);
  --on-dark-dim:  oklch(0.75 0.015 245);
  --rule:         oklch(0.88 0.008 245);
  --rule-soft:    oklch(0.92 0.006 245);
  --rule-dark:    oklch(0.95 0.006 245 / 0.14);
  --accent:       #d1782c;
  --accent-ink:   oklch(0.17 0.021 245);
  --todo:         oklch(0.58 0.13 55);

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gut: 72px;
  --maxw: 1440px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: oklch(0.62 0.15 52); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.sec  { padding: 84px var(--gut) 88px; }
.sec--tight { padding: 68px var(--gut) 72px; }
.sec--dark  { background: var(--ink); color: var(--on-dark); }
.sec--paper2 { background: var(--paper-2); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 36px;
}
.sec-head__main { display: flex; flex-direction: column; gap: 12px; }
.sec-head__aside {
  font-size: 16.5px; color: var(--text-dim);
  max-width: 34ch; margin-bottom: 6px;
}
.sec--dark .sec-head__aside { color: var(--on-dark-dim); }

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

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
}
.sec--dark .eyebrow,
.eyebrow--accent { color: var(--accent); }

.h1 { font-size: 68px; line-height: 1.03; letter-spacing: -0.028em; }
.h2 { font-size: 40px; line-height: 1.1; }
.h3 { font-size: 30px; line-height: 1.14; }
.h4 { font-size: 19.5px; line-height: 1.26; font-weight: 600; letter-spacing: -0.012em; }

.lead { font-size: 19px; line-height: 1.55; color: var(--text-mid); }
.sec--dark .lead { color: oklch(0.80 0.012 245); }
.prose { font-size: 16.5px; line-height: 1.65; color: var(--text-mid); max-width: 62ch; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--mono); }
.note-mono {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-dim); letter-spacing: 0.04em;
}
.todo { color: var(--todo); }

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

.btn {
  display: inline-block; font-weight: 600; font-size: 15.5px;
  padding: 15px 30px; border-radius: 2px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: oklch(0.64 0.15 52); color: var(--accent-ink); }
/* transparent explicitly: on a <button> the browser would otherwise paint its
   own buttonface grey, which only shows up where a ghost button is not an <a> */
.btn--ghost { background: transparent; border-color: oklch(0.80 0.012 245); color: var(--text-mid); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.sec--dark .btn--ghost { border-color: oklch(0.95 0.006 245 / 0.3); color: var(--on-dark); }
.sec--dark .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 11px 22px; font-size: 14.5px; }

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

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 20px var(--gut);
  background: var(--ink); color: var(--on-dark);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; line-height: 1.15;
}
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--on-dark-dim); }
.nav a:hover, .nav .is-current { color: var(--on-dark); }
.nav .is-current { color: var(--accent); }
.masthead__end { display: flex; align-items: center; gap: 16px; }

/* Language switcher: a <details> disclosure, so it opens without JavaScript.
   The script only adds closing on Escape and on a click elsewhere. */
.langs { position: relative; }
.langs__btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid oklch(0.95 0.006 245 / 0.22);
  border-radius: 2px; padding: 7px 11px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: oklch(0.86 0.012 245); cursor: pointer; user-select: none;
  list-style: none; white-space: nowrap;
}
.langs__btn::-webkit-details-marker { display: none; }
.langs__btn:hover { border-color: oklch(0.95 0.006 245 / 0.4); color: var(--on-dark); }
.langs__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.langs__flag { display: block; border-radius: 1px; }
.langs__chev { transition: transform .15s ease; opacity: .7; }
.langs[open] .langs__chev { transform: rotate(180deg); }
.langs[open] .langs__btn { border-color: oklch(0.95 0.006 245 / 0.4); color: var(--on-dark); }

.langs__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 176px; padding: 5px;
  background: var(--ink-2); border: 1px solid oklch(0.95 0.006 245 / 0.16);
  border-radius: 3px; box-shadow: 0 14px 34px oklch(0.17 0.021 245 / 0.5);
}
.langs__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 2px;
  font-size: 14px; line-height: 1.2; color: var(--on-dark-dim); white-space: nowrap;
}
.langs__item img { display: block; border-radius: 1px; flex: none; }
.langs__item:hover { background: oklch(0.95 0.006 245 / 0.07); color: var(--on-dark); }
.langs__item.is-current { color: var(--accent); }

.u-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }

/* ---------- hero ------------------------------------------------------ */

.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 26%, oklch(0.17 0.021 245 / 0.72) 58%, oklch(0.17 0.021 245 / 0.28) 100%),
    linear-gradient(to top, oklch(0.17 0.021 245 / 0.55), transparent 45%);
}
.hero__inner { position: relative; padding: 92px var(--gut) 76px; display: flex; flex-direction: column; gap: 30px; }
.hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.figures {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
}
.figure { padding: 26px 32px 30px; border-right: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 3px; }
.figure:first-child { padding-left: var(--gut); }
.figure:last-child { border-right: 0; padding-right: var(--gut); }
.figure__n { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.figure__l { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-dark-dim); }

/* ---------- cards ----------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 3px; overflow: hidden; display: flex; flex-direction: column;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* the whole card is the click target, but the markup still holds one link */
.card--link:hover { border-color: oklch(0.80 0.02 245); box-shadow: 0 12px 30px -20px oklch(0.20 0.03 245 / .55); }
.card__link { color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--link:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }
.card__img { width: 100%; height: 190px; object-fit: cover; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card__note { font-size: 14.5px; color: var(--text-dim); line-height: 1.45; flex-grow: 1; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; row-gap: 6px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.card__pack { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap;
}
.card__arrow { transition: transform .18s ease; }
.card--link:hover .card__arrow { transform: translateX(3px); }
.card--link:hover .card__img { transform: scale(1.035); }
.card__img { transition: transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  .card, .card__img, .card__arrow { transition: none; }
  .card--link:hover .card__img { transform: none; }
}

.card--cert { border-top: 3px solid var(--accent); padding: 26px 26px 24px; gap: 14px; }
.card--cert .card__scope { font-size: 15px; color: var(--text-dim); line-height: 1.45; flex-grow: 1; }
.card__meta {
  display: flex; flex-direction: column; gap: 5px; padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--text-mid);
}

/* ---------- numbered steps ------------------------------------------- */

.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.sec--dark .step { border-bottom-color: var(--rule-dark); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.step__b { font-size: 15.5px; color: var(--text-mid); line-height: 1.55; max-width: 62ch; }
.sec--dark .step__b { color: var(--on-dark-dim); }

/* ---------- tables ---------------------------------------------------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--rule-soft); }
table.data tr:last-child td { border-bottom: 0; }
table.data th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mid);
  background: oklch(0.96 0.005 245); border-bottom-color: var(--rule);
  font-weight: 600; white-space: nowrap;
}
table.data td.val { font-family: var(--mono); font-size: 13.5px; color: oklch(0.28 0.02 245); }
table.data td.num { font-variant-numeric: tabular-nums; }

/* ---------- calendar -------------------------------------------------- */

.cal { background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.cal__row { display: grid; grid-template-columns: 220px repeat(12, minmax(0, 1fr)); align-items: center; border-bottom: 1px solid var(--rule-soft); }
.cal__row:last-child { border-bottom: 0; }
.cal__head {
  background: oklch(0.96 0.005 245); border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-dim);
}
.cal__head > div { padding: 12px 0; text-align: center; }
.cal__head > div:first-child { padding-left: 22px; text-align: left; }
.cal__name { padding: 14px 22px; font-size: 15px; font-weight: 500; }
.cal__cell { padding: 7px 3px; }
.cal__bar { display: block; width: 100%; height: 9px; border-radius: 5px; background: oklch(0.90 0.006 245); }
.cal__bar.is-on { background: var(--accent); }

/* ---------- chips ----------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 2px; padding: 11px 16px;
  font-size: 15px; font-weight: 500;
}
.chip__dot { display: block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- team ------------------------------------------------------ */

.person { display: flex; flex-direction: column; background: var(--ink-2); border-radius: 3px; overflow: hidden; }
.grid--people { grid-template-columns: repeat(2, minmax(0, 330px)); }
.person img { width: 100%; height: 420px; object-fit: cover; object-position: center 18%; }
.person__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 5px; }
.person__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.person__line { font-size: 14.5px; color: var(--on-dark-dim); line-height: 1.5; margin-top: 6px; }

/* ---------- timeline -------------------------------------------------- */

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid oklch(0.86 0.008 245); }
.tl { padding: 0 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tl__dot { display: block; width: 11px; height: 11px; border-radius: 50%; background: oklch(0.62 0.02 245); margin-top: -6.5px; }
.tl__dot.is-hot { background: var(--accent); }
.tl__y { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1; margin-top: 8px; }
.tl__l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; }
.tl__b { font-size: 15px; color: var(--text-mid); line-height: 1.5; }

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

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--text-dim);
}
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid oklch(0.84 0.008 245);
  border-radius: 2px; padding: 13px 15px; font: inherit; font-size: 15px;
  color: var(--text); width: 100%;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}

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

.sitefoot {
  background: oklch(0.13 0.018 245); color: var(--on-dark-dim);
  padding: 42px var(--gut); display: flex; align-items: center;
  justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; font-size: 14px;
}
.sitefoot a { color: var(--on-dark-dim); }
.sitefoot a:hover { color: var(--accent); }

/* ---------- video bubble ---------------------------------------------- */

.bubble { position: fixed; right: 28px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 14px; }
.bubble__label {
  background: var(--paper); color: var(--text); border-radius: 3px;
  padding: 11px 16px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 8px 30px -10px oklch(0.10 0.02 245 / 0.6);
}
.bubble__disc {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--accent); cursor: pointer;
  box-shadow: 0 10px 34px -8px oklch(0.10 0.02 245 / 0.7);
}
.bubble__disc img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- television feature ---------------------------------------- */

/* The player is a poster and a link until it is clicked; the iframe replaces
   the link in place, so the box must size the same either way. */
.video-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }

.ytf { margin: 0; }
.ytf__btn {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--ink);
  border: 1px solid var(--rule); border-radius: 3px;
}
.ytf__poster { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s ease; }
.ytf__btn:hover .ytf__poster { opacity: .9; transform: scale(1.02); }
.ytf__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ytf__icon { width: 74px; height: 74px; filter: drop-shadow(0 10px 30px oklch(0.10 0.02 245 / 0.6)); }
.ytf__disc { fill: var(--accent); transition: fill .15s ease; }
.ytf__tri { fill: var(--ink); }
.ytf__btn:hover .ytf__disc { fill: oklch(0.64 0.15 52); }
.ytf__cap { margin-top: 10px; }
.ytf iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 3px; }

@media (max-width: 860px) {
  .ytf__icon { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ytf__poster { transition: none; }
  .ytf__btn:hover .ytf__poster { transform: none; }
}

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

@media (max-width: 1100px) {
  :root { --gut: 40px; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 34px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gut: 24px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 24px; }
  .lead { font-size: 17px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 20px 24px !important; border-bottom: 1px solid var(--rule-dark); }
  .sec { padding: 56px var(--gut) 60px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .masthead { gap: 16px; padding: 16px var(--gut); }
  .hero__inner { padding: 56px var(--gut) 48px; }
  .cal__row { grid-template-columns: 130px repeat(12, minmax(0, 1fr)); }
  .cal__name { padding: 12px; font-size: 13.5px; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .langs__code { display: none; }
  .langs__btn { padding: 7px 9px; gap: 6px; }
  /* On a phone the header holds the brand, the language and the menu button.
     The call to action goes — a translated label is long enough to push the
     menu button off the screen, and the same button sits in the hero below. */
  .masthead__end .btn { display: none; }
  .brand__name { font-size: 15.5px; }
  .masthead { gap: 12px; }
  .grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person img { height: 300px; }
  .bubble__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* WordPress menu classes */
.nav li { list-style: none; margin: 0; }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--accent); }
.nav .menu-item { display: inline-block; }

/* grids that collapse on narrow screens */
@media (max-width: 900px) {
  .process-grid, .markets-grid, .video-split { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ---------- editor content ------------------------------------------- */

.ybf-content > * + * { margin-top: 16px; }
.ybf-content h2 { font-size: 28px; margin-top: 34px; }
.ybf-content h3 { font-size: 21px; margin-top: 26px; }
.ybf-content ul, .ybf-content ol { padding-left: 1.2em; }
.ybf-content li + li { margin-top: 6px; }
.ybf-content li::marker { color: var(--accent); }
.ybf-content img { border-radius: 3px; margin: 24px 0; }
.ybf-content a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

@media (max-width: 900px) {
  .orchard-split, .map-split, .award-row { grid-template-columns: 1fr !important; }
  .orchard-split > .stack { padding: 48px var(--gut) !important; }
  .award-row { gap: 20px !important; }
}
@media (max-width: 700px) {
  .field { grid-column: span 2 !important; }
}

/* page-level headings: sized by class so the breakpoints can reach them */
.h1--page { font-size: 56px; }
.h1--product { font-size: 50px; }

@media (max-width: 1100px) {
  .h1--page { font-size: 44px; }
  .h1--product { font-size: 40px; }
}
@media (max-width: 860px) {
  .h1--page { font-size: 34px; }
  .h1--product { font-size: 32px; }
}

/* ---------- faq ------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid var(--rule); }
.faq__a { font-size: 15.5px; color: var(--text-mid); line-height: 1.55; }
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 10px; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}

.brand__mark { width: auto; height: 38px; display: block; }
@media (max-width: 860px) { .brand__mark { height: 32px; } }

/* the clip and its own poster share one element, so nothing ghosts */
.hero__video { opacity: 0.55; }


/* ---------- consent bar ----------------------------------------------- */

/* A bar, not a modal: the page stays readable and usable while it is open.
   The hidden rule has to be here, because .cbar sets display itself and an
   author rule outranks the browser's own [hidden]. */
.cbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 16px var(--gut) 18px;
  background: var(--ink-2); color: var(--on-dark-dim);
  border-top: 1px solid oklch(0.95 0.006 245 / 0.16);
  box-shadow: 0 -16px 44px -24px oklch(0.10 0.02 245 / 0.8);
}
.cbar[hidden] { display: none; }
.cbar__txt { font-size: 14.5px; line-height: 1.5; max-width: 82ch; }
.cbar__txt a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.cbar__txt a:hover { color: var(--accent); }
.cbar__btns { display: flex; gap: 10px; flex: none; }
.cbar .btn { cursor: pointer; font-family: inherit; }
.cbar .btn--ghost { border-color: oklch(0.95 0.006 245 / 0.32); color: var(--on-dark); }
.cbar .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
  .cbar { gap: 14px; padding: 14px var(--gut) 16px; }
  .cbar__txt { font-size: 13.5px; }
  .cbar__btns { width: 100%; }
  .cbar__btns .btn { flex: 1; text-align: center; }
}

/* ---------- legal pages ------------------------------------------------ */

.legal { padding: 64px var(--gut) 88px; }
.legal .ybf-content { max-width: 74ch; }
.legal .ybf-content h2 { font-size: 24px; margin-top: 38px; }
.legal .ybf-content h3 { font-size: 19px; margin-top: 26px; }
.legal .ybf-content table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; }
.legal .ybf-content th, .legal .ybf-content td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top;
}
.legal .ybf-content th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mid); white-space: nowrap;
}

/* ---------- trade show bar --------------------------------------------- */

/* Sits between two dark bands, the masthead and the hero, so it carries the
   accent rather than another shade of ink. It is an announcement, not a
   navigation element: one line, one link, gone after the show. */
.sial {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 18px;
  padding: 11px var(--gut) 12px;
  background: var(--accent);
  color: var(--accent-ink);
}
.sial__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; white-space: nowrap;
  padding: 4px 9px; border-radius: 2px;
  background: oklch(0.17 0.021 245 / 0.16);
}
.sial__txt { font-size: 15px; line-height: 1.4; margin-right: auto; }
.sial__txt strong { font-weight: 600; }
.sial__sep { opacity: 0.5; }
/* light on ink rather than accent on ink: the accent pairing sits at about
   4.3:1 against the dark, which is under AA for text this size */
.sial__cta {
  background: var(--accent-ink); color: var(--on-dark);
  border-color: var(--accent-ink); white-space: nowrap; flex: none;
}
.sial__cta:hover { background: oklch(0.24 0.024 245); color: var(--on-dark); }

@media (max-width: 700px) {
  .sial { padding: 10px var(--gut) 12px; gap: 8px 12px; }
  .sial__txt { font-size: 13.5px; width: 100%; margin-right: 0; }
  .sial__cta { width: 100%; text-align: center; }
}

/* ---------- hero slides ------------------------------------------------ */

/* Two statements in one place. Stacked in a single grid cell so the hero is
   as tall as the longer of them and nothing jumps on the switch; the inactive
   one is visibility:hidden, which takes it out of the tab order and away from
   a screen reader without collapsing the box. No autoplay: a hero that moves
   on its own pulls attention off the sentence the page is actually about. */
.hero__slides { position: relative; display: grid; }
.hero__slide { grid-area: 1 / 1; }
.hero__slides.is-slider .hero__slide {
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease;
}
.hero__slides.is-slider .hero__slide.is-on { opacity: 1; visibility: visible; }

.hero__dots {
  position: relative; z-index: 2;
  display: flex; gap: 9px;
  padding: 0 var(--gut) 26px;
  margin-top: -14px;
}
.hero__dot {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: oklch(0.95 0.006 245 / 0.28); cursor: pointer;
  transition: background .18s ease, width .18s ease;
}
.hero__dot:hover { background: oklch(0.95 0.006 245 / 0.5); }
.hero__dot.is-on { background: var(--accent); width: 46px; }
.hero__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slides.is-slider .hero__slide { transition: none; }
  .hero__dot { transition: none; }
}

@media (max-width: 860px) {
  .hero__dots { padding: 0 var(--gut) 20px; margin-top: -8px; }
}

/* ---------- the event slide ------------------------------------------- */

/* On this slide the orchard clip is out of the way: the card is the picture,
   and a video of apricots behind an invitation to Paris is two subjects at
   once. The section keeps its ink ground, so the card does the carrying. */
.hero.is-event .hero__media,
.hero.is-event .hero__scrim { opacity: 0; }
.hero__media, .hero__scrim { transition: opacity .35s ease; }

.hero__slide--event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 56px; align-items: center;
}
.hero__evtext { display: flex; flex-direction: column; gap: 30px; min-width: 0; }

.evcard {
  margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 4px; overflow: hidden;
  box-shadow: 0 26px 60px -30px oklch(0.06 0.02 245 / 0.9);
}
.evcard__marks {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 28px 26px 24px;
}
/* the snowflake on its own is just a snowflake; the name has to travel with it */
.evcard__brand { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.evcard__ybf { width: auto; height: 54px; display: block; }
.evcard__name {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--text); text-align: center;
}
.evcard__x {
  font-family: var(--display); font-size: 19px; font-weight: 600;
  color: oklch(0.74 0.02 245); line-height: 1; flex: none;
}
.evcard__sial { width: 92px; height: 92px; border-radius: 3px; display: block; flex: none; }
.evcard__meta {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 28px 17px; border-top: 1px solid var(--rule);
  background: oklch(0.965 0.005 245);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
}
.evcard__where { color: var(--text); font-weight: 500; }
.evcard__when { color: var(--text-dim); }

@media (max-width: 980px) {
  .hero__slide--event { grid-template-columns: 1fr; gap: 34px; }
  .evcard { max-width: 330px; }
}
@media (max-width: 560px) {
  .evcard__marks { gap: 13px; padding: 22px 18px 20px; }
  .evcard__ybf { height: 44px; }
  .evcard__name { font-size: 12px; }
  .evcard__sial { width: 74px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media, .hero__scrim { transition: none; }
}

/* ---------- the event slide, dressed ----------------------------------- */

/* Taking the clip away left a flat black field, which is what made this look
   unfinished. The richness comes back as light rather than as a photograph:
   a cold wash from the top right where the brand's blue lives, and a warm
   apricot bloom low and right, so the white card reads as lit from behind. */
.hero.is-event {
  background:
    radial-gradient(112% 88% at 84% 12%, oklch(0.46 0.092 236 / 0.60) 0%, transparent 60%),
    radial-gradient(78% 62% at 74% 78%, oklch(0.60 0.135 52 / 0.26) 0%, transparent 58%),
    radial-gradient(60% 50% at 8% 92%, oklch(0.38 0.06 250 / 0.45) 0%, transparent 62%),
    linear-gradient(158deg, oklch(0.235 0.038 240) 0%, oklch(0.175 0.022 245) 52%, oklch(0.135 0.018 248) 100%);
}

/* One oversized snowflake, drawn not photographed, sitting behind the card.
   It fills the space the clip used to hold without competing with the words. */
.hero__frost {
  position: absolute; top: 50%; right: -210px;
  width: 760px; height: 760px; transform: translateY(-50%);
  pointer-events: none; z-index: 0;
  opacity: 0.085;
  animation: ybf-drift 150s linear infinite;
}
.hero__frost svg { width: 100%; height: 100%; display: block; }

@keyframes ybf-drift {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.hero__slide--event { position: relative; z-index: 1; }

/* ---------- the card --------------------------------------------------- */

.evcard {
  position: relative;
  border-top: 3px solid var(--accent);
  background: linear-gradient(168deg, #ffffff 0%, oklch(0.975 0.006 245) 100%);
  box-shadow:
    0 30px 70px -34px oklch(0.05 0.02 245 / 0.95),
    0 0 0 1px oklch(1 0 0 / 0.06);
}

.evcard__marks { gap: 20px; padding: 30px 26px 26px; }

.evcard__sial {
  box-shadow: 0 6px 18px -8px oklch(0.55 0.15 85 / 0.75);
}

.evcard__meta {
  background: linear-gradient(to bottom, oklch(0.968 0.006 245), oklch(0.945 0.008 245));
  border-top: 1px solid var(--rule-soft);
  padding: 14px 26px 17px;
}
.evcard__where { display: flex; align-items: center; gap: 8px; }
.evcard__where::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.evcard__when { padding-left: 14px; }

/* the eyebrow on this slide gets a little more presence than a line of mono */
.hero__slide--event .eyebrow {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 6px 12px; border-radius: 2px;
  background: oklch(0.60 0.135 52 / 0.16);
  border: 1px solid oklch(0.65 0.14 52 / 0.38);
  color: oklch(0.80 0.11 62);
}

@media (max-width: 980px) {
  .hero__frost { right: -230px; width: 520px; height: 520px; opacity: 0.07; }
}
@media (max-width: 560px) {
  .hero__frost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__frost { animation: none; }
}
