/* PURIARK — brand site
   Type: Clash Display (variable, 200–700)
   Palette: deep sky blue, white, blue-black ink */

:root {
  --sky-deep: #14347F;
  --sky-mid: #1B4C9C;
  --sky-line: rgba(255, 255, 255, .22);
  --ink: #0F1B33;
  --dim: #5D6B85;
  --hair: #E6EAF1;
  --paper: #FFFFFF;
  --paper-soft: #F7F9FC;

  --maxw: 1252px;
  --pad: clamp(24px, 5vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* HarmonyOS Sans SC — subset (site glyphs only), weights 300/400/500 */
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Clash Display", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sky-deep); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F2F4F8; }
::-webkit-scrollbar-thumb { background: #C9D2E0; border-radius: 5px; border: 2px solid #F2F4F8; }
::-webkit-scrollbar-thumb:hover { background: #AEBACD; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sky-mid); outline-offset: 3px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: #fff;
  transition:
    background-color .45s var(--ease),
    color .45s var(--ease),
    box-shadow .45s var(--ease),
    opacity 1s var(--ease) .8s;
}

.nav__brand {
  display: inline-block;
  font-size: 15px;
  letter-spacing: .22em;
  margin-right: -.22em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: .02em;
  opacity: .92;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__contact { font-weight: 500; }

.nav__lang {
  position: relative;
  padding: 4px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: .04em;
  color: inherit;
  opacity: .92;
  cursor: pointer;
}

.nav__lang::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__lang:hover { opacity: 1; }
.nav__lang:hover::after { transform: scaleX(1); }

.nav.is-scrolled {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hair);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sky-deep);
}

.hero__bg {
  position: absolute;
  inset: -14% 0;
  background: url("../img/sky.jpg") center 40% / cover no-repeat;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 26, 64, .28) 0%,
    rgba(10, 26, 64, 0) 34%,
    rgba(10, 26, 64, 0) 62%,
    rgba(10, 26, 64, .30) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad);
  will-change: transform, opacity;
}

.hero__wordmark {
  display: inline-block;
  font-size: clamp(42px, min(15vh, 13vw), 200px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .055em;
  margin-right: -.055em;
  color: #fff;
  text-shadow: 0 1px 24px rgba(10, 26, 64, .15);
}

.hero__wordmark span { display: inline-block; }

.hero__tagline {
  margin-top: clamp(16px, 3.2vh, 34px);
  font-size: clamp(11px, 1.25vh, 13px);
  letter-spacing: .32em;
  text-indent: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

.hero__cue {
  position: absolute;
  bottom: clamp(22px, 5vh, 48px);
  left: 50%;
  z-index: 2;
  width: 1px;
  height: clamp(40px, 7vh, 64px);
  background: rgba(10, 26, 64, .42);
  overflow: hidden;
  transform: translateX(-0.5px);
}

.hero__cue::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(10, 26, 64, .9));
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(350%); }
}

/* ---- Sections ---- */

.section { padding: clamp(96px, 15vh, 168px) 0; }
.idea { background: var(--paper); }
.principles { background: var(--paper-soft); }
.contact { background: var(--paper); }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 4vh, 40px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.label--light { color: rgba(255, 255, 255, .78); }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.statement {
  margin-bottom: clamp(26px, 4.5vh, 44px);
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .01em;
}

.lede {
  max-width: 52ch;
  font-size: clamp(15px, 1.6vh, 17.5px);
  line-height: 1.85;
  color: var(--dim);
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.005em;
}

.section__title + .lede { margin-top: clamp(16px, 2.4vh, 26px); }

/* ---- Name ---- */

.name { background: var(--sky-deep); color: #fff; }

.name__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: clamp(40px, 7vh, 72px);
}

.name__col + .name__col {
  border-left: 1px solid var(--sky-line);
  padding-left: clamp(40px, 7vw, 88px);
}

.name__word {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .06em;
}

.name__desc {
  max-width: 34ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}

.name__desc em { font-style: normal; color: #fff; }

.name__close {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 300;
  color: rgba(255, 255, 255, .9);
}

/* ---- Principles ---- */

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 7vh, 72px);
}

.principle { padding-right: clamp(20px, 2.6vw, 36px); }

.principle + .principle {
  border-left: 1px solid var(--hair);
  padding-left: clamp(20px, 2.6vw, 36px);
}

.principle h3 {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .02em;
}

.principle p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--dim);
}

/* ---- Sky break ---- */

.skybreak {
  position: relative;
  min-height: min(84vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sky-deep);
}

.skybreak__bg {
  position: absolute;
  inset: -18% 0;
  background: url("../img/sky.jpg") center 74% / cover no-repeat;
  will-change: transform;
}

.skybreak__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 64, .26);
}

.skybreak__line {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 22px rgba(10, 26, 64, .3);
}

/* ---- Contact ---- */

.contact__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: clamp(26px, 4.5vh, 44px);
  padding-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: .01em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color .3s var(--ease);
}

.contact__mail:hover { color: var(--sky-mid); }

.contact__arrow {
  display: inline-block;
  font-weight: 300;
  transition: transform .45s var(--ease);
}

.contact__mail:hover .contact__arrow { transform: translateX(8px); }

/* ---- Footer ---- */

.footer {
  padding: 44px 0;
  background: var(--sky-deep);
  color: #fff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  font-size: 14px;
  letter-spacing: .22em;
  margin-right: -.22em;
}

.footer__note,
.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

/* ---- Motion ---- */

.js .reveal { opacity: 0; transform: translateY(26px); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.principles__grid .reveal:nth-child(1) { transition-delay: .05s; }
.principles__grid .reveal:nth-child(2) { transition-delay: .15s; }
.principles__grid .reveal:nth-child(3) { transition-delay: .25s; }

.js .hero__wordmark span,
.js .hero__tagline { opacity: 0; }

.js .hero__wordmark span {
  transform: translateY(.35em);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i) * .055s);
}

.js .hero__tagline {
  transform: translateY(10px);
  transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s;
}

.js .nav { opacity: 0; }

body.is-loaded .hero__wordmark span,
body.is-loaded .hero__tagline {
  opacity: 1;
  transform: none;
}

body.is-loaded .nav { opacity: 1; }

/* ---- Responsive ---- */

@media (max-width: 860px) {
  :root { --nav-h: 60px; }

  .nav__links a:not(.nav__contact) { display: none; }

  .name__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vh, 44px);
  }

  .name__col + .name__col {
    border-left: 0;
    border-top: 1px solid var(--sky-line);
    padding-left: 0;
    padding-top: clamp(28px, 6vh, 44px);
  }

  .principles__grid { grid-template-columns: 1fr; }

  .principle { padding: 26px 0; }

  .principle + .principle {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero__wordmark span,
  .js .hero__tagline,
  .js .nav { opacity: 1; transform: none; }
  .hero__cue::after { animation: none; }
}
