.home-page {
  --base: #0b0f12;
  --surface: #161d22;
  --line: #34424b;
  background: var(--base);
}
.home-page .shell { width: min(1440px, calc(100% - 80px)); }
.home-page .masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand tagline action" "nav nav nav";
  gap: 0 16px;
  min-height: 0;
  padding-block: clamp(14px, 2.5vw, 34px) 8px;
}
.home-page .masthead .brand { grid-area: brand; min-width: 0; }
.home-page .masthead .brand img { width: min(100%, 370px); height: auto; }
.home-page .masthead-tagline {
  grid-area: tagline;
  margin: 0;
  color: var(--text);
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 2rem);
  font-weight: 850;
  letter-spacing: .075em;
  white-space: nowrap;
}
.home-page .masthead-tagline span { color: var(--cyan); }
.home-page .masthead-tagline b { color: var(--yellow); }
.home-page .masthead .header-action { grid-area: action; justify-self: end; }
.home-page .masthead nav {
  grid-area: nav;
  justify-content: center;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.home-page .masthead nav a[aria-current] { border-color: transparent; color: var(--cyan); }
.home-page .header-action,
.home-page .hero-summary .button {
  border-radius: 4px;
  border-color: var(--yellow);
  background: var(--yellow);
}
.home-page .header-action:hover,
.home-page .hero-summary .button:hover { background: #ffee83; }

.home-page .smart-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(22px, 4vw, 70px);
  min-height: min(670px, 78svh);
  padding-block: clamp(40px, 7vw, 110px);
}
.home-page .smart-intro {
  display: block;
  position: relative;
  margin: 0;
  padding-left: clamp(14px, 2vw, 32px);
  border-left: 3px solid var(--cyan);
}
.home-page .smart-intro h1 { font-size: clamp(2.75rem, 5.6vw, 6.5rem); line-height: .96; }
.home-page .smart-intro h1 em { color: inherit; }
.home-page .hero-summary { max-width: 37ch; margin-top: 25px; }
.home-page .hero-summary p { text-align: left; }
.home-page .concept-film {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.home-page .concept-film video { object-fit: contain; border-bottom: 1px solid var(--line); }
.home-page .concept-film figcaption {
  order: 1;
  padding: 15px 18px 0;
  color: var(--muted);
}
.home-page .film-chapters {
  order: 2;
  gap: 7px;
  padding: 14px 18px 18px;
}
.home-page .film-chapters button {
  min-height: 39px;
  border-radius: 999px;
  background: transparent;
  padding-inline: 13px;
  font-size: .875rem;
}
.home-page .film-chapters button[aria-current] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--base);
}

.process-films {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 46px);
  padding-block: clamp(38px, 6vw, 90px);
  border-top: 1px solid var(--line);
}
.home-page .process-films section {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 20px;
  align-content: start;
  min-width: 0;
  padding: 0;
}
.home-page .process-films .system-intro {
  max-width: 56ch;
  margin: 0;
  padding-top: 14px;
  border-top: 3px solid var(--cyan);
}
.home-page .process-films .turning-option .system-intro { border-color: var(--yellow); }
.home-page .process-films .turning-option .eyebrow { color: var(--yellow); }
.home-page .process-films h2 { font-size: clamp(2rem, 3.7vw, 4rem); }
.home-page .process-films .system-intro > p:last-child { margin-bottom: 0; }

.home-page .profile-band {
  background: linear-gradient(105deg, #1c2a31 0%, #11181d 73%);
  border-block: 1px solid var(--line);
}
.home-page .profile-grid {
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(30px, 6vw, 78px);
}
.home-page .profile-photo img { border-radius: 12px; border: 1px solid var(--line); }
.home-page .profile-grid h2 { font-size: clamp(2.3rem, 4.8vw, 5.5rem); }
.home-page .footer { justify-content: center; border-top: 0; min-height: 82px; }
@media (max-width: 940px) {
  .home-page .shell { width: calc(100% - 40px); }
  .home-page .smart-hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; }
  .home-page .smart-intro h1 { font-size: clamp(3rem, 10vw, 6rem); }
}
@media (max-width: 680px) {
  .home-page .shell { width: calc(100% - 32px); }
  .process-films, .home-page .profile-grid { grid-template-columns: 1fr; }
  .home-page .process-films section { display: block; }
  .home-page .process-films .system-intro { margin-bottom: 20px; }
  .home-page .film-chapters { padding-inline: 11px; }
  .home-page .concept-film figcaption { padding-inline: 11px; }
}

@media (max-width: 540px) {
  .home-page .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand brand" "tagline tagline" "nav action";
    gap: 9px 12px;
  }
  .home-page .masthead .brand { justify-content: center; }
  .home-page .masthead .brand img { width: min(76%, 275px); }
  .home-page .masthead nav { gap: 5px 11px; justify-content: flex-start; margin-top: 0; padding-top: 0; border-top: 0; }
}

.home-page .profile-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.home-page .linkedin-profile { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 6px; }
.home-page .linkedin-profile:hover svg { filter: brightness(1.2); }
.home-page .profile-grid .profile-role { margin: 8px 0 0; }
.home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 36px;
  padding-block: clamp(28px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}
.home-contact address { display: grid; gap: 4px; font-style: normal; }
.home-contact address a { color: var(--cyan); }
.home-contact address a:hover { text-decoration: underline; }

.home-record {
  padding-block: clamp(32px, 5vw, 70px);
}
.home-record h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101b22;
}
.record-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 34px);
}
.record-grid > div + div {
  border-inline-start: 1px solid var(--line);
}
.record-grid dt {
  color: #e2eef2;
  font-weight: 650;
}
.record-grid dd {
  margin: 0;
}
.record-grid .record-value {
  color: #8bfaff;
  font-size: clamp(2.15rem, 4.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.record-period {
  color: #b8c9d1;
  font-size: .9rem;
  line-height: 1.4;
}
@media (max-width: 820px) {
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid > div:nth-child(odd) { border-inline-start: 0; }
  .record-grid > div:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}

/* Factory concept imagery and the i-Cubes demonstrations. */
.home-page {
  --base: #070e14;
  --line: #2e4855;
  --surface: #101d26;
}
.home-page .smart-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(480px, 53vw, 745px);
  padding: clamp(24px, 5vw, 76px);
  margin-block: 12px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.home-page .smart-intro {
  max-width: 710px;
  padding: 0;
  border: 0;
}
.home-page .smart-intro h1 {
  font-size: clamp(3.2rem, 7.4vw, 8rem);
  letter-spacing: -.062em;
}
.home-page .smart-intro h1 em {
  color: #a2f0ff;
  font-style: normal;
}
.home-page .hero-summary {
  max-width: 49ch;
}
.hero-film-link {
  display: inline-block;
  margin: 12px 0 0 16px;
  color: #c9f4ff;
  text-underline-offset: .25em;
}
.platform-explorer {
  padding-block: clamp(38px, 6vw, 92px);
}
.home-page .process-films {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}
.home-page .process-films section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(16px, 4vw, 55px);
  margin: 0;
  min-width: 0;
  padding: clamp(18px, 3vw, 45px);
  border: 1px solid #2b4959;
  border-radius: 12px;
  scroll-margin-top: 24px;
}
.platform-explorer h3 {
  margin: 0 0 .5em;
  font-size: clamp(1.6rem, 3.25vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.home-page .profile-band {
}
.home-page .record-grid {
}
@media (max-width: 760px) {
  .home-page .smart-hero {
    min-height: 530px;
    align-items: end;
  }
  .home-page .process-films section { grid-template-columns: minmax(0, 1fr); }
}

.home-page {
  --machine-yellow: #eab402;
  --factory-scene: url("tek-future-factory.webp");
  --machining-scene: url("tek-future-machining.webp");
  --robot-outline: url("home-robot-wireframe.svg");
  background: radial-gradient(ellipse at 82% 23%, #13222b77, transparent 42%), var(--base);
}
.home-page .smart-hero {
  background:
    linear-gradient(90deg, #08131bf5 4%, #08131bd9 28%, #08131b35 65%, #08131b12),
    linear-gradient(#08131b48, #08131b9e),
    var(--factory-scene) 68% center / cover no-repeat,
    #0b1f2a;
}
.home-page .smart-intro h1, .home-page h2, .home-page h3 {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  text-wrap: balance;
}
.home-page .hero-summary, .product-intro {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}
.product-intro { margin-bottom: 24px; }
.product-intro p { max-width: 60ch; margin: 0; }
.home-page .platform-brand {
  margin: 0 0 12px;
  color: var(--machine-yellow);
  font-size: clamp(3.7rem, 9vw, 9rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.product-features li {
  border: 1px solid var(--line);
  border-top: 2px solid var(--machine-yellow);
  border-radius: 8px;
  background: #101e28;
  padding: clamp(16px, 2.3vw, 30px);
}
.home-page .product-features h3 { color: var(--machine-yellow); margin: 0 0 8px; font-size: clamp(1.18rem, 1.8vw, 1.65rem); letter-spacing: -.025em; }
.product-features p { margin: 0; color: #c4d4dc; }
.home-page .process-films section,
.home-page .record-grid,
.home-page .profile-band {
  background:
    linear-gradient(95deg, #0c1923ec, #0c192371),
    var(--robot-outline) right center / min(100%, 900px) auto no-repeat,
    var(--machining-scene) right center / cover no-repeat,
    #111e28;
}
.home-page .record-grid .record-value,
.home-page .record-period [data-record-count] {
  color: var(--machine-yellow);
}
.record-static {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .home-page .smart-hero {
    background:
      linear-gradient(0deg, #08131b 0%, #08131bd3 43%, #08131b23 88%),
      var(--factory-scene) 67% center / cover no-repeat,
      #101f29;
  }
}

.home-page #icubes-turning .system-intro p {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}

/* The fixed CAD artwork sits beneath the scrolling page and its panels. */
body.home-page {
  isolation: isolate;
}
body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background:
    url("journey-wireframes/gantry.webp") right -5vw top 12% / clamp(280px, 54vw, 840px) auto no-repeat,
    url("journey-wireframes/base-rails.webp") left -9vw bottom -5vh / clamp(260px, 61vw, 900px) auto no-repeat,
    url("journey-wireframes/spindle.webp") left 17% top 18% / clamp(105px, 17vw, 260px) auto no-repeat,
    radial-gradient(ellipse at 79% 29%, #244958, transparent 52%);
}

.home-page #main {
  overflow-x: clip;
}
