/* Orbit Technologies — rebuilt from orbit-tech.au (Framer) as a static site */

:root {
  --bg: #121212;
  --card-bg: #000000;
  --text: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #999999;
  --accent: #0099ff;
  --link-accent: #0099ff;
  --input-bg: #f9f5ff;
  --input-placeholder: #8a8a8a;
  --button-bg: #242424;
  --radius: 12px;
  --font-display: "Gloock", serif;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "Cascadia Mono", monospace;
  --font-form: "Lexend", var(--font-sans);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--accent);
  color: #ffffff;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll reveals (elements tagged by main.js) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 36px;
}

.site-nav a {
  position: relative;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  transition: color 0.15s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero (home) ---------- */

.hero {
  padding: 56px 0 40px;
  background: radial-gradient(60% 55% at 50% 32%, rgba(0, 153, 255, 0.06), transparent 70%);
  overflow: hidden; /* orbit SVG may exceed the container at mid widths */
}

.hero-stage {
  position: relative;
  padding: 56px 0;
}

.orbit-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1020px, 108%);
  height: auto;
  overflow: visible;
  pointer-events: none;
  animation: fade-in 1.6s 0.9s both;
}

.orbit-ellipse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.orbit-sat {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px rgba(0, 153, 255, 0.6));
}

.hero-wordmark {
  position: relative;
  text-align: center;
}

.hero-wordmark .orbit {
  font-family: var(--font-display);
  font-size: clamp(88px, 17vw, 200px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  animation: rise 0.9s var(--ease-out) both;
}

.hero-wordmark .technologies {
  font-size: clamp(20px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* offset trailing tracking so it stays centred */
  margin-top: 8px;
  animation: tracking-settle 1.2s 0.25s var(--ease-out) both;
}

.hero-tagline {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-secondary);
  max-width: 900px;
  margin-top: 32px;
  animation: rise 0.9s 0.55s var(--ease-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tracking-settle {
  from { opacity: 0; letter-spacing: 0.6em; }
  to   { opacity: 1; letter-spacing: 0.42em; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Eyebrows & metadata (Fragment Mono) ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "// ";
  color: var(--accent);
}

/* ---------- Team ---------- */

.team {
  padding: 48px 0 72px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.14);
}

.team-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 14px;
  transition: filter 0.4s ease, transform 0.4s var(--ease-out);
}

.team-card:hover img {
  filter: grayscale(0);
  transform: scale(1.06);
}

.team-card .name {
  font-weight: 700;
  font-size: 18px;
}

.team-card .role {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Section headings ---------- */

.section {
  padding: 48px 0;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 28px;
}

/* ---------- Cards (work + articles) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}

.card {
  display: block;
}

.card img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}

.card:hover img {
  transform: scale(1.02) translateY(-3px);
}

.card .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card .title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card .subtitle {
  color: var(--text-secondary);
  font-size: 17px;
}

.card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card .meta::after {
  content: " →";
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .meta::after { opacity: 1; }

.card-grid .card img { aspect-ratio: 4 / 3; }

.work-card img { aspect-ratio: 3 / 4; }

.work-card { max-width: 420px; }

/* ---------- Page hero (work/articles index pages) ---------- */

.page-hero {
  padding: 80px 0 40px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 64px);
  margin-bottom: 12px;
}

.page-hero .lede {
  color: var(--text-secondary);
  font-size: 20px;
}

/* ---------- Article / case study ---------- */

.article-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.article-hero .date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.article-hero .lede {
  color: var(--text-secondary);
  font-size: 20px;
}

.article-cover {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  margin: 44px 0 16px;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 12px;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.article-body li { margin-bottom: 12px; }

.article-body li strong { color: var(--text); }

.article-body a {
  color: var(--link-accent);
}

.article-body a:hover { text-decoration: underline; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Reading progress (injected by main.js on article pages) */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 50;
}

/* ---------- Contact ---------- */

.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  text-align: center;
}

.contact-wrap h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 64px);
  margin-bottom: 12px;
}

.contact-wrap .lede {
  color: var(--text-secondary);
  font-size: 20px;
  margin-bottom: 48px;
}

.contact-form {
  display: grid;
  gap: 24px;
  text-align: left;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: none;
  outline: none;
  padding: 22px 24px;
  border-radius: 6px;
  background: var(--input-bg);
  font-family: var(--font-form);
  font-size: 18px;
  color: #333333;
  line-height: 1.4;
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.contact-form ::placeholder { color: var(--input-placeholder); }

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form button {
  border: none;
  border-radius: 6px;
  padding: 22px 24px;
  background: var(--button-bg);
  color: var(--text);
  font-family: var(--font-form);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-form button .arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s var(--ease-out);
}

.contact-form button:hover { background: #333333; }

.contact-form button:hover .arrow { transform: translateX(5px); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding: 56px 0 40px;
}

.site-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-weight: 600;
  font-size: 16px;
}

.footer-nav a:hover { color: var(--text-secondary); }

.copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header .container { flex-direction: column; gap: 12px; }
  .site-nav { gap: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-stage { padding: 32px 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-wordmark .orbit,
  .hero-wordmark .technologies,
  .hero-tagline,
  .orbit-svg {
    animation: none;
  }

  .orbit-sat { display: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .team-card,
  .team-card img,
  .card img,
  .site-nav a::after,
  .contact-form button .arrow {
    transition: none;
  }
}
