/* =========================================================
   KOMET RACING TYRES — Endless Grip
   Layout concept: same architecture as the new iamekarting.com
   (expanded uppercase type, full-bleed imagery, hairline structure),
   moved into the Komet world: tyre black, studio white for product
   shots, Komet yellow as the only accent, slanted display type that
   echoes the wordmark.
   ========================================================= */

:root {
  --ink: #0b0b0c;           /* tyre black */
  --ink-2: #161719;
  --carbon: #26272b;        /* hairlines on black */
  --paper: #ffffff;         /* studio white (product shots are on white) */
  --mist: #f1f2f3;
  --line: #dadbde;
  --muted: #676a72;
  --on-dark: #e6e7ea;
  --on-dark-muted: #9a9ca4;
  --yellow: #feed00;        /* Komet yellow, sampled from the wordmark */
  --yellow-deep: #e3d300;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 4px var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, .eyebrow, .nav a, .btn, .link, .display { font-family: var(--f-display); }
.display {
  font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(40px, 15.6cqi, 128px); line-height: .86; letter-spacing: -.02em; margin: 0; white-space: nowrap;
}
h1 { font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6.2vw, 92px); line-height: .92; margin: 0; text-wrap: balance; }
h2 { font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 58px); line-height: .95; margin: 0; text-wrap: balance; }
h3 { font-stretch: 110%; font-weight: 700; text-transform: uppercase; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.1; margin: 0; letter-spacing: .01em; }
.slant { font-style: italic; font-weight: 900; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-stretch: 110%; color: var(--muted); margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 60ch; margin: 0; color: var(--ink-2); }
p { margin: 0; max-width: 66ch; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
h1, h2 { min-width: 0; overflow-wrap: anywhere; }
.display { min-width: 0; }

/* Yellow marker: the accent on light grounds is a fill, never yellow text */
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding-inline: .06em; }
.y { color: var(--yellow); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 150px); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--dark .lead, .section--dark p { color: var(--on-dark); }
.stack { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: clamp(32px, 4vw, 56px); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: end; }
.split > .col-l { grid-column: 1 / span 7; min-width: 0; }
.split > .col-r { grid-column: 8 / span 5; min-width: 0; }
@media (max-width: 860px) { .split > .col-l, .split > .col-r { grid-column: 1 / -1; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-stretch: 112%;
  border: 1px solid currentColor; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--solid:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-stretch: 112%;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .45s var(--ease);
}
.link:hover { background-size: 30% 1px; }
.arrow { width: 22px; height: 10px; flex: none; transition: transform .35s var(--ease); }
.link:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.header__bar { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.header.is-solid { background: var(--ink); box-shadow: 0 1px 0 var(--carbon); }
.header.is-hidden { transform: translateY(-100%); }
.header--light { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: block; }
.logo img { height: 34px; width: auto; }
.logo .logo__dark { display: none; }
.header--light .logo .logo__light { display: none; }
.header--light .logo .logo__dark { display: block; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; justify-self: start; height: 44px;
  font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .22em; font-stretch: 112%; text-transform: uppercase; }
.burger { width: 26px; height: 12px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.burger::before { top: 0; } .burger::after { top: 10px; right: 8px; }
.nav { justify-self: end; display: flex; gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-stretch: 110%; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav a:not(.nav__keep) { display: none; } .menu-btn .menu-btn__label { display: none; } .logo img { height: 26px; } }

/* ---------- Full-screen menu ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden; }
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; max-width: var(--max); width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.drawer__body { max-width: var(--max); width: 100%; margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-content: center; overflow-y: auto; }
.drawer__main { display: grid; gap: 4px; }
.drawer__main a { font-family: var(--f-display); font-stretch: 122%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; color: #5b5d63; transition: color .3s, padding-left .45s var(--ease); }
.drawer__main a:hover, .drawer__main a[aria-current="page"] { color: var(--yellow); padding-left: 14px; }
.drawer__side { display: grid; gap: 28px; align-content: start; }
.drawer__side h4, .footer h4 { margin: 0 0 12px; font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.drawer__side ul, .footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.drawer__side a { font-size: 16px; color: var(--on-dark); }
.drawer__side a:hover { color: var(--yellow); }
.drawer__foot { max-width: var(--max); width: 100%; margin-inline: auto; padding: 24px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-muted); border-top: 1px solid var(--carbon); }
.close-btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.close-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .drawer__body { grid-template-columns: 1fr; align-content: start; padding-top: 16px; gap: 36px; } }

/* ---------- Home hero: the tyre is the thesis ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__grid { max-width: var(--max); margin-inline: auto; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) var(--gutter) clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(16px, 3vw, 48px); align-items: center; min-height: min(100svh, 940px); }
.hero__copy { container-type: inline-size; min-width: 0; display: grid; gap: clamp(22px, 2.6vw, 36px); position: relative; z-index: 2; }
.hero__copy .lead { color: var(--on-dark); }
.hero__tyre { position: relative; display: grid; place-items: center; }
.hero__tyre img { width: min(100%, 640px); height: auto; filter: drop-shadow(0 50px 60px rgba(0,0,0,.65)); animation: roll 1.6s var(--ease) both; }
.hero__tyre::before { content: ""; position: absolute; inset: 8% 4% 14%; background: radial-gradient(closest-side, rgba(254,237,0,.16), rgba(254,237,0,0)); z-index: -1; }
.hero__ghost { position: absolute; right: -2vw; bottom: -3vw; z-index: -1; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(140px, 24vw, 400px); line-height: .8; color: #151618; letter-spacing: -.04em; pointer-events: none; user-select: none; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--carbon); padding-top: 18px; font-size: 13px; color: var(--on-dark-muted); }
.hero__meta b { font-family: var(--f-mono); font-weight: 500; color: var(--paper); margin-right: 8px; }
@keyframes roll { from { transform: translateX(18%) rotate(10deg); opacity: .001; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; min-height: 0; } .hero__tyre { order: -1; } .hero__tyre img { width: min(78%, 420px); } }

/* Page hero (light, compact) */
.phero { padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.phero .wrap { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.phero--dark { background: var(--ink); color: var(--paper); border-bottom: 0; }
.phero--dark .lead { color: var(--on-dark); }
.phero--dark .eyebrow { color: var(--on-dark-muted); }

.rise { animation: rise 1s var(--ease) both; }
.rise-2 { animation-delay: .12s; } .rise-3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(24px); opacity: .001; } to { transform: none; opacity: 1; } }

/* ---------- Tyre cards ---------- */
.range-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tyres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tyres--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tyres--5 > .tyre { grid-column: span 2; }
.tyres--5 > .tyre:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1000px) { .tyres, .tyres--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tyres--5 > .tyre, .tyres--5 > .tyre:nth-child(4) { grid-column: auto; } }
@media (max-width: 600px) { .tyres, .tyres--5 { grid-template-columns: 1fr; } }
.tyre { display: grid; grid-template-rows: 26px auto 1fr; gap: 16px; background: var(--paper); padding: 22px 22px 24px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .35s var(--ease); }
.tyre:hover { border-color: var(--ink); }
.section--mist .tyre { border-color: transparent; }
.section--mist .tyre:hover { border-color: var(--ink); }
.tyre__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tyre__img { aspect-ratio: 1; max-width: 100%; overflow: hidden; }
.tyre__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.tyre:hover .tyre__img img { transform: scale(1.06) rotate(-1.5deg); }
.tyre__foot { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; align-content: start; }
.tyre__name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.tyre__name h3 { font-size: 30px; font-style: italic; font-weight: 900; font-stretch: 122%; }
.tyre__sizes { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: right; line-height: 1.5; }
.tyre__foot p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.chip--slick { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--wet { color: var(--ink); background: var(--paper); }
.chip--y { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tag { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Class matrix: which tyre for which class ---------- */
.matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.matrix th { text-align: left; font-family: var(--f-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; padding: 0 16px 14px 0; border-bottom: 1px solid var(--paper); }
.matrix td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--carbon); vertical-align: middle; }
.matrix .cls { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(18px, 2vw, 26px); }
.matrix .cls small { display: block; font-family: var(--f-body); font-weight: 400; font-stretch: 100%; text-transform: none; font-size: 14px; color: var(--on-dark-muted); margin-top: 4px; }
.matrix a.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--carbon); font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 120%; font-size: 20px; transition: border-color .3s, background .3s, color .3s; }
.matrix a.pill span { font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 11px; color: var(--on-dark-muted); letter-spacing: .06em; }
.matrix a.pill:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.matrix a.pill:hover span { color: var(--ink); }
.matrix .evt { font-size: 14px; color: var(--on-dark-muted); }
.table-scroll { overflow-x: auto; }

/* ---------- Technology band ---------- */
.band { position: relative; isolation: isolate; color: var(--paper); background: var(--ink); overflow: hidden; }
.band__img { position: absolute; inset: 0; z-index: -2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.8) 45%, rgba(11,11,12,.5) 100%); }
.band .wrap { padding-block: clamp(80px, 11vw, 168px); display: grid; gap: 40px; }
.band .lead { color: var(--on-dark); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); max-width: 1100px; }
.pillars li { padding: 22px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.pillars b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.pillars b::before { content: ""; display: block; width: 28px; height: 3px; background: var(--yellow); margin-bottom: 14px; transform: skewX(-20deg); }
.pillars span { font-size: 15px; color: var(--on-dark); line-height: 1.5; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Generations timeline ---------- */
.gens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.gen { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); padding-left: 28px; }
.gen:first-child { padding-left: 0; }
.gen:last-child { border-right: 0; }
.gen__n { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(56px, 7vw, 104px); line-height: .85; letter-spacing: -.03em; color: #c9cbcf; }
.gen--now .gen__n { color: var(--ink); }
.gen__when { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.gen p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .gens { grid-template-columns: 1fr; } .gen { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; } }

/* ---------- Split feature (Mastertent etc.) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--rev .feature__media { order: 2; }
.feature__media { margin: 0; overflow: hidden; background: var(--ink-2); max-width: 100%; }
.feature__media img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
@media (max-width: 860px) { .feature, .feature--rev { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

/* ---------- Tyre detail page ---------- */
.pd { padding-top: var(--header-h); background: var(--paper); }
.pd__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(calc(100svh - var(--header-h)), 860px); }
.pd__media { position: relative; background: var(--paper); display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); border-right: 1px solid var(--line); overflow: hidden; }
.pd__media img { width: min(100%, 680px); height: auto; position: relative; z-index: 1; }
.pd__ghost { position: absolute; left: -1vw; bottom: -2.4vw; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(130px, 19vw, 320px); line-height: .8; color: #f5f6f7; letter-spacing: -.04em; pointer-events: none; }
.pd__body { padding: clamp(36px, 5vw, 80px) var(--gutter); display: grid; gap: 28px; align-content: center; }
.pd__title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pd__title h1 { font-style: italic; font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 8vw, 124px); line-height: .85; }
@media (max-width: 960px) { .pd__grid { grid-template-columns: 1fr; min-height: 0; } .pd__media { border-right: 0; border-bottom: 1px solid var(--line); } }

.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.specs div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-family: var(--f-display); font-weight: 600; }
.specs dd { margin: 0; font-family: var(--f-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.specs .wide { grid-column: 1 / -1; }
.specs dd.txt { font-family: var(--f-body); font-size: 16px; }

/* Size notation explainer */
.size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--carbon); border: 1px solid var(--carbon); }
.size div { background: var(--ink); padding: 24px; display: grid; gap: 6px; align-content: start; }
.size b { font-family: var(--f-mono); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); color: var(--yellow); line-height: 1; }
.size span { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--paper); }
.size small { font-size: 14px; color: var(--on-dark-muted); }
.size-code { font-family: var(--f-mono); font-size: clamp(40px, 7vw, 104px); letter-spacing: -.02em; line-height: 1; color: var(--paper); white-space: nowrap; }
.size-code i { font-style: normal; color: var(--on-dark-muted); }
@media (max-width: 700px) { .size { grid-template-columns: 1fr; } }

/* Pairing (dry ↔ wet) */
.pair { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s; }
.pair:hover { border-color: var(--ink); }
.pair img { width: 160px; height: 160px; object-fit: contain; }
.pair h3 { font-style: italic; font-weight: 900; font-size: 34px; font-stretch: 122%; }
@media (max-width: 640px) { .pair { grid-template-columns: 96px minmax(0, 1fr); } .pair img { width: 96px; height: 96px; } .pair .link { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Comparison table ---------- */
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp th { text-align: left; font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.cmp td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tbody tr { transition: background .25s; }
.cmp tbody tr:hover { background: var(--mist); }
.cmp .m a { font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 122%; font-size: 22px; }
.cmp .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.cmp .u { font-size: 14px; color: var(--muted); }

/* Filters */
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button { height: 40px; padding: 0 16px; border: 1px solid var(--line); font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: all .25s; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter button:hover { border-color: var(--ink); }

/* Technology page blocks */
.tech { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.tech h3 { font-size: clamp(22px, 2.2vw, 32px); }
.tech__k { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-bottom: 10px; display: block; }
.tech p { color: var(--ink-2); }
@media (max-width: 760px) { .tech { grid-template-columns: 1fr; } }
.tall { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.tall figure { margin: 0; background: var(--ink-2); max-width: 100%; overflow: hidden; }
.tall figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .tall { grid-template-columns: 1fr; } .tall figure { aspect-ratio: 4 / 3; } }

/* Steps (partner request) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { padding: 24px 24px 0 0; display: grid; gap: 8px; counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.steps b { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-stretch: 112%; letter-spacing: .03em; }
.steps span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; row-gap: 20px; } }

/* ---------- Contact & forms ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.contact dl { margin: 0; display: grid; gap: 28px; align-content: start; }
.contact dt { font-family: var(--f-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact dd { margin: 0; font-size: 18px; }
.contact dd a { border-bottom: 1px solid var(--line); }
.contact dd a:hover { border-color: var(--ink); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; border-radius: 0; -webkit-appearance: none; appearance: none; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 2px 0 var(--yellow); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 16px 20px; border-left: 4px solid var(--yellow); background: var(--mist); font-size: 15px; }
@media (max-width: 860px) { .contact, .form { grid-template-columns: 1fr; } }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--carbon); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social--light a { border-color: var(--line); }

/* CTA strip */
.strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.strip h2 { font-style: italic; font-weight: 900; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c4c6cc; padding-top: clamp(64px, 8vw, 112px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--carbon); }
.footer__brand img.komet { height: 44px; width: auto; }
.footer__claim { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 3vw, 44px); line-height: .95; color: var(--paper); margin-top: 26px; }
.footer__claim span { color: var(--yellow); }
.footer ul { font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.endorse { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--f-display); color: var(--on-dark-muted); }
.endorse img { height: 22px; width: auto; }
.footer__legal { padding-block: 28px; font-size: 12px; line-height: 1.7; color: #7d8089; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__legal p { max-width: 90ch; }
.footer__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__top > :first-child { grid-column: 1 / -1; } }

/* Legal */
.legal { display: grid; gap: clamp(36px, 5vw, 64px); max-width: 76ch; }
.legal__block { display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__block p { color: var(--ink-2); }
.legal__block a { text-decoration: underline; text-underline-offset: 3px; }

/* Reveal (content visible without JS) */
.js .reveal { transform: translateY(32px); opacity: .001; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js .reveal.is-in { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; opacity: 1; }
}
@media (max-width: 480px) { h1 { font-size: clamp(34px, 10vw, 44px); } }
