/* ==========================================================
   Propeller Computing — public brochure site.
   Tokens, buttons and form fields live in base.css.
   ========================================================== */
/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--black); text-decoration: none; }
.brand .propeller { width: 32px; height: 32px; }
.propeller .blades { transform-origin: 0 0; will-change: transform; }
.brand-name { font-size: var(--fs-2); font-weight: 700; letter-spacing: -.01em; }
.brand-name span { color: var(--gray); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--gray); text-decoration: none; font-weight: 500; transition: color .15s; }
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--black); }
.nav-links a.is-current { box-shadow: 0 2px 0 var(--blue); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); }
.hero-copy { max-width: calc(840px + 2 * var(--gutter)); margin-inline: auto; text-align: center; }
.hero-copy .label { justify-content: center; }
.hero h1 { margin-bottom: 20px; }
/* Invisible copies of every phrase share one grid cell with the live text,
   so the line always reserves room for the longest phrase and never jumps. */
.typed-wrap { display: grid; }
.typed-wrap > * { grid-area: 1 / 1; }
.typed-ghost { visibility: hidden; }
.typed, .typed-ghost { color: var(--blue); }
.typed::after, .typed-ghost::after {
  content: ""; display: inline-block; width: .06em; height: .9em; margin-left: .06em; vertical-align: -.08em;
  background: var(--blue); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.lede { font-size: var(--fs-2); color: var(--gray); max-width: 44ch; margin: 0 auto; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Full-bleed app screenshot under the hero copy */
.hero-shot {
  margin: clamp(48px, 7vw, 80px) 0 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--black);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px var(--gutter);
  background: var(--black); color: var(--gray);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); opacity: .6; }
.window-bar span { margin-left: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fixed 16:9 frame (matches the uploader's crop) so stock and uploaded images sit identically. */
.hero-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split-copy p { font-size: var(--fs-2); color: var(--gray); line-height: 1.55; }
.split-copy p:first-child { color: var(--black); }
.split-img { margin: 0; }
.split-img img, .careers-img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05);
}

.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.service { padding: 32px 28px; transition: background .2s; }
.service + .service { border-left: 1px solid var(--line); }
.service:hover { background: var(--blue-tint); }
.service-icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 20px; }
.service p { color: var(--gray); margin: 0; }

.aside {
  margin: 24px 0 0; padding: 16px 20px;
  border-left: 2px solid var(--blue); background: var(--blue-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--black);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { order: 2; color: var(--gray); }
.stat dd { order: 1; margin: 0 0 4px; font-size: var(--fs-1); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 14px; cursor: pointer;
  background: var(--white); color: var(--gray);
  border: 1px solid var(--line-dark); border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--black); border-color: var(--black); }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
}
.project:hover, .project:focus-visible { border-color: var(--blue); transform: translateY(-3px); }
.project-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--black); border-bottom: 1px solid var(--line); }
.project-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .6s var(--ease); }
.project:hover .project-img img, .project:focus-visible .project-img img { filter: none; transform: scale(1.03); }
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body > p:not(.project-meta) { color: var(--gray); }
.project-body .tags { margin-top: auto; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.project-client { color: var(--gray); margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--black); font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-live::before { background: var(--blue); }
.status-flight::before { background: var(--gray); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li { padding: 2px 10px; color: var(--gray); border: 1px solid var(--line-dark); border-radius: 999px; }
.project.is-hidden { display: none; }

/* ---------- careers (dark) ---------- */
.section-dark { background: var(--black); color: var(--white); border-top: 0; }
.careers-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.careers-intro > p { color: color-mix(in srgb, var(--white) 72%, transparent); font-size: var(--fs-2); line-height: 1.55; }
.perks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.perks li { display: flex; gap: 10px; }
.perks li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .6em; background: var(--blue); border-radius: 1px; }
.careers-img { margin: 0; }
.careers-img img { border-color: var(--line-dark); }

.jobs { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); align-self: start; }
.job { border-bottom: 1px solid var(--line-dark); }
.job-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--white);
}
.job-head strong { display: block; font-size: var(--fs-2); font-weight: 600; transition: color .15s; }
.job-head em { font-style: normal; color: var(--gray); }
.job-head:hover strong { color: var(--blue); }
.job-plus { position: relative; flex: 0 0 32px; height: 32px; border: 1px solid var(--line-dark); border-radius: var(--radius); transition: transform .25s var(--ease), background .2s, border-color .2s; }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--white); }
.job-plus::after { transform: rotate(90deg); }
.job.is-open .job-plus { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
.job-body { display: none; padding: 0 0 24px; color: color-mix(in srgb, var(--white) 72%, transparent); }
.job-body ul { padding-left: 1.2em; margin: 0 0 20px; }
.jobs-note { margin-top: 24px; color: var(--gray); }
.jobs-empty { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.jobs-empty p { color: color-mix(in srgb, var(--white) 72%, transparent); }
.section-dark a:not(.btn) { color: var(--white); text-decoration-color: var(--blue); text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
.contact-info > p { color: var(--gray); font-size: var(--fs-2); }
.contact-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--gray); }
.contact-list dd { margin: 0; word-break: break-word; }
.contact-list a { color: var(--black); text-decoration-color: var(--blue); text-underline-offset: 3px; }

.contact-form { display: grid; gap: 20px; align-content: start; }
.form-sent { padding: 40px 28px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: var(--radius); }
.form-sent h3 { margin-bottom: 8px; }
.form-sent p { color: var(--gray); margin: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--gray); }
.to-top { color: var(--gray); text-decoration: none; }
.to-top:hover { color: var(--black); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--black) 60%, transparent); animation: fadeIn .2s; }
.modal-card {
  position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto;
  background: var(--white); border-radius: 10px; border: 1px solid var(--line);
  animation: rise .25s var(--ease);
}
.modal-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.modal-body { padding: 24px 28px 28px; }
.modal-body .project-client { margin-bottom: 4px; }
.modal-text { color: var(--gray); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; padding: 8px;
  background: var(--white); color: var(--black); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.modal-close:hover { border-color: var(--black); }
.modal-close svg { width: 100%; height: 100%; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- scroll reveal (subtle) ---------- */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .6s ease var(--d, 0ms), translate .6s var(--ease) var(--d, 0ms), border-color .2s, transform .2s var(--ease), background .2s; }
.js .reveal.is-in { opacity: 1; translate: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .careers-inner, .contact-inner { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; gap: 4px; width: 40px; height: 40px; place-content: center;
    background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--black); transition: transform .2s, opacity .2s; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.is-current { box-shadow: none; }
  .nav-links .btn { margin-top: 12px; }

  .project-grid, .perks { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 80px 1fr; }
}

