/* PROJECT STONE — The M8 Era */
:root {
  --bg: #0a0a0b;
  --bg2: #0e0e10;
  --panel: #131316;
  --line: rgba(255, 255, 255, 0.08);
  --txt: #f2f2f3;
  --dim: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.32);
  --grey: #9ba0a6; /* Donington grey tone */
  --m-blue: #16588e;
  --m-navy: #0f2d5c;
  --m-red: #e40521;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.display {
  font-family: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}
.tricolor { display: inline-flex; height: 4px; width: 64px; border-radius: 2px; overflow: hidden; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--m-blue); }
.tricolor span:nth-child(2) { background: var(--m-navy); }
.tricolor span:nth-child(3) { background: var(--m-red); }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
nav .brand { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.22em; font-weight: 600; }
nav .links { display: flex; gap: 26px; font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
nav .links a:hover, nav .links a.active { color: var(--txt); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(10,10,11,0.45) 45%, rgba(10,10,11,0.25) 100%); }
.hero .inner { position: relative; padding: 0 5vw 9vh; max-width: 1200px; }
.hero h1 { font-size: clamp(56px, 11vw, 150px); }
.hero .sub { margin-top: 18px; font-size: clamp(14px, 1.6vw, 19px); color: var(--dim); max-width: 640px; }

.statrow { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; backdrop-filter: blur(6px); }
.stat { flex: 1 1 130px; padding: 16px 22px; background: rgba(10,10,11,0.55); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.stat .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* Sections */
section { padding: 90px 5vw; max-width: 1240px; margin: 0 auto; }
.sechead { margin-bottom: 44px; }
.sechead h2 { font-size: clamp(34px, 5vw, 62px); margin-top: 14px; }
.sechead p.lead { margin-top: 16px; max-width: 720px; color: var(--dim); font-size: 17px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo:hover img { transform: scale(1.025); }
.cap { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

.prose p { color: var(--dim); font-size: 16.5px; margin-bottom: 18px; }
.prose p strong { color: var(--txt); font-weight: 600; }
blockquote {
  border-left: 3px solid var(--m-red);
  padding: 6px 0 6px 22px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600; line-height: 1.35;
  margin: 28px 0;
}

/* Spec cards */
.speccard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.speccard h3 { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.speccard ul { list-style: none; }
.speccard li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 15px; }
.speccard li:last-child { border-bottom: 0; }
.speccard li .sub { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.badge { display: inline-block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); margin-left: 8px; vertical-align: middle; }
.badge.red { border-color: rgba(228,5,33,0.5); color: #ff7383; }

/* Heritage timeline */
.timeline { position: relative; margin-top: 50px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--m-blue), var(--m-navy), var(--m-red)); }
.tl-item { position: relative; padding: 0 0 42px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--grey); }
.tl-item.hot::before { border-color: var(--m-red); }
.tl-year { font-size: 12px; letter-spacing: 0.26em; color: var(--faint); text-transform: uppercase; }
.tl-item h3 { font-size: 21px; margin: 6px 0 8px; font-weight: 700; }
.tl-item p { color: var(--dim); font-size: 15.5px; max-width: 640px; }

/* Builder band */
.band {
  background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band .wrap { max-width: 1240px; margin: 0 auto; padding: 70px 5vw; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { height: 34px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 99px; background: #fff; color: #000; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; }
.chip.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); }

/* Gallery */
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry .photo { margin-bottom: 16px; break-inside: avoid; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 46px 5vw 60px; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
footer .fright { display: flex; align-items: center; gap: 14px; }
