/* ==========================================================================
   Harvu.space — Editorial landing
   ========================================================================== */

:root {
  --bg: #0d0e0f;
  --surface: #151719;
  --text: #f2efe8;
  --text-muted: #92908b;
  --accent: #b77a52;
  --accent-soft: rgba(183, 122, 82, 0.18);
  --border: rgba(242, 239, 232, 0.1);
  --border-strong: rgba(242, 239, 232, 0.16);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(70, 48, 34, 0.22), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(35, 32, 28, 0.45), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 2;
}

.nav__brand:hover,
.nav__brand:focus-visible {
  color: var(--accent);
}

.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  border: 1px solid transparent;
}

.nav__menu-btn span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav__menu-btn span + span {
  margin-top: 0.35rem;
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a,
.footer__nav a,
.footer__social a,
.footer__top-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav__links a::after,
.footer__nav a::after,
.footer__social a::after,
.footer__top-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.footer__nav a:hover,
.footer__nav a:focus-visible,
.footer__social a:hover,
.footer__social a:focus-visible,
.footer__top-link:hover,
.footer__top-link:focus-visible {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.footer__nav a:hover::after,
.footer__nav a:focus-visible::after,
.footer__social a:hover::after,
.footer__social a:focus-visible::after,
.footer__top-link:hover::after,
.footer__top-link:focus-visible::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:active {
  transform: translateY(1px);
}

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

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6.5rem) var(--pad) clamp(4rem, 10vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  overflow: clip;
}

.hero__atmosphere {
  position: absolute;
  inset: -10% -5% auto auto;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle at 40% 40%, rgba(183, 122, 82, 0.14), transparent 68%);
  pointer-events: none;
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero__lede {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: clamp(280px, 42vw, 460px);
  display: grid;
  place-items: center;
}

.hero-visual {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

.hero-visual__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.hero-visual__orb--a {
  inset: 12% 18% 28% 12%;
  background:
    radial-gradient(circle at 35% 30%, rgba(242, 239, 232, 0.12), transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(183, 122, 82, 0.22), transparent 60%),
    linear-gradient(160deg, #1a1c1e, #121314 70%);
  border: 1px solid var(--border);
}

.hero-visual__orb--b {
  width: 28%;
  height: 28%;
  right: 8%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 35%, rgba(183, 122, 82, 0.35), rgba(21, 23, 25, 0.9) 70%);
  border: 1px solid rgba(183, 122, 82, 0.28);
  animation: float-soft 10s ease-in-out infinite alternate;
}

.hero-visual__frame {
  position: absolute;
  inset: 6% 6% 14% 22%;
  border: 1px solid var(--border-strong);
}

.hero-visual__line {
  position: absolute;
  background: var(--border-strong);
}

.hero-visual__line--h {
  left: 0;
  right: 10%;
  top: 42%;
  height: 1px;
}

.hero-visual__line--v {
  top: 8%;
  bottom: 20%;
  left: 58%;
  width: 1px;
}

.hero-visual__plane {
  position: absolute;
  left: 8%;
  bottom: 8%;
  width: 42%;
  height: 18%;
  background: linear-gradient(120deg, rgba(183, 122, 82, 0.18), transparent 70%);
  border-top: 1px solid rgba(183, 122, 82, 0.35);
}

.hero-visual__mark {
  position: absolute;
  top: 18%;
  right: 14%;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(183, 122, 82, 0.35);
}

@keyframes atmosphere-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.06);
  }
}

@keyframes float-soft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-6%, -8%, 0);
  }
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Editorial
   -------------------------------------------------------------------------- */

.editorial {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
  border-top: 1px solid var(--border);
}

.editorial__intro {
  max-width: 38rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.editorial__intro .meta {
  margin-bottom: 1.25rem;
}

.editorial__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.editorial__text {
  color: var(--text-muted);
  max-width: 30rem;
}

.editorial__composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.editorial__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--border);
}

.editorial__item:nth-child(1),
.editorial__item:nth-child(3) {
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.editorial__item:nth-child(3) {
  border-right: 1px solid var(--border);
}

.editorial__item:nth-child(1) {
  border-right: 1px solid var(--border);
}

.editorial__divider {
  display: none;
}

.editorial__item--wide {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr minmax(140px, 0.55fr);
  align-items: stretch;
  border-right: none !important;
  padding-right: 0 !important;
}

.editorial__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.editorial__item-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.editorial__item-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.editorial__aside {
  border-left: 1px solid var(--border);
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.editorial__shape {
  position: absolute;
  inset: 12% 14%;
  background:
    linear-gradient(145deg, rgba(183, 122, 82, 0.16), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(242, 239, 232, 0.08), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Featured
   -------------------------------------------------------------------------- */

.featured {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
  border-top: 1px solid var(--border);
}

.featured__header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.featured__header .meta {
  margin-bottom: 1rem;
}

.featured__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.75rem);
}

.feature {
  display: block;
  color: inherit;
}

.feature--large {
  grid-row: 1 / span 2;
}

.feature__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature--large .feature__media {
  aspect-ratio: 4 / 5;
  min-height: 360px;
}

.feature--small .feature__media {
  aspect-ratio: 16 / 10;
}

.feature__shape {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}

.feature__shape--a {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(183, 122, 82, 0.28), transparent 50%),
    linear-gradient(165deg, #1c1e20 0%, #101113 55%, #1a1613 100%);
}

.feature__shape--a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 18%;
  top: 22%;
  bottom: 28%;
  border: 1px solid rgba(242, 239, 232, 0.14);
}

.feature__shape--b {
  background:
    linear-gradient(120deg, rgba(242, 239, 232, 0.06), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(183, 122, 82, 0.2), transparent 45%),
    #16181a;
}

.feature__shape--b::before {
  content: "";
  position: absolute;
  inset: 20% 55% 20% 12%;
  border-top: 1px solid var(--border-strong);
}

.feature__shape--c {
  background:
    radial-gradient(circle at 40% 50%, rgba(183, 122, 82, 0.18), transparent 55%),
    linear-gradient(200deg, #181a1c, #0f1011);
}

.feature__shape--c::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 1px;
  left: 30%;
  top: 50%;
  background: rgba(183, 122, 82, 0.45);
}

.feature:hover .feature__shape,
.feature:focus-visible .feature__shape {
  transform: scale(1.04);
}

.feature__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.feature__title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}

.feature:hover .feature__title,
.feature:focus-visible .feature__title {
  color: var(--accent);
}

.feature__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.feature--large .feature__excerpt {
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(21, 23, 25, 0.55), transparent 40%, rgba(21, 23, 25, 0.4)),
    var(--bg);
  padding: clamp(5.5rem, 14vh, 9rem) var(--pad);
}

.statement blockquote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.statement p {
  font-size: clamp(1.85rem, 4.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: rgba(242, 239, 232, 0.88);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.about__brand {
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.about__meta {
  margin-top: 1.5rem;
}

.about__lead {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  max-width: 30rem;
}

.about__body {
  color: var(--text-muted);
  max-width: 32rem;
  font-size: 1rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0b0c;
  padding: clamp(3.5rem, 8vw, 5rem) var(--pad) 2rem;
}

.footer__top {
  max-width: var(--max);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__wordmark {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1rem;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 18rem;
}

.footer__nav,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Focus
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav__cta:focus-visible,
.feature:focus-visible {
  outline-offset: 4px;
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(3rem, 8vh, 4.5rem);
  }

  .hero__visual {
    min-height: auto;
    max-width: 380px;
    width: 100%;
  }

  .hero__content {
    max-width: none;
  }

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

  .feature--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feature--large .feature__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .about {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav__menu-btn {
    display: grid;
  }

  .nav__panel {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--pad) 2rem;
    background: rgba(13, 14, 15, 0.97);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease);
  }

  .nav__toggle:checked ~ .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__toggle:checked + .nav__menu-btn span:first-child {
    transform: translateY(0.2rem) rotate(45deg);
  }

  .nav__toggle:checked + .nav__menu-btn span:last-child {
    transform: translateY(-0.2rem) rotate(-45deg);
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__links a {
    font-size: 1.5rem;
    color: var(--text);
  }

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

  .editorial__item,
  .editorial__item:nth-child(1),
  .editorial__item:nth-child(3) {
    padding-right: 0;
    border-right: none;
  }

  .editorial__item--wide {
    grid-template-columns: auto 1fr;
  }

  .editorial__aside {
    display: none;
  }

  .featured__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__atmosphere,
  .hero-visual__orb--b,
  .feature__shape {
    animation: none !important;
    transition: none !important;
  }

  .feature:hover .feature__shape,
  .feature:focus-visible .feature__shape {
    transform: none;
  }
}
