/* ============================================================
   KRYON TECHNOLOGY — icomat-inspired ESDM platform site
   Monochrome · grotesque + mono · hairline grid · cinematic
   ============================================================ */

:root {
  --black: #0a0a0b;
  --black-2: #070708;
  --white: #f4f3ef;
  --white-2: #ffffff;
  --grey: #8c8c87;
  --grey-2: #b9b9b3;
  --grey-3: #2a2a2c;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 10, 11, 0.14);
  --ease: cubic-bezier(0.65, 0.05, 0.1, 1);
  --pad: clamp(20px, 5vw, 80px);
  --section-pad: clamp(80px, 12vw, 200px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--black); color: var(--white); }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { width: min(560px, 80vw); text-align: center; }
.preloader__brand {
  display: flex; align-items: flex-start; justify-content: center;
  font-weight: 800; font-size: clamp(48px, 10vw, 110px);
  letter-spacing: -0.04em; line-height: 1;
}
.preloader__word { overflow: hidden; }
.preloader__tm { font-size: 0.28em; margin-top: 0.3em; opacity: 0.5; }
.preloader__meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--grey-2); margin: 26px 0 12px;
}
.preloader__bar { height: 1px; background: var(--line-dark); width: 100%; }
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--white); }

/* ===================== CURSOR ===================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 10000;
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .25s;
  mix-blend-mode: difference; color: #fff;
}
.cursor.is-hover { width: 46px; height: 46px; background: rgba(255,255,255,0.25); }
@media (hover: none) { .cursor { display: none; } }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference; color: #fff;
  transition: padding .4s var(--ease);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 16px; height: 16px; border: 1.5px solid currentColor;
  border-radius: 50%; position: relative;
}
.logo__mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: currentColor;
}
.logo__type { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); font-size: 12px; }
.nav__link { position: relative; padding: 4px 0; opacity: 0.85; transition: opacity .3s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor; padding: 9px 16px; font-size: 12px;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: #fff; color: #000; mix-blend-mode: normal; }

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__burger span { width: 26px; height: 1.5px; background: currentColor; transition: transform .3s; }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 850; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--pad); transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__link { font-size: clamp(34px, 9vw, 64px); font-weight: 700; letter-spacing: -0.03em; }

/* ===================== SECTION BASES ===================== */
.section--light { background: var(--white); color: var(--black); }
.section--dark { background: var(--black); color: var(--white); }
section { position: relative; }

/* ===================== HERO ===================== */
.hero {
  height: 100svh; min-height: 640px; position: relative;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { transform: scale(1.12); will-change: transform; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0.15) 35%, rgba(10,10,11,0.55) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(10,10,11,0.85), transparent 60%);
}
.hero__content { position: relative; z-index: 2; margin-bottom: auto; padding-top: 22vh; max-width: 1100px; }
.hero__title {
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(48px, 11vw, 170px);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title sup { font-size: 0.22em; vertical-align: super; opacity: 0.6; font-weight: 600; }
.line--accent { color: var(--grey-2); }
.hero__sub {
  position: relative; z-index: 2; max-width: 520px; margin-top: 30px;
  font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; color: var(--grey-2);
}
.hero__foot {
  position: relative; z-index: 2; display: flex; align-items: flex-end;
  justify-content: space-between; padding-top: 40px; font-size: 12px;
}
.hero__loc { color: var(--grey-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.scroll-cue__arrow { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

/* ===================== GRID DECO (blueprint ticks) ===================== */
.grid-deco { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 25% 100%, 100% 33.33%;
}

/* ===================== INTRO ===================== */
.intro { padding: var(--section-pad) var(--pad); }
.intro__statement {
  font-size: clamp(30px, 5.4vw, 92px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.02; max-width: 1400px;
}
.intro__statement [data-word] { display: inline-block; opacity: 0.12; transition: opacity .5s; }
.intro__row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
  margin-top: clamp(60px, 9vw, 130px); border-top: 1px solid var(--line-light); padding-top: 40px;
}
.intro__label { font-size: 12px; color: var(--grey); }
.intro__body { max-width: 620px; }
.intro__body p { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.4; letter-spacing: -0.01em; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; font-weight: 500;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ===================== COMPARE ===================== */
.compare { padding: 0 var(--pad) var(--section-pad); }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare__card { border: 1px solid var(--line-light); padding: 16px; }
.compare__head { font-size: 11px; color: var(--grey); margin-bottom: 16px; }
.compare__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--grey-3); }
.compare__media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,8,0.15) 0%, transparent 35%, rgba(7,7,8,0.65) 100%); }
.compare__media img { filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.compare__card:hover .compare__media img { transform: scale(1.06); }
.compare__tag {
  position: absolute; top: 14px; left: 14px; font-size: 10px;
  background: rgba(10,10,11,0.7); color: #fff; padding: 6px 10px; backdrop-filter: blur(4px);
}
.compare__highlight {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-size: clamp(16px, 2vw, 24px); font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.compare__list { list-style: none; margin-top: 16px; font-size: 11px; color: var(--grey); }
.compare__list li { padding: 9px 0; border-top: 1px solid var(--line-light); }
.compare__card--after { background: var(--black); color: var(--white); border-color: transparent; }
.compare__card--after .compare__head { color: var(--grey-2); }
.compare__card--after .compare__media img { filter: grayscale(0) contrast(1.05); }
.compare__card--after .compare__list { color: var(--grey-2); }
.compare__card--after .compare__list li { border-color: var(--line-dark); }

/* ===================== STATS BAND ===================== */
.stats { height: 86vh; min-height: 540px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stats__media { position: absolute; inset: 0; }
.stats__media img { filter: grayscale(0.3) brightness(0.6); transform: scale(1.1); will-change: transform; }
.stats__overlay { position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, transparent, rgba(7,7,8,0.85)); }
.stats__chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 14px; cursor: none;
  background: rgba(244,243,239,0.08); border: 1px solid var(--line-dark);
  color: #fff; padding: 14px 20px; font-size: 12px; backdrop-filter: blur(6px);
  transition: background .3s, transform .3s var(--ease);
}
.stat-chip i { font-style: normal; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.stat-chip:hover { background: rgba(244,243,239,0.18); transform: translateY(-3px); }

/* ===================== OPERATE (word highlight) ===================== */
.operate { padding: var(--section-pad) var(--pad); }
.operate__text { font-size: clamp(26px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.18; max-width: 1500px; }
.operate__lead { color: var(--white); }
.hl-text { color: var(--grey-3); }
.hl-text .w { transition: color .2s; }

/* ===================== ADVANTAGE ===================== */
.advantage { padding: var(--section-pad) var(--pad); }
.advantage__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(50px, 8vw, 100px); }
.advantage__head .mono { font-size: 12px; color: var(--grey); }
.advantage__head h2,
.products__head h2,
.process__intro h2,
.trust__head h2,
.cta__top h2 { font-size: clamp(34px, 6vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.advantage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.adv-card { background: var(--white); padding: clamp(28px, 3vw, 48px); min-height: 320px; display: flex; flex-direction: column; }
.adv-card__num { font-size: 12px; color: var(--grey); }
.adv-card h3 { margin-top: auto; font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.adv-card p { margin-top: 16px; color: var(--grey); font-size: 16px; line-height: 1.5; max-width: 32ch; }

/* ===================== PROCESS ===================== */
.process { padding: var(--section-pad) var(--pad); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.process__intro { position: sticky; top: 120px; }
.process__intro .mono { font-size: 12px; color: var(--grey-2); }
.process__intro h2 { margin-top: 20px; }
.process__list { list-style: none; }
.process__step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line-dark); }
.process__step:last-child { border-bottom: 1px solid var(--line-dark); }
.process__num { font-size: 13px; color: var(--grey-2); padding-top: 6px; }
.process__info h3 { font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.process__info p { margin-top: 12px; color: var(--grey-2); font-size: 16px; line-height: 1.5; max-width: 46ch; }

/* ===================== PRODUCTS ===================== */
.products { padding: var(--section-pad) var(--pad); }
.products__head { margin-bottom: clamp(46px, 6vw, 80px); display: flex; flex-direction: column; gap: 20px; }
.products__head .mono { font-size: 12px; color: var(--grey); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prod-card { border: 1px solid var(--line-light); overflow: hidden; transition: transform .5s var(--ease); }
.prod-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--grey-3); }
.prod-card__media img { filter: grayscale(1) contrast(1.05); transition: transform 1s var(--ease), filter .6s; }
.prod-card:hover .prod-card__media img { transform: scale(1.07); filter: grayscale(0) contrast(1.05); }
.prod-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.prod-card__idx { font-size: 11px; color: var(--grey); }
.prod-card__body h3 { font-size: clamp(18px, 1.6vw, 23px); font-weight: 700; letter-spacing: -0.02em; }
.prod-card__body p { color: var(--grey); font-size: 14px; line-height: 1.45; }

/* ===================== INDUSTRIES ===================== */
.industries { padding: var(--section-pad) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.industries__counter .mono { font-size: 12px; color: var(--grey-2); }
.counter { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; font-weight: 800; letter-spacing: -0.05em; }
.counter__cur { font-size: clamp(120px, 26vw, 360px); line-height: 0.8; }
.counter__sep { font-size: clamp(60px, 10vw, 140px); color: var(--grey); }
.counter__total { font-size: clamp(28px, 4vw, 56px); color: var(--grey-2); align-self: flex-start; }
.industries__list { list-style: none; }
.industries__list li {
  display: flex; align-items: center; gap: 20px; padding: 26px 0;
  border-top: 1px solid var(--line-dark); font-size: clamp(22px, 3vw, 44px);
  font-weight: 600; letter-spacing: -0.02em;
}
.industries__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.industries__list .mono { font-size: 12px; color: var(--grey-2); }

/* ===================== TRUST ===================== */
.trust { padding: var(--section-pad) var(--pad); }
.trust__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(50px, 7vw, 90px); }
.trust__head .mono { font-size: 12px; color: var(--grey); }
.trust__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.trust__quote p { font-size: clamp(22px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.trust__quote footer { margin-top: 28px; font-size: 12px; color: var(--grey); }
.trust__model { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.trust__col { background: var(--white); padding: 28px; }
.trust__col--us { background: var(--black); color: var(--white); }
.trust__col-tag { font-size: 11px; color: var(--grey); display: block; margin-bottom: 22px; }
.trust__col--us .trust__col-tag { color: var(--grey-2); }
.trust__col ul { list-style: none; }
.trust__col li { padding: 14px 0; border-top: 1px solid var(--line-light); font-size: 12px; color: var(--grey); }
.trust__col--us li { border-color: var(--line-dark); color: var(--grey-2); }

/* ===================== MANIFESTO ===================== */
.manifesto { min-height: 92vh; display: flex; align-items: flex-end; padding: var(--section-pad) var(--pad); overflow: hidden; }
.manifesto__media { position: absolute; inset: 0; }
.manifesto__media img { filter: grayscale(0.4) brightness(0.45); transform: scale(1.1); will-change: transform; }
.manifesto__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,8,0.3), rgba(7,7,8,0.85)); }
.manifesto__content { position: relative; z-index: 2; max-width: 1000px; }
.manifesto__content .mono { font-size: 12px; color: var(--grey-2); }
.manifesto__content h2 { margin: 20px 0 24px; font-size: clamp(34px, 6vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.manifesto__content p { max-width: 620px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--grey-2); }

/* ===================== CTA ===================== */
.cta { padding: var(--section-pad) var(--pad); }
.cta__top { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; margin-bottom: clamp(60px, 9vw, 120px); }
.cta__top .mono { font-size: 12px; color: var(--grey); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--black); color: var(--white); padding: 18px 30px;
  font-weight: 600; font-size: 16px; border-radius: 100px; transition: transform .3s var(--ease), background .3s;
}
.btn-primary span { transition: transform .3s var(--ease); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary:hover span { transform: translateX(5px); }
.cta__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.cta-feat { background: var(--white); padding: 30px 26px; min-height: 230px; display: flex; flex-direction: column; }
.cta-feat .mono { font-size: 11px; color: var(--grey); }
.cta-feat h4 { margin-top: auto; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.cta-feat p { margin-top: 12px; color: var(--grey); font-size: 14px; line-height: 1.5; }

/* ===================== FOOTER ===================== */
.footer { background: var(--black); color: var(--white); padding: var(--section-pad) var(--pad) 40px; }
.footer__big { font-size: clamp(40px, 9vw, 160px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; }
.footer__big span { display: block; }
.footer__big sup { font-size: 0.2em; vertical-align: super; opacity: 0.5; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: clamp(60px, 9vw, 120px) 0 60px; border-top: 1px solid var(--line-dark); padding-top: 50px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-tag { font-size: 11px; color: var(--grey); margin-bottom: 10px; }
.footer__col a { color: var(--grey-2); font-size: 15px; transition: color .3s; width: fit-content; }
.footer__col a:hover { color: var(--white); }
.footer__addr { color: var(--grey); font-size: 14px; line-height: 1.6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--grey); border-top: 1px solid var(--line-dark); padding-top: 26px; flex-wrap: wrap; }

/* ===================== REVEAL STATES ===================== */
[data-reveal-line] > span,
[data-reveal-line] > sup { transform: translateY(110%); display: inline-block; }
[data-reveal-fade] { opacity: 0; transform: translateY(24px); }
[data-stagger] { opacity: 0; transform: translateY(40px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .process { grid-template-columns: 1fr; gap: 30px; }
  .process__intro { position: static; }
  .advantage__grid,
  .products__grid,
  .cta__features { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav__burger { display: flex; }
  .header { mix-blend-mode: difference; }
  .compare__grid { grid-template-columns: 1fr; }
  .advantage__grid,
  .products__grid,
  .cta__features,
  .trust__model { grid-template-columns: 1fr; }
  .hero__content { padding-top: 16vh; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .intro__row { grid-template-columns: 1fr; gap: 16px; }
  body { cursor: auto; }
  .cursor { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal-line] > span, [data-reveal-line] > sup,
  [data-reveal-fade], [data-stagger] { opacity: 1 !important; transform: none !important; }
  .intro__statement [data-word] { opacity: 1 !important; }
  .hl-text { color: var(--white) !important; }
}
