/* Diamond Drive GmbH — site styles
   Palette: graphite (asphalt at night), chalk (kerb stone), steel, sodium (street-lamp amber), ice (diamond glint) */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --graphite: #1F2429;
  --graphite-2: #2B3138;
  --night: #171B1F;
  --chalk: #EEF1F2;
  --paper: #F8FAFA;
  --steel: #5D6A74;
  --steel-light: #9AA6AE;
  --sodium: #F2A93B;
  --sodium-deep: #C97F0A;
  --ice: #A9DCE8;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --rail: 0px;
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 1100px) { :root { --rail: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--graphite);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; }
::selection { background: var(--sodium); color: var(--graphite); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sodium); color: var(--graphite); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: calc(var(--pad) + var(--rail)) var(--pad); }

.h2 { font: 900 clamp(46px, 6.4vw, 96px)/.9 var(--display); letter-spacing: -.005em; margin: 0 0 28px; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 34em; margin: 0 0 24px; }
.muted { color: var(--steel-light); }
.underline { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.underline:hover { color: var(--sodium); }

/* Buttons */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1 var(--body); letter-spacing: .01em;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sodium { background: var(--sodium); color: var(--graphite); }
.btn--sodium:hover { background: #FFC05C; }
.btn--ghost { clip-path: none; background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(238,241,242,.45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--chalk); background: rgba(238,241,242,.06); }
.btn--ink { background: var(--graphite); color: var(--chalk); }
.btn--ink:hover { background: var(--graphite-2); }
.btn--wide { width: 100%; }
.btn--sm { white-space: nowrap; min-height: 40px; padding: 0 18px; font-size: 14px; --cut: 8px; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--chalk); transition: background-color .35s, box-shadow .35s; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 18px var(--pad); }
.is-sub .top, .top.is-scrolled { background: rgba(31,36,41,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top.is-scrolled .top__in { padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chalk); }
.brand__mark { width: 34px; height: 31px; color: var(--sodium); }
.brand__word { font: 800 28px/1 var(--display); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav > a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav > a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sodium); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:hover::after { transform: scaleX(1); }
.nav__cta { background: var(--sodium); color: var(--graphite); padding: 10px 18px !important; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); font-weight: 600 !important; }
.lang { display: inline-flex; gap: 2px; margin-left: 4px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; padding: 6px 7px; opacity: .55; }
.lang a[aria-current] { opacity: 1; box-shadow: inset 0 -2px var(--sodium); }
.lang a:hover { opacity: 1; }

.burger { display: none; background: none; border: 0; color: var(--chalk); width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 60; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger__lines { top: 21px; }
.burger__lines::before { content: ""; left: 0; right: 0; top: -8px; }
.burger__lines::after { content: ""; left: 0; right: 8px; top: 8px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { right: 0; transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--graphite);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 90px var(--pad) 40px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav > a { font: 800 clamp(40px, 11vw, 64px)/1.05 var(--display); }
  .nav > a::after { display: none; }
  .nav__cta { margin-top: 18px; font: 600 18px/1 var(--body) !important; padding: 16px 24px !important; }
  .lang { margin: 24px 0 0; font-size: 16px; }
}

/* Hero */
.hero {
  position: relative; background: var(--graphite); color: var(--chalk);
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--pad) 72px; max-width: none; overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; padding-left: var(--rail); max-width: 760px; justify-self: end; width: 100%; }
.hero__title { font: 900 clamp(60px, 8.4vw, 150px)/.84 var(--display); letter-spacing: -.01em; margin: 0 0 28px; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--l) * 110ms + 150ms); }
.is-loaded .hero__title .ln > span { transform: none; }
.hero__title .ln:last-child > span { color: var(--sodium); }
.hero__text { font-size: clamp(18px, 1.45vw, 21px); max-width: 30em; color: #D5DBDE; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__addr { margin: 40px 0 0; font-size: 14px; color: var(--steel-light); display: flex; align-items: center; gap: 12px; }
.hero__addr::before { content: ""; width: 10px; height: 10px; background: var(--sodium); transform: rotate(45deg); flex: none; }

.hero__copy > :not(.hero__title) { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s var(--ease); transition-delay: .7s; }
.is-loaded .hero__copy > :not(.hero__title) { opacity: 1; transform: none; }

/* The gem: one photo cut into six facets */
.gem { position: relative; z-index: 1; width: min(100%, 720px); aspect-ratio: 1 / .9; justify-self: start; --px: 0; --py: 0; }
.gem__facet {
  position: absolute; inset: 0; overflow: hidden; background: var(--graphite-2);
  translate: calc(var(--px) * var(--fx) * 1px) calc(var(--py) * var(--fy) * 1px);
  transition: translate .6s var(--ease), transform 1.2s var(--ease), opacity 1s;
  transition-delay: 0s, calc(var(--i) * 90ms + 200ms), calc(var(--i) * 90ms + 200ms);
  transform: translate(calc(var(--fx) * 7px), calc(var(--fy) * 7px)) scale(.94); opacity: 0;
}
.is-loaded .gem__facet { transform: none; opacity: 1; }
.gem__facet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; transition-delay: calc(var(--i) * 80ms); }
.gem__facet img.is-on { opacity: 1; animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }

.gem__facet--a { clip-path: polygon(18% 6%, 39.4% 6%, 30% 32.4%, 0% 32.4%); --fx: -1.2; --fy: -1; }
.gem__facet--b { clip-path: polygon(41.4% 6%, 58.6% 6%, 68% 32.4%, 32% 32.4%); --fx: 0; --fy: -1.3; }
.gem__facet--c { clip-path: polygon(60.6% 6%, 82% 6%, 100% 32.4%, 70% 32.4%); --fx: 1.2; --fy: -1; }
.gem__facet--d { clip-path: polygon(0% 34.4%, 30% 34.4%, 48.7% 97%); --fx: -1.3; --fy: .8; }
.gem__facet--e { clip-path: polygon(32% 34.4%, 68% 34.4%, 50% 93.5%); --fx: 0; --fy: 1.1; }
.gem__facet--f { clip-path: polygon(70% 34.4%, 100% 34.4%, 51.3% 97%); --fx: 1.3; --fy: .8; }
.gem__facet--b img, .gem__facet--e img { filter: brightness(1.08) contrast(1.02); }
.gem__facet--a img, .gem__facet--d img { filter: brightness(.9); }

.gem__glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  clip-path: polygon(18% 6%, 82% 6%, 100% 32.4%, 50% 97%, 0% 32.4%);
  background: linear-gradient(110deg, transparent 35%, rgba(169,220,232,.55) 48%, rgba(255,255,255,.7) 50%, rgba(169,220,232,.4) 52%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0;
}
.gem__glint.is-sweep { animation: glint 1.6s var(--ease) forwards; }
@keyframes glint { from { background-position: 150% 0; } to { background-position: -60% 0; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 8px; align-content: start; }
  .hero__copy { justify-self: stretch; padding-left: 0; }
  .gem { order: -1; width: min(86vw, 460px); justify-self: center; margin-bottom: 8px; }
}

/* Ticker of Berlin districts */
.ticker { background: var(--sodium); color: var(--graphite); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font: 800 clamp(26px, 3vw, 40px)/1 var(--display); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.ticker span::after { content: ""; width: 11px; height: 11px; border: 2.5px solid var(--graphite); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* Route rail (desktop) */
.journey { position: relative; }
.route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; display: none; }
@media (min-width: 1100px) { .route.is-ready { display: block; } }
.route__base { fill: none; stroke: var(--steel-light); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.route__live { fill: none; stroke: var(--sodium); stroke-width: 3; stroke-linecap: round; }
.route__stops circle { fill: var(--chalk); stroke: var(--steel-light); stroke-width: 2; transition: fill .3s, stroke .3s, r .3s; }
.route__stops circle.is-passed { fill: var(--sodium); stroke: var(--sodium); }
.route__marker { fill: var(--sodium); stroke: var(--graphite); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(242,169,59,.55)); }

/* Services */
.services { padding: clamp(96px, 12vw, 180px) 0; background: var(--chalk); }
.services__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.services__head { position: sticky; top: 120px; }
.services__list { display: grid; gap: clamp(64px, 8vw, 110px); }
.svc:nth-child(even) { margin-left: clamp(0px, 8vw, 110px); }
.svc__img { position: relative; margin: 0 0 26px; aspect-ratio: 3 / 2; overflow: hidden; clip-path: polygon(0 0, 88% 0, 100% 16%, 100% 100%, 0 100%); background: var(--graphite-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.6s var(--ease); }
.svc__img::after { content: ""; position: absolute; inset: 0; background: var(--graphite); transform-origin: right; transition: transform 1s var(--ease); }
.svc__img.in::after { transform: scaleX(0); }
.svc__img.in img { transform: scale(1); }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__title { font: 800 clamp(34px, 3.4vw, 48px)/1 var(--display); margin: 0 0 12px; display: flex; align-items: baseline; gap: 16px; }
.svc__title::before { content: ""; width: 28px; height: 3px; background: var(--sodium); flex: none; transform: translateY(-.3em); }
.svc__text { margin: 0; max-width: 34em; color: #3A434B; }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .svc:nth-child(even) { margin-left: 0; }
}

/* Process */
.process { background: var(--graphite); color: var(--chalk); padding: clamp(96px, 11vw, 160px) 0; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 2px; background: var(--sodium); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.steps.in::before { transform: scaleX(1); }
.step { padding: 0 28px 0 0; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: 55px; width: 16px; height: 16px; background: var(--graphite); border: 2.5px solid var(--sodium); transform: rotate(45deg) scale(0); transition: transform .5s var(--ease); transition-delay: calc(var(--n) * 380ms + 200ms); }
.steps.in .step::before { transform: rotate(45deg) scale(1); }
.step__num { display: block; font: 900 92px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--steel-light); margin: -34px 0 40px 36px; height: 72px; }
.step__title { font: 800 34px/1 var(--display); margin: 0 0 10px; color: var(--sodium); }
.step p { margin: 0; color: #C9D0D4; max-width: 22em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 40px; }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.in::before { transform: scaleY(1); }
  .step { padding: 0; }
  .step::before { left: -40px; top: 8px; }
  .step__num { margin: 0 0 6px; height: auto; font-size: 64px; }
}

/* Fleet */
.fleet { position: relative; min-height: min(96vh, 900px); display: flex; align-items: flex-end; color: var(--graphite); overflow: hidden; background: var(--graphite); }
.fleet__media { position: absolute; inset: 0; }
.fleet__media img { width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.fleet__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,41,.1) 30%, rgba(31,36,41,.55)); }
.fleet__wrap { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 140px); display: flex; justify-content: flex-end; }
.fleet__panel { background: var(--paper); padding: clamp(28px, 4vw, 56px); max-width: 600px; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.fleet__panel .h2 { font-size: clamp(44px, 5vw, 76px); }
.specs { margin: 8px 0 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 16px; padding: 14px 0; border-top: 1.5px solid #D6DCDF; }
.specs dt { color: var(--steel); font-size: 15px; }
.specs dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

/* Gallery strip */
.gallery { padding: clamp(96px, 11vw, 160px) 0 clamp(80px, 9vw, 130px); background: var(--chalk); overflow: hidden; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.gallery__ctrl { display: flex; gap: 10px; margin-bottom: 30px; }
.gallery__ctrl button { width: 54px; height: 54px; border: 1.5px solid var(--graphite); background: transparent; color: var(--graphite); font-size: 22px; cursor: pointer; transition: background-color .2s, color .2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.gallery__ctrl button:hover { background: var(--graphite); color: var(--sodium); }
.strip {
  display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--rail))) 10px; scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--rail)));
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag img { pointer-events: none; }
.shot { flex: none; width: clamp(250px, 30vw, 440px); margin: 0; scroll-snap-align: start; }
.shot:nth-child(3n+2) { margin-top: 48px; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--graphite-2); user-select: none; transition: transform .6s var(--ease), filter .6s; filter: saturate(.85); }
.shot:hover img { filter: saturate(1.05); }
.shot figcaption { font-size: 14px; color: var(--steel); padding-top: 12px; display: flex; gap: 10px; align-items: center; }
.shot figcaption::before { content: ""; width: 8px; height: 8px; background: var(--sodium); transform: rotate(45deg); flex: none; }

/* Careers */
.careers { background: var(--paper); padding: clamp(96px, 11vw, 160px) 0; }
.careers__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.careers__img { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%); background: var(--graphite-2); }
.careers__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.6s var(--ease); }
.careers__img::after { content: ""; position: absolute; inset: 0; background: var(--sodium); transform-origin: bottom; transition: transform 1s var(--ease); }
.careers__img.in::after { transform: scaleY(0); }
.careers__img.in img { transform: scale(1); }
@media (max-width: 860px) { .careers__grid { grid-template-columns: 1fr; } .careers__img { aspect-ratio: 4 / 3; } }

/* Contact */
.contact { background: var(--graphite); color: var(--chalk); padding: clamp(96px, 11vw, 160px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact .lead { color: #D5DBDE; }
.contact__lines p { margin: 0 0 22px; }
.contact__lines .k { display: block; color: var(--steel-light); font-size: 14px; margin-bottom: 4px; }
.big-link { font: 800 clamp(26px, 2.4vw, 34px)/1.25 var(--display); text-decoration: none; background: linear-gradient(var(--sodium), var(--sodium)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; overflow-wrap: anywhere; }
.big-link:hover { background-size: 100% 2px; color: var(--sodium); }

.form { background: var(--graphite-2); padding: clamp(24px, 3.4vw, 48px); clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
.hp { position: absolute; left: -9999px; }
.field { position: relative; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(238,241,242,.3); color: var(--chalk);
  font: 400 17px/1.4 var(--body); padding: 26px 0 10px; border-radius: 0; resize: vertical; transition: border-color .2s;
}
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sodium); }
.field label { position: absolute; left: 0; top: 26px; color: var(--steel-light); pointer-events: none; transition: transform .25s var(--ease), color .25s, font-size .25s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px); font-size: 13px; color: var(--sodium); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #FF8A7A; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #C9D0D4; margin: 6px 0 24px; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--sodium); margin-top: 1px; flex: none; }
.consent a { color: var(--chalk); }
.form__msg { margin: 16px 0 0; min-height: 1.6em; font-weight: 500; }
.form__msg.is-ok { color: var(--ice); }
.form__msg.is-err { color: #FFB1A5; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Legal pages */
.legal { padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 140px); background: var(--chalk); min-height: 70vh; }
.legal__wrap { padding-left: var(--pad); }
.legal__title { font: 900 clamp(56px, 9vw, 128px)/.88 var(--display); margin: 0 0 48px; }
.prose { max-width: 72ch; }
.prose h2 { font: 800 30px/1.1 var(--display); margin: 44px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--sodium-deep); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1.5px solid #D6DCDF; }
.prose th { font-weight: 600; }

/* Footer */
.foot { background: var(--night); color: var(--steel-light); padding: 56px 0 40px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: end; }
.foot__word { display: block; font: 900 clamp(44px, 7vw, 96px)/.9 var(--display); color: var(--chalk); margin-bottom: 12px; }
.foot__brand p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { text-decoration: none; color: var(--chalk); }
.foot__links a:hover { color: var(--sodium); }
.foot__copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #2C3238; font-size: 13px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* Storage notice */
.notice { position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 420px; background: var(--graphite); color: var(--chalk); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 14px; box-shadow: 0 18px 40px rgba(23,27,31,.35); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.notice[hidden] { display: none; }
.notice p { margin: 0; }
.notice a { color: var(--sodium); }
@media (max-width: 520px) { .notice { left: 16px; max-width: none; } }

/* Mobile scroll progress (replaces route rail) */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--sodium); transform-origin: left; transform: scaleX(0); z-index: 80; }
@media (min-width: 1100px) { .progress { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker span:nth-child(n + 13) { display: none; }
}
