/* Landing (editorial rebuild, Phase 4, 2026-04-22).
 *
 * Replaces the v2 boxed-map landing. Structure: top nav, hero (two-column),
 * MORE TO EXPLORE grouped tiles, footer band.
 *
 * Loaded after tokens.css + base.css on index.html ONLY. The canvas pages
 * still load canvas.css + cartographer.css; nothing in this file escapes
 * the landing.
 *
 * Landing scrolls vertically — base.css defaults html/body to overflow:hidden
 * for the canvas paradigm, so we opt back into scroll via .landing-page on
 * <html>. */

html.landing-page,
html.landing-page body {
  overflow: auto;
  overflow-x: hidden;
  height: auto;
  background: var(--paper);
}

.landing {
  width: 100%;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ----- Top nav ----- */
.landing-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.landing-nav .brand {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
/* Cartographer location marker — same muted Mono register used for map
 * captions elsewhere on the site (`.cg-label-meta`, panel coord stamps,
 * `ARC / THREE PLACES` frame labels). Slightly larger than the 8px
 * in-map variant for top-band legibility, same tracking + ink-mute
 * color so the read is consistent. */
.landing-nav .location {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

/* ----- Hero (two-column) ----- */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
  min-height: 520px;
  padding: 8px 0 24px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 460px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.hero-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 400px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  padding: 16px 26px;
  border: 1.5px solid var(--ink);
  width: fit-content;
  transition: background .18s ease, color .18s ease, border-color .18s ease, gap .18s ease, transform .18s ease;
  cursor: pointer;
}
.hero-cta:hover,
.hero-link:hover .hero-cta,
.hero-link:focus-visible .hero-cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  gap: 18px;
}
.hero-cta .arrow {
  font-size: 15px;
  line-height: 1;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 620px;
  display: block;
}

/* ----- Hero (agent-ring variant)
 *
 * The ring is the hero object. The featured-project copy sits above it as a
 * compact editorial header so the diagram can stay large and readable.
 */
.hero.hero-ring {
  display: block;
  min-height: 0;
  padding: 10px 0 18px;
}
/* Whole-hero link: ring + caption form one big clickable area routing
 * to the Persek OS canvas. Tooltips on individual agent cards still
 * fire on hover (data-tip-title), clicks anywhere navigate. */
.hero-link {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.hero-link:focus-visible {
  outline: none;
}
.hero-link:focus-visible .hero-cta {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
/* Subtle hint that the title is part of the click target — not a hard
 * underline, just a weight shift so hovering anywhere in the hero
 * gives feedback without yelling. */
.hero-link:hover .hero-title {
  color: var(--ink);
}
.hero-link:hover .hero-eyebrow {
  color: var(--amber);
}
.hero-ring-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero-ring-visual svg {
  width: 100%;
  max-width: 1060px;
  height: auto;
  display: block;
  overflow: hidden;
}
.hero-ring-caption {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title desc"
    "title cta";
  gap: 12px 56px;
  align-items: start;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
}
.hero-ring-caption .hero-eyebrow {
  grid-area: eyebrow;
}
.hero-ring-caption .hero-title {
  grid-area: title;
}
.hero-ring-caption .hero-desc {
  grid-area: desc;
  max-width: 460px;
  text-align: left;
}
.hero-ring-caption .hero-cta {
  grid-area: cta;
  margin-top: 4px;
}

/* --- Ring SVG internals --- */
.hr-ring { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }

.hr-masthead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  fill: var(--ink);
  font-weight: 500;
}
.hr-masthead-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  fill: var(--ink-mute);
}
.hr-masthead-rule { stroke: var(--amber); stroke-width: 1.5; }

.hr-card-bg { fill: var(--paper-soft); stroke: none; }
.hr-card-crop { fill: none; stroke: var(--ink-mute); stroke-width: 1; }

.hr-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  fill: var(--ink-mute);
}
.hr-card-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  fill: var(--teal);
}
.hr-card-name-lg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  fill: var(--teal);
}
.hr-card-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  fill: var(--ink-soft);
}

.hr-core-box { fill: none; stroke: var(--ink-mute); stroke-width: 1; stroke-dasharray: 3 3; }
.hr-core-over {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  fill: var(--ink-mute);
}
.hr-core-head {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  fill: var(--ink);
}
.hr-core-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  fill: var(--ink-soft);
}
.hr-core-flourish { stroke: var(--amber); stroke-width: 1.5; }

.hr-signature {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 28px;
  fill: var(--ink-soft);
}

/* ----- MORE TO EXPLORE -----
 *
 * Two Cartographer-bounded cards side-by-side (Dev projects + Personal).
 * Card grammar mirrors the `.panel` treatment used on canvas pages:
 * hairline ink border, position:relative + the four `.panel-crop`
 * corner brackets (defined in cartographer.css), cream paper surface,
 * Mono overline label inside. Items are full-bleed clickable rows with
 * Fraunces title, Mono arrow, and a single Inter description line
 * tagged WALDO for a polish pass.
 */
.more {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}
.more-head {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.more-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.more-card {
  position: relative;
  background: var(--paper);
  /* Hairline ink border matches panel chrome on canvas pages. Ink at
   * ~35% to sit quiet underneath the crop-marks. */
  border: 1px solid rgba(26, 24, 20, 0.35);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-card-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule-soft);
}

.more-items {
  display: flex;
  flex-direction: column;
}

.more-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule-soft);
  transition: color .15s;
}
.more-item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.more-item:first-child {
  padding-top: 8px;
}
.more-item:hover {
  color: var(--amber);
}
.more-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.more-item .item-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  transition: color .15s;
}
.more-item:hover .item-name {
  color: var(--amber);
}
.more-item .item-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-mute);
  transition: color .15s, transform .15s;
}
.more-item:hover .item-arrow {
  color: var(--amber);
  transform: translateX(4px);
}
.more-item .item-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
  max-width: 52ch;
}

/* ----- Footer band ----- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-top: 40px;
  padding-bottom: 8px;
  margin-top: auto;
  border-top: 1px solid var(--rule-soft);
}
.foot-tag {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-width: 920px;
  /* Fraunces variable axes:
     - WONK 0 turns off the quirky/distinctive letterforms (the source
       of the off-looking lowercase f).
     - SOFT 50 rounds the letterform curves slightly. */
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
}
.foot-tag span { display: block; }
.foot-right {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}
.foot-mono {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  padding-bottom: 8px;
}
.foot-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.foot-links a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ----- Mobile <760px ----- */
@media (max-width: 760px) {
  .landing {
    padding: 20px 20px 32px;
    gap: 38px;
    overflow-x: hidden;
  }
  .landing-nav {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
    align-items: flex-start;
  }
  .landing-nav .location {
    text-align: left;
    max-width: none;
    font-size: 10px;
    line-height: 1.6;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }
  .hero-copy { max-width: 100%; gap: 18px; }
  .hero-title { font-size: clamp(44px, 11vw, 58px); }
  .hero-desc { font-size: 16px; }
  .hero-visual { order: 2; }
  .hero-copy   { order: 1; }
  .hero.hero-ring {
    display: block;
    min-height: 0;
    padding: 16px 0 8px;
  }
  .hero-link {
    gap: 24px;
  }
  .hero-ring-visual {
    width: calc(100vw - 40px);
    overflow: hidden;
  }
  .hero-ring-visual svg {
    width: 100%;
    max-width: none;
    transform: none;
    transform-origin: center;
  }
  .hero-ring-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    gap: 14px;
    padding-bottom: 18px;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }
  .hero-ring-caption .hero-desc {
    max-width: 30ch;
    text-align: center;
  }
  .more-cards  { grid-template-columns: 1fr; gap: 20px; }
  .more-card   { padding: 24px 20px 18px; }
  .foot {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }
  .foot-right { justify-content: space-between; }
  .foot-links { align-items: flex-start; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .hero-cta,
  .more-item,
  .more-item .item-name,
  .more-item .item-arrow,
  .foot-links a {
    transition: none;
  }
  .more-item:hover .item-arrow { transform: none; }
  .hero-cta:hover { gap: 10px; }
}
