/* Homepage v2. Loaded only by dist/index.html.
   Tokens match the site. Headings use self-hosted Inter Display.
   The shared header stays in navigation.css. */

body.hv2 {
  --ink-deep: #0F221C;
  --line-soft: rgba(25, 62, 52, 0.14);
  --ink-tint: #E8EDE4;
  --serif: "Inter Display", Inter, Arial, sans-serif;
  --sans: Inter, Arial, sans-serif;
  --page-pad: clamp(20px, 4.5vw, 72px);
  --max-wide: 1400px;
}

body.hv2 {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body.hv2 img,
body.hv2 svg {
  max-width: 100%;
  display: block;
  height: auto;
}

body.hv2 .eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
body.hv2 .eyebrow--amber { color: var(--amber); }

body.hv2 h1,
body.hv2 h2,
body.hv2 h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

body.hv2 .button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 500;
  min-height: 52px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  width: auto;
}
body.hv2 .button-ink { background: var(--ink); color: var(--paper); }
body.hv2 .button-ink:hover { background: var(--ink-deep); color: var(--paper); }
body.hv2 .button-paper { background: var(--paper); color: var(--ink); }
body.hv2 .button-paper:hover { background: #fff; color: var(--ink); }
body.hv2 .button-ghost {
  background: transparent;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  min-height: auto;
}
body.hv2 .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  margin-top: 0;
}
body.hv2 .text-link:hover { color: var(--accent); }

body.hv2 .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
}
body.hv2 .chip--amber {
  background: var(--amber);
  border-color: transparent;
  color: var(--ink);
}
body.hv2 .chip--concept {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

/* Hero */
.hv2-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--page-pad) clamp(48px, 6vw, 80px);
  align-items: stretch;
  min-height: min(78vh, 720px);
}
.hv2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(20px, 4vw, 48px);
}
.hv2-hero h1 {
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 14ch;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.hv2-hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.hv2-hero .lede {
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.hv2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.hv2-hero-tag {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  max-width: 36ch;
  margin: 0;
}
.hv2-hero-figure {
  position: relative;
  margin: 0;
  background: var(--ink-tint);
  min-height: 420px;
  overflow: hidden;
}
body.hv2 .hv2-hero-figure img,
body.hv2 .hv2-card-media img,
body.hv2 .hv2-photo-lead-figure img,
body.hv2 .hv2-photo-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hv2-hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(15, 34, 28, 0.85));
}

@media (max-width: 900px) {
  .hv2-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 36px;
  }
  .hv2-hero-copy { padding-right: 0; }
  .hv2-hero h1 { max-width: none; }
}

/* Beat label strip */
.hv2-beat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 18px var(--page-pad);
  border-block: 1px solid var(--line-soft);
  background: var(--ink-tint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hv2-beat-strip strong { color: var(--ink); font-weight: 600; }
.hv2-beat-strip a {
  text-decoration: none;
  color: inherit;
}
.hv2-beat-strip a:hover { color: var(--accent); }

/* Products */
.hv2-products {
  padding: clamp(56px, 8vw, 96px) var(--page-pad);
  max-width: var(--max-wide);
  margin: 0 auto;
}
.hv2-section-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.hv2-section-top h2 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 16ch;
  line-height: 1.08;
}
.hv2-section-top > p,
.hv2-section-top div + p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}
@media (max-width: 800px) {
  .hv2-section-top { grid-template-columns: 1fr; }
}

.hv2-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (min-width: 901px) {
  .hv2-product-grid--pair { grid-template-columns: 1.15fr 0.85fr; }
}
@media (max-width: 900px) {
  .hv2-product-grid { grid-template-columns: 1fr; }
}
.hv2-card h3 a { color: inherit; text-decoration: none; }
.hv2-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 8px;
}
.hv2-card-actions .button { min-height: 44px; }

.hv2-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hv2-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.hv2-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-tint);
  overflow: hidden;
}
.hv2-card-media img {
  object-fit: cover;
}
.hv2-card-media .chip {
  position: absolute;
  top: 14px;
  left: 14px;
}
.hv2-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hv2-card-body h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.hv2-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.hv2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hv2-card-cta {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hv2-card:hover .hv2-card-cta { color: var(--accent); }
.hv2-card--ava .hv2-card-body {
  border-top: 3px solid var(--amber);
}

.hv2-workforce-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.hv2-workforce-note a { color: var(--ink); font-weight: 600; }

/* Technology */
.hv2-tech {
  background: var(--ink-deep);
  color: var(--paper);
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 110px);
}
.hv2-tech-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.hv2-tech .hv2-section-top h2 { color: var(--paper); }
.hv2-tech .hv2-section-top p { color: rgba(246, 240, 229, 0.72); }

.hv2-photo-story { margin-top: 8px; }
.hv2-photo-lead {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.hv2-photo-lead-copy h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 16px;
  color: var(--paper);
}
.hv2-photo-lead-copy p {
  color: rgba(246, 240, 229, 0.72);
  max-width: 42ch;
  margin: 0 0 24px;
  line-height: 1.55;
}
.hv2-struct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.hv2-struct-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(246, 240, 229, 0.12);
  font-size: 14px;
  color: var(--paper);
}
.hv2-struct-list .num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.hv2-photo-lead-figure {
  margin: 0;
  position: relative;
  background: #0a1814;
  border: 1px solid rgba(246, 240, 229, 0.12);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hv2-photo-lead-figure img {
  object-fit: cover;
}
.hv2-photo-lead-figure figcaption,
.hv2-photo-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 240, 229, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.hv2-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hv2-photo-grid figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a1814;
  border: 1px solid rgba(246, 240, 229, 0.1);
  overflow: hidden;
}
.hv2-photo-grid img {
  object-fit: cover;
}
@media (max-width: 900px) {
  .hv2-photo-lead { grid-template-columns: 1fr; }
  .hv2-photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hv2-photo-grid { grid-template-columns: 1fr; }
}

/* Sticky scroll build — optional and unused. Styles stay so the
   commented block in index.html can be revived without a new stylesheet. */
.hv2-build {
  position: relative;
  margin-top: 8px;
  height: 280vh;
}
.hv2-build-stage {
  position: sticky;
  top: 72px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 24px 0;
}
.hv2-build-copy h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 16px;
}
.hv2-build-copy p {
  color: rgba(246, 240, 229, 0.72);
  max-width: 38ch;
  margin: 0 0 24px;
}
.hv2-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hv2-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(246, 240, 229, 0.12);
  opacity: 0.45;
  transition: opacity 0.25s ease;
  font-size: 14px;
}
.hv2-steps li.is-active { opacity: 1; }
.hv2-steps .num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.hv2-frames {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a1814;
  border: 1px solid rgba(246, 240, 229, 0.12);
  overflow: hidden;
}
.hv2-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s linear;
  pointer-events: none;
}
.hv2-frame.is-visible { opacity: 1; }
.hv2-frame img,
.hv2-frame object,
.hv2-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hv2-build { height: auto; }
  .hv2-build-stage {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

/* Sundial concept */
.hv2-sundial {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(246, 240, 229, 0.16);
  background: var(--ink);
}
.hv2-sundial-visual {
  position: relative;
  min-height: 320px;
  background: #122E27;
  display: grid;
  place-items: center;
  padding: 32px;
}
.hv2-sundial-dial {
  width: min(220px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #244a3f 0%, #193E34 55%, #0F221C 100%);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 12px rgba(173, 86, 61, 0.12), 0 24px 48px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  position: relative;
}
.hv2-sundial-dial::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 2px solid rgba(230, 182, 91, 0.45);
}
.hv2-sundial-dial strong {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}
.hv2-sundial-dial span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.hv2-sundial-body {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.hv2-sundial-body h3 {
  font-size: clamp(28px, 3.2vw, 40px);
}
.hv2-sundial-body .sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(246, 240, 229, 0.88);
  margin: 0;
}
.hv2-sundial-body p {
  margin: 0;
  color: rgba(246, 240, 229, 0.7);
  max-width: 42ch;
}
.hv2-sundial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .hv2-sundial { grid-template-columns: 1fr; }
}

/* Future-proof */
.hv2-future {
  padding: clamp(64px, 9vw, 110px) var(--page-pad);
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hv2-future h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  max-width: 14ch;
  margin: 0 0 18px;
  line-height: 1.08;
}
.hv2-future .lede {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 28px;
  font-size: 17px;
}
.hv2-future-panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 40px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.hv2-future-panel p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--paper);
}
@media (max-width: 800px) {
  .hv2-future { grid-template-columns: 1fr; }
}

/* Contact */
.hv2-contact {
  padding: 0 var(--page-pad) clamp(64px, 8vw, 96px);
  max-width: var(--max-wide);
  margin: 0 auto;
}
.hv2-contact-box {
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  background: #fff;
}
.hv2-contact-box h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 10px;
  line-height: 1.08;
}
.hv2-contact-box p {
  margin: 0;
  color: var(--muted);
}
.hv2-contact-box a:not(.button) {
  color: var(--ink);
  font-weight: 600;
}
.hv2-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 800px) {
  .hv2-contact-box { grid-template-columns: 1fr; }
  .hv2-contact-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hv2-card,
  .hv2-steps li,
  .hv2-frame { transition: none; }
  .hv2-card:hover { transform: none; }
  .hv2-build { height: auto; }
  .hv2-build-stage { position: relative; top: auto; min-height: 0; }
  .hv2-frame { opacity: 0 !important; }
  .hv2-frame[data-frame="3"] { opacity: 1 !important; }
  .hv2-steps li { opacity: 1; }
}
