:root {
  --bg: #0d0f13;
  --navy: #0e1624;
  --ink: #eceae4;
  --mute: #a3a8b0;
  --line: rgba(236, 234, 228, 0.16);
  --copper: #d27a4a;
  --gold: #d27a4a;          /* the accent, shared with the 3D scene */
  --cream: #f3efe8;
  --paper: #f7f5f1;
  --dark-ink: #0f1722;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }

/* ---------- fixed 3D layer ---------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.2s linear; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(8, 9, 12, 0.85) 100%); }
body.detail { touch-action: none; }
.fx.off { visibility: hidden; }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 20px clamp(20px, 4vw, 56px); transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, opacity 1.2s ease 0.3s; border-bottom: 1px solid transparent; opacity: 0; }
body.ready .top { opacity: 1; }
.top.solid { background: rgba(13, 15, 19, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.logo-t { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1; padding-bottom: 2px; }
.brand-name { font-size: 12px; letter-spacing: 0.22em; font-weight: 600; line-height: 1.3; padding-left: 14px; border-left: 1px solid var(--line); }
.site-nav { display: flex; gap: clamp(18px, 3vw, 44px); justify-content: center; font-size: 14px; }
.site-nav a { color: var(--ink); opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.site-nav a:hover { opacity: 1; color: var(--copper); }
.btn-outline { border: 1px solid var(--ink); padding: 11px 20px; font-size: 13.5px; display: inline-flex; gap: 10px; align-items: center; transition: background 0.25s, color 0.25s, border-color 0.25s; white-space: nowrap; }
.btn-outline i, .btn-solid i, .btn-cream i { font-style: normal; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.back { position: fixed; top: 92px; left: clamp(20px, 4vw, 56px); z-index: 19; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); padding: 10px 0; opacity: 0; pointer-events: none; transition: opacity 0.5s, color 0.3s; }
.back:hover { color: var(--copper); }
body.detail .back { opacity: 1; pointer-events: auto; }

/* ---------- loader ---------- */
.loader { position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%); width: min(320px, 70vw); text-align: center; transition: opacity 0.9s ease; }
.loader-bar { height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--copper); transition: width 0.3s linear; }
.loader-text { margin-top: 16px; font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--mute); }
body.ready .loader { opacity: 0; }

/* ---------- carousel caption ---------- */
.caption { position: absolute; left: 50%; bottom: calc(15vh + 40px); transform: translateX(-50%); text-align: center; width: min(560px, 90vw); opacity: 0; transition: opacity 0.8s ease; }
body.ready:not(.detail) .caption { opacity: 1; transition-delay: 0.9s; }
.caption .count { font-size: 11px; letter-spacing: 0.4em; color: var(--mute); }
.caption .count b { color: var(--copper); font-weight: 500; }
.caption h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 54px); letter-spacing: 0.01em; margin: 10px 0 8px; line-height: 1.05; }
.caption p { font-size: 13px; color: var(--mute); letter-spacing: 0.04em; min-height: 1.4em; }
.cta { pointer-events: auto; margin-top: 22px; display: inline-flex; gap: 14px; align-items: center; padding: 13px 26px; border: 1px solid var(--line); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; transition: border-color 0.3s, background 0.3s; }
.cta i { font-style: normal; color: var(--copper); transition: transform 0.3s; }
.cta:hover { border-color: var(--copper); background: rgba(210, 122, 74, 0.1); }
.cta:hover i { transform: translateX(5px); }

.nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: clamp(16px, 4vw, 64px); padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); opacity: 0; transition: opacity 0.8s ease 1.1s; }
body.ready:not(.detail) .nav { opacity: 1; }
body.detail .nav { opacity: 0; transition-delay: 0s; }
.nav button { pointer-events: auto; position: relative; padding: 10px 0 12px; font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); transition: color 0.3s; white-space: nowrap; }
.nav button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.nav button.on { color: var(--ink); }
.nav button.on::after { transform: scaleX(1); }
.nav button:hover { color: var(--ink); }
.nav sup { color: var(--copper); margin-right: 8px; font-size: 9px; }

.hint { position: absolute; right: clamp(20px, 4vw, 56px); bottom: 34px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 0.8s ease 1.4s; }
body.ready:not(.detail) .hint { opacity: 0.9; }
.hint em { color: var(--copper); font-style: normal; margin: 0 4px; }
.mouse { width: 14px; height: 22px; border: 1px solid var(--mute); border-radius: 8px; position: relative; flex: none; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 4px; margin-left: -1px; background: var(--copper); border-radius: 1px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
.discover { pointer-events: auto; position: absolute; left: clamp(20px, 4vw, 56px); bottom: 34px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); opacity: 0; transition: opacity 0.8s ease 1.4s, color 0.3s; }
.discover i { font-style: normal; color: var(--copper); margin-left: 8px; display: inline-block; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.discover:hover { color: var(--ink); }
body.ready:not(.detail) .discover { opacity: 0.9; }

/* ---------- detail panel ---------- */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 38vw); z-index: 18; padding: 130px clamp(24px, 3vw, 48px) 40px; background: linear-gradient(to left, rgba(12, 14, 18, 0.94) 55%, transparent); transform: translateX(105%); transition: transform 0.9s cubic-bezier(.2,.7,.1,1); overflow-y: auto; touch-action: pan-y; }
body.detail .panel { transform: none; transition-delay: 0.35s; }
.panel-inner > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
body.detail .panel-inner.show > * { opacity: 1; transform: none; }
body.detail .panel-inner.show > *:nth-child(2) { transition-delay: 0.08s; }
body.detail .panel-inner.show > *:nth-child(3) { transition-delay: 0.16s; }
body.detail .panel-inner.show > *:nth-child(4) { transition-delay: 0.24s; }
body.detail .panel-inner.show > *:nth-child(5) { transition-delay: 0.32s; }
body.detail .panel-inner.show > *:nth-child(6) { transition-delay: 0.4s; }
.eyebrow { font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--copper); }
.panel h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; margin: 14px 0 16px; }
.panel .lede { font-size: 14px; line-height: 1.65; color: var(--mute); }
.group { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.group h3 { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.group ul { list-style: none; }
.group li { font-size: 13px; line-height: 1.5; color: var(--mute); padding: 5px 0 5px 18px; position: relative; }
.group li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--copper); }
.apps { display: grid; gap: 12px; margin-top: 26px; }
.app-card { text-align: left; padding: 18px 20px; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color 0.3s, background 0.3s; }
.app-card:hover { border-color: var(--copper); background: rgba(210, 122, 74, 0.08); }
.app-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.app-card small { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; line-height: 1.45; }
.app-card i { font-style: normal; color: var(--copper); }
.note { margin-top: 28px; font-size: 10.5px; letter-spacing: 0.06em; color: #6d727b; line-height: 1.6; }
.tabs { display: flex; gap: 22px; margin-bottom: 26px; }
.tabs button { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid transparent; }
.tabs button.on { color: var(--ink); border-color: var(--copper); }

/* ---------- scrolling site ---------- */
.site { position: relative; z-index: 2; }
.hero-space { height: 100vh; height: 100svh; pointer-events: none; }
.wrap { width: min(1240px, 100% - clamp(40px, 8vw, 112px)); margin-inline: auto; }
section { position: relative; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.rule { width: 44px; height: 2px; background: var(--copper); margin: 26px 0; }
.rule.copper { background: var(--copper); }
.kicker { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--copper); margin-bottom: 22px; }
.body { font-size: 17px; line-height: 1.7; color: #cdd0d5; max-width: 34em; }
.body + .body { margin-top: 18px; }
.body.dim { color: var(--mute); font-size: 15.5px; }
.h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.h2-serif { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.015em; color: var(--dark-ink); }
.h2-serif.light { color: var(--ink); }
.m-only { display: none; }

.btn-solid { display: inline-flex; gap: 12px; align-items: center; background: var(--copper); color: #1b0f08; padding: 15px 26px; font-weight: 500; font-size: 15px; transition: background 0.25s, transform 0.25s; }
.btn-solid:hover { background: #e08d5e; transform: translateY(-2px); }
.btn-cream { display: inline-flex; gap: 12px; align-items: center; background: var(--cream); color: var(--dark-ink); padding: 15px 26px; font-weight: 500; font-size: 15px; margin-top: 30px; transition: transform 0.25s, background 0.25s; }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }

/* statement */
.s-dark { background: var(--bg); padding: clamp(90px, 14vw, 180px) 0; overflow: hidden; }
.statement { padding-block: clamp(110px, 16vw, 210px); }
.bg-img { position: absolute; inset: 0 0 0 36%; background-size: cover; background-position: right center; opacity: 0.9; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%); mask-image: linear-gradient(to right, transparent 0, #000 45%); }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), transparent 18%, transparent 78%, var(--bg)); pointer-events: none; }
.statement-inner { position: relative; z-index: 2; }
.display { font-family: var(--sans); font-weight: 600; font-size: clamp(52px, 8.4vw, 118px); line-height: 0.98; letter-spacing: -0.035em; }
.italic-line { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.2vw, 40px); color: #cdbfb3; margin-top: 22px; }
.lead { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5; color: var(--ink); margin-bottom: 34px; }

/* tekton layers */
.s-black { background: #07080a; padding: clamp(80px, 11vw, 150px) 0; }
.layers { position: relative; padding-right: clamp(120px, 14vw, 190px); }
.layers img { width: 100%; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse at 50% 50%, #000 58%, transparent 100%); }
.tag { position: absolute; right: 0; width: clamp(120px, 14vw, 190px); font-size: 13.5px; color: var(--ink); padding-left: 46px; line-height: 1.25; }
.tag::before { content: ""; position: absolute; left: -22px; top: 50%; width: 62px; height: 1px; background: var(--ink); opacity: 0.7; }
.tag::after { content: ""; position: absolute; left: -26px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
.t1 { top: 13%; } .t2 { top: 45%; } .t3 { top: 75%; }

/* one platform */
.s-light { background: var(--paper); color: var(--dark-ink); padding: clamp(80px, 11vw, 150px) 0; }
.s-light .rule { margin: 24px 0 48px; }
.cards3 { --g: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.card { position: relative; }
.card + .card::before { content: ""; position: absolute; left: calc(var(--g) / -2); top: 0; bottom: 0; width: 1px; background: rgba(15, 23, 34, 0.14); }
.card img { width: 100%; aspect-ratio: 13 / 10; object-fit: cover; margin-bottom: 26px; filter: saturate(0.9); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin-bottom: 12px; color: var(--dark-ink); }
.card p { font-size: 16px; line-height: 1.6; color: #3d4654; max-width: 22em; }
.tick { display: block; width: 44px; height: 2px; background: var(--copper); margin-top: 26px; }

/* journey */
.s-navy { background: var(--navy); padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.journey { grid-template-columns: 0.85fr 1.15fr; }
.cutaway { margin-right: calc(-1 * clamp(20px, 4vw, 56px)); position: relative; }
.cutaway::before { content: ""; position: absolute; left: 0; top: 25%; width: 5%; height: 17%; background: radial-gradient(ellipse at 0 50%, #0e1624 55%, transparent 100%); z-index: 1; pointer-events: none; }
.cutaway img { width: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }

/* engineered around the application */
.s-cream { background: var(--cream); color: var(--dark-ink); padding: clamp(80px, 11vw, 150px) 0; }
.head2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.body.ink { color: #2c3645; }
.body.bar { border-left: 1px solid rgba(15, 23, 34, 0.3); padding-left: 28px; font-size: 16px; }
.comp { align-items: end; }
.flange img { width: 100%; border-radius: 2px; }
.eyebrow { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dark-ink); font-weight: 600; margin-bottom: 18px; }
.eyebrow i { flex: 1; height: 1px; background: var(--copper); }
.eyebrow.light { color: var(--ink); }
.ov { list-style: none; display: grid; gap: 10px; }
.ov li { display: flex; gap: 18px; align-items: center; border: 1px solid rgba(15, 23, 34, 0.16); background: rgba(255, 255, 255, 0.45); padding: 10px 18px 10px 10px; }
.ov img { width: 84px; height: 61px; object-fit: cover; flex: none; }
.ov b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.ov span { font-size: 14px; line-height: 1.4; color: #3d4654; }

/* applications */
.apps .eyebrow { margin-bottom: 30px; }
.cards6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app { display: block; position: relative; overflow: hidden; background: #0c0e12; }
.app img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.1,1), filter 0.4s; filter: brightness(0.8); }
.app:hover img { transform: scale(1.05); filter: brightness(1); }
.app h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 18px 4px 6px; }
.app h3 i { font-style: normal; color: var(--copper); font-size: 18px; margin-left: 6px; }
.app p { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 4px 20px; }

/* manufacturing */
.mfg .rule { margin: 26px 0 50px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 24px; }
.cols3 b { color: var(--copper); font-size: 12px; letter-spacing: 0.3em; font-weight: 500; }
.cols3 h3 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin: 14px 0 12px; }
.cols3 p { color: #b7bcc4; font-size: 16px; line-height: 1.6; max-width: 22em; }

/* company + contact */
.company .two { align-items: start; }
.contact { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.contact h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; }
.contact label { display: grid; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.contact input, .contact textarea { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 13px 14px; border-radius: 0; width: 100%; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--copper); }
.contact .btn-solid { justify-self: start; }
.sent { font-size: 13px; color: var(--copper); }

.foot { background: #07080a; border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot p { font-size: 12.5px; color: #6d727b; }
.brand.sm .logo-t { width: 30px; height: 30px; font-size: 16px; }
.brand.sm .brand-name { font-size: 10.5px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.1,1); }
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: 0.08s; } .rv:nth-child(3) { transition-delay: 0.16s; } .rv:nth-child(4) { transition-delay: 0.24s; } .rv:nth-child(5) { transition-delay: 0.32s; }

.fallback { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--mute); z-index: 50; background: var(--bg); }
.fallback[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .hint { display: none; } .site-nav { gap: 20px; font-size: 13px; } }
@media (max-width: 980px) {
  .top { grid-template-columns: auto 1fr; }
  .site-nav { display: none; }
  .top .btn-outline { justify-self: end; }
  .two, .journey, .head2 { grid-template-columns: 1fr; }
  .cutaway { margin-right: 0; }
  .cards6 { grid-template-columns: repeat(2, 1fr); }
  .layers { max-width: 560px; }
}
@media (max-width: 820px) {
  .panel { top: auto; left: 0; width: 100%; height: 50vh; padding: 28px 24px 40px; transform: translateY(105%); background: linear-gradient(to top, rgba(12, 14, 18, 0.97) 70%, transparent); }
  body.detail .panel { transform: none; }
  .back { top: 78px; }
  .nav { gap: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .nav button { font-size: 9px; letter-spacing: 0.16em; }
  .nav sup { display: none; }
  .discover { display: none; }
  .caption { bottom: calc(14vh + 36px); }
  .cards3 { grid-template-columns: 1fr; gap: 40px; }
  .card + .card::before { display: none; }
  .m-only { display: inline; }
  .cols3 { grid-template-columns: 1fr; }
  .body.bar { padding-left: 18px; }
}
@media (max-width: 560px) {
  .cards6 { grid-template-columns: 1fr; }
  .btn-outline { padding: 9px 14px; font-size: 12.5px; }
  .brand-name { font-size: 10.5px; padding-left: 10px; }
  .logo-t { width: 32px; height: 32px; font-size: 17px; }
  .top { padding-block: 14px; gap: 12px; }
  .tag { font-size: 12px; padding-left: 40px; }
  .tag::before { width: 30px; }
}
@media (prefers-reduced-motion: reduce) { .mouse::after, .discover i { animation: none; } .rv { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
