/* FERNHALT · Scree 1 — styles. Tokens first; every colour on the page is one of these. */
@font-face { font-family: 'Anton'; src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/fernhalt__fonts-anton.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Epilogue'; src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/fernhalt__fonts-epilogue.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Xanh Mono'; src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/fernhalt__fonts-xanhmono.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Xanh Mono'; src: url(https://demo.uichemy.com/wp-content/uploads/2026/10/fernhalt__fonts-xanhmono-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --red: #EB4763;      /* trail red  · c1 */
  --lime: #89E006;     /* marker lime · c2 */
  --indigo: #1D0788;   /* dusk indigo · c3 */
  --white: #FFFFFF;
  --black: #000000;
  --f-title: 'Anton', 'Arial Narrow', sans-serif;
  --f-ui: 'Epilogue', system-ui, sans-serif;
  --f-label: 'Xanh Mono', ui-monospace, monospace;
  --gut: 3.75vw;
  --nav-h: 64px;
  --course-h: 56px;
  --card-h: min(37vw, calc(100vh - var(--nav-h) - 13vh - 200px));
  --ink: var(--black);
  --nav-ink: var(--black);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--red); color: var(--black); font-family: var(--f-ui); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.label { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

body[data-theme="red"]    { --nav-bg: var(--red); --nav-ink: var(--black); --hud-ink: var(--black); --hud-hi: var(--white); }
body[data-theme="white"]  { --nav-bg: var(--white); --nav-ink: var(--black); --hud-ink: var(--indigo); --hud-hi: var(--red); }
body[data-theme="indigo"] { --nav-bg: var(--indigo); --nav-ink: var(--white); --hud-ink: var(--white); --hud-hi: var(--lime); }
body[data-theme="lime"]   { --nav-bg: var(--lime); --nav-ink: var(--black); --hud-ink: var(--black); --hud-hi: var(--indigo); }
body[data-theme="black"]  { --nav-bg: var(--black); --nav-ink: var(--white); --hud-ink: var(--white); --hud-hi: var(--lime); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--f-ui); text-decoration: none; padding: 16px 22px; border: 2px solid currentColor; transition: background-color .25s, color .25s; }
.btn::after { content: ''; width: 18px; height: 2px; background: currentColor; box-shadow: 4px -4px 0 -0px transparent; transition: width .3s var(--ease-out); }
.btn:hover::after { width: 30px; }
.btn--ink { color: var(--black); }
.btn--ink:hover { background: var(--black); color: var(--white); }
.btn--indigo { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn--indigo:hover { background: var(--black); border-color: var(--black); }

/* NAV */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; gap: 2.4vw; padding: 0 var(--gut); color: var(--nav-ink); transition: color .35s; pointer-events: none; }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--nav-bg, var(--red)); transform: translateY(-100%); transition: transform .45s var(--ease-out), background-color .35s; z-index: -1; }
.nav.is-solid::before { transform: none; }
.nav > * { pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--f-title); letter-spacing: 0.02em; }
.nav__logo svg { width: 34px; height: 21px; }
.nav__links { display: flex; gap: 22px; margin-left: 2vw; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__readout { margin-left: auto; display: flex; gap: 10px; font-style: italic; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__cta { font: 600 14px/1 var(--f-ui); text-decoration: none; padding: 11px 16px; background: var(--nav-ink); color: var(--black); transition: background-color .35s, color .35s; white-space: nowrap; }
body[data-theme="red"] .nav__cta, body[data-theme="white"] .nav__cta, body[data-theme="lime"] .nav__cta { color: var(--white); }
.nav__cta:hover { background: var(--indigo); color: var(--white); }

/* SIGNATURE · course scrubber */
.course { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: var(--course-h); color: var(--hud-ink); background: var(--nav-bg, var(--red)); pointer-events: none; transition: height .7s var(--ease-out), color .35s, background-color .35s; }
.course.is-big { height: 13vh; }
.course__svg { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; width: calc(100% - var(--gut) * 2); height: calc(100% - 26px); overflow: visible; }
.course__area { fill: currentColor; opacity: .1; }
.course__base { fill: none; stroke: currentColor; stroke-opacity: .28; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.course__line { fill: none; stroke: currentColor; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.course__ticks { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 16px; }
.course__ticks span { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--f-label); font-size: 10px; letter-spacing: .06em; line-height: 16px; padding: 0 3px; transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.course__ticks span::before { content: ''; position: absolute; left: 50%; bottom: 16px; width: 1px; height: 6px; background: currentColor; }
.course__ticks span:last-child { transform: translateX(-100%); }
.course__ticks span:first-child { transform: none; }
.course__ticks span:first-child::before { left: 0; }
.course__ticks span:last-child::before { left: auto; right: 0; }
.course__ticks span.is-past { background: var(--hud-ink); color: var(--hud-hi); }
.course__ticks span.is-bump { transform: translateX(-50%) translateY(-4px); }
.course__ticks span:last-child.is-bump { transform: translateX(-100%) translateY(-4px); }
.course__ticks span:first-child.is-bump { transform: translateY(-4px); }
.course__runner { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; height: calc(100% - 26px); }
.course__runner i { position: absolute; left: 0; top: 100%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--hud-hi); box-shadow: 0 0 0 2px var(--hud-ink); }

/* 1 · HERO */
.hero { position: relative; background: var(--red); color: var(--black); padding: calc(var(--nav-h) + 8px) var(--gut) calc(13vh + 40px); }
.hero__intro { position: absolute; z-index: 2; left: 50.5vw; top: calc(var(--nav-h) + 8px + var(--card-h) + 44px); width: 32vw; font: 500 clamp(16px, 1.45vw, 23px)/1.18 var(--f-ui); letter-spacing: -0.01em; }
.hero__block { position: relative; }
.hero__words { font: 400 19.6vw/0.86 var(--f-title); text-transform: uppercase; position: relative; z-index: 1; }
.word { overflow: hidden; padding-top: 0.02em; }
.word span { display: inline-block; cursor: default; transition: color .45s; will-change: transform; }
.word.is-on span { color: var(--white); }
.hero__card { position: absolute; z-index: 2; top: 0; left: calc(50.5vw - var(--gut)); width: 32vw; will-change: transform; }
.hero__media { position: relative; height: var(--card-h); overflow: hidden; background: var(--black); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.hero__media img.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.hero__media img.is-in { z-index: 2; }
.hero__card figcaption { display: flex; justify-content: space-between; padding-top: 10px; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4vw; max-width: 46.75vw; }

/* 2 · SHOE */
.shoe { position: relative; background: var(--white); color: var(--black); padding: calc(var(--nav-h) + 2vh) 0 18vh; overflow: hidden; }
.shoe__stage { position: relative; height: 58vh; min-height: 360px; }
.gl { display: block; width: 100%; height: 100%; }
.shoe__head { text-align: center; padding: 0 var(--gut); margin-top: -2vh; position: relative; }
.shoe__title { font: 400 8.6vw/0.9 var(--f-title); margin: 18px 0 22px; }
.shoe__sub { max-width: 46ch; margin: 0 auto; font-size: 18px; }
.ticker { margin-top: 12vh; background: var(--indigo); color: var(--lime); padding: 20px 0; overflow: hidden; }
.ticker__track { display: flex; gap: 2.6vw; white-space: nowrap; width: max-content; font-size: 15px; will-change: transform; }
.ticker__track b { font-weight: 400; color: var(--white); }
.shoe__statement { padding: 18vh var(--gut) 0; }
.statement { font: 500 3.3vw/1.12 var(--f-ui); letter-spacing: -0.02em; max-width: 64vw; margin: 0 auto; text-align: center; }
.slot { display: inline-block; width: 1.3em; height: 0.85em; vertical-align: -0.06em; }
.tiles { display: flex; justify-content: center; gap: 16px; margin-top: 10vh; }
.tile { width: 16.7vw; flex: none; will-change: transform; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--red); }
.tile .label { display: block; margin-top: 10px; }

/* 3 · BUILD */
.build { position: relative; background: var(--indigo); color: var(--white); }
.build__grid { display: grid; grid-template-columns: 44% 56%; }
.build__list { padding: 0 0 20vh var(--gut); }
.build__head { min-height: 86vh; padding-top: 22vh; }
.build__title { font: 400 7.4vw/0.9 var(--f-title); margin: 18px 0 28px; }
.build__title .ch { opacity: .12; }
.build__intro { max-width: 34ch; font-size: 18px; }
.parts { counter-reset: p; }
.part { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(255,255,255,.28); padding: 36px 0; opacity: .4; transition: opacity .45s; max-width: 30vw; }
.part.is-on { opacity: 1; }
.part .label { color: var(--lime); }
.part h3 { font: 700 2.3vw/1.1 var(--f-ui); letter-spacing: -0.02em; margin: 14px 0 12px; }
.part p { font-size: 17px; max-width: 36ch; }
.build__stage { position: sticky; top: 0; height: 100vh; }
.build__tag { position: absolute; left: 0; bottom: calc(var(--course-h) + 24px); color: var(--lime); }

/* 4 · TERRAIN */
.terrain { position: relative; background: var(--lime); color: var(--black); min-height: 175vh; overflow: hidden; }
.stickers { position: absolute; inset: 0; pointer-events: none; }
.stk { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); overflow: visible; will-change: transform; }
.terrain__inner { position: relative; z-index: 2; padding: 46vh var(--gut) 34vh; text-align: center; }
.terrain__title { font: 400 12.4vw/0.88 var(--f-title); margin-top: 22px; }
.terrain__title .ch { display: inline-block; will-change: transform; }
.grounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4vw; max-width: 1180px; margin: 12vh auto 0; text-align: left; }
.grounds li { border-top: 2px solid var(--black); padding-top: 14px; }
.grounds p { margin-top: 8px; font-size: 16px; }
.flycard { position: absolute; z-index: 3; width: 17vw; left: 0; top: 0; will-change: transform; }
.flycard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--white); background: var(--indigo); }
.flycard figcaption { background: var(--white); padding: 2px 6px 6px; }

/* 5 · CREW */
.crew { position: relative; background: var(--black); color: var(--white); }
.crew__stage { position: relative; height: 100vh; display: grid; overflow: hidden; }
.crew__layer { grid-area: 1 / 1; position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.crew__l1 { background: var(--black); z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.thumbs { position: absolute; top: 0; width: 12vw; display: flex; flex-direction: column; gap: 1vw; will-change: transform; }
.thumbs--l { left: 9vw; }
.thumbs--r { right: 9vw; }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--indigo); }
.crew__title { position: relative; z-index: 2; font: 400 9.6vw/0.9 var(--f-title); text-align: center; display: flex; flex-direction: column; align-items: center; }
.wl { position: relative; display: inline-block; }
.wm { position: absolute; inset: -0.02em -0.06em; background: var(--lime); transform: scaleX(0); transform-origin: right center; z-index: 2; }
.wc { visibility: hidden; }
.crew__kicker { position: relative; z-index: 2; margin-top: 28px; color: var(--lime); }
.crew__l2 { background: var(--red); color: var(--black); z-index: 2; padding: calc(var(--nav-h) + 4vh) var(--gut) 0; }
.crew__l2 .wm { background: var(--black); }
.crew__about { width: 40vw; }
.pblock { display: block; font: 500 1.9vw/1.18 var(--f-ui); letter-spacing: -0.015em; margin-bottom: 12px; overflow: visible; }
.pc { display: inline-block; }
.crew__links { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.fillbar { position: relative; flex: 1; height: 46px; border: 2px solid var(--black); display: flex; align-items: center; padding: 0 14px; overflow: hidden; }
.fill { position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left center; }
.fillbar em { position: relative; font-style: normal; }
.crew__wipe { position: absolute; right: var(--gut); top: calc(var(--nav-h) + 4vh); font: 400 6.4vw/0.92 var(--f-title); text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.cards { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(var(--course-h) + 3vh); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; }
.card img { width: 100%; height: 30vh; object-fit: cover; background: var(--indigo); }
.card .label { margin-top: 8px; }
.crew__l3 { background: var(--white); color: var(--black); z-index: 3; padding: calc(var(--nav-h) + 8vh) var(--gut) 0; }
.crew__l3 .wm { background: var(--lime); }
.crew__l3k { color: var(--indigo); }
.notes { margin-top: 5vh; }
.note { padding: 3.2vh 0; border-top: 2px solid var(--black); }
.note .wl { font: 400 5vw/1 var(--f-title); text-transform: uppercase; }
.note p { margin-top: 10px; font-size: 18px; }

/* 6 · FINISH */
.finish { position: relative; background: var(--red); color: var(--black); }
.finish__stage { position: relative; height: 100vh; display: grid; grid-template-columns: 1fr 30vw; align-items: center; gap: 3vw; padding: var(--nav-h) var(--gut) var(--course-h); }
.finish__num { position: relative; display: flex; align-items: flex-start; font: 400 36vw/0.8 var(--f-title); font-variant-numeric: tabular-nums; }
.fn { display: inline-block; letter-spacing: -0.01em; }
.fk { position: absolute; left: 0.4vw; top: -26px; font-size: 14px; }
.finish__line { font: 500 1.7vw/1.2 var(--f-ui); letter-spacing: -0.01em; margin-bottom: 18px; }
.finish__side .btn { margin-top: 18px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3vw 6vw; padding: 10vh var(--gut) calc(var(--course-h) + 40px); border-top: 2px solid var(--black); }
.news label { display: block; margin-bottom: 14px; }
.news__row { display: flex; border: 2px solid var(--black); }
.news input { flex: 1; min-width: 0; font: 500 18px var(--f-ui); padding: 16px; background: transparent; border: 0; color: var(--black); }
.news input::placeholder { color: rgba(0,0,0,.55); }
.news button { font: 600 15px var(--f-ui); background: var(--black); color: var(--white); border: 0; padding: 0 22px; cursor: pointer; }
.news button:hover { background: var(--indigo); }
.news__ok { min-height: 18px; margin-top: 10px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-content: start; font-weight: 500; }
.foot__links a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot__links a:hover { border-color: currentColor; }
.foot__legal { grid-column: 1 / -1; }

/* reduced motion / static */
@media (prefers-reduced-motion: reduce) {
  .course { transition: none; }
  .word span, .part, .btn::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .nav__links { display: none; }
  .part h3 { font-size: 3.4vw; }
  .part { max-width: 38vw; }
  .crew__about { width: 52vw; }
  .pblock { font-size: 2.6vw; }
}
@media (max-width: 767px) {
  :root { --gut: 16px; --nav-h: 56px; --course-h: 44px; }
  body { font-size: 16px; }
  .hide-s { display: none; }
  .nav { gap: 10px; }
  .nav__logo { font-size: 19px; }
  .nav__logo svg { width: 26px; height: 16px; }
  .nav__readout { font-size: 10px; gap: 5px; }
  .nav__readout .ro-sep, .nav__readout .ro-el { display: none; }
  .nav__cta { padding: 9px 11px; font-size: 13px; }
  .course.is-big { height: 12vh; }
  .course__ticks span:nth-child(even) { display: none; }
  .hero { padding-bottom: calc(12vh + 30px); }
  .hero__intro { position: static; width: auto; font-size: 19px; margin-bottom: 26px; }
  .hero__words { font-size: 25vw; }
  .hero__card { position: relative; left: 0; width: 100%; margin-top: 18px; }
  .hero__media { height: auto; aspect-ratio: 4 / 5; }
  .hero__foot { max-width: none; flex-direction: column; align-items: flex-start; margin-top: 26px; }
  .shoe__stage { height: 44vh; min-height: 280px; }
  .shoe__title { font-size: 15vw; }
  .shoe__sub { font-size: 16px; }
  .statement { font-size: 6.4vw; max-width: none; }
  .tiles { flex-wrap: wrap; gap: 10px; }
  .tile { width: 28vw; }
  .build__grid { display: flex; flex-direction: column; position: relative; }
  .build__stage { order: -1; position: sticky; top: var(--nav-h); height: 46vh; z-index: 2; background: var(--indigo); }
  .build__tag { bottom: 10px; left: var(--gut); }
  .build__list { padding: 0 var(--gut) 18vh; position: relative; z-index: 1; }
  .build__head { min-height: 0; padding-top: 4vh; }
  .build__title { font-size: 15vw; }
  .part { max-width: none; min-height: 40vh; }
  .part h3 { font-size: 24px; }
  .terrain { min-height: 150vh; }
  .terrain__inner { padding: 34vh var(--gut) 26vh; }
  .terrain__title { font-size: 17vw; }
  .grounds { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .stk { width: calc(var(--s) * 1.8); height: calc(var(--s) * 1.8); }
  .stk--g { display: none; }
  .flycard { width: 36vw; }
  .thumbs { width: 34vw; }
  .thumbs--l { left: -6vw; }
  .thumbs--r { right: -6vw; }
  .crew__title { font-size: 19vw; }
  .crew__kicker { text-align: center; padding: 0 var(--gut); }
  .crew__l2 { padding-top: calc(var(--nav-h) + 2vh); }
  .crew__about { width: auto; }
  .pblock { font-size: 17px; }
  .crew__links { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; }
  .crew__links .btn { justify-content: space-between; }
  .fillbar { flex: none; }
  .crew__wipe { position: relative; right: auto; top: auto; margin-top: 18px; font-size: 13vw; align-items: flex-start; text-align: left; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .card img { height: 16vh; }
  .card .label { font-size: 9px; }
  .crew__l3 { padding-top: calc(var(--nav-h) + 4vh); }
  .note .wl { font-size: 9vw; }
  .note p { font-size: 15px; }
  .finish__stage { grid-template-columns: 1fr; align-content: center; gap: 6vh; }
  .finish__num { font-size: 40vw; }
  .finish__line { font-size: 19px; }
  .foot { grid-template-columns: 1fr; }
}

/* WordPress / Elementor compatibility: what a WordPress theme and Elementor add around this page, put back to what the
   page was designed on. Inert in a plain browser.
   1. The theme styles <body> and every heading (Twenty Twenty-Five: body weight 300 and -0.1px tracking; h1-h6 weight 400,
      -0.1px tracking, line-height 1.125, preset sizes). Restore the browser defaults at element level; every class rule
      above still wins (0,1,0 beats 0,0,3).
   2. The Elementor container that holds the sections keeps the kit's default padding and gap whenever its generated
      post CSS is missing; zero them.
   3. Elementor resets every <figure> margin at (0,4,1); repeat its prefix on this page's own figure margins. */
html body { font-weight: 400; letter-spacing: normal; }
html body :is(h1, h2, h3, h4, h5, h6) { font-weight: bold; letter-spacing: normal; line-height: inherit; }
html body h1 { font-size: 2em; }
html body h2 { font-size: 1.5em; }
html body h3 { font-size: 1.17em; }
html body .elementor .e-con.e-parent:has(> .elementor-element [class^="uichemy-"]) { --padding-top:0px; --padding-right:0px; --padding-bottom:0px; --padding-left:0px; --row-gap:0px; --column-gap:0px; --gap:0px 0px; }
.elementor .elementor-widget:not(.elementor-widget-text-editor):not(.elementor-widget-theme-post-content) figure { margin: 0; }
@media (max-width: 767px) { .elementor .elementor-widget:not(.elementor-widget-text-editor):not(.elementor-widget-theme-post-content) .hero__card { margin-top: 18px; } }
