/* Layout: sticky glass nav, oversized type hero, bento grid of brand tiles in each brand's own colour; brand pages open on a full-bleed colour band. */
:root {
  --paper: #f4f4f1;
  --card: #ffffff;
  --ink: #0e1116;
  --ink-2: #4a515c;
  --line: #dcdcd6;
  --soft: #e9e9e4;
  --display: "Geologica", "Commissioner", "Segoe UI", system-ui, sans-serif;
  --body: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --r: 28px;
  --r-sm: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .14em; }
.logo small { font-weight: 400; font-size: 11px; letter-spacing: .3em; color: var(--ink-2); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) { .nav ul .hide-sm { display: none; } }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
.display {
  font-size: clamp(46px, 9.4vw, 148px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.045em;
}
.display .thin { font-weight: 250; }
h2.section-title { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.lead { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin: 0; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.hero .display { margin: 18px 0 clamp(28px, 4vw, 44px); max-width: 12ch; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } }
.rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.rail a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: transform .25s, border-color .25s;
}
.rail a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--b); }
.rail a:hover { transform: translateY(-2px); border-color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; margin: 0; align-items: end; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--ink-2); max-width: 16ch; line-height: 1.35; }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, auto); } }

/* ---------- Sector + bento ---------- */
.sector { padding-block: clamp(40px, 6vw, 80px); }
.sector-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sector-head .lead { max-width: 44ch; font-size: 17px; }
.bento { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-auto-rows: minmax(270px, auto); gap: 16px; }
.bento .tile:first-child { grid-row: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .tile:first-child { grid-row: auto; }
}

.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r);
  background: var(--b); color: var(--bi);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  min-height: 270px;
}
.tile::after {
  content: ""; position: absolute; z-index: -1; inset: auto -20% -55% auto;
  width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bi) 22%, transparent), transparent 65%);
  transition: transform .6s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--b) 70%, #000); }
.tile:hover::after { transform: scale(1.15); }
.tile .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.tile .tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tile h3 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: auto; }
.tile:first-child h3 { font-size: clamp(36px, 5vw, 72px); }
.tile p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .88; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bi) 14%, transparent); }
.arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bi); color: var(--b);
  font-size: 20px; transition: transform .35s;
}
.tile:hover .arrow { transform: rotate(-45deg); }

/* Logo plate: white chip so every original logo keeps its colours */
.plate {
  display: inline-grid; place-items: center;
  height: 56px; min-width: 56px; max-width: 220px; padding: 10px 18px;
  border-radius: 14px; background: #fff;
}
.plate img { height: 32px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.plate .wm { display: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--wm, #0e1116); white-space: nowrap; }
.plate.no-logo img { display: none; }
.plate.no-logo .wm { display: block; }
.plate.lg { height: 76px; padding: 14px 24px; border-radius: 18px; }
.plate.lg img { height: 44px; max-width: 220px; }
.plate.lg .wm { font-size: 28px; }

/* ---------- Ecosystem ---------- */
.eco { padding-block: clamp(48px, 7vw, 96px); }
.eco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 860px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.eco-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.eco-card p { margin: 0; color: var(--ink-2); }
.flow { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: center; }
.node { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--b); color: var(--bi); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.branches { display: flex; flex-direction: column; gap: 10px; padding-left: 26px; border-left: 2px dashed var(--line); }
.branches .node { position: relative; justify-self: start; align-self: flex-start; }
.branches .node::before { content: ""; position: absolute; left: -28px; top: 50%; width: 26px; border-top: 2px dashed var(--line); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #e9eaec; margin-top: clamp(40px, 6vw, 80px); }
footer.site .wrap { padding-block: clamp(48px, 7vw, 88px) 40px; display: grid; gap: 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }
.foot-top .big { font-family: var(--display); font-size: clamp(34px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-links h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #9aa1ab; font-weight: 600; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { text-decoration: none; color: #e9eaec; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #2a2f37; font-size: 14px; color: #9aa1ab; }

/* ---------- Brand page ---------- */
.b-hero { background: var(--b); color: var(--bi); position: relative; overflow: hidden; isolation: isolate; }
.b-hero::after {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%;
  width: min(70vw, 820px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bi) 18%, transparent), transparent 62%);
}
.b-hero .wrap { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 96px); display: grid; gap: 28px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; opacity: .8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.b-hero .display { font-size: clamp(44px, 8vw, 120px); max-width: 14ch; }
.b-hero .lead { color: inherit; opacity: .9; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--bi); color: var(--b); }
.btn.ghost { border: 1.5px solid color-mix(in srgb, var(--bi) 55%, transparent); color: var(--bi); }
.btn.ghost:hover { background: color-mix(in srgb, var(--bi) 12%, transparent); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: calc(-1 * clamp(28px, 4vw, 48px)) 0 0; position: relative; }
.facts > div { background: var(--card); border-radius: var(--r-sm); padding: 22px 24px; border: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 4px; }
.facts dt { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.block { padding-block: clamp(48px, 6vw, 80px) 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.block-head .lead { font-size: 17px; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .meta { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bd); }
.card .price { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: auto; padding-top: 8px; }
.card .price small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.card.accent { background: var(--b); color: var(--bi); border-color: transparent; }
.card.accent p, .card.accent .meta, .card.accent .price small { color: inherit; opacity: .85; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; }
.card.accent ul { color: inherit; }

.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 600; font-size: 15px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: var(--bi); margin-bottom: 6px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 1.45; padding-block: 14px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 760px) { .ticks { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--soft); }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .card.accent { padding: clamp(26px, 3vw, 40px); gap: 16px; }
.contact .card.accent h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
dl.info { margin: 0; display: grid; gap: 14px; }
dl.info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--soft); }
dl.info div:last-child { border-bottom: 0; padding-bottom: 0; }
dl.info dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
dl.info dd { margin: 0; overflow-wrap: anywhere; }
dl.info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.socials a:hover { border-color: var(--ink); }

.more { padding-block: clamp(56px, 7vw, 96px) 0; }
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
@media (max-width: 1080px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { background: var(--b); color: var(--bi); border-radius: var(--r-sm); padding: 20px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-decoration: none; transition: transform .3s; }
.mini:hover { transform: translateY(-3px); }
.mini strong { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.mini span { font-size: 13px; opacity: .8; }

.note { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }

/* Entry motion: content is visible at rest; this only adds a gentle lift on load */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .rail a, .btn, .mini, .arrow, .tile::after { transition: none; }
}

/* At-a-glance row on brand pages: short text facts, no figures */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: calc(-1 * clamp(28px, 4vw, 48px)) 0 0; position: relative; }
.glance > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.glance dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bd); }
.glance dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
@media (max-width: 760px) { .glance { grid-template-columns: 1fr; } }

/* Group contact in the footer */
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-contact .big { margin: 0 0 22px; }
.foot-contact .eyebrow { color: #9aa1ab; }
.foot-contact .mail { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.02em; color: #fff; text-decoration: none; border-bottom: 1px solid #4a515c; align-self: flex-start; overflow-wrap: anywhere; }
.foot-contact .mail:hover { border-color: #fff; }
