/* Shared stylesheet for all content pages — clean, whitespace-heavy,
   one Carolina-blue accent. The 3D board gets the attention; these pages
   get the offer letter. */

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

:root {
  --ink: #101418;
  --muted: #4a545d;
  --faint: #8a949c;
  --line: #e7ebee;
  --accent: #4B9CD3;
  --accent-dark: #3a86ba;
  --bg: #ffffff;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* a whisper of the page's accent at the top, fading to white */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #ffffff) 0%, #ffffff 420px) fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 28px;
}
.topbar a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.topbar a:hover { color: var(--accent-dark); }
.topbar .brand { color: var(--faint); font-weight: 400; letter-spacing: 0.06em; }

main { max-width: 760px; margin: 0 auto; padding: 40px 28px 90px; }

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 34px;
}

.lead {
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 46px;
}

.hero { margin: 0 -28px 46px; }
@media (min-width: 1120px) { .hero { margin-left: -150px; margin-right: -150px; } }
.hero img, .hero video {
  width: 100%;
  display: block;
  border-radius: 14px;
}
/* main photo + a film strip of smaller shots down its right side */
.hero-strip {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 14px;
}
.hero-strip .main a, .hero-strip .strip a { display: block; height: 100%; }
.hero-strip .main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.2;
}
.hero-strip .strip {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 14px;
}
.hero-strip .strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-strip figcaption {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  padding: 2px 4px 0;
}
@media (max-width: 640px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .strip { grid-template-rows: none; grid-template-columns: 1fr 1fr 1fr; }
  .hero-strip .strip img { aspect-ratio: 1; }
}
/* two photos side by side under one caption */
.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-pair a { display: contents; }
.hero-pair img { height: 100%; object-fit: cover; }
.hero-pair figcaption, .hero-caption {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  padding: 2px 4px 0;
}
.hero-caption { padding-top: 8px; }
@media (max-width: 560px) { .hero-pair { grid-template-columns: 1fr; } }
/* a section with a photo riding beside the text */
section.has-img {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}
/* the photo takes the wider column instead */
section.has-img.img-big { grid-template-columns: 1fr 1.35fr; }
section.has-img img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
section.has-img a { display: block; }
section.has-img figure { margin: 0; }
section.has-img figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
  padding: 6px 4px 0;
}
@media (max-width: 640px) { section.has-img { grid-template-columns: 1fr; } }
/* wide horizontal figure laid full width above its section */
section.img-top figure { margin: 0 0 22px; }
section.img-top img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
section.img-top a { display: block; }
section.img-top figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
  padding: 6px 4px 0;
}
/* feature block: video + setup photo side by side under one caption */
.duo {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
  margin: 0 -28px 46px;
}
@media (min-width: 1120px) { .duo { margin-left: -150px; margin-right: -150px; } }
.duo .embed { margin: 0; }
.duo .embed iframe { height: 100%; aspect-ratio: auto; min-height: 280px; }
.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
.duo a { display: block; }
.duo figcaption {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  padding: 2px 4px 0;
}
@media (max-width: 640px) {
  .duo { grid-template-columns: 1fr; }
  .duo .embed iframe { aspect-ratio: 16 / 9; min-height: 0; }
}
/* inline PDF reader; the docbtn below opens it full screen */
.pdf { margin: 0 -28px 14px; }
@media (min-width: 1120px) { .pdf { margin-left: -150px; margin-right: -150px; } }
.pdf iframe {
  width: 100%;
  height: 78vh;
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
/* watchable player in the gallery section */
.embed { margin: 0 -28px 14px; }
@media (min-width: 1120px) { .embed { margin-left: -150px; margin-right: -150px; } }
.embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
/* note under an embedded deck; the docbtn bubble opens the live version */
.embed-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  margin: 0 0 12px;
}

section { margin-bottom: 40px; }
section h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
section h2::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 4px;
}
section p { font-size: 16.5px; color: var(--muted); }

.links { list-style: none; margin: -8px 0 46px; }
.links li { border-bottom: 1px solid var(--line); }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.links a::after { content: '↗'; color: var(--faint); font-weight: 400; }
.links a:hover { color: var(--accent); padding-left: 8px; }

.docbtn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 0 10px 46px 0;
}
.docbtn:hover { filter: brightness(0.92); }
/* a phrase in the lead picked out in the page's accent color */
.lead-accent { color: var(--accent, #4B9CD3); }
/* two photos side by side under a section's text */
.sec-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 0;
}
.sec-pair a { display: block; height: 100%; }
.sec-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
}
@media (max-width: 560px) { .sec-pair { grid-template-columns: 1fr; } }
/* a docbtn inside a section sits under the paragraph: give it air above and
   let the section's own bottom margin handle the space below */
section .docbtn { margin: 18px 10px 0 0; }

.gallery-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 -28px 46px;
}
@media (min-width: 1120px) { .gallery { margin-left: -150px; margin-right: -150px; } }
.gallery img, .gallery video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f2f4f6;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 25%, transparent);
}
.gallery a { display: block; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 60px; }
.tags span {
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 70%, #101418);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #ffffff);
  background: color-mix(in srgb, var(--accent) 7%, #ffffff);
  border-radius: 999px;
  padding: 6px 14px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.pager a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  max-width: 46%;
}
.pager a:hover { color: var(--accent); }
.pager .dir { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pager .next { text-align: right; margin-left: auto; }

/* about page facts */
.facts { margin: 0 0 60px; }
.facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.facts dt { color: var(--faint); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.facts dd { color: var(--muted); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* classic one-pager */
.classic main { max-width: 860px; }
.classic-hero { margin: 30px 0 42px; }
.classic-hero h1 { margin-bottom: 14px; }
.classic-hero .lead { margin-bottom: 30px; }
/* hero buttons: a small wrap gap, not the 46px doc-button drop */
.classic-hero .docbtn { margin-bottom: 12px; }
.classic-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
/* the thumb stretches to the TEXT column's height and the picture fills it,
   so the image runs exactly the length of the paragraph */
.classic-entry .thumb {
  position: relative;
  align-self: stretch;
  border-radius: 12px;
  background: #f2f4f6;
  overflow: hidden;
}
.classic-entry .thumb img,
.classic-entry .thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* keyword highlights: accent-tinted, semi-bold phrases */
.kw { color: var(--accent); font-weight: 500; }

/* availability: a status line above the contact buttons */
.avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e8a4c;
  margin: 26px 0 14px;
}
/* the text breathes on the same heartbeat as the dot */
.avail-text { animation: avail-breathe 1.8s ease-out infinite; }
@keyframes avail-breathe {
  0%   { opacity: 1; }
  50%  { opacity: 0.55; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .avail-text { animation: none; }
}
.avail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27b463;
  animation: avail-pulse 1.8s ease-out infinite;
}
/* heartbeat: the halo swells and fades like a live status indicator */
@keyframes avail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(39, 180, 99, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(39, 180, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 180, 99, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .avail-dot { animation: none; box-shadow: 0 0 0 3px rgba(39, 180, 99, 0.18); }
}

/* site credits: quiet small print at the very bottom of the about page */
.credits {
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 760px;
}

/* a strip of photos sharing one thumb: side-by-side slices, each covered */
.classic-entry .thumb.thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  background: none;
  overflow: visible;
}
.classic-entry .thumb.thumb-strip img {
  position: static;
  border-radius: 12px;
}
/* a thumb that never crops: the picture keeps its own aspect ratio and
   the card row grows to fit it */
.classic-entry .thumb.thumb-natural {
  align-self: start;
  background: none;
}
.classic-entry .thumb.thumb-natural img {
  position: static;
  height: auto;
  object-fit: unset;
  display: block;
  border-radius: 12px;
}
.classic-entry .kicker { margin-bottom: 10px; }
.classic-entry h2 { font-size: 26px; margin-bottom: 8px; letter-spacing: -0.01em; }
.classic-entry .dates { font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }
.classic-entry p { font-size: 15.5px; color: var(--muted); margin-bottom: 16px; }
.classic-entry { border-top: 3px solid color-mix(in srgb, var(--accent) 45%, #ffffff); }
/* Read more is a clickable bubble in the docbtn style, tinted with each
   card's own accent */
.classic-entry .more {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  margin-top: 2px;
}
.classic-entry .more:hover { filter: brightness(0.92); }
@media (max-width: 680px) {
  .classic-entry { grid-template-columns: 1fr; }
  /* stacked on phones: no text column to match, back to a fixed shape */
  .classic-entry .thumb { aspect-ratio: 4/3; }
  .classic-entry .thumb.thumb-natural { aspect-ratio: auto; }
}

/* Picture lightbox: gallery images open here instead of a new tab.
   The panel is a light wash of the page accent. */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(12, 18, 26, 0.58);
}
#lightbox.show { display: flex; }
body.lightbox-open { overflow: hidden; }
.lb-panel {
  position: relative;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 20%, #ffffff);
  box-shadow: 0 26px 70px rgba(8, 14, 22, 0.4);
  max-width: min(1100px, 100%);
  max-height: 100%;
  animation: lb-in 0.16s ease-out;
}
.lb-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 52px - 32px);
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #101418;
  background: color-mix(in srgb, var(--accent) 24%, #ffffff);
  box-shadow: 0 2px 10px rgba(8, 14, 22, 0.25);
}
.lb-close:hover { background: color-mix(in srgb, var(--accent) 36%, #ffffff); }
@keyframes lb-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-panel { animation: none; }
}

/* captioned gallery items (mars telescope shots) */
.gallery figure { margin: 0; }
.gallery figcaption {
  font-size: 13px;
  color: var(--faint);
  padding: 7px 4px 0;
}
/* the intro paragraph and title need air around the video and the grid */
.gallery-intro { margin-bottom: 30px; }
.embed + .gallery-title { margin-top: 52px; }
