/* ==========================================================================
   ZHIREN Future Tech — stylesheet
   Colours and type live in :root. Change them there.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-soft: #4a4a46;
  --grey: #6b6b66;            /* AA on white */
  --grey-light: #cfccd6;
  --line: rgba(17, 17, 17, 0.1);
  --white: #ffffff;
  --panel: #f4f3f7;           /* light product panel */
  --night: #0e0e10;           /* dark product panel + contact */
  --night-grey: #9a9a94;      /* AA on --night */
  --lilac: #8b7fb8;           /* accent for shapes and large type */
  --lilac-text: #6a5c9e;      /* accent for small text on white (AA) */
  --lilac-night: #b7afd6;     /* accent on dark */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
  --nav-h: 68px;
  --gutter: clamp(22px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.splash-lock, html.splash-lock body { overflow: hidden; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ol { list-style: none; }
main:focus { outline: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--lilac-text); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 400;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 100px; font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow, .label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac-text);
}
.label { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-title, .statement, .contact-title, .product-name, .principle h3, .step h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.05; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
/* If the script never starts, show everything after a short delay */
@keyframes failsafe { to { opacity: 1; transform: none; } }
.js:not(.js-ready) .reveal, .js:not(.js-ready) .line-in { animation: failsafe 0.01s linear 3s forwards; }

/* ==========================================================================
   Splash (opening screen — taken from the original index.html)
   ========================================================================== */
#splash-screen { display: none; }
.splash-on #splash-screen {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, #1b1b1a 0%, #0d0d0d 100%);
  cursor: pointer; overflow: hidden; outline: none;
  transition: opacity 1s cubic-bezier(0.86, 0, 0.07, 1), visibility 1s cubic-bezier(0.86, 0, 0.07, 1);
}
/* If the script never starts, the splash removes itself after 4s so the site is never blocked */
.splash-on:not(.js-ready) #splash-screen { animation: splashAway 0.01s linear 4s forwards; }
@keyframes splashAway { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#splash-screen.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.splash-logo-wrapper {
  width: 140px; height: 150px; position: relative;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 10px rgba(139, 127, 184, 0));
}
#splash-screen:hover .splash-logo-wrapper {
  transform: scale(1.08);
  filter: drop-shadow(0 0 35px rgba(139, 127, 184, 0.45));
}
#splash-screen.dismissed .splash-logo-wrapper {
  transform: scale(3.5) translate3d(0, 0, 0);
  filter: drop-shadow(0 0 50px rgba(139, 127, 184, 0)) blur(12px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.splash-logo-svg { width: 100%; height: 100%; }

.splash-logo-svg .logo-outer {
  stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: round; fill: transparent;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: drawOuter 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             fillOuter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
.splash-logo-svg .logo-inner {
  stroke: var(--lilac); stroke-width: 1.5; stroke-linejoin: round; fill: transparent;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: drawInner 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
             fillInner 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
@keyframes drawOuter { to { stroke-dashoffset: 0; } }
@keyframes drawInner { to { stroke-dashoffset: 0; } }
@keyframes fillOuter { to { fill: rgba(255, 255, 255, 0.95); stroke: transparent; } }
@keyframes fillInner { to { fill: #191918; stroke: transparent; } }

.splash-prompt {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 50px; opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInPrompt 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards,
             pulsePrompt 2.5s ease-in-out infinite alternate 3.6s;
}
@keyframes fadeInPrompt { to { opacity: 1; transform: translateY(0); } }
@keyframes pulsePrompt {
  0%, 100% { color: rgba(255, 255, 255, 0.35); }
  50% { color: rgba(255, 255, 255, 0.75); text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
}
#splash-screen:focus-visible .splash-prompt { color: #fff; }
#splash-screen.dismissed .splash-prompt { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 22px; height: auto; }
.wordmark { font-size: 14px; font-weight: 600; letter-spacing: 0.26em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { position: relative; font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  color: var(--white) !important; background: var(--ink);
  padding: 8px 18px; border-radius: 100px;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--lilac-text); transform: translateY(-1px); }

.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--lilac); transform: scaleX(0); transform-origin: left;
}

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--white);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  font-family: var(--serif); font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu a:nth-child(4) { transition-delay: 0.15s; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--lilac-text); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(17, 17, 17, 0.25); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 800px); min-height: min(100svh, 800px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 64px;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-glow {
  position: absolute; width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%;
  right: -12vw; top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(139, 127, 184, 0.28), rgba(139, 127, 184, 0) 68%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(-4vw, 4vh) scale(1.08); } }

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 9.4vw, 132px);
  line-height: 1; letter-spacing: -0.035em;
  margin: 20px 0 26px;
}
.hero-title em { font-style: italic; color: var(--lilac); font-weight: 300; }
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line-in { display: inline-block; }
.js .line-in { transform: translateY(112%); }
.js.ready .line-in { transform: none; transition: transform 1.2s var(--ease); }
.js.ready .line:nth-child(2) .line-in { transition-delay: 0.1s; }
.js.ready .line:nth-child(3) .line-in { transition-delay: 0.2s; }

.lede { max-width: 520px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Reveals inside the hero wait for the splash to finish */
.js .hero .reveal { transition-property: none; }
.js.ready .hero .reveal { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0.2s), transform 1s var(--ease) var(--d, 0.2s); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 22px; height: 38px;
  margin-left: -11px; border: 1px solid rgba(17, 17, 17, 0.3); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--ink); border-radius: 2px; animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { padding: clamp(52px, 6.5vw, 88px) 0; }

/* Approach */
.statement {
  font-size: clamp(28px, 4.6vw, 62px); line-height: 1.16;
  max-width: 17em; margin-bottom: clamp(40px, 5.5vw, 72px);
}
.statement .w { color: var(--grey-light); transition: color 0.5s ease; }
.statement .w.on { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-family: var(--serif); font-style: italic; color: var(--lilac-text); margin-bottom: 20px; }
.step h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* Ventures */
.sec-ventures { padding-top: 0; }
.showcase {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: clamp(380px, 40vw, 480px);
  border-radius: clamp(20px, 3vw, 32px); overflow: hidden;
  margin-bottom: 24px;
}
.showcase.reverse { grid-template-columns: 1fr 1.05fr; }
.showcase.reverse .showcase-visual { order: -1; }
.showcase-body {
  padding: clamp(28px, 4.4vw, 60px);
  display: flex; flex-direction: column;
}
.showcase-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 28px; }
.index { font-family: var(--serif); font-style: italic; font-size: 18px; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; border: 1px solid currentColor;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.product-name { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; margin-bottom: 20px; }
.product-desc { max-width: 30em; font-size: 17px; margin-bottom: 36px; }
.facts { display: grid; gap: 0; border-top: 1px solid currentColor; }
.facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid currentColor; font-size: 14px; }
.facts dt { opacity: 0.7; }
.facts dd { text-align: right; }

.showcase-visual {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4.4vw, 60px); overflow: hidden;
}

.showcase-dark { background: var(--night); color: var(--white); }
.showcase-dark .index, .showcase-dark .status { color: var(--lilac-night); }
.showcase-dark .product-desc { color: #c9c8cf; }
.showcase-dark .facts { border-color: rgba(255, 255, 255, 0.18); }
.showcase-dark .facts > div { border-color: rgba(255, 255, 255, 0.18); }
.showcase-dark .showcase-visual::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  right: -30%; bottom: -35%;
  background: radial-gradient(circle, rgba(139, 127, 184, 0.35), rgba(139, 127, 184, 0) 66%);
  transition: transform 1.2s var(--ease);
}
.showcase-dark:hover .showcase-visual::before { transform: scale(1.15) translate(-4%, -4%); }
.quote {
  position: relative; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.03em;
}
.quote span { display: inline-block; }
.quote .soft { color: var(--lilac-night); }

.showcase-light { background: var(--panel); border: 1px solid var(--line); }
.showcase-light .index, .showcase-light .status { color: var(--lilac-text); }
.showcase-light .product-desc { color: var(--ink-soft); }
.showcase-light .facts, .showcase-light .facts > div { border-color: var(--line); }
.mono-hr, .mono-asura { font-family: var(--serif); letter-spacing: -0.04em; line-height: 0.9; transition: transform 1s var(--ease); }
.mono-hr { font-size: clamp(120px, 20vw, 280px); font-weight: 500; color: var(--ink); }
.mono-asura {
  font-size: clamp(64px, 11vw, 160px); font-weight: 400; font-style: italic;
  color: transparent; -webkit-text-stroke: 1.2px var(--lilac); margin-top: -0.05em;
}
.showcase-light:hover .mono-asura { transform: translateX(14px); }
.showcase-light:hover .mono-hr { transform: translateX(-6px); }

/* Principles */
.principles { border-top: 1px solid var(--ink); }
.principle {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px; align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.principle::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--lilac); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.principle:hover { padding-left: 14px; }
.principle:hover::after { transform: scaleX(1); }
.p-n { font-family: var(--serif); font-style: italic; color: var(--lilac-text); }
.principle h3 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.1; }
.principle p { color: var(--ink-soft); max-width: 28em; }

/* Contact + footer (dark) */
.sec-contact { background: var(--night); color: var(--white); padding-bottom: clamp(48px, 6vw, 80px); }
.sec-contact .label { color: var(--lilac-night); }
.contact-title { font-size: clamp(42px, 8vw, 116px); line-height: 1; max-width: 11em; margin-bottom: 18px; }
.contact-lede { max-width: 30em; color: #c9c8cf; margin-bottom: 32px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.email-link {
  position: relative; font-family: var(--serif); font-size: clamp(22px, 4.2vw, 52px);
  letter-spacing: -0.02em; word-break: break-word;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color 0.3s, background-size 0.5s var(--ease);
}
.email-link:hover { color: var(--lilac-night); }
.copy {
  font-size: 13px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.copy:hover { background: var(--white); color: var(--night); border-color: var(--white); }
.copy-status { font-size: 13px; color: var(--lilac-night); min-height: 1em; }
.sec-contact :focus-visible, .site-footer :focus-visible { outline-color: var(--lilac-night); }

.site-footer { background: var(--night); color: var(--white); padding: 0 0 40px; }
.site-footer .wrap { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.site-footer .brand-mark { filter: invert(1); }  /* one logo file serves light and dark backgrounds */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.foot-links a { font-size: 14px; color: var(--night-grey); transition: color 0.2s; }
.foot-links a:hover { color: var(--white); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--night-grey); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-n { margin-bottom: 12px; }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; min-height: 0; }
  .showcase.reverse .showcase-visual { order: 0; }
  .showcase-visual { min-height: 220px; }
  .showcase-body { min-height: 340px; }
  .principle { grid-template-columns: 54px 1fr; }
  .principle p { grid-column: 2; margin-top: 4px; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion: everything is simply visible and still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .line-in { opacity: 1; transform: none; }
  .statement .w { color: var(--ink); }
  .hero-glow { transform: none; }
}