/* ==========================================================================
   Plutino Labs site styles
   Single stylesheet for every page. Sections are ordered:
   tokens · reset · sky · header · buttons · hero · features · pages · footer
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --bg:          #04050a;
  --bg-panel:    rgba(9, 12, 19, 0.86);
  --bg-card:     rgba(13, 17, 25, 0.66);

  --text:        #f1f2f5;
  --text-soft:   #c4c9d3;
  --text-muted:  #949bA8;
  --text-faint:  #6d7480;

  --copper:      #d9a183;
  --copper-lit:  #eec2a8;
  --copper-deep: #b9765a;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter:  clamp(22px, 5vw, 64px);
  --header-h: 96px;
  --wrap:    1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Column flex keeps the footer on the bottom edge when a page is short.
     .sky and .skip-link are out of flow, so they aren't flex items. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-lit); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: var(--gutter); z-index: 200;
  padding: 10px 18px; border-radius: 6px;
  background: var(--copper); color: #16100c; font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; color: #16100c; }

/* ------------------------------------------------------------------ sky -- */
/* Fixed backdrop shared by every page: starfield + Pluto + a wash that keeps
   text legible over the planet. Purely decorative, hidden from a11y tree.    */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  isolation: isolate;          /* keep the planet's screen blend inside the sky */
  background:
    radial-gradient(120% 90% at 78% 42%, rgba(58, 30, 22, 0.45) 0%, transparent 58%),
    var(--bg);
}

.sky__stars {
  position: absolute;
  inset: -5%;
  background: url("../img/stars.svg") center / cover no-repeat;
  opacity: 0.85;
}

/* Pluto: NASA/New Horizons (PIA19952), enhanced colour. The photograph has a
   pure-black surround, so `screen` drops that black out against the sky rather
   than needing a cut-out alpha channel. Same result, a fraction of the file
   size. .sky__planet-glow sits underneath to stop starfield showing through
   the planet's own dark limb.                                                */
.sky__planet,
.sky__planet-glow,
.sky__planet-shade {
  --planet: clamp(560px, 96vh, 1060px);
  position: absolute;
  width: var(--planet);
  height: var(--planet);
  top: 50%;
  left: 33%;
  transform: translateY(-50%);
}

.sky__planet-glow {
  background: radial-gradient(circle at 50% 50%,
    var(--bg) 0 47%, rgba(4, 5, 10, 0) 49.5%);
}

.sky__planet {
  background: url("../img/pluto.jpg") center / contain no-repeat;
  mix-blend-mode: screen;
  /* Nudge the enhanced-colour frame warmer so it sits with the copper palette */
  filter: sepia(0.17) saturate(1.2) contrast(1.04);
}

/* The NASA frame is a flat-lit mosaic; this puts the sun back up and to the
   right so the globe reads as a sphere, and darkens the limb the headline
   sits against. Masked to the disk so it never dims the surrounding stars.  */
.sky__planet-shade {
  --light-x: 68%;
  --light-y: 28%;
  background: radial-gradient(circle at var(--light-x) var(--light-y),
    rgba(255, 255, 255, 0)    0%,
    rgba(220, 208, 214, 0.10) 24%,
    rgba(150, 128, 132, 0.34) 44%,
    rgba(84, 64, 70, 0.62)    62%,
    rgba(30, 22, 28, 0.86)    80%,
    rgba(8, 7, 12, 0.97)      95%,
    rgba(5, 5, 10, 1)         100%);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 47%, transparent 49.2%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 47%, transparent 49.2%);
}

.sky__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      rgba(4, 5, 10, 0.94) 20%,
      rgba(4, 5, 10, 0.55) 42%,
      rgba(4, 5, 10, 0.1) 60%,
      transparent 74%),
    linear-gradient(180deg, rgba(4, 5, 10, 0.72) 0%, transparent 26%);
}

/* Inner pages: push the planet aside and dim it so body copy stays readable */
.sky--dim .sky__planet { opacity: 0.4; }
.sky--dim .sky__planet,
.sky--dim .sky__planet-glow,
.sky--dim .sky__planet-shade { left: 47%; }
.sky--dim .sky__wash {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(4, 5, 10, 0.96) 34%, rgba(4, 5, 10, 0.62) 62%, rgba(4, 5, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(4, 5, 10, 0.8) 0%, rgba(4, 5, 10, 0.35) 30%, rgba(4, 5, 10, 0.9) 100%);
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.19em;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  margin: 0; padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 0.79rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--copper); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border: 1px solid rgba(217, 161, 131, 0.65);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  background: rgba(217, 161, 131, 0.12);
  border-color: var(--copper);
  color: #fff;
}
.btn__arrow { transition: transform 0.28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid {
  background: var(--copper);
  border-color: var(--copper);
  color: #1a120d;
}
.btn--solid:hover { background: var(--copper-lit); border-color: var(--copper-lit); color: #1a120d; }

/* ----------------------------------------------------------------- hero -- */
.hero-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
}

.hero__inner { max-width: 620px; }

.hero__title {
  margin: 0 0 0.42em;
  font-size: clamp(3rem, 7.4vw, 6.3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.05em;
  background: linear-gradient(104deg,
    #7d838e 0%, #b4b9c2 18%, #f0ddd0 40%, #ffffff 56%, #d3d8df 76%, #8e939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title span { display: block; }

.hero__sub {
  max-width: 20ch;
  margin: 0 0 2.4em;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
}

/* ------------------------------------------------------------- features -- */
.features {
  flex: none;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  max-width: 1560px;
  margin-inline: auto;
  padding: 30px var(--gutter);
}

.feature {
  display: flex;
  align-items: center;
  gap: 17px;
}
.feature__icon {
  flex: none;
  width: 34px; height: 34px;
  color: var(--text-soft);
}
.feature__title {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.feature__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.baseline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 10, 0.6);
  font-size: 0.74rem;
  color: var(--text-faint);
}
.baseline a { color: var(--text-muted); }
.baseline a:hover { color: var(--copper); }
.baseline__credit { color: var(--text-faint); }
@media (max-width: 860px) { .baseline__credit { display: none; } }

/* ----------------------------------------------------------- inner page -- */
.page {
  flex: 1 0 auto;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.page__title {
  max-width: 20ch;
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  letter-spacing: 0.02em;
}

.lede {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 300;
  line-height: 1.62;
}

.section { margin-top: clamp(52px, 7vw, 84px); }
.section__title {
  margin: 0 0 26px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.prose { max-width: 68ch; color: var(--text-soft); }
.prose h2 {
  margin: 2em 0 0.7em;
  font-size: 1.22rem;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 1.7em 0 0.6em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); font-weight: 600; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* A single card left to auto-fit would stretch the full container width and
   look stranded. Cap it until there's a second one to sit beside. */
.grid--solo { grid-template-columns: minmax(0, 460px); }

/* Contact page: message form on the left, direct email addresses on the right.
   These columns belong in the stylesheet and not in a style="" attribute, so
   that the stacking rule in the 860px block can win. An inline
   grid-template-columns outranks every media query and leaves the two columns
   wedged side by side on a phone. */
.grid--contact {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  margin-top: clamp(40px, 6vw, 64px);
}

.card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.card__icon { width: 30px; height: 30px; margin-bottom: 18px; color: var(--copper); }
.card__title { margin: 0 0 10px; font-size: 1.12rem; }
.card__text { margin: 0; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(217, 161, 131, 0.35);
  border-radius: 999px;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.tag--quiet { border-color: var(--line-strong); color: var(--text-muted); }

.divider { height: 1px; margin: clamp(52px, 7vw, 84px) 0; background: var(--line); border: 0; }

/* ----------------------------------------------------------------- form -- */
.form { max-width: 620px; }
.form__row { margin-bottom: 20px; }
.form__row--split {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8, 11, 17, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(12, 16, 24, 0.9);
}
.form textarea { min-height: 160px; resize: vertical; }
.form__note { margin-top: 18px; font-size: 0.82rem; color: var(--text-faint); }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 20px; }
.contact-list dt,
.contact-list .contact-list__label {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-list__value { font-size: 1rem; color: var(--text); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 30px;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--copper); }

/* --------------------------------------------------------------- 404 --- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) var(--gutter);
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(104deg, #7d838e 0%, #f0ddd0 45%, #ffffff 60%, #8e939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 860px) {
  :root { --header-h: 78px; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5, 7, 12, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.32s var(--ease), opacity 0.2s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { display: block; padding: 15px 0; font-size: 0.85rem; }
  .nav__link::after { display: none; }

  .sky__planet,
  .sky__planet-glow,
  .sky__planet-shade {
    --planet: clamp(460px, 78vh, 760px);
    left: auto;
    right: -26%;
    top: 32%;
  }
  .sky__planet { opacity: 0.72; }
  /* The disk sits high and left of centre at this size, so put the sun over
     the part that's actually on screen, otherwise it's all terminator. */
  .sky__planet-shade { --light-x: 54%; --light-y: 32%; }
  .sky__wash {
    background:
      linear-gradient(180deg, rgba(4, 5, 10, 0.78) 0%, rgba(4, 5, 10, 0.26) 24%,
                              rgba(4, 5, 10, 0.24) 52%, rgba(4, 5, 10, 0.76) 86%, var(--bg) 100%),
      linear-gradient(90deg, rgba(4, 5, 10, 0.9) 0%, rgba(4, 5, 10, 0.5) 46%,
                             rgba(4, 5, 10, 0.1) 82%, rgba(4, 5, 10, 0) 100%);
  }
  .sky--dim .sky__planet { opacity: 0.3; }
  .sky--dim .sky__planet,
  .sky--dim .sky__planet-glow,
  .sky--dim .sky__planet-shade { left: auto; right: -34%; }

  .hero { padding-bottom: 40px; }
  .hero__sub { max-width: 26ch; }

  .form__row--split { grid-template-columns: 1fr; }

  /* Stack the form above the email list, with enough of a gap that the two
     read as separate blocks rather than one long run of fields. */
  .grid--contact { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  .feature__icon { width: 28px; height: 28px; }
  .brand__name { font-size: 0.92rem; letter-spacing: 0.15em; }
  .brand__mark { width: 38px; height: 38px; }
  .btn { padding: 15px 24px; }
  .baseline { justify-content: flex-start; }
}

/* Short viewports: let the home page scroll rather than crushing the hero */
@media (max-height: 620px) {
  .hero-shell { min-height: auto; }
  .hero { padding-block: calc(var(--header-h) + 40px) 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
