/* Whales — corporate site.
   Brand: Whales brandbook, Section I "About Whales Holding".
   Palette: White #FFFFFF · Light Grey #F5F5F5 · Jet Black #2F2D2E · Imperial Red #F8122E (accent only) · Timberwolf #EADEDA.
   Type: Cygre Medium (titles) / Cygre Book (text). Manrope stands in until Cygre webfonts are licensed.
   Photos: black-and-white, low contrast. Graphics: the square sets the grid (a nod to the Swiss flag);
   icons and photos sit in squares; short lines adjacent to square edges mark accents. */

:root {
  --ink: #2f2d2e;
  --ink-2: #5a5758;
  --muted: #8e8a8b;
  --line: #e4e1e1;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --wolf: #eadeda;
  --red: #f8122e;
  --red-dark: #d60c25;
  --night: #1f1d1e;
  --line-dark: #454243;
  --on-dark-2: #b3aeaf;

  --display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 0; }
.red { color: var(--red); }

/* Section label: red square, label, rule, index on the right */
.label {
  display: flex; align-items: center; gap: 12px;
  font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
}
.label::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .18; }
.label .idx { order: 2; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .04em; }
.label .idx::before { content: "/"; }

.sq { width: 8px; height: 8px; background: var(--red); flex: none; display: inline-block; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  font: 600 15px/1 var(--text); text-decoration: none; border: 1px solid var(--ink);
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.arrow { display: inline-block; transition: transform .15s; }
a:hover > .arrow { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; gap: 8px; font: 600 15px/1.3 var(--text); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--red); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 76px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--ink); }
.logo img { width: 40px; height: auto; }
.logo span { font: 700 19px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
footer .logo { color: #fff; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; bottom: -17px; width: 18px; height: 3px; background: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { height: 42px; padding: 0 18px; font-size: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu > a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.mobile-menu > a span { font: 600 12px/1 var(--text); color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- Photos: black-and-white, low contrast ---------- */
.photo { position: relative; overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9) brightness(1.04); }

/* ---------- Home hero (dark) ---------- */
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: var(--on-dark-2); }
.hero { position: relative; overflow: hidden; }
.hero::before { /* square module grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center;
  padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px);
}
.origin { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px; color: var(--on-dark-2); }
.hero h1 .soft { color: var(--on-dark-2); }
.hero .lead { margin: 28px 0 40px; }

/* Photo inside a square, with a red square and short lines on its edges */
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-visual .photo { aspect-ratio: 1; }
.hero-visual .photo img { filter: grayscale(1) contrast(.85) brightness(.95); }
.hero-visual::before { content: ""; position: absolute; z-index: 2; left: -28px; bottom: -28px; width: 112px; height: 112px; background: var(--red); }
.hero-visual::after { content: ""; position: absolute; z-index: 2; right: -1px; top: 48px; width: 4px; height: 72px; background: #fff; }
.hero-visual .tick { position: absolute; z-index: 2; top: -18px; right: 48px; width: 64px; height: 3px; background: var(--red); }
.hero-visual figcaption { position: absolute; z-index: 3; left: 104px; bottom: 16px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--wolf); position: relative; overflow: hidden; }
.page-head::after { /* red square anchored to the bottom edge */
  content: ""; position: absolute; right: var(--gutter); bottom: 0; width: 72px; height: 72px; background: var(--red);
}
.page-head .wrap { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-head h1 { margin: 28px 0 24px; max-width: 14em; font-size: clamp(40px, 5.6vw, 76px); }
.page-head .lead { color: var(--ink-2); }
.page-head .label::after { opacity: .25; }

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 10vw, 128px) 0; }
section.block.tight { padding-top: 0; }
.mist { background: var(--mist); }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; margin: 32px 0 56px; }
.sec-head .lead { margin: 0; }
.sec-foot { margin-top: 40px; }

/* ---------- Product tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile-card {
  position: relative; background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; min-height: 300px; transition: background .2s;
}
.tile-card::before { content: ""; position: absolute; left: -1px; top: 32px; width: 3px; height: 0; background: var(--red); transition: height .2s; }
.tile-card:hover::before { height: 56px; }
.tile-card .mark { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; }
.tile-card .mark img { width: 100%; height: 100%; object-fit: contain; }
.tile-card h3 { margin-top: 14px; }
.tile-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tile-card .go { margin-top: auto; font: 600 14px/1 var(--text); display: flex; gap: 8px; align-items: center; color: var(--ink); }
.tile-card .go small { font-weight: 500; color: var(--muted); }
.tile-card:hover .go { color: var(--red); }
.tile-card:hover .arrow { transform: translateX(3px); }
.tile-card.idea { background: var(--ink); color: #fff; }
.tile-card.idea p { color: var(--on-dark-2); }
.tile-card.idea .go { color: #fff; }
.tile-card.idea .mark { background: var(--red); color: #fff; font: 600 30px/1 var(--display); }

/* ---------- Mission / values ---------- */
.mission { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.quote { font: 600 clamp(28px, 3.4vw, 44px)/1.15 var(--display); letter-spacing: -0.035em; margin: 0; }
.quote::before { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-bottom: 28px; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); margin-top: 64px; }
.value { padding: 24px 20px 8px 0; }
.value + .value { padding-left: 20px; border-left: 1px solid var(--line); }
.value .n { font: 600 13px/1 var(--text); color: var(--red); font-variant-numeric: tabular-nums; }
.value h3 { margin: 18px 0 10px; font-size: 19px; }
.value p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--ink); }
.year { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.year .y { font: 600 clamp(48px, 6vw, 88px)/.9 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--wolf); }
.dark .year .y { color: #4a4748; }
.year.now .y { color: var(--red); }
.year h3 { font-size: 24px; letter-spacing: -0.025em; }
.year .note { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }
.year ul { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.year li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.year li:first-child { border-top: 0; padding-top: 0; }
.year li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--ink); }
.year li:first-child::before { top: 9px; }
.year.now li::before { background: var(--red); }
.dark .year { border-bottom-color: var(--line-dark); }
.dark .year li { border-top-color: var(--line-dark); }
.dark .year li::before { background: #fff; }
.dark .year .note { color: var(--on-dark-2); }
.dark .timeline { border-top-color: rgba(255,255,255,.9); }

/* Compact timeline used on the home page */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.9); }
.steps-row > div { padding: 28px 28px 0 0; }
.steps-row > div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.steps-row .y { font: 600 15px/1 var(--text); color: var(--red); font-variant-numeric: tabular-nums; }
.steps-row h3 { margin: 16px 0 10px; font-size: 24px; }
.steps-row p { margin: 0; color: var(--on-dark-2); font-size: 15.5px; }

/* ---------- Group (locations) ---------- */
.group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.place { background: #fff; padding: 28px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; align-content: start; }
.place .flag { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--mist); font: 600 12px/1 var(--text); letter-spacing: .04em; }
/* Flag tones: each tile is a pale version of the country's flag, so the code stays readable */
.place .flag { color: var(--ink); font-weight: 700; text-shadow: 0 0 4px #fff, 0 0 2px #fff; }
.place .flag.cz { background:
  linear-gradient(to bottom right, #c3d0df 50%, transparent 50%) left top / 50% 50% no-repeat,
  linear-gradient(to top right, #c3d0df 50%, transparent 50%) left bottom / 50% 50% no-repeat,
  linear-gradient(#fff 50%, #f6c9cb 50%); }
.place .flag.ae { background:
  linear-gradient(to right, #f5c6c9 25%, transparent 25%),
  linear-gradient(#c4e2cf 33.3%, #fff 33.3% 66.6%, #d5d4d4 66.6%); }
.place .flag.gb { background:
  linear-gradient(#f3c5cb, #f3c5cb) center / 100% 18% no-repeat,
  linear-gradient(#f3c5cb, #f3c5cb) center / 18% 100% no-repeat,
  linear-gradient(#fff, #fff) center / 100% 34% no-repeat,
  linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
  #c5cde0; }
.place .flag.cy { background:
  radial-gradient(ellipse 34% 18% at 50% 42%, #f2d3ad 92%, transparent 100%),
  linear-gradient(#cfe3cf, #cfe3cf) 50% 74% / 44% 3px no-repeat,
  #fff; box-shadow: inset 0 0 0 1px var(--line); }
.place .flag.us { background:
  linear-gradient(#c9cfe0, #c9cfe0) left top / 46% 54% no-repeat,
  repeating-linear-gradient(#f6cdd2 0 7.7%, #fff 7.7% 15.4%); }
.place .flag.ca { background:
  radial-gradient(circle at 50% 50%, #f6c3c5 16%, transparent 17%),
  linear-gradient(to right, #f6c3c5 25%, #fff 25% 75%, #f6c3c5 75%); }
.place .flag.uy { background:
  radial-gradient(circle at 24% 26%, #f8e2a8 15%, transparent 16%),
  linear-gradient(#fff, #fff) left top / 48% 56% no-repeat,
  repeating-linear-gradient(#fff 0 11.1%, #cfd9ec 11.1% 22.2%); }
.place.hq .flag { background: var(--red); color: #fff; }
.place h3 { font-size: 18px; align-self: end; }
.place p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Products page ---------- */
.product-row { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.product-row:first-of-type { border-top: 1px solid var(--ink); }
.product-row .side { display: flex; flex-direction: column; gap: 20px; }
.product-row .mark { width: 120px; height: 120px; display: grid; place-items: center; overflow: hidden; }
.product-row .mark img { width: 100%; height: 100%; object-fit: contain; }
.product-row .kind { font: 600 12px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-row h2 { font-size: clamp(32px, 3.6vw, 48px); }
.product-row .body .lead { margin-bottom: 28px; }
.points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.points li { padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.points li::before { content: ""; position: absolute; left: 0; top: 23px; width: 7px; height: 7px; background: var(--red); }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.person .photo { aspect-ratio: 1; margin-bottom: 16px; }
.person .photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--red); transition: width .25s; }
.person:hover .photo::after { width: 48px; }
.person h3 { font-size: 18px; }
.person p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.people.lead-team { grid-template-columns: repeat(4, 1fr); }
.people.lead-team .person h3 { font-size: 21px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 1; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery figure.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery .photo { position: absolute; inset: 0; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: #fff; color: var(--ink);
  font: 600 12.5px/1 var(--text); padding: 8px 10px 8px 22px;
}
.gallery figcaption::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--red); }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 40vw, 520px); }
.mosaic .photo:first-child { grid-row: span 2; }
.mosaic .photo:nth-child(4) { grid-column: span 2; }

/* ---------- Careers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split > div { background: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split > div.ink { background: var(--ink); color: #fff; }
.split > div.ink p { color: var(--on-dark-2); }
.split h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.split p { margin: 0 0 8px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.channel { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-height: 240px; position: relative; }
.channel::before { content: ""; position: absolute; left: -1px; top: 32px; width: 3px; height: 40px; background: var(--red); }
.channel .k { font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.channel h3 { font-size: 22px; }
.channel p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.channel b { margin-top: auto; font: 600 17px/1.3 var(--display); display: flex; gap: 8px; }
a.channel:hover b { color: var(--red); }
a.channel:hover .arrow { transform: translateX(3px); }

/* ---------- Closing CTA ---------- */
.cta { padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: 0; top: 0; width: clamp(72px, 9vw, 128px); height: clamp(72px, 9vw, 128px); background: var(--red); }
.cta h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; max-width: 12em; margin: 28px 0 24px; }
.cta .lead { margin-bottom: 36px; }

/* ---------- Footer ---------- */
footer.site { background: var(--night); color: var(--on-dark-2); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 40px; padding: 64px 0 48px; }
.foot-brand p { margin: 20px 0 16px; max-width: 22em; }
footer h4 { font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.foot-bottom nav { flex-direction: row; gap: 24px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal .updated { margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
.hero-grid > *, .sec-head > *, .mission > *, .product-row > * { min-width: 0; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 1101px) { .mobile-menu { display: none !important; } }
@media (max-width: 1024px) {
  .hero-grid, .sec-head, .mission, .product-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { justify-self: start; max-width: 420px; margin-left: 28px; }
  .tiles, .group, .channels { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .value:nth-child(4) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+4) { border-top: 1px solid var(--line); }
  .year { grid-template-columns: 1fr 2fr; gap: 24px 40px; }
  .year ul { grid-column: 1 / -1; }
  .people, .people.lead-team { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 64px; gap: 12px; }
  .logo img { width: 34px; }
  .logo span { font-size: 17px; }
  .nav-actions .btn { height: 38px; font-size: 13px; padding: 0 12px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  section.block, .cta { padding: 56px 0; }
  .sec-head { margin: 24px 0 32px; gap: 16px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  .hero-grid { padding-top: 40px; padding-bottom: 64px; gap: 48px; }
  .origin { font-size: 11px; margin-bottom: 20px; }
  .hero .lead { margin: 20px 0 28px; font-size: 17px; }
  .hero-visual { margin-left: 20px; width: calc(100% - 20px); }
  .hero-visual::before { left: -20px; bottom: -20px; width: 80px; height: 80px; }
  .hero-visual figcaption { left: 72px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }

  .page-head::after { width: 40px; height: 40px; }
  .page-head h1 { font-size: 40px; margin: 20px 0 16px; }

  .tiles, .group, .channels, .split { grid-template-columns: 1fr; }
  .tile-card { min-height: 0; padding: 24px; }
  .values { grid-template-columns: 1fr; margin-top: 40px; }
  .value, .value + .value, .value:nth-child(4) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .value:first-child { border-top: 0; }
  .year { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .year .y { font-size: 52px; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row > div, .steps-row > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .product-row { padding: 40px 0; gap: 24px; }
  .product-row .mark { width: 88px; height: 88px; }
  .points { grid-template-columns: 1fr; }
  .points li { padding-right: 0; }
  .people, .people.lead-team { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .person h3, .people.lead-team .person h3 { font-size: 16px; }
  .person p { font-size: 13px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.tall { grid-row: span 1; aspect-ratio: 1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; height: 520px; }
  .mosaic .photo:first-child { grid-row: span 1; grid-column: span 2; }
  .mosaic .photo:nth-child(4) { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
  .cta h2 { font-size: 38px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  h1, .page-head h1 { font-size: 38px; }
  h2 { font-size: 29px; }
  .logo span { font-size: 16px; }
}
