@font-face { font-family: "Libre Franklin"; src: url("fonts/librefranklin-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/sourceserif4-normal.woff2") format("woff2"); font-style: normal; font-weight: 400 600; font-display: swap; }

/* Tokens */
:root {
  --ground: #eceef1;
  --paper: #ffffff;
  --silver: #d3d6de;
  --ink: #11111d;
  --muted: #4a4d5c;
  --night: #11111d;
  --on-night: #f4f5f7;
  --on-night-muted: #b9bcc8;
  --peak-silver: #c9ccd6;

  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 4.9vw, 5.25rem);

  --m: clamp(16px, 2.6vw, 40px);
  --gap: clamp(120px, 12vw, 200px);
  --max: 1440px;

  /* The TRIME mountain: the logo's ridge rises 0.548 per unit of half-width */
  --peak-square: polygon(0 27.4%, 50% 0, 100% 27.4%, 100% 100%, 0 100%);
  --peak-portrait: polygon(0 21.9%, 50% 0, 100% 21.9%, 100% 100%, 0 100%);
  --peak-land: polygon(0 36.5%, 50% 0, 100% 36.5%, 100% 100%, 0 100%);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(17, 17, 29, .12); }
a, button, input, select, textarea, label { touch-action: manipulation; }
body { overflow-x: clip; }
body {
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  color: var(--ink); background: var(--ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--on-night); }
:focus-visible { outline: 3px solid #3d6bd9; outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--paper); padding: 12px 16px; font-family: var(--display); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }

/* Buttons: square, flat, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--display); font-weight: 700; font-size: var(--step-body); letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--ink); color: var(--on-night); }
.btn-ink:hover { background: #2a2b3d; }
.btn-silver { background: var(--peak-silver); color: var(--ink); }
.btn-silver:hover { background: var(--on-night); }
.btn-tone { background: var(--silver); color: var(--ink); }
.btn-tone:hover { background: #c3c7d1; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--on-night); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.bar .mark img { height: 46px; width: auto; }
.bar nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); list-style: none; }
.bar nav a { font-family: var(--display); font-size: var(--step-small); text-decoration: none; color: var(--on-night); padding: 8px 0; position: relative; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar nav a:hover::after, .bar nav a:focus-visible::after { transform: scaleX(1); }
.bar .btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); padding: var(--m); min-height: calc(100svh - 76px); max-width: var(--max); margin-inline: auto; }
.hero-card { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding: clamp(32px, 4.4vw, 72px) clamp(32px, 4.4vw, 72px) clamp(200px, 19vw, 280px); display: flex; flex-direction: column; min-height: 640px; }
.hero-card h1 { font-size: var(--step-display); text-transform: uppercase; max-width: 100%; position: relative; z-index: 1; }
.hero-card .lead { font-size: var(--step-lead); line-height: 1.4; margin-top: 32px; max-width: 36ch; position: relative; z-index: 1; }
.hero-card .btn { margin-top: 40px; align-self: flex-start; position: relative; z-index: 1; }
.hero-peak { position: absolute; left: -25%; bottom: -5%; width: 150%; height: auto; fill: var(--peak-silver); opacity: .95; }
.hero-photo { position: relative; overflow: hidden; clip-path: var(--peak-portrait); background: var(--silver); min-height: 640px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo img.on { opacity: 1; }
.fade-toggle { position: absolute; z-index: 2; right: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; border: 0; cursor: pointer; background: var(--night); color: var(--on-night); font-family: var(--display); font-size: var(--step-small); transition: background-color .2s var(--ease); }
.fade-toggle:hover { background: #2a2b3d; }
html:not(.js) .fade-toggle { display: none; }
.paused .drift { animation-play-state: paused; }
.hero-photo .drift { animation: drift 24s ease-in-out infinite alternate; }

@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Section rhythm */
.sec { padding-block: var(--gap) 0; }
.sec h2 { font-size: var(--step-head); }

/* SIEGENTHAL: square plate, spare text */
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: stretch; min-height: 88svh; }
.plate-photo { position: relative; aspect-ratio: 1; align-self: center; background: var(--paper); clip-path: var(--peak-square); overflow: hidden; }
.plate-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.plate-photo img.fading { opacity: 0; }
.plate-text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: clamp(8px, 4vw, 64px); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.swatches button {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--display); font-size: 1.125rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; transition: color .2s var(--ease);
}
.swatches button .chip { width: 16px; height: 16px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c); transition: transform .2s var(--ease); }
.swatches button:hover { color: var(--ink); }
.swatches button:hover .chip { transform: translateY(-2px); }
.swatches button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.plate-text p { max-width: 34ch; margin-top: 48px; }
.plate-text .fact { margin-top: 20px; font-weight: 600; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cells .btn { min-height: 72px; width: 100%; }

/* KLANG GUARD: object on the mountain */
.stage { position: relative; min-height: 90svh; background: var(--paper); overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; padding-block: clamp(48px, 6vw, 96px); }
.stage-visual { position: absolute; inset: 0; }
.stage-peak { position: absolute; left: 58%; bottom: 0; width: min(118vh, 74vw); aspect-ratio: 2 / 1.096; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--tint, #f2dbe2); transition: background-color .4s ease; }
.stage-object { position: absolute; left: 58%; bottom: 4%; width: min(52vh, 34vw); transform: translateX(-50%); mix-blend-mode: multiply; }
.stage-object img { width: 100%; height: auto; transition: opacity .3s ease; }
.stage-object img.fading { opacity: 0; }
.stage-list { position: relative; z-index: 1; padding-left: var(--m); }
.stage-list h2, .stage-list button { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.15; }
.stage-list h2 { color: var(--muted); margin-bottom: 4px; }
.stage-list ul { list-style: none; }
.stage-list button { background: none; border: 0; cursor: pointer; color: var(--muted); text-align: left; padding: 2px 0; transition: color .2s var(--ease), transform .2s var(--ease); }
.stage-list button:hover { color: var(--ink); transform: translateX(6px); }
.stage-list button[aria-pressed="true"] { color: var(--ink); }
.stage-list .btn { margin-top: 40px; }
.stage-fact { position: relative; z-index: 1; justify-self: end; max-width: 26ch; padding-right: var(--m); align-self: center; font-size: var(--step-body); }
.stage-fact b { display: block; font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 8px; }

/* Sortiment: two-column list with shaped bullets */
.range-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: end; }
.range-intro p { max-width: 44ch; }
.cat { margin-top: 96px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.cat-head h3 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.cat-head span { font-size: var(--step-small); color: var(--muted); }
.items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.item img { width: 64px; height: 64px; clip-path: var(--peak-square); mix-blend-mode: multiply; transition: transform .25s var(--ease); }
.item a { text-decoration: none; }
.item a:hover img, .item a:focus-visible img { transform: translateY(-3px); }
.item-line { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.item-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.item-line .price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item p { color: var(--muted); max-width: 40ch; margin-top: 2px; }
.cat-note { margin-top: 36px; font-weight: 600; }

/* Vertrieb: the mountain as a band */
.ridge { margin-top: var(--gap); background: var(--night); color: var(--on-night); clip-path: polygon(0 27.4vw, 50% 0, 100% 27.4vw, 100% 100%, 0 100%); padding-top: calc(27.4vw + 24px); padding-bottom: clamp(96px, 10vw, 160px); }
.ridge h2 { font-size: var(--step-head); max-width: 16ch; }
.ridge .wrap > p { margin-top: 24px; max-width: 46ch; color: var(--on-night-muted); }
.channels { list-style: none; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.channels li { background: #1c1d2c; padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; transition: background-color .2s var(--ease); }
.channels li:hover { background: #24253a; }
.channels b { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; }
.channels span { color: var(--on-night-muted); }
.channels a { margin-top: auto; font-family: var(--display); font-size: var(--step-small); text-underline-offset: 5px; }

/* Über uns: inset panel, shaped photograph */
.panel { position: relative; overflow: hidden; background: var(--silver); margin: var(--gap) var(--m) 0; min-height: 0; display: grid; grid-template-columns: 63fr 37fr; }
.panel-left { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 56px; }
.panel h2 { font-size: var(--step-head); max-width: 12ch; }
.panel figure { width: min(44vw, 680px); margin-top: auto; margin-bottom: -6%; }
.panel figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--peak-land); }
.panel figcaption { font-size: var(--step-small); color: var(--muted); margin-bottom: 12px; max-width: 34ch; }
.panel-right { padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px) 56px 0; display: flex; flex-direction: column; gap: 56px; }
.panel-right h3 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 12px; }
.panel-right .btn { align-self: flex-start; }

/* Kontakt: the coupon */
.coupon-wrap { padding-block: var(--gap); }
.coupon {
  --notch: 28px;
  position: relative; background: var(--night); color: var(--on-night);
  display: grid; grid-template-columns: 46fr 54fr; max-width: 1180px; margin-inline: auto;
}
.notch { position: absolute; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--ground); left: calc(46% - var(--notch) / 2); }
.notch.t { top: calc(var(--notch) / -2); }
.notch.b { bottom: calc(var(--notch) / -2); }
.coupon-left { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 5px dotted var(--ground); }
.coupon h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem); text-transform: uppercase; max-width: 12ch; }
.coupon-left p { color: var(--on-night-muted); max-width: 34ch; }
.coupon-left a { color: var(--on-night); font-family: var(--display); text-underline-offset: 5px; }
.coupon form { padding: clamp(32px, 4vw, 56px); display: grid; gap: 10px; }
.coupon input, .coupon select, .coupon textarea { width: 100%; min-height: 52px; background: #24253a; border: 0; padding: 14px 16px; color: var(--on-night); font-size: 1rem; border-radius: 0; }
.coupon textarea { min-height: 120px; resize: vertical; }
.coupon select { appearance: none; padding-right: 48px; cursor: pointer; }
.coupon .select { position: relative; display: block; }
.coupon .select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 9px; margin-top: -4px; background: var(--peak-silver); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.coupon ::placeholder { color: var(--on-night-muted); opacity: 1; }
.coupon input:focus-visible, .coupon select:focus-visible, .coupon textarea:focus-visible { outline: 3px solid var(--peak-silver); outline-offset: 0; }
.coupon .btn { width: 100%; margin-top: 6px; }
.coupon .hint { font-size: var(--step-small); color: var(--on-night-muted); }

/* Footer: the mark, built large */
.foot { background: var(--night); color: var(--on-night); padding-top: clamp(56px, 6vw, 96px); padding-bottom: 32px; }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.foot-mark { display: block; width: 100%; height: 34svh; min-height: 200px; }
.foot-mark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.foot h3 { font-size: var(--step-body); letter-spacing: -0.01em; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--on-night); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot a.btn { color: var(--ink); }
.foot a.btn:hover { text-decoration: none; }
.foot address { font-style: normal; color: var(--on-night-muted); }
.foot-last { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: var(--step-small); color: var(--on-night-muted); }
.foot-last .btn { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }

/* ELEMORA: walnut, gold and cream from the brand's packaging */
.elemora { --el-night: #17120d; --el-gold: #c9a55a; --el-cream: #ebe6dc; --el-muted: #b8ab95; margin-top: var(--gap); background: var(--el-night); color: var(--el-cream); padding-block: clamp(80px, 9vw, 150px); }
.el-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text box" "text ritual" "note ritual"; gap: 0 clamp(32px, 5vw, 88px); align-items: start; }
.el-text { grid-area: text; padding-top: clamp(24px, 4vw, 72px); }
.elemora h2 { font-family: var(--text); font-weight: 600; font-size: var(--step-head); letter-spacing: -0.01em; line-height: 1.05; color: var(--el-gold); }
.elemora h2 span { letter-spacing: 0.04em; }
.elemora .lead { font-size: var(--step-lead); line-height: 1.4; hyphens: auto; margin-top: 28px; max-width: 30ch; }
.el-facts { list-style: none; margin-top: 44px; display: grid; gap: 22px; max-width: 40ch; }
.el-facts b { display: block; font-family: var(--display); font-size: var(--step-body); letter-spacing: -0.01em; color: var(--el-gold); margin-bottom: 2px; }
.el-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.btn-gold { background: var(--el-gold); color: var(--el-night); }
.el-link { font-family: var(--display); font-weight: 700; font-size: var(--step-body); color: var(--el-cream); text-underline-offset: 6px; padding-block: 10px; }
.el-link:hover { color: var(--el-gold); }
.btn-gold:hover { background: var(--el-cream); }
.el-box { grid-area: box; }
.el-box img { width: 100%; aspect-ratio: 960 / 700; object-fit: cover; clip-path: var(--peak-land); }
.el-box figcaption { font-size: var(--step-small); color: var(--el-muted); margin-top: 10px; }
.el-ritual { grid-area: ritual; width: 72%; justify-self: end; margin-top: clamp(24px, 3vw, 48px); }
.el-ritual img { width: 100%; height: auto; }
.el-note { grid-area: note; align-self: end; font-size: var(--step-small); color: var(--el-muted); max-width: 40ch; margin-top: 40px; }

/* Legal pages */
.legal-page { padding-block: clamp(64px, 8vw, 120px) var(--gap); }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: var(--step-head); margin-bottom: 16px; }
.legal-page .stand { color: var(--muted); margin-bottom: 48px; }
.legal-page h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin: 48px 0 12px; }
.legal-page h3 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; margin: 24px 0 8px; }
.legal-page p, .legal-page li { margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { text-underline-offset: 3px; }

/* Entrances: only when the script runs */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-toggle { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .bar nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 0; height: 56svh; }
  .hero-card { min-height: 0; padding-bottom: clamp(220px, 40vw, 380px); margin-top: -24px; }
  .plate { grid-template-columns: 1fr; min-height: 0; }
  .plate-photo { width: 100%; max-width: 640px; }
  .stage { grid-template-columns: 1fr; align-items: start; min-height: 0; padding-top: 0; }
  .stage-visual { position: relative; height: 86vw; max-height: 640px; }
  .stage-peak { left: 50%; width: 92vw; }
  .stage-object { left: 50%; width: 52vw; max-width: 380px; }
  .stage-list { padding: 32px var(--m) 0; }
  .stage-fact { justify-self: start; padding: 24px var(--m) 0; max-width: 40ch; }
  .range-intro, .items { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; margin-inline: 10px; min-height: 0; }
  .panel-right { padding: 0 clamp(24px, 4vw, 56px) 56px; }
  .panel figure { order: 3; width: 86%; margin: 0 auto -18%; }
  .panel-left { display: contents; }
  .panel-left h2 { padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; }
  .coupon { grid-template-columns: 1fr; }
  .notch.t { top: 50%; left: calc(var(--notch) / -2); transform: translateY(-50%); }
  .notch.b { top: 50%; bottom: auto; left: auto; right: calc(var(--notch) / -2); transform: translateY(-50%); }
  .coupon-left { border-right: 0; border-bottom: 5px dotted var(--ground); }
  .foot-top { grid-template-columns: 1fr; }
  .el-grid { grid-template-columns: 1fr; grid-template-areas: "text" "box" "ritual" "note"; }
  .el-text { padding-top: 0; padding-bottom: 56px; }
  .el-ritual { width: 80%; margin-top: 48px; }
}

/* Phone */
@media (max-width: 600px) {
  .bar .wrap { height: 64px; }
  .bar .mark img { height: 38px; }
  .hero { min-height: 0; padding-top: 12px; }
  .hero-photo { height: 40svh; }
  .hero-card { padding-bottom: 170px; }
  .hero-card .btn { margin-top: 28px; }
  .hero-card .lead { margin-top: 24px; }
  .cells { grid-template-columns: 1fr; }
  .cells .btn { min-height: 60px; }
  .stage-list ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .stage-list li { flex: none; }
  .channels { grid-template-columns: 1fr; }
  .channels li { min-height: 0; }
  .foot-mark { height: 22svh; min-height: 140px; }
}
