/* Turbolab — hand-written theme. Dark by default; `.section--light` / `.theme-light` flip to white. */

:root {
  --bg: #080808;
  --surface: #101215;
  --border: #23272d;
  --text: #ffffff;
  --muted: #b8bdc5;
  --primary: #006dda;
  --primary-bright: #3a95ff;

  --light-bg: #ffffff;
  --light-surface: #f4f5f7;
  --light-border: #e5e7eb;
  --ink: #080808;
  --ink-muted: #4a4f57;

  --blue: #0a3a8c;
  --green: #0e9f55;
  --orange: #d9480f;

  --radius: 24px;
  --radius-lg: 36px;
  --container: 1140px;
  --gutter: 20px;
  --font: "Gothic A1", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; } /* <picture> is display:contents, so keep <source> out of grid/flex layouts */
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
.h3 { font-size: 1.6rem; }
.h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border: 1.5px solid var(--primary); border-radius: 999px;
  font: 600 .95rem/1.4 var(--font); color: inherit; background: transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--on-color { border-color: #fff; color: #fff; }
.btn--on-color:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 8, 8, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #1a1d22; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo img { width: 104px; height: auto; }
.site-nav { display: flex; gap: 8px; }
.site-nav a { position: relative; padding: 24px 14px; font-size: .95rem; text-decoration: none; color: #e9ebee; }
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a::after { left: 0; right: auto; width: 32px; bottom: 6px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid #1a1d22; padding: 56px 0; background: var(--bg); color: var(--text); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; }
.social { display: flex; gap: 14px; margin-top: 20px; }
.social a { display: inline-flex; color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .95rem; }
.site-footer__nav a { text-decoration: none; color: #d6d9de; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__address { justify-self: end; font-style: normal; color: #d6d9de; font-size: .95rem; line-height: 1.7; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__address { justify-self: start; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section + .section--tight { padding-top: 0; }
.section--glow { background: radial-gradient(55% 60% at 0% 100%, rgba(0, 109, 218, .16), transparent 70%), var(--bg); }
.section__heading { max-width: 22ch; margin-bottom: 2.5rem; }
.section__heading--xl { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: none; }
.section__heading--center { text-align: center; max-width: none; font-size: 1.6rem; }
.section--light, .theme-light main { background: var(--light-bg); color: var(--ink); }
.section--light .eyebrow, .theme-light .eyebrow, .section--light .lead, .theme-light .lead { color: var(--ink-muted); }
.section--light .btn, .theme-light .btn { color: var(--ink); }
.section--light .btn:hover, .theme-light .btn:hover { color: #fff; }

/* hero */
.hero { padding: 96px 0; overflow: hidden; }
.hero__text { color: #d7dbe0; font-size: 1.05rem; max-width: 46ch; }
.hero--split .hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero--center .hero__content { text-align: center; max-width: 960px; margin-inline: auto; }
.hero--center .hero__text { margin-inline: auto; max-width: 60ch; }
.hero--center .buttons { justify-content: center; }
.hero--center .hero__title { margin-bottom: .4em; }
.hero .marquee { margin-top: 64px; }
.hero__image { margin-top: 56px; width: 100%; border-radius: var(--radius-lg); aspect-ratio: 19 / 10; object-fit: cover; }
.hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; max-width: 520px; justify-self: end; }
.hero__collage img { width: 100%; object-fit: cover; }
/* collage: tall pill + circle on the left, circle + tall pill on the right, staggered */
.hero__collage .collage-1 { grid-area: 1 / 1; aspect-ratio: 5 / 6; border-radius: 120px; }
.hero__collage .collage-2 { grid-area: 1 / 2; aspect-ratio: 1; border-radius: 50%; width: 80%; justify-self: center; align-self: start; }
.hero__collage .collage-3 { grid-area: 2 / 1; aspect-ratio: 1; border-radius: 50%; width: 80%; justify-self: center; align-self: start; }
.hero__collage .collage-4 { grid-area: 2 / 2; aspect-ratio: 5 / 7; border-radius: 120px; margin-top: -45%; }
@media (max-width: 900px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero__collage { justify-self: center; }
}

/* marquee (photo strips) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee var(--duration, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__img { width: 300px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* cards */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 36px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, #121418, #0a0b0d); }
.card__icon { display: inline-flex; margin-bottom: 20px; }
.card__icon svg { width: 34px; height: 34px; }
.card__title { margin-bottom: .8rem; max-width: 18ch; }
.card__text { color: var(--muted); font-size: .95rem; }
.card__text p:last-child { margin: 0; }
.section--light .card { background: #fff; border-color: var(--light-border); }
.section--light .card__text { color: var(--ink-muted); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards--2, .cards--3 { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-radius: var(--radius); min-height: 170px; justify-content: center; }
.stat strong { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.stat span { font-size: .95rem; }
.tone-blue { background: linear-gradient(140deg, #0b3f9e 0%, #04122d 70%, #000 100%); }
.tone-green { background: linear-gradient(140deg, #10b862 0%, #064d2a 55%, #000 100%); }
.tone-orange { background: linear-gradient(140deg, #ee5a12 0%, #6b2207 60%, #000 100%); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.point + .point { border-left: 1px solid #3a3f46; padding-left: 48px; }
.point h3 { max-width: 24ch; }
.point p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .stats, .points { grid-template-columns: 1fr; }
  .point + .point { border-left: 0; padding-left: 0; }
}

/* photo grid ("Why Turbolab") */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.photo-grid__intro { align-self: center; padding-right: 12px; }
.photo-grid__intro p { color: #d7dbe0; }
.photo-grid__heading { font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.photo-grid__heading strong { display: block; font-weight: 700; }
.photo-grid__img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid__intro { grid-column: 1 / -1; }
  .photo-grid__img--odd { display: none; }
}

/* hiring banner */
.hiring { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.hiring__card { padding: 48px; border-radius: var(--radius); background: linear-gradient(150deg, #0b5ed7 0%, #1c3faa 55%, #0a2a7a 100%); color: #fff; }
.hiring__card h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; margin-bottom: .3em; }
.hiring__card p { font-size: 1.35rem; max-width: 16ch; margin-bottom: 1.6rem; line-height: 1.35; }
.hiring__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
  .hiring { grid-template-columns: repeat(3, 1fr); }
  .hiring__card { grid-column: 1 / -1; }
  .hiring__img { min-height: 200px; aspect-ratio: 4 / 7; }
}

/* prose section */
.lead-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; color: #e6e8eb; max-width: 62ch; }
.section--light .lead-text { color: var(--ink); }

/* values */
.values { border-top: 1px solid var(--light-border); }
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--light-border); }
.value .eyebrow { margin-bottom: .6rem; }
.value h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; max-width: 18ch; margin: 0; }
.value p { color: var(--ink-muted); font-size: .95rem; margin: 0; align-self: center; }
.value > div:last-child { display: flex; align-items: center; }
@media (max-width: 760px) { .value { grid-template-columns: 1fr; gap: 12px; } }

/* callout */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 40px; border-radius: var(--radius); background: var(--light-surface); }
.callout h2 { margin-bottom: .3em; }
.callout p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.callout .buttons { margin: 0; flex: none; }
@media (max-width: 640px) { .callout { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* split list (perks) */
.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-list__img { width: 100%; border-radius: var(--radius); position: sticky; top: 100px; aspect-ratio: 5 / 8; object-fit: cover; }
.split-list__item { margin-bottom: 28px; }
.split-list__item h3 { margin-bottom: .4rem; }
.split-list__item p { color: var(--ink-muted); font-size: .95rem; margin: 0; }
@media (max-width: 760px) {
  .split-list { grid-template-columns: 1fr; }
  .split-list__img { position: static; aspect-ratio: 4 / 3; }
}

/* feature rows (life) */
.feature-rows { display: grid; gap: 40px; }
.feature-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: stretch; }
.feature-row--reverse { grid-template-columns: 1.6fr 1fr; }
.feature-row--reverse .feature-row__card { order: 2; }
.feature-row__card { padding: 44px 40px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; }
.feature-row__card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; max-width: 16ch; }
.feature-row__card p { color: #d7dbe0; font-size: .95rem; margin: 0; }
.feature-row__card.tone-blue { background: radial-gradient(90% 90% at 0% 0%, rgba(0, 109, 218, .28), transparent 70%), #0d0f12; }
.feature-row__card.tone-green { background: radial-gradient(90% 90% at 100% 0%, rgba(16, 184, 98, .24), transparent 70%), #0d0f12; }
.feature-row__card.tone-orange { background: radial-gradient(90% 90% at 0% 0%, rgba(238, 90, 18, .26), transparent 70%), #0d0f12; }
.feature-row__img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__card { order: 0; }
  .feature-row__img { min-height: 240px; }
}

/* checklist + photo strip */
.checklist-split { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; align-items: center; }
.checklist-split__media { min-width: 0; }
.checklist-split .marquee__img { width: 280px; aspect-ratio: 1; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin: 12px 0; font-size: .95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
@media (max-width: 900px) { .checklist-split { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 40px; }
.gallery__img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); grid-column: span 8; }
.gallery__img--narrow { grid-column: span 4; }
@media (max-width: 760px) {
  .gallery__img, .gallery__img--narrow { grid-column: span 12; height: 240px; }
}

/* testimonials */
.testimonial { margin: 0; border-radius: var(--radius); background: #17191d; overflow: hidden; display: flex; flex-direction: column; }
.testimonial__img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.testimonial figcaption { padding: 0 28px; margin-top: -24px; position: relative; display: flex; flex-direction: column; }
.testimonial figcaption span { font-size: .8rem; color: var(--muted); }
.testimonial blockquote { margin: 16px 28px 32px; font-size: .9rem; color: #d7dbe0; }

/* contact */
.contact__header { text-align: center; margin-bottom: 56px; }
.contact__header .lead { color: #d7dbe0; }
.contact__block h2 { display: flex; align-items: center; gap: 12px; }
.contact__block p { color: #d7dbe0; margin: 0; }
.contact__block a { color: #fff; }
.contact__block a:hover { color: var(--primary-bright); }
.contact__icon { display: inline-flex; }
.contact__icon svg { width: 22px; height: 22px; }

/* ---------- blog ---------- */
.archive__header { margin-bottom: 48px; }
.archive__header h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .25em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .1); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.post-card__media { aspect-ratio: 2 / 1; background: var(--light-surface); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 26px; }
.post-card__date { font-size: .8rem; color: var(--ink-muted); }
.post-card__title { font-size: 1.1rem; margin: 6px 0 0; line-height: 1.35; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.pagination a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination a:hover { background: var(--light-surface); }
.pagination a[aria-current="page"] { color: var(--primary); font-weight: 700; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post { padding: 72px 0 40px; }
.post__header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.post__meta { color: var(--ink-muted); font-size: .9rem; margin-bottom: 40px; }
.post__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--light-border); display: grid; gap: 20px; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--light-surface); font-size: .85rem; text-decoration: none; color: var(--ink); }
.tag-list a:hover { background: #e6efff; color: var(--primary); }
.share { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .9rem; }
.share span { color: var(--ink-muted); }
.share a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* long-form content */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.8rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { margin-inline: auto; border-radius: 8px; }
.prose figcaption { text-align: center; font-size: .85rem; color: var(--ink-muted); margin-top: .6em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--primary); color: var(--ink-muted); }
.prose code { font: .88em/1.5 var(--mono); background: var(--light-surface); padding: .15em .35em; border-radius: 4px; }
.prose pre { background: #0f1115; color: #e6e8eb; line-height: 1.55; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 1.5em 0; }
.prose pre code { background: none; padding: 0; font-size: .85rem; color: inherit; white-space: pre; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--light-border); padding: 8px 12px; text-align: left; }
.prose img { height: auto; }

/* 404 */
.not-found { text-align: center; padding: 140px 0; }
.not-found .buttons { justify-content: center; }
