/* ============================================================
   YULIYA KUZINA — ARCHITECTURAL PORTFOLIO · PHASE 1
   Base · Navigation · Hero · Summary · Credibility bands
   ============================================================ */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--c-ink);
  background: var(--c-concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

/* Text selection — yellow marker, ink stays dark for legibility */
::selection { background: var(--c-marker); color: var(--c-ink); }
::-moz-selection { background: var(--c-marker); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-emerald);
  outline-offset: 3px;
}

/* Concrete grain — applied per-section via .grain */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("../assets/grain.svg");
  background-size: 280px 280px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* Mono utility label — the "whisper" voice */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
}

/* Emerald tick — short accent rule, borrowed from the DOM system */
.tick {
  display: block;
  width: 2.6rem; height: 2px;
  background: var(--c-emerald);
  margin-top: 0.9rem;
}
.tick--ocean { background: var(--c-ocean); }

/* ============================================================
   NAVIGATION
   Appears at page start · hides scrolling down · returns scrolling up
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.15rem var(--gutter);
  transition: transform var(--dur-nav) var(--ease-out-soft),
              opacity var(--dur-nav) var(--ease-out-soft);
  mix-blend-mode: difference;   /* stays legible across light + dark slabs */
  color: #fff;
}
.nav.is-hidden { transform: translateY(-110%); opacity: 0; }

.nav__mark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav__mark span { color: inherit; opacity: 0.55; font-weight: 500; }

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  list-style: none;
}
.nav__menu a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.nav__menu a:hover { opacity: 1; }
.nav__menu a.is-upcoming {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 760px) {
  .nav__menu { display: none; } /* Phase 2: compact menu */
}

/* ============================================================
   HERO — the name as architecture
   YULIYA dominant · JUJU emerald annotation · surname cropped
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--c-concrete);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 22svh;
}

.hero__eyebrow {
  position: absolute;
  top: clamp(4.2rem, 9svh, 6rem);
  left: var(--gutter);
  color: var(--c-ink-soft);
  max-width: 34ch;
}
.hero__eyebrow .tick { margin-top: 0.7rem; }

.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
  color: var(--c-ink);
  white-space: nowrap;
  padding-left: max(var(--gutter) - 0.06em, 0.5rem);
  margin-bottom: -0.09em;  /* KUZINA cropped by the frame edge */
}

.hero__line { display: block; }

.hero__line--first {
  font-size: var(--fs-hero);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}

.hero__juju {
  font-size: 0.22em;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--c-emerald);
  transform: translateY(-0.35em);
}

.hero__line--crop {
  font-size: var(--fs-hero-sub);
  color: var(--c-ink);
}

/* surname lines deliberately exceed the frame — never force-fit them */
.hero__line--overflow { margin-right: -12vw; }

/* ============================================================
   CAST LETTERS — "PORTFOLIO." set into a concrete wall
   Echo of the ΔOM signage photograph, built procedurally
   ============================================================ */
.cast {
  position: relative;
  background:
    linear-gradient(160deg, var(--c-concrete) 0%, #cfd1ce 55%, #c6c8c5 100%);
  padding: var(--space-4) var(--gutter);
  overflow: hidden;
}

.cast__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-ghost);
  letter-spacing: var(--track-display);
  line-height: 0.86;
  color: var(--c-concrete);
  /* debossed concrete relief */
  text-shadow:
    -1px -1px 1px rgba(255,255,255,0.55),
     2px  3px 4px rgba(59,58,55,0.28),
     4px  7px 14px rgba(59,58,55,0.16);
  user-select: none;
}

.cast__caption {
  margin-top: var(--space-2);
  color: var(--c-dark-concrete);
  max-width: 46ch;
}

/* ============================================================
   SUMMARY — editorial introduction, left half of the frame
   ============================================================ */
.summary {
  background: var(--c-highlight);
  padding: var(--space-4) var(--gutter);
}

.summary__inner {
  max-width: 1520px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
@media (min-width: 900px) {
  .summary__inner { grid-template-columns: minmax(0, 52%) 1fr; }
}

.summary__eyebrow { color: var(--c-dark-concrete); }

.summary__text {
  margin-top: var(--space-1);
  font-size: var(--fs-editorial);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--c-ink-soft);
  text-wrap: pretty;
}
.summary__text strong { font-weight: 700; color: var(--c-ink); }

/* ============================================================
   IMAGE BAND — cinematic full-bleed slab
   Placeholder discipline: fixed aspect frame, labelled, swappable
   ============================================================ */
.band-image {
  position: relative;
  background: var(--c-forest);
}
.band-image__media {
  width: 100%;
  height: clamp(340px, 72svh, 760px);
  object-fit: cover;
}
.placeholder-tag {
  position: absolute;
  left: var(--gutter);
  bottom: 1.1rem;
  color: rgba(237, 236, 232, 0.85);
  z-index: 3;
}

/* ============================================================
   CREDIBILITY BANDS — Tier 1 · Disciplines
   Stable header, running line beneath, full-width, ~1/3 viewport
   ============================================================ */
.band {
  position: relative;
  min-height: 34svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.8rem, 2svh, 1.6rem);
  padding: var(--space-3) 0;
  overflow: hidden;
}

.band__header {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 0 var(--gutter);
}
.band__header .tick { margin-top: 0.8rem; }

.band--tier1 {
  background: var(--c-ink);
  color: var(--c-concrete);
}
.band--tier1 .band__header { font-size: var(--fs-band-1); }
.band--tier1 .marquee { font-size: var(--fs-run-1); color: var(--c-shadow); }

.band--disciplines {
  background: var(--c-concrete);
  color: var(--c-ink);
}
.band--disciplines .band__header { font-size: var(--fs-band-2); }
.band--disciplines .marquee { font-size: var(--fs-run-2); color: var(--c-dark-concrete); }

/* ---------- Marquee mechanics ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee var(--marquee-dur, 38s) linear infinite;
}
.marquee__item { padding-right: 2.2em; }
.marquee__sep { color: var(--c-emerald); }
.band--disciplines .marquee__sep { color: var(--c-ocean); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ============================================================
   PHASE MARKER — temporary, remove when Blocks 2–10 land
   ============================================================ */
.phase-note {
  background: var(--c-highlight);
  color: var(--c-shadow);
  padding: var(--space-3) var(--gutter);
  text-align: center;
}

/* ============================================================
   MOTION — reveal on entry, slow and soft
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-reveal) var(--ease-out-soft),
    transform var(--dur-reveal) var(--ease-out-soft);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .nav { transition: none; }
}
