/* ==========================================================
   Suma — styles
   ========================================================== */

:root {
  /* Sky colors — animated by JS from sunset to night */
  --sky-top: #7d8894;
  --sky-upper: #b9a89a;
  --sky-glow: #f2b27a;
  --sky-line: #ffd7a8;
  --sea-top: #8a6a52;
  --sea-bottom: #2e2a28;
  --stars: 0;

  --horizon: 58%;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);

  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: #0b0e15;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #4b4a44 0%, #5a4a3c 52%, #3d2f25 53%, #2a241f 100%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader__mark {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.9);
  animation: loaderIn 1.4s var(--ease) both;
}
.loader.is-done { opacity: 0; visibility: hidden; }

@keyframes loaderIn {
  from { filter: blur(18px); transform: scaleX(1.25); opacity: 0; letter-spacing: 0.05em; }
  to   { filter: blur(0); transform: none; opacity: 1; }
}

/* ---------- Sky ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-upper) 34%,
    var(--sky-glow) calc(var(--horizon) - 3%),
    var(--sky-line) var(--horizon),
    var(--sea-top) calc(var(--horizon) + 0.4%),
    var(--sea-bottom) 100%
  );
}
.sky__glow {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--horizon) - 18%);
  height: 30%;
  background: radial-gradient(60% 50% at 50% 60%, var(--sky-line), transparent 70%);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.sky__stars {
  position: absolute;
  inset: 0 0 calc(100% - var(--horizon)) 0;
  width: 100%;
  height: var(--horizon);
  opacity: var(--stars);
}
.sky__grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__left { display: flex; gap: 8px; }
.header__center { padding-top: 8px; }
.header__right { display: flex; gap: 8px; justify-content: flex-end; align-items: stretch; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, color 0.3s;
}
.chip:hover { background: rgba(255, 255, 255, 0.85); color: #111; }
.chip--solid { background: #fff; color: #111; padding: 12px 18px; }
.chip--solid:hover { background: rgba(255, 255, 255, 0.75); }

.clock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang {
  display: flex;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang__btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  color: var(--text-dim);
  transition: color 0.3s, background 0.3s;
}
.lang__btn[aria-pressed="true"] { color: #111; background: rgba(255, 255, 255, 0.9); }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.menu-btn__line { width: 28px; height: 1px; background: currentColor; opacity: 0.5; transition: width 0.4s var(--ease); }
.menu-btn:hover .menu-btn__line { width: 40px; }
.logo {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: none;
}

.header .chip, .header .lang, .header .menu-btn { background: rgba(10, 12, 18, 0.62); border-color: rgba(255, 255, 255, 0.22); }
.header .chip:hover { background: #fff; color: #111; }
.clock { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__list { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu__list a {
  display: block;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
  opacity: 0.55;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.8s var(--ease);
}
.menu.is-open .menu__list a { transform: none; }
.menu__list a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero { height: 280vh; position: relative; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__eyebrow {
  position: absolute;
  top: 14%;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}
.hero__title {
  position: absolute;
  top: 18%;
  left: var(--gutter); right: var(--gutter);
  margin: 0;
  text-align: center;
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}
.hero__line, .hero__rotator { display: block; }
.hero__rotator { position: relative; height: 1.08em; }
.rot-word {
  position: absolute;
  left: 0; right: 0;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
}
.rot-word.is-out { opacity: 0; filter: blur(14px); transform: translateY(0.25em) scaleX(1.1); }

.stage {
  position: absolute;
  left: 0; right: 0;
  top: var(--horizon);
  height: 0;
  perspective: 1000px;
  perspective-origin: 50% 0;
}
.ring {
  position: absolute;
  left: 50%; top: 0;
  transform-style: preserve-3d;
}
.card {
  position: absolute;
  left: 0; top: 0;
  width: var(--card-w, 280px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  backface-visibility: hidden;
  background: linear-gradient(145deg, rgba(38, 42, 54, 0.92), rgba(10, 12, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  -webkit-box-reflect: below 4px linear-gradient(transparent 55%, rgba(255, 255, 255, 0.18));
  will-change: transform, opacity;
}
.card__num { position: absolute; left: 12%; top: 12%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.card__title { position: absolute; left: 12%; right: 10%; bottom: 12%; font-size: clamp(16px, 1.75vw, 27px); line-height: 1.08; letter-spacing: -0.025em; color: #fff; }

.hero__cta {
  position: absolute;
  left: 0; right: 0;
  bottom: 16%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero__scroll {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text), transparent);
  animation: scrollBar 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollBar {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  min-height: 160vh;
  padding: 30vh var(--gutter) 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.manifesto__text {
  position: sticky;
  top: 25vh;
  max-width: 980px;
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 3.3vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.manifesto__text .w { opacity: 0.18; transition: opacity 0.35s; }
.manifesto__text .w.is-lit { opacity: 1; }

/* ---------- Sections ---------- */
.section {
  padding: 18vh var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.section__head { max-width: 860px; margin-bottom: 64px; }
.section__title {
  margin: 16px 0 0;
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cap {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s;
}
.cap:hover { background: var(--glass-strong); }
.cap__num { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.cap__title { margin: auto 0 10px; padding-top: 48px; font-size: clamp(25px, 2.3vw, 34px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; }
.cap__desc { margin: 0 0 18px; color: var(--text-dim); font-size: 16px; line-height: 1.45; }
.cap__tags { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.line {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.line--flip { grid-template-columns: 1fr 1.3fr; }
.line--flip .line__media { order: 2; }
.line__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: #1a1d26;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.line__media video, .line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line__note {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 12, 18, 0.6);
  border-radius: 2px;
}
.line__media--fade img { position: absolute; inset: 0; animation: lineFade 15s infinite; opacity: 0; }
.line__media--fade img:nth-child(2) { animation-delay: 5s; }
.line__media--fade img:nth-child(3) { animation-delay: 10s; }
@keyframes lineFade {
  0% { opacity: 0; }
  6%, 34% { opacity: 1; }
  42%, 100% { opacity: 0; }
}
.line__title {
  margin: 14px 0 14px;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.line__desc { margin: 0 0 22px; max-width: 46ch; color: var(--text-dim); font-size: 17px; line-height: 1.5; }
.line__list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.line__list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.line__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.step { padding: 28px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.step__title { margin: 48px 0 12px; font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.step__desc { margin: 0; color: var(--text-dim); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.contact__sub { color: var(--text-dim); font-size: 18px; line-height: 1.5; max-width: 42ch; margin: 24px 0 40px; }
.contact__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact__links li { display: grid; gap: 6px; }
.contact__links a { font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid transparent; justify-self: start; transition: border-color 0.3s; }
.contact__links a:hover { border-color: currentColor; }

.contact__ways { display: grid; gap: 12px; }
.way {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s;
}
.way:hover { background: var(--glass-strong); }
.way__title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.way__go { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.contact__ways .contact__links { margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { padding: 10vh var(--gutter) var(--gutter); overflow: hidden; }
.footer__mark {
  font-size: clamp(120px, 30vw, 460px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__social { display: flex; gap: 20px; }
.footer__social a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.process .reveal:nth-child(2) { transition-delay: 0.08s; }
.process .reveal:nth-child(3) { transition-delay: 0.16s; }
.process .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .line, .line--flip { grid-template-columns: 1fr; }
  .line--flip .line__media { order: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { padding-bottom: 32px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header { grid-template-columns: 1fr auto; }
  .header__left, .header__center { display: none; }
  .menu-btn > span:first-child, .menu-btn__line { display: none; }
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .caps { grid-template-columns: 1fr; }
  .cap { min-height: 220px; }
  .card__num { display: none; }
  .hero__title { top: 17%; font-size: clamp(30px, 8.7vw, 40px); }
  .hero__eyebrow { top: 12%; padding: 0 var(--gutter); }
  .hero__rotator { height: 2.2em; }
  .hero__cta { bottom: 15%; }
  .chip { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-bar, .loader__mark { animation: none; }
  .line__media--fade img { animation: none; }
  .line__media--fade img:first-child { opacity: 1; }
}
