/* ═══════════════════════════════════════════════════════════════
   MOONDOG MECHANICA - HOMEPAGE STYLES
   Page-specific: hero, sections, project cards, dev list, tools grid
   Depends on moondog-base.css for colors, fonts, starfield, footer
   ═══════════════════════════════════════════════════════════════ */


    /* === HERO - FINAL: full-bleed, text top-right, nav mid-right === */
    .hero {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
    }

    .hero-image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      opacity: 0.78;
      z-index: 1;
    }

    /* Gradient darkens right side for text, fades bottom into page */
    .hero-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to left,
          rgba(10,14,26,0.93) 0%,
          rgba(10,14,26,0.78) 25%,
          rgba(10,14,26,0.18) 52%,
          rgba(10,14,26,0)    65%
        ),
        linear-gradient(to top,
          rgba(10,14,26,1)   0%,
          rgba(10,14,26,0.4) 9%,
          rgba(10,14,26,0)  18%
        ),
        linear-gradient(to bottom,
          rgba(10,14,26,0.35) 0%,
          rgba(10,14,26,0)   12%
        );
      z-index: 2;
    }

    /* ── TEXT BLOCK: top-right ── */
    .hero-identity {
      position: absolute;
      top: 3rem;
      right: 3rem;
      z-index: 3;
      width: min(400px, 42%);
      display: flex;
      flex-direction: column;
      align-items: flex-end;    /* right-align everything */
      text-align: right;
      animation: fadeIn 1s ease both;
    }

    .hero-sub {
      font-family: 'Cinzel', serif;
      font-size: clamp(0.55rem, 0.9vw, 0.78rem);
      letter-spacing: 0.3em;
      color: var(--teal-glow);
      text-transform: uppercase;
      margin-bottom: 0.9rem;
      animation: fadeIn 1s 0.15s ease both;
    }

    /* Sigil + title sit on the same baseline row */
    .hero-title-row {
      display: flex;
      align-items: center;
      gap: 1rem;
      justify-content: flex-end;
    }

    .hero-sigil {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      border: 1px solid rgba(200,151,58,0.4);
      opacity: 0.92;
      flex-shrink: 0;
      animation: sigil-pulse 4s ease-in-out infinite;
    }

    @keyframes sigil-pulse {
      0%, 100% { box-shadow: 0 0 12px rgba(200,151,58,0.2), 0 0 30px rgba(200,151,58,0.08); }
      50%       { box-shadow: 0 0 22px rgba(200,151,58,0.45), 0 0 50px rgba(200,151,58,0.18); }
    }

    .hero h1 {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.8rem, 3.8vw, 3.4rem);
      font-weight: 900;
      letter-spacing: 0.08em;
      line-height: 1.05;
      color: var(--brass-pale);
      text-shadow: 0 0 40px rgba(200,151,58,0.35), 0 2px 8px rgba(0,0,0,0.9);
      margin: 0;
      animation: fadeIn 1s ease both;
    }

    .hero-tagline {
      font-family: 'Crimson Pro', serif;
      font-size: clamp(0.85rem, 1.4vw, 1.1rem);
      font-style: italic;
      color: var(--mist);
	  margin-top: 0.6rem;
      animation: fadeIn 1s 0.3s ease both;
    }


    .hero-sub-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      justify-content: flex-end;  /* right-align within identity block */
      margin-bottom: 0.5rem;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── NAV BUTTONS: right side, vertically centered in bottom half ── */
    /* "bottom half" = below 50vh, centered in the 50vh–100vh band */
    .hero-nav {
      position: absolute;
      right: 3rem;
      /* center of the bottom half: top of band (50vh) + half band height (25vh) */
      top: calc(50vh + 2rem);             /* top of bottom half */
      z-index: 3;
      width: min(400px, 42%);            /* align with text block width */
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
      align-items: flex-end;
      animation: fadeIn 1s 0.6s ease both;
    }

    .hero-nav a {
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--brass);
      border: 1px solid var(--brass-dim);
      padding: 0.6rem 1.6rem;
      transition: all 0.3s ease;
      background: rgba(10,14,26,0.55);
      display: inline-block;
    }

    .hero-nav a:hover {
      background: rgba(200,151,58,0.12);
      border-color: var(--brass);
      color: var(--brass-pale);
      box-shadow: 0 0 16px rgba(200,151,58,0.2);
    }

    /* MOBILE: collapse to bottom-anchored stacked layout */
    @media (max-width: 700px) {
      /* True stack: image on top, content below, no overlay */
      .hero {
        min-height: unset;
        display: block;
        overflow: visible;
      }

      .hero-image {
        position: relative;
        width: 100%;
        height: 56vw;
        object-fit: cover;
        object-position: center top;
        display: block;
        opacity: 0.9;
        z-index: 1;
      }

      .hero-overlay { display: none; }

      .hero-identity {
        position: relative;
        top: auto; bottom: auto; right: auto;
        width: 100%;
        padding: 1.5rem 1.5rem 0.5rem;
        align-items: flex-start;
        text-align: left;
        z-index: 3;
        background: var(--night);
      }

      .hero-title-row { justify-content: flex-start; }
      .hero-sub-row   { justify-content: flex-start; }

      .hero-sigil { width: 44px; height: 44px; }

      .hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }

      .hero-nav {
        position: relative;
        top: auto; bottom: auto; right: auto;
        width: 100%;
        padding: 0.5rem 1.5rem 1.5rem;
        margin-top: 0;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.7rem;
        z-index: 3;
        background: var(--night);
      }
    }

    /* === SECTIONS === */
    section {
      position: relative;
      z-index: 1;
      max-width: 960px;
      margin: 0 auto;
      padding: 5rem 2rem;
    }

    section h2 {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      font-weight: 600;
      color: var(--brass-pale);
      margin-bottom: 2rem;
      letter-spacing: 0.05em;
    }

    section p {
      color: #b8c8d0;
      margin-bottom: 1.2rem;
      font-size: 1.05rem;
    }

    /* === ABOUT === */
    #about {
      border-left: 1px solid rgba(200,151,58,0.2);
      padding-left: 3rem;
    }

    .pull {
      font-size: 1.2rem;
      font-style: italic;
      color: var(--mist);
      border-left: 3px solid var(--brass-dim);
      padding-left: 1.5rem;
      margin: 2rem 0;
      line-height: 1.6;
    }

    /* === PROJECTS === */
    #projects {
      max-width: 960px;
      border-left: 1px solid rgba(200,151,58,0.2);
      padding-left: 3rem;
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .project-card {
      background: rgba(13,42,46,0.5);
      border: 1px solid rgba(200,151,58,0.2);
      padding: 1.8rem;
      position: relative;
      transition: all 0.3s ease;
      text-decoration: none;
      display: block;
      color: inherit;
    }

    .project-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 2px;
      background: linear-gradient(to right, transparent, var(--brass-dim), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .project-card:hover {
      background: rgba(26,74,82,0.5);
      border-color: rgba(200,151,58,0.5);
      box-shadow: 0 4px 30px rgba(200,151,58,0.1), inset 0 0 30px rgba(13,42,46,0.5);
      transform: translateY(-2px);
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-status {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 0.2rem 0.6rem;
      border: 1px solid;
      display: inline-block;
      margin-bottom: 1rem;
    }

    .status-live    { color: var(--teal-glow);  border-color: var(--teal-glow);  }
    .status-working { color: var(--brass);       border-color: var(--brass-dim);  }

    .project-card h3 {
      font-family: 'Cinzel', serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--brass-pale);
      margin-bottom: 0.75rem;
      letter-spacing: 0.05em;
    }

    .project-card p {
      font-size: 0.92rem;
      color: #8aabb8;
      line-height: 1.65;
      margin: 0;
    }

    .project-card .card-arrow {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.7rem;
      color: var(--brass-dim);
      margin-top: 1.2rem;
      display: block;
      transition: color 0.3s, letter-spacing 0.3s;
    }

    .project-card:hover .card-arrow {
      color: var(--brass);
      letter-spacing: 0.15em;
    }

    /* non-linked cards */
    .project-card.no-link {
      cursor: default;
    }
    .project-card.no-link:hover {
      transform: none;
    }

    /* === IN-DEVELOPMENT MINI-CARD GRID === */
    .dev-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .dev-item {
      background: rgba(13,42,46,0.4);
      border: 1px solid rgba(200,151,58,0.15);
      padding: 0.9rem;
      transition: border-color 0.3s ease;
    }

    .dev-item:hover {
      border-color: rgba(200,151,58,0.4);
    }

    .dev-item .dev-title {
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--brass-pale);
      letter-spacing: 0.04em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      height: 3.2em;
      margin-bottom: 0.6rem;
    }

    .dev-item .dev-thumb {
      width: 100%;
      height: auto;
      max-height: 280px;
      object-fit: contain;
      display: block;
      border: 1px solid rgba(200,151,58,0.1);
      opacity: 0.75;
      margin-bottom: 0.6rem;
    }

    .dev-item:hover .dev-thumb {
      opacity: 0.95;
    }

    .dev-item .dev-desc {
      font-family: 'Crimson Pro', serif;
      font-size: 0.8rem;
      color: #6a8e9a;
      line-height: 1.4;
      margin: 0;
    }

    .dev-item .dev-status {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.52rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--brass-dim);
      display: block;
      margin-top: 0.6rem;
    }

    /* === CARD IMAGE PLACEHOLDERS === */
    .card-img-placeholder {
      width: 100%;
      background: rgba(13,42,46,0.6);
      border: 1px solid rgba(200,151,58,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      color: rgba(200,151,58,0.25);
      text-transform: uppercase;
    }

    .card-img-placeholder.full  { height: 180px; }
    .card-img-placeholder.half  { height: 90px; }

    /* === CONSTELLATION DIVIDER === */
    .constellation {
      text-align: center;
      padding: 2rem 0;
      position: relative;
      z-index: 1;
      opacity: 0.35;
    }

    .constellation svg {
      width: 120px;
      height: 40px;
    }

    /* === TOOLS === */
    #tools {
      border-left: 1px solid rgba(200,151,58,0.2);
      padding-left: 3rem;
    }

    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.75rem;
      margin-top: 1.5rem;
    }

    .tool-item {
      background: rgba(13,42,46,0.4);
      border: 1px solid rgba(200,151,58,0.15);
      padding: 0.9rem 1.1rem;
      transition: border-color 0.3s ease;
    }

    .tool-item:hover {
      border-color: rgba(200,151,58,0.45);
    }

    .tool-item a {
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: var(--brass-pale);
      text-decoration: none;
      display: block;
      margin-bottom: 0.35rem;
    }

    .tool-item a:hover {
      color: var(--brass);
    }

    .tool-item p {
      font-size: 0.8rem;
      color: #6a8e9a;
      line-height: 1.5;
      margin: 0;
    }

    /* === RESPONSIVE === */
    @media (max-width: 640px) {
      #about { border-left: none; padding-left: 2rem; }
      .hero-nav a { font-size: 0.65rem; padding: 0.5rem 1rem; }
      .hero { padding: 5rem 1.5rem 4rem; }
      .hero-sigil {
        position: relative;
        top: auto;
        right: auto;
        width: 64px;
        height: 64px;
        margin: 0 auto 1.2rem;
        display: block;
      }
      .hero-content { text-align: center; }
    }
  
    /* ═══════════════════════════════════════════════════
       UTILITY / MODIFIER CLASSES
       (replaces one-off inline style="" attributes)
       ═══════════════════════════════════════════════════ */

    /* spacing utilities for section-labels and blocks */
    .mt-2 { margin-top: 2rem; }
    .mt-3 { margin-top: 3rem; }
    .mb-1 { margin-bottom: 1rem; }
    .mb-2 { margin-bottom: 2rem; }
    .mb-3 { margin-bottom: 3rem; }

    /* narrower pull-quote variant, used in "Working Together" */
    .pull-narrow { max-width: 700px; }

    /* small intro paragraph under a section heading (e.g. Tools) */
    .section-intro {
      font-size: 0.92rem;
      color: #6a8e9a;
      margin-bottom: 0.5rem;
    }

    /* full-width project-card cover image */
    .card-img {
      width: 100%;
      margin-bottom: 1rem;
      display: block;
    }

    /* half-width secondary image (e.g. second postcard) */
    .card-img-half {
      width: 50%;
      display: block;
      margin: 0 auto 1rem;
    }

    /* dev-thumb variant for images that need to be letterboxed instead of cropped */
    .dev-thumb-contain {
      object-fit: contain;
    }
