/* ==========================================================================
   COMPONENTS — pieces used on more than one page.
   Header · Footer · Buttons · Cards · Chips · Lists ·
   Image wells · Marquee · Dark band · Hero background · Availability dot
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 251, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-cool);
}
.site-nav {
  min-height: var(--nav-height); padding-block: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.site-logo img { height: 50px; width: auto; }
.nav-spacer { flex: 1; }
.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  font-size: 18px; letter-spacing: var(--tracking-nav); text-transform: uppercase;
}
.nav-links > li { display: flex; align-items: center; }
.nav-link {
  color: var(--ink-900); padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
/* Every link looks the same — the current page isn't highlighted */
.nav-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Three links fit on every screen, so there's no burger menu */
@media (max-width: 767px) {
  :root { --nav-height: 60px; }
  .site-nav { flex-wrap: nowrap; padding-block: 8px; gap: 14px; }
  .site-logo img { height: calc(38px * 0.8); }
  .nav-links { flex-wrap: nowrap; gap: 14px; white-space: nowrap; font-size: 16px; }
}

/* ---------- Footer ---------- */
/* "Contact" in the nav lands here: like the home hero, the footer fills the screen,
   with the Let's talk card centred above the base row. The top padding
   clears the sticky header, so the page's scroll-padding is cancelled here
   and the footer lands flush with the top of the screen. */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-warm);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--nav-height) + clamp(24px, 4vw, 48px));
  scroll-margin-top: calc(-1 * (var(--nav-height) + 16px));
}
.site-footer > .wrap:first-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* Let's talk — purple card with the three ways to get in touch */
.footer-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(135deg, var(--violet-900) 0%, var(--violet-700) 45%, var(--violet-500) 100%);
}
/* Soft glow top right + fine dot texture */
.footer-cta::before, .footer-cta::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.footer-cta::before {
  width: 620px; height: 620px; top: -320px; right: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 165, 245, 0.55), rgba(198, 165, 245, 0) 72%);
}
.footer-cta::after {
  inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(110deg, transparent 30%, #000 100%);
}
.footer-cta-head { display: flex; flex-direction: column; gap: 14px; }
.footer-cta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer-cta-location {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--violet-050);
}
.footer-cta-clock {
  font-size: 11.5px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-pill); padding: 3px 10px;
}
.footer-cta-clock:empty { display: none; }
.footer-cta h2 { color: #fff; font-weight: 800; font-size: clamp(38px, 4.8vw, 72px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.footer-cta-head > p:last-child { font-size: 17px; line-height: 1.6; color: var(--violet-050); max-width: 26em; text-wrap: pretty; }

.footer-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-cta {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px;
  border-radius: var(--radius-lg); color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.contact-cta:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.contact-cta-icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}
.contact-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; }
.contact-cta-detail { font-size: 14.5px; color: var(--violet-050); overflow-wrap: break-word; }
.contact-cta .arrow { flex: none; font-size: 20px; }
/* Book a time is the primary action: solid white, tints on hover (no arrow) */
.contact-cta--primary { background: #fff; border-color: #fff; color: var(--violet-900); }
.contact-cta--primary:hover { background: var(--violet-100); border-color: var(--violet-100); color: var(--violet-900); }
.contact-cta--primary .contact-cta-icon { background: var(--accent); color: #fff; }
.contact-cta--primary .contact-cta-detail { color: var(--ink-600); }
/* Phones: tighter card so the email address fits on one line; no hover, so no arrows */
@media (max-width: 480px) {
  .footer-cta { padding: 28px 18px 18px; border-radius: var(--radius-lg); }
  .contact-cta { gap: 12px; padding: 12px; }
  .contact-cta-icon { width: 40px; height: 40px; border-radius: 12px; }
  .contact-cta-title { font-size: 17px; }
  .contact-cta-detail { font-size: 13.5px; }
  .contact-cta .arrow { display: none; }
}
.footer-base {
  padding-block: clamp(32px, 5vw, 56px) 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-base img { height: 34px; width: auto; }
.footer-base p { font-size: 13.5px; color: var(--ink-500); }
/* Privacy Policy link with the copyright underneath */
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer-legal a { font-size: 13.5px; color: var(--ink-500); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink-900); }
/* Bold arrow on its own (back to top, home hero's scroll-down) */
.arrow-link {
  display: grid; place-items: center; padding: 4px; color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease);
}
.arrow-link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 500; padding: 15px 24px; border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }

/* Secondary links — text plus an arrow that nudges the way it points on hover */
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.arrow { display: inline-block; transition: transform var(--dur-shift) var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(4px); }
a:hover .arrow--back, a:focus-visible .arrow--back { transform: translateX(-4px); }
a:hover .arrow--out, a:focus-visible .arrow--out { transform: translate(3px, -3px); }
a:hover .arrow--up, a:focus-visible .arrow--up { transform: translateY(-3px); }
a:hover .arrow--down, a:focus-visible .arrow--down { transform: translateY(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--line-warm); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--dur-fast) var(--ease);
}
/* One dark card per row is the system's emphasis device */
.card--dark { background: var(--surface-dark); border-color: var(--surface-dark); color: #fff; }
.card--dark h3, .card--dark .edu-title { color: #fff; }
.card--dark p { color: var(--ink-on-dark-strong); }

/* Em-dash bullet list */
.dash-list { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-600); }
.dash-list li { display: flex; gap: 10px; }
.dash-list li::before { content: "—"; color: var(--accent); }
.card--dark .dash-list li { color: var(--ink-on-dark-strong); }
.card--dark .dash-list li::before { color: var(--violet-300); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 14px; color: var(--ink-600);
}

/* Image wells — tinted boxes that hold images and video */
.well { position: relative; overflow: hidden; background: var(--surface-tint); border-radius: var(--radius-lg); }
.media-fill { width: 100%; height: 100%; object-fit: cover; }
.captioned { display: flex; flex-direction: column; gap: 12px; }

/* CSS phone mock-ups (used for Fjorten until real screens exist) */
/* Title card used as a cover until real project media exists */
.cover-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 6%;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 4vw, 56px);
  line-height: 1.05; text-align: center; color: var(--ink-900);
}
.phones { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 6%; padding: 6%; }
.phone {
  height: 88%; aspect-ratio: 9 / 19; border-radius: 22px; background: var(--ink-900); padding: 3.5%;
  box-shadow: var(--shadow-float);
}
.phone span {
  width: 100%; height: 100%; border-radius: 16px; background: var(--surface-card);
  display: grid; place-items: center; text-align: center; padding: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(11px, 1.2vw, 15px); color: var(--ink-700);
}
.phone.is-lifted { transform: translateY(-5%); }

/* Monogram circle (quotes) */
.monogram {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-tint); color: var(--violet-700); font-size: 12px; font-weight: 700;
}
.ref-name { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink-900); }

/* ---------- Marquee (services ticker) ---------- */
.marquee {
  overflow: hidden; background: var(--surface-hero); padding-block: 26px;
  border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-cool);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur-marquee) linear infinite; }
.marquee-run { display: flex; align-items: center; gap: 46px; padding-right: 46px; font-size: 19px; color: var(--ink-700); white-space: nowrap; }
.marquee-sep { color: #C9BFD8; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Dark band (one per page) ---------- */
.dark-band { background: var(--surface-dark); color: #fff; margin-top: 88px; padding-block: var(--section-y); }
.band-head { display: flex; flex-direction: column; gap: 14px; max-width: 40em; margin-bottom: 48px; }
.band-head .eyebrow { color: var(--violet-300); }
.band-head h2 { color: #fff; }
.band-head p { font-size: 16.5px; line-height: 1.6; color: var(--ink-on-dark); }
.band-head--sub { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 32px; }
.band-head--sub h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); }
.band-more { margin-top: 40px; }
.band-more a { color: #fff; }
.band-more a:hover { color: var(--violet-300); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: clamp(24px, 3vw, 32px); }
.steps--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* Tablet: four steps as a 2 × 2 grid rather than 3 + 1 */
@media (min-width: 481px) and (max-width: 1023px) {
  .steps:not(.steps--3) { grid-template-columns: repeat(2, 1fr); }
}
.step { border-top: 1px solid var(--line-dark); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step-label { font-size: 13px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--violet-300); }
.step h3 { color: #fff; font-size: 20px; }
.step p:not(.step-label) { font-size: 15px; line-height: 1.62; color: var(--ink-on-dark); }

/* ---------- Hero background layers (home + about) ---------- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg > div { position: absolute; pointer-events: none; }
.hero-aurora {
  inset: 0; opacity: 0.16;
  background: radial-gradient(120% 90% at 50% 120%, #2A0B57 0%, #4A17A0 26%, #7C2CDD 48%, rgba(124, 44, 221, 0) 72%);
}
.hero-dots {
  inset: 0; opacity: 0.55; background-size: 16px 16px;
  background-image: radial-gradient(rgba(58, 20, 130, 0.16) 1px, transparent 1.2px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 62%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 62%);
}

/* ---------- Availability dot ---------- */
.availability { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--ink-900); }
/* "Open to new roles" — green for available */
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1FA45A; flex: none; }
/* A ring that swells out from the dot and fades, like a live signal */
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- Work filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  font-size: 14px; padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface-card); color: var(--ink-600); border: 1px solid var(--line-strong);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.filter:hover { border-color: var(--ink-900); }
.filter[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px 20px; }
.work-tile { color: var(--ink-900); display: block; }
.work-tile[hidden] { display: none; }
.work-tile figure { display: flex; flex-direction: column; gap: 14px; }
/* Tiles take the 2:1 shape of the thumbnails so the graphics are never cropped */
.work-media { aspect-ratio: 2 / 1; }
/* The first visible tile spans the full row */
.work-tile.is-featured { grid-column: 1 / -1; }
.next-media.well--wide { height: auto; aspect-ratio: 2 / 1; }
.work-tile figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.work-title { font-size: 17px; font-weight: 500; }
.work-tile:hover .work-title { color: var(--accent); }
