/* Kinoko Studio: shared stylesheet for every page.
   Direction: "type and nothing else" (taste skill), clean and light, set in Newsreader.
   Design spec: docs/superpowers/specs/2026-10-23-taste-redesign-design.md (amendments at the end).
   Only the studio's own images are used (see README, "Pictures").
   When you change this file, bump the ?v= query on every page that links it. */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e6e6e5;
  --ink: #141412;
  --muted: #5e5b55;
  --accent: #c9a24b;          /* logo gold: fills, highlights and the action; never small text on white */
  --accent-soft: #efe3c3;
  --accent-ink: #141412;
  --inverse: #141412;
  --inverse-ink: #f2f1ee;
  --inverse-muted: #a9a59c;

  /* Noto Serif TC only loads on pages with Chinese text; elsewhere CJK glyphs fall back to the system */
  --font: 'Newsreader', 'Noto Serif TC', Georgia, 'Times New Roman', serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13–14 */
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);    /* 18–21 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);       /* 20–26 */
  --step-story: clamp(1.375rem, 0.95rem + 1.4vw, 1.875rem);    /* 22–30 */
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem);         /* 36–72 */
  --step-cap: clamp(3rem, 1rem + 5.4vw, 6.25rem);             /* 48–100 */
  --step-display: clamp(3.5rem, 0.5rem + 7.6vw, 8.5rem);      /* 56–136, the motto in the hero */

  --margin: clamp(1.25rem, 3.3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --axis: 42%;
  --section: clamp(6rem, 11vw, 12rem);
  --pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 190ms;
}
:root:lang(zh-Hant) { --font: 'Newsreader', 'Noto Serif TC', Georgia, serif; }

/* ---------- reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body:lang(zh-Hant) { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1:lang(zh-Hant), h2:lang(zh-Hant), h3:lang(zh-Hant) { font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.hero-title:lang(zh-Hant) { line-height: 1.1; }
b, strong { font-weight: 500; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .close :focus-visible, .menu :focus-visible { outline-color: var(--accent); }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.75rem 1.25rem; border-radius: var(--pill); text-decoration: none; }
.skip-link:focus { top: 1rem; }
section[id], main[id] { scroll-margin-top: 1rem; }

/* ---------- shared parts ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5em; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font); font-size: var(--step-body); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 44px; padding: 0 1.2em; font-size: var(--step-small); }
.link {
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--ink); color: var(--bg); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- the bar: wordmark left, links from the axis, action right ---------- */
.bar {
  display: grid; grid-template-columns: var(--axis) 1fr; align-items: center;
  padding: clamp(1rem, 2.2vw, 2.25rem) var(--margin); position: relative; z-index: 60; background: var(--bg);
}
.bar-logo { display: block; justify-self: start; }
.bar-logo img { height: 30px; width: auto; }
.bar-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); }
.bar-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.bar-end { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.bar-tools { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); justify-self: end; }
.bar-links a, .bar-lang {
  font-size: var(--step-small); text-decoration-line: underline; text-decoration-color: transparent;
  text-underline-offset: 0.3em; text-decoration-thickness: 0.06em; padding: 0.6rem 0; text-decoration-skip-ink: auto;
  transition: text-decoration-color var(--t-hover) ease; color: var(--ink); text-decoration-style: solid;
}
.bar-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bar-links a:hover, .bar-lang:hover { text-decoration: underline; text-decoration-color: var(--ink); } }
.hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 44px; min-height: 44px; margin: -6px -10px -6px 0; position: relative; z-index: 61; justify-self: end;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: none; flex-direction: column; justify-content: safe center; gap: 0.25em;
  padding: 6rem var(--margin) 2rem; overflow-y: auto; overscroll-behavior: contain;
}
.menu.active { display: flex; }
.menu a { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; text-decoration: none; }
.menu .menu-foot { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.menu .menu-foot a { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; }

@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; position: sticky; top: 0; }
  .bar-nav { display: none; }
  .hamburger { display: flex; }
  section[id], main[id] { scroll-margin-top: 5rem; }
  /* without JavaScript the menu button would do nothing: show the links as a plain row */
  html:not(.js) .bar { position: relative; grid-template-columns: 1fr; row-gap: 0.25rem; }
  html:not(.js) .hamburger { display: none; }
  html:not(.js) .bar-nav, html:not(.js) .bar-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: 0; }
  html:not(.js) .bar-end .button { display: none; }
}
@media (max-width: 380px) { .bar-tools .button { display: none; } }

/* ---------- hero: the motto on the left, four of the studio's photos pinned like a moodboard on the right ---------- */
/* --bar is the bar's height (its 44px button plus its padding), so the hero fills exactly the rest of the first screen */
.hero { --bar: calc(44px + 2 * clamp(1rem, 2.2vw, 2.25rem)); --hero-top: clamp(2rem, 6svh, 4rem); --hero-bottom: clamp(2.5rem, 7svh, 4.5rem); position: relative; isolation: isolate; overflow: clip; min-height: calc(100svh - var(--bar)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding: var(--hero-top) var(--margin) var(--hero-bottom); }
/* at 900px and under the bar holds the menu button, which sits 6px into the padding */
@media (max-width: 900px) { .hero { --bar: calc(32px + 2 * clamp(1rem, 2.2vw, 2.25rem)); } }
.hero-copy { grid-column: 1 / span 6; grid-row: 1; display: grid; gap: clamp(2rem, 5svh, 3.5rem); }
.hero-title { font-size: var(--step-display); letter-spacing: -0.05em; line-height: 0.9; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-lead { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
/* the board is the right half, as tall as the hero inside its padding (never under 16rem). Each
   photo is placed by hand so none lines up with another. Widths follow the board width, or its
   height when the screen is short, so the photos never collide; browsers without container units
   keep the plain % widths */
.hero-board { grid-column: 7 / -1; grid-row: 1; position: relative; height: max(16rem, calc(100svh - var(--bar) - var(--hero-top) - var(--hero-bottom))); container-type: size; }
.hero-shot { position: absolute; margin: 0; overflow: clip; background: var(--surface); }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shot--1 { width: 52%; width: calc(52 * min(1cqw, 0.95cqh)); aspect-ratio: 4 / 5; right: 0; top: 0; }
.hero-shot--2 { width: 40%; width: calc(40 * min(1cqw, 0.95cqh)); aspect-ratio: 1; left: 0; top: 13%; }
.hero-shot--3 { width: 34%; width: calc(34 * min(1cqw, 0.95cqh)); aspect-ratio: 1; left: 10%; bottom: 0; }
.hero-shot--4 { width: 38%; width: calc(38 * min(1cqw, 0.95cqh)); aspect-ratio: 4 / 3; right: 6%; bottom: 3%; }
/* on a tall, narrow screen (a tablet held upright) the board sits above the motto at 5:4, so its
   height is 0.8 of its width and the widths can follow the width alone */
@media (min-width: 700px) and (orientation: portrait) {
  .hero { row-gap: clamp(2.5rem, 4svh, 4rem); }
  .hero-board { grid-column: 3 / -1; height: auto; aspect-ratio: 5 / 4; container-type: inline-size; }
  .hero-copy { grid-column: 1 / -1; grid-row: 2; }
  .hero-shot--1 { width: 39.5cqw; }
  .hero-shot--2 { width: 30.4cqw; }
  .hero-shot--3 { width: 25.8cqw; }
  .hero-shot--4 { width: 28.9cqw; }
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }

/* ---------- clients: the logo wall ---------- */
.logos { margin-top: 0; padding: clamp(5rem, 9vw, 8.5rem) var(--margin); background: var(--surface); }
.stepped { font-size: var(--step-head); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.stepped span { display: block; }
.stepped span + span { padding-left: calc((100% - 11 * var(--gutter)) / 12 * 2 + 2 * var(--gutter)); }
.logo-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.875rem); }
.logo-wall li { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: clamp(7rem, 10.5vw, 9.5rem); padding: 1rem 0.75rem; --tile: #ffffff; }
/* the colour each tile fills with: white logos get their brand's ground (AIA, 1on1 and DTM are
   close approximations), colour logos get white so their own colours read true */
.logo-wall [data-brand="juliusbaer"] { --tile: #17244a; }
.logo-wall [data-brand="unicef"] { --tile: #1cabe2; }
.logo-wall [data-brand="1on1"] { --tile: #003a5c; }
.logo-wall [data-brand="goldenage"] { --tile: #141412; }
.logo-wall [data-brand="aia"] { --tile: #d31145; }
.logo-wall [data-brand="dtm"] { --tile: #141412; }
.logo-wall li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tile); clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path 420ms var(--ease-out); }
.logo-wall li.is-lit::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transition-duration: 700ms; }
.logo-wall li.is-lit .logo { filter: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .logo-wall li:hover::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transition-duration: 700ms; }
  .logo-wall li:hover .logo { filter: none; opacity: 1; }
}
/* one colour for every logo: white-only marks to near-black, colour marks to greyscale */
.logo { height: calc(var(--h, 2.5) * 1.2rem * var(--logo-scale, 1)); width: auto; max-width: 100%; object-fit: contain; }
.logo { transition: filter 420ms ease, opacity 420ms ease; }
.logo--white { filter: brightness(0); opacity: 0.82; }
.logo--colour { filter: grayscale(1) brightness(0.7) contrast(1.4); }

/* ---------- services: capabilities at poster scale ---------- */
.services { padding: var(--section) var(--margin) 0; }
.cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: first baseline; }
.cap + .cap { margin-top: clamp(3rem, 5vw, 4.5rem); }
.cap h2, .cap h3 { grid-column: 1 / span 7; font-size: var(--step-cap); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.cap--head h2 { color: var(--muted); }
.cap > p, .cap > div { grid-column: 8 / -1; max-width: 38ch; }
.cap > div p, .cap > p { font-size: var(--step-lead); line-height: 1.35; }
/* a service: its name, a photo, one sentence */
.cap:not(.cap--head) { align-items: start; }
.cap:not(.cap--head) h3 { grid-column: 1 / span 5; }
.cap:not(.cap--head) > p { grid-column: 9 / -1; }
.cap-art { grid-column: 6 / span 3; position: relative; aspect-ratio: 1; overflow: clip; margin: 0; background: var(--surface); }
.cap-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap-art--5 img { object-position: 50% 68%; }
.cap--head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- reviews: each in its client's own colours ---------- */
.reviews { padding: var(--section) var(--margin) 0; }
.reviews h2 { font-size: var(--step-head); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.review-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.review { position: relative; isolation: isolate; background: var(--brand, var(--ink)); color: var(--brand-ink, var(--bg)); display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.75rem, 3.4vw, 3rem); min-height: clamp(20rem, 32vw, 28rem); margin: 0; }
.review p { font-size: var(--step-lead); line-height: 1.35; }
/* logo pinned to the top, the quote and the name to the foot of the panel */
.review p { margin-top: auto; }
.review cite { font-style: normal; font-size: var(--step-small); font-weight: 500; }
.review cite span { display: block; font-weight: 400; opacity: 0.85; }
.review-logo { height: 2.75rem; width: auto; max-width: 14rem; object-fit: contain; align-self: flex-start; }
/* brand colours: YWCA, Southorn and UNICEF taken from their logos and brand; Julius Baer and GoldenAge approximate, to confirm */
/* Julius Baer runs the full width: logo top left, quote bottom right */
.review--juliusbaer { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: var(--gutter); row-gap: clamp(1.25rem, 2vw, 1.75rem); min-height: clamp(20rem, 30vw, 27rem); --brand: #17244a; --brand-ink: #ffffff; --logo-rest: brightness(0) opacity(0.82); }
.review--juliusbaer .review-logo { grid-column: 1 / span 5; grid-row: 1; align-self: start; height: 3.5rem; max-width: 18rem; }
.review--juliusbaer p { grid-column: 6 / -1; grid-row: 1; align-self: end; margin-top: 0; font-size: var(--step-story); line-height: 1.25; max-width: 32ch; }
.review--juliusbaer cite { grid-column: 6 / -1; grid-row: 2; }
.review--unicef { grid-column: 1 / span 5; --brand: #1cabe2; --brand-ink: #0b1f2a; --logo-rest: brightness(0) opacity(0.82); }
.review--ywca { grid-column: 6 / span 7; --brand: #00318a; --brand-ink: #ffffff; --logo-rest: grayscale(1) brightness(0.7) contrast(1.4); }
.review--southorn { grid-column: 1 / span 7; --brand: #003a5c; --brand-ink: #ffffff; --logo-rest: brightness(1) invert(0); }
.review--southorn .review-logo { filter: brightness(0) invert(1); height: 3.25rem; }
.review--goldenage { grid-column: 8 / span 5; --brand: #141412; --brand-ink: #f2f1ee; --logo-rest: brightness(0) opacity(0.82); }
.review--goldenage .review-logo { height: 4.5rem; }
/* the YWCA mark is blue on clear, so it sits on a white plate to stay legible on the blue panel */
.review--ywca .review-logo { height: 3rem; box-sizing: content-box; padding: 0.5rem 0.75rem; background: #ffffff; border-radius: 4px; }

/* ---------- about: the story in two columns, facts highlighted ---------- */
.about { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.about-text { grid-column: 1 / span 7; }
/* the studio photo */
.about-photo { grid-column: 9 / -1; position: relative; aspect-ratio: 1; overflow: clip; margin: 0; background: var(--surface); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: var(--step-head); margin-bottom: clamp(2rem, 4vw, 3rem); }
.story { font-size: var(--step-story); line-height: 1.25; color: var(--ink); text-align: left; }
/* Chinese reads larger than Latin at the same size, so the story steps down to the lead size */
.story:lang(zh-Hant) { font-size: var(--step-lead); line-height: 1.6; text-align: justify; }
.story b { color: var(--ink); font-weight: 500; }
.story mark { background: var(--accent); color: var(--ink); padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.story mark.soft { background: var(--accent-soft); }
.story-link { background: var(--ink); color: var(--bg); padding: 0 0.15em; text-decoration: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (hover: hover) and (pointer: fine) { .story-link:hover { background: var(--accent); color: var(--ink); } }

/* ---------- products: the studio's own, in the same rows as the services, each logo on a tile where the service photos sit ---------- */
.products { padding: var(--section) var(--margin) 0; }
.product > div > * + * { margin-top: 1rem; }
.product-alt { display: block; margin-top: 0.5rem; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.3; color: var(--muted); }
.product-link { display: inline-block; padding: 0.5rem 0; }
.product .product-link { margin-top: 1.25rem; }
/* the logo is placed inside the tile, so the tile keeps its shape whatever the logo's size */
.product-logo { grid-column: 6 / span 3; position: relative; aspect-ratio: 1; margin: 0; background: var(--surface); }
.product-logo img { position: absolute; inset: 0; margin: auto; display: block; width: 58%; height: auto; }
/* Good Eye's icon is a plain white square; rounding it like an app icon lets it sit on the tile */
.product-logo--icon img { border-radius: 22%; }
.product > div { grid-column: 9 / -1; }

/* ---------- FAQ: large questions, answers beside ---------- */
.faq { padding: var(--section) var(--margin) 0; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.qa + .qa { margin-top: clamp(3rem, 5vw, 4.5rem); }
.qa h2, .qa h3 { grid-column: 1 / span 6; font-size: clamp(1.625rem, 1rem + 1.6vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; max-width: 20em; }
.qa h2 { color: var(--muted); }
/* answers in the same voice as the service sentences */
.qa p { grid-column: 8 / span 5; max-width: 38ch; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- start a project: the brief builder ---------- */
.start { padding: var(--section) var(--margin) var(--section); }
.brief { background: var(--surface); padding: clamp(1.75rem, 4vw, 4rem); }
.brief h2 { font-size: var(--step-head); margin-bottom: 1rem; }
.brief-intro { color: var(--ink); max-width: 46ch; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.brief-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.5rem) var(--gutter); }
.brief fieldset { border: 0; min-width: 0; }
.brief legend { font-size: var(--step-small); font-weight: 500; margin-bottom: 0.75rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 1rem; border-radius: var(--pill);
  background: var(--bg); font-size: var(--step-small); line-height: 1.25;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { background: var(--surface-2); } }
.brief-when { margin-top: clamp(1.5rem, 2.5vw, 2.5rem); }
.brief-out { margin-top: clamp(2rem, 3.5vw, 3rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.preview { grid-column: 1 / span 8; background: var(--bg); padding: 1.25rem 1.5rem; }
.preview-label { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.4rem; }
.preview-text { max-width: 60ch; }
.brief-actions { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.5rem; }
html:not(.js) .brief-picker { display: none; }

/* ---------- contact: the email as display type, inverted ---------- */
.contact { background: var(--inverse); color: var(--inverse-ink); min-height: 92svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(3rem, 6vw, 5rem) var(--margin) clamp(2rem, 4vw, 3rem); }
.contact-say { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; max-width: 26ch; }
.contact-mail { align-self: end; display: block; margin: clamp(3rem, 8svh, 6rem) 0 clamp(2.5rem, 6svh, 4.5rem); font-size: clamp(2.5rem, 0.4rem + 7.6vw, 9rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.98; text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .contact-mail:hover { color: var(--accent); } }
.contact-meta { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; font-size: var(--step-small); color: var(--inverse-muted); }
.contact-meta a { color: var(--inverse-ink); }
.contact-meta p:last-child { display: flex; gap: 1.5rem; }

/* ---------- footer: columns above, wordmark below ---------- */
.close { background: var(--inverse); color: var(--inverse-ink); overflow: hidden; display: grid; grid-template-rows: auto auto auto; padding: clamp(2.5rem, 5vw, 4rem) var(--margin) 0; }
.close-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); font-size: var(--step-small); color: var(--inverse-muted); padding-bottom: clamp(3rem, 8vw, 7rem); }
.close-first { color: var(--inverse-ink); font-weight: 500; margin-bottom: 0.5rem; }
.close-cols a { color: var(--inverse-muted); display: inline-block; padding: 0.15rem 0; }
.wordmark { width: 100%; height: auto; color: var(--inverse-ink); }
.close-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--step-small); color: var(--inverse-muted); padding: 1.25rem 0 1.5rem; }
.close-legal a { color: var(--inverse-muted); }
.close--short { padding-top: clamp(2rem, 4vw, 3rem); }
.close--short .close-legal { justify-content: space-between; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(3rem, 7vw, 6rem) var(--margin) var(--section); }
.legal-col { max-width: 65ch; margin: 0 auto; }
.legal h1 { font-size: var(--step-head); margin-bottom: 1rem; }
.legal .updated { color: var(--muted); margin-bottom: 2.5rem; }
.legal .intro { font-size: var(--step-lead); line-height: 1.45; margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 3rem 0 1rem; }
.legal h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; margin: 1.75rem 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal .callout { background: var(--surface); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.legal .callout p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 100px); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.5rem; padding: 2rem var(--margin) 4rem; }
.notfound h1 { font-size: clamp(5rem, 1rem + 22vw, 21rem); letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap; }
.notfound p { font-size: var(--step-lead); line-height: 1.4; max-width: 28ch; }
.notfound .langs { display: flex; gap: 1.5rem; font-size: var(--step-small); }
.o-window { display: inline-block; vertical-align: baseline; position: relative; width: 0.68em; height: 0.68em; margin: 0 0.02em; border-radius: 50%; overflow: hidden; background: var(--accent); }
.o-mark { position: absolute; left: 19%; top: 17%; width: 62%; height: auto; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap h2, .cap h3 { grid-column: 1 / span 6; }
  .cap > p, .cap > div { grid-column: 7 / -1; }
  .cap:not(.cap--head) h3 { grid-column: 1 / -1; margin-bottom: 1.25rem; }
  .cap-art { grid-column: 1 / span 5; }
  .cap:not(.cap--head) > p { grid-column: 6 / -1; }
  .product-logo { grid-column: 1 / span 5; }
  .product > div { grid-column: 6 / -1; }
  .about-text { grid-column: 1 / span 8; }
  .about-photo { grid-column: 9 / -1; }
  .review--juliusbaer { display: flex; }
  .review--juliusbaer p { margin-top: auto; align-self: auto; }
  .review--unicef, .review--ywca { grid-column: span 6; }
  .review--southorn, .review--goldenage { grid-column: span 6; }
  .story { columns: 1; text-align: left; }
  .qa h2, .qa h3 { grid-column: 1 / span 6; }
  .qa p { grid-column: 7 / span 6; }
  .brief-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview { grid-column: 1 / -1; }
  .brief-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .close-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 699px) {
  /* the photos sit above the motto as a 2x2 grid */
  .hero { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: 2rem; }
  .hero-board { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; container-type: normal; }
  .hero-shot { position: static; width: auto; aspect-ratio: 1; }
  .hero-title { font-size: clamp(3.25rem, 15vw, 5.5rem); }
  .hero-lead { max-width: none; }
  .stepped span + span { padding-left: 2rem; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall li { min-height: 6.25rem; }
  .logo { --logo-scale: 0.78; }
  .cap { display: block; }
  .cap + .cap { margin-top: 5rem; }
  .cap h2, .cap h3 { font-size: clamp(2.5rem, 11vw, 3.5rem); margin-bottom: 0.6rem; }
  .cap > p, .cap > div { max-width: none; }
  .cap-art { aspect-ratio: 16 / 9; margin: 1.25rem 0 1.25rem; }
  .product-logo { aspect-ratio: 16 / 9; margin: 1.25rem 0; }
  .product-logo img { width: auto; height: 62%; }
  .about { display: block; }
  .about-photo { margin-top: 2.5rem; aspect-ratio: 4 / 3; }
  .review-grid { display: block; }
  .review { min-height: 0; margin-bottom: 0.75rem; }
  .review--juliusbaer .review-logo { height: 2.75rem; }
  .review { padding: 1.5rem 1.25rem 1.75rem; }
  .review--juliusbaer p { font-size: var(--step-lead); line-height: 1.35; }
  .qa h2, .qa h3, .qa p { grid-column: 1 / -1; }
  .qa p { margin-top: 0.75rem; }
  .brief-groups { grid-template-columns: 1fr; }
  .brief-actions .button { width: 100%; }
  .contact { min-height: 86svh; }
  .contact-mail { font-size: clamp(2rem, 10.5vw, 3.5rem); }
  .contact-meta { flex-direction: column; align-items: start; }
  .close-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 359px) { .qa h2, .qa h3 { font-size: var(--step-lead); } }
/* on a short phone the photos go 3:2 so the motto and its button stay on the first screen; on a very
   short one (split screen, keyboard up) the motto comes first and the photos follow */
@media (max-width: 699px) and (max-height: 700px) { .hero-shot { aspect-ratio: 3 / 2; } }
@media (max-width: 699px) and (max-height: 520px) { .hero { flex-direction: column; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the statement rises out of its own baseline, line by line, once */
  .js .hero-title .line > span { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; }
  .js .hero-title .line:nth-child(1) > span { animation-delay: 150ms; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 260ms; }
  .js .hero-lead, .js .hero-action { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) 480ms forwards; }
  /* the photos open upward one after another while the motto rises */
  .js .hero-shot { clip-path: inset(100% 0 0 0); animation: shot-open 1100ms var(--ease-in-out) forwards; }
  .js .hero-shot--1 { animation-delay: 250ms; }
  .js .hero-shot--2 { animation-delay: 400ms; }
  .js .hero-shot--3 { animation-delay: 550ms; }
  .js .hero-shot--4 { animation-delay: 700ms; }
  .js .o-window { clip-path: circle(0% at 50% 50%); animation: o-open 1100ms var(--ease-in-out) 150ms forwards; }
  .js .o-mark { transform: translateY(70%) scale(0.45); opacity: 0; animation: o-grow 1300ms var(--ease-expo) 650ms forwards; transform-origin: 50% 100%; }

  /* section entrances: added by js/site.js once the element nears the viewport */
  .entering [data-enter]:not(.is-in) { opacity: 0; transform: translateY(24px); }
  [data-enter] { transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .menu.active { animation: menu-in 240ms var(--ease-out); }
  .about-photo[data-enter] { transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out), clip-path 1200ms var(--ease-in-out) 200ms; }
  .about-photo img { transition: transform 1600ms var(--ease-expo) 200ms; }
  .entering .about-photo:not(.is-in) { clip-path: inset(100% 0 0 0); }
  .entering .about-photo:not(.is-in) img { transform: scale(1.08); }

  /* the one loud moment: as a review arrives, its client's colour spreads out from the logo like
     ink (the origin, --ox/--oy, is the logo's centre, set by js/site.js), then the quote and the
     name rise in. Panels already on screen at load are shown finished. */
  .entering .review { background: var(--surface); }
  .entering .review::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brand); clip-path: circle(0px at var(--ox, 3rem) var(--oy, 3rem)); transition: clip-path 1250ms var(--ease-in-out) calc(var(--i, 0) * 80ms + 150ms); }
  .entering .review.is-in::before { clip-path: circle(150% at var(--ox, 3rem) var(--oy, 3rem)); }
  /* once the flood has covered the panel, the panel itself takes the colour, so it never depends on the layer */
  .entering .review.is-in { background-color: var(--brand); transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out), background-color 1ms linear; transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms + 1400ms); }
  .entering .review .review-logo { transition: filter 600ms ease calc(var(--i, 0) * 80ms + 250ms); }
  .entering .review:not(.is-in) .review-logo { filter: var(--logo-rest); }
  .entering .review p, .entering .review cite { transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-expo); }
  .entering .review p { transition-delay: calc(var(--i, 0) * 80ms + 850ms); }
  .entering .review cite { transition-delay: calc(var(--i, 0) * 80ms + 950ms); }
  .entering .review:not(.is-in) p, .entering .review:not(.is-in) cite { opacity: 0; transform: translateY(18px); }
}
@keyframes line-up { to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cap-art img { scale: 1.08; animation: art-drift linear both; animation-timeline: view(); }
    .hero-shot img { scale: 1.1; animation: shot-drift linear both; animation-timeline: view(); }
    .hero-shot--2 img, .hero-shot--4 img { animation-name: shot-drift-fast; }
  }
}
@keyframes art-drift { from { translate: 0 3%; } to { translate: 0 -3%; } }
@keyframes shot-open { to { clip-path: inset(0 0 0 0); } }
@keyframes shot-drift { from { translate: 0 2%; } to { translate: 0 -3%; } }
@keyframes shot-drift-fast { from { translate: 0 4.5%; } to { translate: 0 -4.5%; } }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes o-open { to { clip-path: circle(50% at 50% 50%); } }
@keyframes o-grow { 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes menu-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .logo-wall li::before, .logo { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
