/* ThinkPad Radar — Industrial Showroom Hub (thinkpad-radar.co.uk) */

:root {
  --bg: #0A0A0B;
  --surface: #131416;
  --surface-elevated: #1A1C20;
  --surface-key: #1E2025;
  --border: #262930;
  --border-chamfer: #383D47;
  --text: #F4F5F7;
  --text-muted: #9FA6B2;
  --text-dim: #6E7582;
  --red: #E60012;
  --red-hover: #C80010;
  --red-glow: rgba(230, 0, 18, 0.34);
  --tom: #0EA5E9;
  --tom-hover: #0284C7;
  --tom-glow: rgba(14, 165, 233, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Authentic subtle matte ThinkPad carbon-weave micro-texture + soft studio overhead falloff */
  background-image:
    radial-gradient(1100px 540px at 72% -10%, rgba(255, 255, 255, 0.045), transparent 64%),
    radial-gradient(640px 420px at 14% 8%, rgba(230, 0, 18, 0.045), transparent 68%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.017) 0px,
      rgba(255, 255, 255, 0.017) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 7px
    );
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.58;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Iconic ThinkPad dotless-i with crimson LED dot */
.tp-i {
  position: relative;
  display: inline-block;
}

.tp-i-dot {
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.25em;
  height: 0.25em;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(230, 0, 18, 0.7);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.tp-i-dot.is-pulsing {
  animation: lidLedPulse 780ms var(--ease-out);
}

@keyframes lidLedPulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 8px rgba(230, 0, 18, 0.7);
  }
  35% {
    transform: translateX(-50%) scale(1.55);
    box-shadow: 0 0 22px rgba(230, 0, 18, 1), 0 0 42px rgba(230, 0, 18, 0.55);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 8px rgba(230, 0, 18, 0.7);
  }
}

/* Top Bar Contract: single row, 3 balanced zones */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.brand-radar {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 0;
  transition: color 150ms var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-chamfer);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.header-cta:hover {
  border-color: rgba(230, 0, 18, 0.7);
  background: #202329;
}

/* Hero Showroom Stage */
.hero-section {
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(48px, 6vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.hero-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.1vw, 3.55rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 30px;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.hero-provenance .sep {
  color: var(--border-chamfer);
}

/* Shared Precision Hardware Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out), color 150ms var(--ease-out);
}

.btn--full {
  width: 100%;
}

.btn--daz {
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--daz:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn--tom {
  background: var(--tom);
  color: #04131E;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--tom:hover {
  background: var(--tom-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn--machined {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-chamfer);
}

.btn--machined:hover {
  background: #22262E;
  border-color: rgba(14, 165, 233, 0.65);
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 150ms var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Hero Studio Hardware Frame */
.hero-stage {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  border-radius: 16px;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms var(--ease-out);
  will-change: transform;
}

.hero-frame {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-chamfer);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms var(--ease-out);
}

.hero-stage:hover .hero-photo {
  transform: scale(1.018);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.08) 0%,
    rgba(10, 10, 11, 0.12) 55%,
    rgba(10, 10, 11, 0.88) 100%
  );
  pointer-events: none;
}

/* Specular Cursor-Tracked Metallic Sheen */
.bevel-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.11),
    rgba(230, 0, 18, 0.08) 38%,
    transparent 72%
  );
  transition: opacity 180ms var(--ease-out);
}

.chassis-card--tom .bevel-sheen {
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    rgba(14, 165, 233, 0.11) 38%,
    transparent 72%
  );
}

.chassis-interactive.is-active .bevel-sheen {
  opacity: 1;
}

/* Media Fallback Surface (Zero-Broken-Image Policy) */
.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(230, 0, 18, 0.12), transparent 62%),
    linear-gradient(155deg, #17191E 0%, #0E0F12 100%);
}

.media-fallback-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}

.is-fallback img {
  opacity: 0;
}

/* Hero Frame Footer Bar: Lid Emblem + Tactile TrackPoint Button */
.hero-frame-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.lid-emblem {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lid-emblem-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lid-emblem-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Tactile Sculpted TrackPoint Trigger */
.trackpoint-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 35% 30%, #23262D, #121317);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.trackpoint-trigger:hover {
  transform: scale(1.06);
  border-color: rgba(230, 0, 18, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(230, 0, 18, 0.35);
}

.trackpoint-trigger:active {
  transform: scale(0.95);
}

.trackpoint-cap {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #FF4757 0%, #E60012 48%, #99000C 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.38),
    0 0 12px rgba(230, 0, 18, 0.55);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.trackpoint-trigger.is-pulsing .trackpoint-cap {
  transform: scale(1.16);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    0 0 24px rgba(230, 0, 18, 0.95);
}

/* Section 2: Editions Carbon-Lid Showroom */
.editions-section {
  padding: clamp(36px, 5vw, 68px) 0 clamp(52px, 6.5vw, 88px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.section-sub {
  margin: 0;
  max-width: 44ch;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.chassis-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    background-color 170ms var(--ease-out);
  will-change: transform;
}

.chassis-card--daz:hover {
  border-color: rgba(230, 0, 18, 0.55);
  background: #15161A;
}

.chassis-card--tom:hover {
  border-color: rgba(14, 165, 233, 0.55);
  background: #15161A;
}

.chassis-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #0F1013;
  border-bottom: 1px solid var(--border);
}

.chassis-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 380ms var(--ease-out);
}

.chassis-card:hover .chassis-photo {
  transform: scale(1.025);
}

.chassis-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.04) 0%,
    rgba(10, 10, 11, 0.14) 55%,
    rgba(19, 20, 22, 0.94) 100%
  );
  pointer-events: none;
}

.chassis-media-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
}

.edition-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.edition-label--daz {
  color: #FF5C69;
}

.edition-label--tom {
  color: #38BDF8;
}

.edition-host {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chassis-body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 28px 28px;
}

.chassis-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2vw, 1.58rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.chassis-summary {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Unboxed Hardware Spec Table */
.spec-table {
  margin: 0;
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(38, 41, 48, 0.75);
  font-size: 0.875rem;
}

.spec-row dt {
  color: var(--text-dim);
  font-weight: 500;
  flex-shrink: 0;
}

.spec-row dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  font-weight: 500;
}

/* Signature ThinkPad 3-Button TrackPoint Bar Motif */
.chassis-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-bar {
  display: grid;
  grid-template-columns: 1fr 0.62fr 1fr;
  gap: 5px;
  height: 7px;
}

.tp-bar-key,
.tp-bar-mid {
  position: relative;
  border-radius: 2px;
  background: var(--surface-key);
  border: 1px solid var(--border);
}

.tp-bar--daz .tp-bar-mid::after {
  content: "";
  position: absolute;
  inset: 0 22% auto 22%;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.tp-bar--tom .tp-bar-mid::after {
  content: "";
  position: absolute;
  inset: 0 22% auto 22%;
  height: 2px;
  border-radius: 999px;
  background: var(--tom);
}

/* Section 3: Shared Hardware Standards */
.standards-section {
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(56px, 6.5vw, 88px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.standards-header {
  max-width: 620px;
  margin-bottom: 36px;
}

.standards-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--text);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.standard-item {
  padding-top: 18px;
  border-top: 1px solid var(--border-chamfer);
}

.standard-num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
}

.standard-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.standard-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Quiet Industrial Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(10, 10, 11, 0.75);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-dot {
  width: 0.24em;
  height: 0.24em;
  top: 0.08em;
}

.footer-domain {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 150ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--border-chamfer);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-frame {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .editions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .standards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }

  .shell {
    padding: 0 18px;
  }

  .header-inner {
    height: 58px;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .chassis-media-caption {
    padding: 14px 20px;
    flex-direction: column;
    gap: 3px;
  }

  .chassis-body {
    padding: 22px 20px 24px;
  }

  .spec-row {
    flex-direction: column;
    gap: 2px;
  }

  .spec-row dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-stage,
  .chassis-card {
    transform: none !important;
  }
}
