/* ============================================================
   layout.css — structural layout: wrap, nav, hero, sections
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__mark {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--iris);
  border: 1px solid var(--iris-line);
  border-radius: var(--r-sm);
  padding: 0.32rem 0.5rem;
  background: var(--iris-soft);
}
.nav__name { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.01em; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: var(--muted); font-size: 0.95rem; }
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 7rem 4rem;
  overflow: hidden;
}
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 35%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; max-width: 56rem; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 1.1rem 0 1.6rem;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 42rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 2.2rem;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ── Sections ────────────────────────────────────────── */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--alt { background: var(--surface); }

.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--text); }
.section__title--lead { margin: 0.8rem 0 2.8rem; }

/* About two-column */
.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.section__aside { position: sticky; top: 96px; }
.section__title { line-height: 1.05; }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 2.4rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__name { font-family: var(--ff-display); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { color: var(--muted); font-size: 0.92rem; }
.footer__links a:hover { color: var(--iris); }
.footer__year { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--dim); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 760px) {
  .section__grid { grid-template-columns: 1fr; }
  .section__aside { position: static; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 2rem var(--gutter);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform var(--t-med);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1.05rem; }
}
