/* Intent Mesh Industrial V2 — warm precision study. */

:root,
html.light {
  --white: #f5f0e7;
  --off-white: #e9e1d4;
  --ink: #101a22;
  --ink2: #23323d;
  --ink3: #5d6971;
  --ink4: #7f878b;
  --ink5: #c4baab;
  --line: rgba(16, 26, 34, 0.075);
  --line2: rgba(16, 26, 34, 0.14);
  --accent: #b86e3f;
  --accent2: var(--accent);
  --accent3: var(--accent);
  --paper: #f5f0e7;
  --glass: rgba(255, 252, 247, 0.69);
  --glass-strong: rgba(255, 252, 247, 0.89);
  --card: rgba(255, 252, 247, 0.7);
  --dark-panel: #11232e;
  --panel-ink: #fbf6ed;
}

html.dark {
  --white: #0b151c;
  --off-white: #11212b;
  --ink: #f5efe5;
  --ink2: #ddd5c9;
  --ink3: #aaa69f;
  --ink4: #7f8587;
  --ink5: #3a464d;
  --line: rgba(255, 248, 237, 0.075);
  --line2: rgba(255, 248, 237, 0.14);
  --accent: #d18a59;
  --accent2: var(--accent);
  --accent3: var(--accent);
  --paper: #0b151c;
  --glass: rgba(16, 31, 40, 0.7);
  --glass-strong: rgba(17, 33, 43, 0.9);
  --card: rgba(17, 32, 42, 0.75);
  --dark-panel: #e9dfd1;
  --panel-ink: #13212a;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --white: #0b151c;
    --off-white: #11212b;
    --ink: #f5efe5;
    --ink2: #ddd5c9;
    --ink3: #aaa69f;
    --ink4: #7f8587;
    --ink5: #3a464d;
    --line: rgba(255, 248, 237, 0.075);
    --line2: rgba(255, 248, 237, 0.14);
    --accent: #d18a59;
    --accent2: var(--accent);
    --accent3: var(--accent);
    --paper: #0b151c;
    --glass: rgba(16, 31, 40, 0.7);
    --glass-strong: rgba(17, 33, 43, 0.9);
    --card: rgba(17, 32, 42, 0.75);
    --dark-panel: #e9dfd1;
    --panel-ink: #13212a;
  }
}

.home-v2 {
  --steel-rgb: 184, 110, 63;
  --steel-bright: #dba274;
  --machine-x: 0px;
  --machine-y: 0px;
}

body.home-v2 {
  background:
    radial-gradient(circle at 4% 7%, rgba(184, 110, 63, 0.085), transparent 27rem),
    radial-gradient(circle at 94% 42%, rgba(17, 35, 46, 0.075), transparent 29rem),
    var(--paper);
}

/* A precise, nearly invisible progress rail. */
.home-v2 .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.home-v2 .scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--steel-rgb), 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Navigation gets a quieter, machined edge. */
.home-v2 .hd {
  position: relative;
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 42px rgba(15, 18, 26, 0.07);
}

.home-v2 .hd::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink4), transparent);
  opacity: 0.28;
}

.home-v2 .wordmark {
  font-size: 1rem;
  letter-spacing: -0.045em;
}

.home-v2 .hd-links a {
  letter-spacing: -0.015em;
}

/* Hero: explicit line choreography and a new machined sculpture. */
.home-v2 .hero {
  min-height: min(920px, 96svh);
  padding: clamp(10.5rem, 12vw, 12rem) 0 clamp(6rem, 9vw, 8rem);
  align-items: flex-start;
  background:
    linear-gradient(90deg, transparent 0 49.96%, var(--line) 50%, transparent 50.04%),
    linear-gradient(0deg, transparent 0 49.96%, var(--line) 50%, transparent 50.04%);
  background-size: 100% 100%;
}

.home-v2 .hero::before {
  background:
    radial-gradient(560px circle at var(--mesh-x) var(--mesh-y), rgba(var(--steel-rgb), 0.12), transparent 68%),
    radial-gradient(420px circle at 88% 22%, rgba(17, 35, 46, 0.075), transparent 70%);
}

.home-v2 .hero::after,
.home-v2 .hero .wrap::after {
  display: none;
}

.home-v2 .hero .wrap > *:not(.hero-machine) {
  max-width: min(62%, 780px);
}

.home-v2 .hero h1 {
  max-width: 10.4ch;
  font-size: clamp(4rem, 6.25vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.072em;
}

.home-v2 .hero-line {
  display: block;
  width: fit-content;
  overflow: hidden;
  padding: 0 0.08em 0.05em 0;
}

.home-v2 .hero-line > span {
  display: block;
  transform: translateY(112%);
  will-change: transform;
}

.home-v2 .rv.vis .hero-line:nth-child(1) > span {
  animation: line-rise 0.9s 0.08s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-v2 .rv.vis .hero-line:nth-child(2) > span {
  animation: line-rise 0.9s 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-v2 .rv.vis .hero-line:nth-child(3) > span {
  animation:
    line-rise 0.9s 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    steel-sheen 7s 1.2s ease-in-out infinite;
}

@keyframes line-rise {
  to { transform: translateY(0); }
}

.home-v2 .delight-accent {
  display: inline;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  animation: none;
}

@keyframes steel-sheen {
  0%, 18%, 100% { background-position: 100% 0; }
  45%, 62% { background-position: 0 0; }
}

.home-v2 .hero-sub {
  margin-top: 2.25rem;
}

.home-v2 .hero-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  translate: var(--cta-x, 0) var(--cta-y, 0);
  transition: translate 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, box-shadow 0.25s ease;
}

.home-v2 .hero-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.34) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-v2 .hero-cta:hover::before {
  transform: translateX(130%);
}

.home-v2 .hero .wrap > .hero-machine {
  position: absolute;
  z-index: 1;
  max-width: none;
  width: min(30vw, 420px);
  aspect-ratio: 1;
  right: clamp(0rem, 2vw, 2rem);
  top: 53%;
  translate: var(--machine-x) calc(-50% + var(--machine-y));
  transition: translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 900px;
  pointer-events: none;
  filter: drop-shadow(0 42px 65px rgba(12, 14, 17, 0.22));
}

.home-v2 .machine-shadow {
  position: absolute;
  width: 72%;
  height: 13%;
  left: 14%;
  bottom: 2%;
  border-radius: 50%;
  background: rgba(15, 17, 20, 0.34);
  filter: blur(24px);
  transform: rotate(-4deg);
}

.home-v2 .machine-core {
  position: absolute;
  inset: 19%;
  overflow: hidden;
  border: 1px solid rgba(219, 162, 116, 0.46);
  border-radius: 48% 52% 49% 51%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 244, 232, 0.94), transparent 5%),
    radial-gradient(circle at 37% 31%, rgba(219, 162, 116, 0.9), transparent 17%),
    radial-gradient(circle at 64% 66%, rgba(15, 33, 43, 0.94), transparent 40%),
    radial-gradient(circle at 50% 48%, #557080, #132b38 74%);
  box-shadow:
    inset -35px -34px 65px rgba(5, 13, 18, 0.42),
    inset 26px 22px 48px rgba(245, 197, 157, 0.2),
    0 32px 80px rgba(12, 29, 38, 0.25);
  animation: core-breathe 7s ease-in-out infinite;
}

.home-v2 .machine-core::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 18px, rgba(255, 255, 255, 0.12) 19px 20px),
    repeating-linear-gradient(96deg, transparent 0 35px, rgba(255, 255, 255, 0.10) 36px 37px);
  mix-blend-mode: overlay;
  animation: core-grid 18s linear infinite;
}

.home-v2 .machine-core::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 24%;
  left: -20%;
  top: 38%;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(15, 17, 20, 0.24);
  background: rgba(255, 255, 255, 0.055);
  transform: rotate(-12deg);
}

@keyframes core-breathe {
  0%, 100% { transform: rotate(-5deg) scale(1); border-radius: 48% 52% 49% 51%; }
  50% { transform: rotate(4deg) scale(1.025); border-radius: 53% 47% 52% 48%; }
}

@keyframes core-grid {
  to { transform: rotate(360deg); }
}

.home-v2 .machine-ring {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(184, 110, 63, 0.46);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  transform-style: preserve-3d;
}

.home-v2 .ring-a {
  transform: rotateX(68deg) rotateZ(-10deg);
  animation: ring-a 14s linear infinite;
}

.home-v2 .ring-b {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(184, 110, 63, 0.58);
  transform: rotateY(66deg) rotateZ(18deg);
  animation: ring-b 18s linear infinite reverse;
}

.home-v2 .ring-c {
  inset: 1%;
  border-color: rgba(17, 35, 46, 0.32);
  transform: rotateX(54deg) rotateY(16deg) rotateZ(22deg);
  animation: ring-c 22s linear infinite;
}

@keyframes ring-a { to { transform: rotateX(68deg) rotateZ(350deg); } }
@keyframes ring-b { to { transform: rotateY(66deg) rotateZ(378deg); } }
@keyframes ring-c { to { transform: rotateX(54deg) rotateY(16deg) rotateZ(382deg); } }

.home-v2 .machine-axis {
  position: absolute;
  width: 1px;
  height: 92%;
  left: 50%;
  top: 4%;
  background: linear-gradient(transparent, rgba(184, 110, 63, 0.68) 18%, rgba(184, 110, 63, 0.68) 82%, transparent);
  transform: rotate(24deg);
}

.home-v2 .machine-axis::before,
.home-v2 .machine-axis::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(184, 110, 63, 0.7);
  border-radius: 50%;
  background: var(--paper);
}

.home-v2 .machine-axis::before { top: 0; }
.home-v2 .machine-axis::after { bottom: 0; }

/* Product field: precision bearings, subtle depth, and pointer tilt. */
.home-v2 .products {
  padding-top: clamp(6rem, 11vw, 10rem);
}

.home-v2 .product-list {
  perspective: 1200px;
}

.home-v2 .product {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  background:
    linear-gradient(145deg, rgba(var(--card-rgb), 0.075), transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(var(--card-rgb), 0.025) 44px 45px),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(var(--card-rgb), 0.02),
    0 10px 30px rgba(18, 20, 28, 0.035);
  transform: perspective(1000px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--lift));
  transform-style: preserve-3d;
  will-change: transform;
}

.home-v2 .product:nth-child(n) {
  --card-rgb: 184, 110, 63;
}

.home-v2 .product::before {
  width: 190px;
  height: 190px;
  right: -52px;
  bottom: -58px;
  border: 1px solid rgba(var(--card-rgb), 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 39% 34%, rgba(255, 255, 255, 0.46), transparent 4%),
    repeating-radial-gradient(circle at center, rgba(var(--card-rgb), 0.32) 0 1px, transparent 2px 16px),
    radial-gradient(circle, rgba(var(--card-rgb), 0.26), rgba(var(--card-rgb), 0.035) 62%, transparent 64%);
  box-shadow:
    inset 0 0 0 16px rgba(var(--card-rgb), 0.02),
    inset 0 0 0 17px rgba(var(--card-rgb), 0.11),
    0 18px 34px rgba(18, 20, 28, 0.08);
  opacity: 0.66;
  transform: rotate(-16deg);
}

.home-v2 .product:hover {
  --lift: -8px;
  transform: perspective(1000px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--lift));
}

.home-v2 .product:hover::before {
  transform: rotate(22deg) scale(1.1);
}

.home-v2 .product > div {
  transform: translateZ(24px);
}

.home-v2 .product-meta {
  border-radius: 6px;
  letter-spacing: 0;
}

.home-v2 .product-arrow {
  border-radius: 8px;
}

/* Thesis becomes a technical field instead of a glow panel. */
.home-v2 .thesis {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--dark-panel);
  background-size: 52px 52px, 52px 52px, auto;
}

.home-v2 .thesis::before {
  width: min(56vw, 720px);
  aspect-ratio: 1;
  right: -14%;
  top: -42%;
  border: 1px solid color-mix(in srgb, var(--panel-ink) 20%, transparent);
  background: repeating-radial-gradient(circle, transparent 0 33px, color-mix(in srgb, var(--panel-ink) 11%, transparent) 34px 35px);
  filter: none;
  opacity: 0.7;
  animation: thesis-orbit 28s linear infinite;
}

.home-v2 .thesis::after {
  width: 1px;
  height: 160%;
  left: 72%;
  bottom: -30%;
  border-radius: 0;
  background: linear-gradient(transparent, color-mix(in srgb, var(--panel-ink) 30%, transparent), transparent);
  filter: none;
  opacity: 0.7;
  transform: rotate(24deg);
}

@keyframes thesis-orbit {
  to { transform: rotate(360deg); }
}

.home-v2 .thesis-text p {
  max-width: 22ch;
  text-shadow: 0 8px 30px color-mix(in srgb, var(--dark-panel) 24%, transparent);
}

/* Founder becomes more editorial and materially grounded. */
.home-v2 .founder-inner {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 65px rgba(18, 20, 28, 0.075);
}

.home-v2 .founder-inner::after {
  content: '';
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: -18%;
  bottom: -78%;
  border: 1px solid rgba(var(--steel-rgb), 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(var(--steel-rgb), 0.025),
    0 0 0 29px rgba(var(--steel-rgb), 0.09),
    0 0 0 58px rgba(var(--steel-rgb), 0.02),
    0 0 0 59px rgba(var(--steel-rgb), 0.07);
  pointer-events: none;
}

.home-v2 .founder-initial {
  filter: saturate(0.96) contrast(1.03);
  border: 1px solid rgba(var(--steel-rgb), 0.24);
}

.home-v2 .founder-info {
  position: relative;
  z-index: 1;
}

.home-v2 footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(var(--steel-rgb), 0.075), transparent 32%),
    var(--card);
}

.home-v2 footer::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: -210px;
  border: 1px solid rgba(var(--steel-rgb), 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(var(--steel-rgb), 0.02),
    0 0 0 45px rgba(var(--steel-rgb), 0.1),
    0 0 0 88px rgba(var(--steel-rgb), 0.018),
    0 0 0 89px rgba(var(--steel-rgb), 0.08);
  pointer-events: none;
}

.home-v2 footer .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .home-v2 .hero {
    min-height: auto;
    padding: 10rem 0 6.5rem;
  }

  .home-v2 .hero .wrap > *:not(.hero-machine) {
    max-width: min(100%, 820px);
  }

  .home-v2 .hero .wrap > .hero-machine {
    display: none;
  }

  .home-v2 .hero h1 {
    max-width: 10.4ch;
    font-size: clamp(3.8rem, 8vw, 5.6rem);
  }

  .home-v2 .product,
  .home-v2 .product:hover {
    transform: translateY(var(--lift));
  }
}

@media (max-width: 700px) {
  .home-v2 .hero {
    min-height: auto;
    padding: 8.5rem 0 5rem;
  }

  .home-v2 .hero h1 {
    font-size: clamp(3.35rem, 15.5vw, 5rem);
  }

  .home-v2 .hero-line {
    max-width: 100%;
  }

  .home-v2 .product > div {
    transform: none;
  }

  .home-v2 .thesis::after {
    display: none;
  }
}

@media (hover: none) {
  .home-v2 .product,
  .home-v2 .product:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 .hero-line > span {
    transform: none;
    animation: none !important;
  }

  .home-v2 .delight-accent,
  .home-v2 .machine-core,
  .home-v2 .machine-core::before,
  .home-v2 .machine-ring,
  .home-v2 .thesis::before {
    animation: none !important;
  }

}
