/* FAQ (faq/index.html, fi/ukk/index.html)
   ------------------------------------------------------------------
   The full FAQ set in the print language of the homepage, the About
   page and the case pages: condensed 76-80% Bricolage, one mono label
   with a 12px cobalt square and a hairline, 0-4px corners, fields that
   meet on straight edges.

     masthead  paper   the label row, the headline, the one-line intro
     list      paper   Q.01-Q.13 as a numbered, ruled list; each row is a
                       native <details> (readable and crawlable without
                       JS), cobalt when open
     contact   ink     the homepage's closing contact block

   The default CSS is the finished page. A short CSS-only entrance runs
   when motion is allowed; reduced motion never animates. No #bgBlob,
   no .reveal, no glows, no scene slates. Every class is prefixed fq3;
   the page wears body.fq3.
   ------------------------------------------------------------------ */

body.fq3 {
  --fq-p: var(--paper, #f0ece3);
  --fq-i: var(--ink, #14110c);
  --fq-c: var(--cobalt, #2b34ff);
  --fq-cl: var(--cobalt-light, #7a83ff);
  --fq-soft: var(--ink-soft, #3a342b);
  --fq-mut: var(--muted, #6a6358);            /* 5.3:1 on paper */
  --fq-on-ink: rgba(240, 236, 227, 0.74);
  --fq-rule: rgba(20, 17, 12, 0.16);          /* hairline on paper */
  --fq-rule-d: rgba(240, 236, 227, 0.16);     /* hairline on ink */
  --fq-e: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  --fq-snap: cubic-bezier(0.3, 1.45, 0.45, 1);
  --fq-draw: cubic-bezier(0.65, 0, 0.2, 1);
  --fq-notch:
    radial-gradient(circle at 0 50%, #0000 5px, #000 5.5px) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, #0000 5px, #000 5.5px) 100% 0 / 51% 100% no-repeat;
  --fq-num: clamp(3.4rem, 7.2vw, 7.4rem);     /* the Q.01 column */
  --fq-gap: clamp(14px, 1.8vw, 26px);
  --fq-tog: 30px;                             /* the open / close square */
  --fq-navh: 60px;
  background: var(--fq-p);
  color: var(--fq-i);
}
@media (max-width: 768px) {
  body.fq3 { --fq-navh: 68px; }               /* .pill gets a 44px target */
}

/* ---------- page-level clean-up (this page only) ---------- */
body.fq3 .bg-blob,
body.fq3 .timecode,
body.fq3 .scene-slate { display: none !important; }
body.fq3 ::selection { background: var(--fq-c); color: var(--fq-p); }
body.fq3 :focus-visible { outline: 2px solid var(--fq-c); outline-offset: 3px; border-radius: 0; }
body.fq3 .contact ::selection { background: var(--fq-c); color: var(--fq-p); }
body.fq3 .contact :focus-visible { outline-color: var(--fq-p); }

.fq3-wrap {
  /* same measure as the nav bar and the contact block (1320px of content) */
  max-width: calc(var(--maxw, 1320px) + 2 * var(--gutter, 24px));
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
}

/* ---------- buttons: the die-cut cobalt ticket (fill on ::before so the
   focus ring is never masked away) ---------- */
body.fq3 .pill--solid {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none;
  color: var(--fq-p);
}
body.fq3 .pill--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--fq-c);
  -webkit-mask: var(--fq-notch);
          mask: var(--fq-notch);
  transition: background-color 0.25s var(--fq-e), transform 0.4s var(--fq-snap);
}
body.fq3 .pill--solid:hover { background: none; border-color: transparent; box-shadow: none; transform: none; }
body.fq3 .pill--solid:hover::before { background: var(--fq-i); transform: scale(1.03); }
body.fq3 .pill--solid:focus-visible { outline: 2px solid var(--fq-c); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  body.fq3 .pill--solid:hover { box-shadow: none; }
}

/* ---------- NAV: one solid paper bar, ink hairline, no blur, no tray ---------- */
body.fq3 #nav,
body.fq3 #nav.is-scrolled {
  background: var(--fq-p);
  color: var(--fq-i);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: 0 1px 0 var(--fq-rule);
  padding-top: 12px;
  padding-bottom: 12px;
  transition: box-shadow 0.28s var(--fq-e);
}
body.fq3 #nav.is-scrolled { box-shadow: 0 1px 0 var(--fq-i); }
body.fq3 #nav .nav__name { color: inherit; }
body.fq3 #nav .nav__name sup { color: var(--fq-c); }
body.fq3 #nav .nav__lang {
  padding: 3px 6px 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  transition: opacity 0.2s var(--fq-e);
}
body.fq3 #nav .nav__lang:hover,
body.fq3 #nav .nav__lang:focus-visible { opacity: 1; color: inherit; border-color: currentColor; }
body.fq3 #nav .nav__menu {
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
body.fq3 #nav .nav__menu .pill--ghost {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
body.fq3 #nav .nav__menu .pill--ghost::before {
  inset: auto 0 4px 0;
  height: 1px;
  border-radius: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--fq-e);
}
body.fq3 #nav .nav__menu .pill--ghost:hover::before,
body.fq3 #nav .nav__menu .pill--ghost:focus-visible::before,
body.fq3 #nav .nav__menu .pill--ghost[aria-current="page"]::before { transform: scaleX(1); }
body.fq3 #nav .nav__contact {
  padding: 0.9em 1.25em;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--fq-p);
}
@media (max-width: 620px) {
  body.fq3 #nav .nav__menu { gap: 12px; }
  body.fq3 #nav .nav__menu .pill--ghost { font-size: 0.6rem; letter-spacing: 0.12em; padding: 8px 0; }
  body.fq3 #nav .nav__contact { padding: 0.85em 0.95em; font-size: 0.58rem; letter-spacing: 0.1em; }
}

/* ================================================================
   MASTHEAD
   ================================================================ */
.fq3-mast {
  padding: calc(var(--fq-navh) + clamp(44px, 6vw, 92px)) 0 0;
}

/* the one label: mono caps, a 12px cobalt square, a hairline to the edge */
.fq3-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fq-i);
}
.fq3-label::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--fq-c);
}
.fq3-label__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--fq-rule);
}
.fq3-label__range {
  flex: 0 0 auto;
  letter-spacing: 0.14em;
  color: var(--fq-mut);
  font-variant-numeric: tabular-nums;
}

.fq3-title {
  margin: clamp(26px, 3.4vw, 50px) 0 0;
  max-width: 11.5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(3rem, 9.2vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  font-feature-settings: "kern" 1;
  color: var(--fq-i);
}
.fq3-title em { font-style: normal; color: var(--fq-c); }

/* the intro starts on the same vertical as the questions and answers */
.fq3-lede {
  max-width: 44ch;
  margin: clamp(28px, 3.4vw, 50px) 0 0 calc(var(--fq-num) + var(--fq-gap));
  font-family: var(--font-display);
  font-weight: 430;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: 0.002em;
  text-wrap: pretty;
  color: var(--fq-soft);
}

/* ================================================================
   THE LIST: ink rules top and bottom, hairlines between
   ================================================================ */
.fq3-list {
  padding: clamp(56px, 6.4vw, 100px) 0 clamp(96px, 10vw, 150px);
}
.fq3-items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fq-i);
  border-bottom: 1px solid var(--fq-i);
}
.fq3-item { margin: 0; padding: 0; }
.fq3-item + .fq3-item { border-top: 1px solid var(--fq-rule); }

/* the question row: number · question · square */
.fq3-q {
  position: relative;
  display: grid;
  grid-template-columns: var(--fq-num) minmax(0, 1fr) var(--fq-tog);
  column-gap: var(--fq-gap);
  align-items: baseline;
  padding: clamp(20px, 2.1vw, 30px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 88%;
  font-size: clamp(1.2rem, 1.95vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fq-i);
  -webkit-tap-highlight-color: transparent;
}
.fq3-q::-webkit-details-marker { display: none; }
.fq3-q::marker { content: ""; }
/* the cobalt rule an open question carries on its top edge */
.fq3-q::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--fq-c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--fq-draw);
  pointer-events: none;
}
.fq3-d[open] > .fq3-q::before { transform: scaleX(1); }

.fq3-n {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  font-stretch: normal;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--fq-mut);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--fq-e);
}
.fq3-t {
  text-wrap: pretty;
  transition: color 0.2s var(--fq-e);
}

/* the square: a hairline box with a plus that turns into a cobalt × */
.fq3-x {
  position: relative;
  align-self: start;
  width: var(--fq-tog);
  height: var(--fq-tog);
  margin-top: calc((1.15em - var(--fq-tog)) / 2);
  border: 1px solid rgba(20, 17, 12, 0.32);
  border-radius: 2px;
  color: var(--fq-i);
  transition: background-color 0.25s var(--fq-e), border-color 0.25s var(--fq-e), color 0.25s var(--fq-e);
}
.fq3-x::before,
.fq3-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--fq-snap);
}
.fq3-x::after { transform: translate(-50%, -50%) rotate(90deg); }

@media (hover: hover) {
  .fq3-q:hover .fq3-t { color: var(--fq-c); }
  .fq3-q:hover .fq3-x { border-color: var(--fq-c); color: var(--fq-c); }
}
.fq3-q:focus-visible .fq3-t { color: var(--fq-c); }

/* open: the number, the rule and the square go cobalt */
.fq3-d[open] > .fq3-q .fq3-n { color: var(--fq-c); }
.fq3-d[open] > .fq3-q .fq3-x {
  background: var(--fq-c);
  border-color: var(--fq-c);
  color: var(--fq-p);
}
.fq3-d[open] > .fq3-q .fq3-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.fq3-d[open] > .fq3-q .fq3-x::after { transform: translate(-50%, -50%) rotate(135deg); }

/* the answer: readable body type on the question's vertical */
.fq3-a {
  max-width: 62ch;
  margin: 0 0 0 calc(var(--fq-num) + var(--fq-gap));
  padding: 0 0 clamp(26px, 2.8vw, 40px);
  font-family: var(--font-display);
  font-weight: 430;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.62;
  letter-spacing: 0.002em;
  text-wrap: pretty;
  color: var(--fq-soft);
}
/* a link inside an answer: the running-copy link of the landing pages */
.fq3-a a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--fq-c);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--fq-e);
}
.fq3-a a:hover { color: var(--fq-c); }

/* smooth open / close where ::details-content exists; elsewhere the
   native instant toggle (interpolate-size is set on :root in styles.css) */
.fq3-d::details-content {
  opacity: 0;
  block-size: 0;
  overflow: clip;
  transition: content-visibility 0.4s allow-discrete,
              opacity 0.3s var(--fq-e),
              block-size 0.4s var(--fq-e);
}
.fq3-d[open]::details-content {
  opacity: 1;
  block-size: auto;
}

@media (max-width: 620px) {
  body.fq3 { --fq-num: 3.1rem; --fq-gap: 12px; --fq-tog: 28px; }
  .fq3-title {
    max-width: none;
    font-size: clamp(2.6rem, 13.4vw, 3.6rem);   /* meets 9.2vw at the 620/621 seam */
    line-height: 0.88;
  }
  .fq3-lede { margin-left: 0; }
  .fq3-q { padding: 18px 0; }
  .fq3-n { font-size: 0.64rem; letter-spacing: 0.1em; }
  .fq3-a { margin-left: 0; padding-bottom: 24px; }
}

/* ================================================================
   CONTACT: the homepage's closing ink block, square edges, one sign-off
   ================================================================ */
body.fq3 .contact {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--fq-i);
  color: var(--fq-p);
  padding: clamp(80px, 8.4vw, 128px) var(--gutter) clamp(36px, 4vw, 56px);
}
body.fq3 .contact::before,
body.fq3 .contact::after { content: none; animation: none; }
body.fq3 .contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  grid-template-rows: auto 1fr auto auto auto auto;
  grid-template-areas:
    "eye   eye"
    "head  ."
    "head  loc"
    "head  cta"
    "links links"
    "foot  foot";
  column-gap: clamp(32px, 6vw, 110px);
  align-items: start;
  text-align: left;
}
body.fq3 .contact__eyebrow {
  grid-area: eye;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fq-on-ink);
}
body.fq3 .contact__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--fq-c);
}
body.fq3 .contact__eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--fq-rule-d);
}
body.fq3 .contact__headline {
  grid-area: head;
  margin: clamp(24px, 2.8vw, 40px) 0 0;
  font-stretch: 76%;
  font-size: clamp(3.3rem, 13.4vw, 11.6rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}
body.fq3 .contact__headline em {
  color: var(--fq-c);
  -webkit-text-stroke: 0;
}
body.fq3 .contact__location {
  grid-area: loc;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
}
body.fq3 .contact__links {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: space-between;
  gap: 0 32px;
  margin: clamp(44px, 5vw, 72px) 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--fq-rule-d);
  border-bottom: 1px solid var(--fq-rule-d);
}
body.fq3 .contact__link {
  justify-self: start;
  padding: 4px 0 6px;
  border-bottom: 0;
  font-stretch: 86%;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
body.fq3 .contact__link::after { bottom: -1px; }
body.fq3 .contact__inner > .pill {
  grid-area: cta;
  justify-self: start;
  margin-top: 28px;
}
body.fq3 .contact .pill--solid:hover { background: none; border-color: transparent; color: var(--fq-i); }
body.fq3 .contact .pill--solid:hover::before { background: var(--fq-p); }
body.fq3 .contact .pill--solid:focus-visible { outline-color: var(--fq-p); }
body.fq3 .contact__foot { grid-area: foot; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) {
  body.fq3 .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "eye" "head" "links" "loc" "cta" "foot";
  }
  body.fq3 .contact__headline { font-size: clamp(3.4rem, 18vw, 5.4rem); }
  body.fq3 .contact__links { grid-template-columns: minmax(0, 1fr); margin-top: 36px; padding: 6px 0; }
  body.fq3 .contact__link { padding: 10px 0; }
  body.fq3 .contact__location { margin-top: 32px; }
  body.fq3 .contact__foot { align-items: flex-start; text-align: left; }
}

/* ================================================================
   ENTRANCE: CSS only, motion allowed only. The label rule draws, the
   headline and intro rise, the rows follow. One timing for every
   arrival: main.js drops html.wipe-in the moment the ink wipe ends, so
   wipe-keyed delays would re-time these mid-run and pop the list in.
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fq3-label { animation: fq3-fade 0.6s var(--fq-e) both; }
  .fq3-label__rule { transform-origin: left center; animation: fq3-draw 1s var(--fq-draw) 0.1s both; }
  .fq3-title { animation: fq3-rise 1s var(--fq-e) 0.06s both; }
  .fq3-lede { animation: fq3-rise 1s var(--fq-e) 0.18s both; }
  .fq3-items { animation: fq3-rise 1s var(--fq-e) 0.28s both; }
}
@keyframes fq3-fade { from { opacity: 0; } }
@keyframes fq3-draw { from { transform: scaleX(0); } }
@keyframes fq3-rise { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: reduce) {
  .fq3-d::details-content { transition: none; }
  .fq3-q::before,
  .fq3-x,
  .fq3-x::before,
  .fq3-x::after { transition: none; }
}
