/* Adapted contact page styles; shared header rules live in styles.css. */
    * { box-sizing: border-box; }
    html { min-width: 320px; background: var(--night); }
    body.contact-page .site-header { background: rgba(8, 15, 32, .96); border-bottom-color: rgba(180, 198, 233, .09); backdrop-filter: blur(18px); }
    body {
      min-height: 100vh;
      margin: 0;
      overflow-x: clip;
      color: var(--paper);
      background:
        radial-gradient(ellipse 680px 470px at 76% 25%, rgba(53, 77, 133, .18), transparent 72%),
        radial-gradient(ellipse 650px 390px at 7% 90%, rgba(27, 55, 103, .16), transparent 72%),
        var(--night);
      font-family: var(--font);
      font-size: 16px;
      line-height: 1.85;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    img, svg { display: block; }
    button, a { -webkit-tap-highlight-color: transparent; }
    :focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

    #starfield { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .62; }
    .page { position: relative; z-index: 1; }
    .wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
    body.contact-page main { padding-top: var(--site-header-height); }

    .brand-dot { color: var(--gold); }

    .contact-hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; min-height: 386px; padding-block: 18px 0; }
    .contact-hero-copy { position: relative; z-index: 2; padding: 34px 0 48px; }
    .contact-project-label { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; color: #aebbd2; font-size: .8rem; }
    .status-light { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(218, 199, 160, .4); }
    body.contact-page h1 { max-width: 600px; margin: 0; font-size: clamp(3.15rem, 5.4vw, 4.45rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.38; }
    .contact-hero-description { max-width: 42ch; margin: 17px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.95; }

    .contact-lunar-scene { position: relative; justify-self: center; width: min(410px, 100%); aspect-ratio: 1; isolation: isolate; }
    .contact-moon-body { position: absolute; top: 12%; left: 14%; width: 72%; aspect-ratio: 1; transform: rotate(-13deg); filter: drop-shadow(0 0 60px rgba(129, 150, 205, .09)); }
    .contact-moon-image { width: 100%; height: 100%; object-fit: contain; filter: brightness(.94) sepia(.12) saturate(.55); }
    .contact-moon-shadow { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 36%, rgba(8, 15, 32, .2) 57%, rgba(8, 15, 32, .74) 84%); box-shadow: inset -16px -16px 26px rgba(5, 11, 24, .3); }
    .contact-lunar-orbit { position: absolute; aspect-ratio: 1; border: 1px solid rgba(176, 194, 228, .13); border-radius: 50%; }
    .contact-orbit-outer { top: 1%; left: 4%; width: 97%; transform: rotate(-24deg); }
    .contact-orbit-inner { top: 5.5%; left: 8.5%; width: 88%; border-style: dashed; border-color: rgba(176, 194, 228, .065); transform: rotate(25deg); }
    .contact-orbit-satellite { position: absolute; top: 20%; right: 9%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px #dac7a080; }
    .contact-constellation { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue); stroke: rgba(167, 189, 237, .19); stroke-width: .75; }
    .contact-constellation path { fill: none; }
    .contact-lunar-cross { position: absolute; color: #7383a3; font-size: 19px; font-weight: 300; line-height: 1; }
    .contact-cross-one { top: 11%; left: 12%; }
    .contact-cross-two { right: 4%; bottom: 32%; }
    .contact-moon-caption { position: absolute; bottom: 8%; left: 21%; color: #d5d8e3; font-size: 1rem; letter-spacing: .12em; }
    .contact-moon-caption span { display: block; margin-top: 1px; color: #8392af; font-size: .65rem; letter-spacing: 0; }

    .contact { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: clamp(30px, 6vw, 82px); padding-block: 25px 34px; border-top: 1px solid var(--line); }
    .contact-heading { padding-top: 6px; }
    .contact-section-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; color: var(--blue); font-size: .77rem; }
    .contact-section-kicker svg { width: 16px; height: 16px; }
    body.contact-page h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 1.95rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.55; }
    .contact-copy { margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
    .contact-methods { min-width: 0; }

    .email-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding: 12px 19px; color: var(--night); background: var(--paper); border: 1px solid var(--paper); border-radius: 5px; transition: background .22s, border-color .22s, transform .22s; }
    .email-link:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
    .email-copy { display: grid; min-width: 0; gap: 1px; }
    .email-label { color: rgba(8, 15, 32, .65); font-size: .7rem; font-weight: 600; }
    .email-address { overflow-wrap: anywhere; font-family: Manrope, sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.5; }
    .email-icon { flex: 0 0 auto; width: 22px; height: 22px; }

    .social-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 17px 0 0; padding: 0; list-style: none; }
    .social-link { display: flex; align-items: center; min-height: 62px; gap: 11px; border-top: 1px solid var(--line); color: var(--paper); transition: color .2s, border-color .2s; }
    .social-link:hover { border-color: rgba(167, 189, 237, .55); color: var(--blue); }
    .social-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #c3cee2; }
    .social-icon svg { width: 20px; height: 20px; }
    .social-text { display: grid; min-width: 0; gap: 1px; }
    .social-name { font-size: .78rem; font-weight: 600; line-height: 1.5; }
    .social-handle { overflow: hidden; color: #91a0b8; font: 400 .66rem/1.5 Manrope, "Noto Sans Thai", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
    .social-link:hover .social-handle { color: #b7c6de; }
    .row-arrow { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; color: #8291aa; transition: transform .2s, color .2s; }
    .social-link:hover .row-arrow { transform: translate(2px, -2px); color: var(--blue); }

    .contact-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 61px; border-top: 1px solid rgba(180, 198, 233, .09); color: #7889a2; font-size: .68rem; }
    .footer-brand { color: #aab9ce; font-family: Manrope, sans-serif; letter-spacing: -.02em; }

    @media (max-width: 820px) {
      .wrap { width: min(100% - 52px, 620px); }
      .contact-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 15px; }
      .contact-hero-copy { padding: 36px 0 0; }
      body.contact-page h1 { font-size: clamp(3rem, 9vw, 4rem); }
      .contact-lunar-scene { width: min(360px, 80vw); margin: -4px auto 0; }
      .contact { grid-template-columns: 1fr; gap: 18px; padding-block: 24px 30px; }
    }
    @media (max-width: 520px) {
      .wrap { width: calc(100% - 38px); }
      .contact-hero { padding-top: 0; }
      .contact-hero-copy { padding-top: 29px; }
      .contact-project-label { margin-bottom: 16px; }
      body.contact-page h1 { font-size: clamp(2.75rem, 12vw, 3.55rem); line-height: 1.42; }
      .contact-hero-description { margin-top: 12px; font-size: .91rem; }
      .contact-lunar-scene { width: min(330px, 88vw); margin-top: -2px; }
      .contact { gap: 13px; padding-top: 20px; }
      .social-list { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
      .social-link { min-height: 58px; }
      .social-list li:last-child .social-link { border-bottom: 1px solid var(--line); }
      .contact-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding-block: 9px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }
