/* T-AV — Page styles for showcase, services, about, contact, careers, 404 */

/* ===== SHOWCASE ===== */
.showcase-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
/* Filter chip — active state uses an inset box-shadow instead of a
   thicker border so the chip transitions cleanly (border-width is not
   transitionable; the prior 1px → 2px swap snapped). Padding stays
   constant across states because the shadow is inset.
   (Motion audit 2026-05-25 finding #4.) */
.chip-filter {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase;
  padding: 9px 16px; border-radius: 9999px;
  background: transparent; color: var(--parchment);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 0 var(--tav-green);
  transition: color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out),
              background var(--dur-hover) var(--ease-out),
              box-shadow var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .chip-filter:hover { color: var(--snow); border-color: var(--charcoal-warm); background: rgba(255,255,255,0.04); }
}
.chip-filter.is-active {
  color: var(--tav-green-light);
  border-color: var(--tav-green);
  box-shadow: inset 0 0 0 1px var(--tav-green);
}
.showcase-meta {
  display: flex; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--steel); letter-spacing: 2.0px;
  text-transform: uppercase;
  padding-top: 18px;
}

/* Load-more action below the masonry. Sits centered on its own row
   with breathing space; uses the standard .btn treatment with the
   embedded down-arrow nudging on hover. */
.showcase-loadmore {
  display: flex; justify-content: center;
  padding: 40px 0 16px;
}
.showcase-loadmore .btn {
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 2.0px; text-transform: uppercase;
  padding: 14px 20px;
}
.showcase-loadmore .btn svg { margin-left: 4px; transition: transform var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .showcase-loadmore .btn:hover svg { transform: translateY(2px); }
}

.showcase-types {
  margin: 32px 0 48px;
  max-width: 70ch;
}
.showcase-types p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--parchment); margin: 12px 0 0;
}
.showcase-types p:first-of-type { margin-top: 16px; }
.showcase-types strong {
  color: var(--snow); font-weight: 600;
}

.masonry {
  columns: 3;
  column-gap: 16px;
}
@media (max-width: 960px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

.masonry-card {
  display: block; width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 4 / 3;
  transition: border-color var(--dur-popover) var(--ease-out),
              transform var(--dur-popover) var(--ease-out);
}
.masonry-card.span-tall  { aspect-ratio: 4 / 5; }
.masonry-card.span-wide  { aspect-ratio: 16 / 9; }
@media (hover: hover) and (pointer: fine) {
  .masonry-card:hover { border-color: var(--tav-green); transform: translateY(-3px); }
}
.masonry-card .teaser-card__svg { width: 100%; height: 100%; }
.masonry-card__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  /* Slight desaturation at rest so the row feels cohesive with the
     dark canvas; hover lifts back to full saturation. */
  filter: saturate(0.85);
  transition: filter var(--dur-popover) var(--ease-out),
              transform var(--dur-popover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .masonry-card:hover .masonry-card__img { filter: saturate(1); transform: scale(1.03); }
}
.masonry-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,5,7,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  text-align: left;
}
.masonry-card__cat {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--tav-green-light);
  letter-spacing: 2.2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.masonry-card__title {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--snow); line-height: 1.2;
  margin-bottom: 4px;
}
.masonry-card__meta {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--steel); letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Lightbox — portaled to document.body (see ShowcasePage). The
   modal centers in the viewport regardless of page scroll position.
   Grid is image-dominant (~71% image, ~29% text) and the entire
   inner is capped at the viewport height so the photo never spills
   off-screen on small windows. */
/* Lightbox enter/exit (motion audit 2026-05-25 finding #1).
   - Enter: @starting-style triggers a 200ms fade-in on the backdrop +
            a fade + 8px translateY + small blur on the inner panel.
   - Exit:  .is-closing fades the wrapper out over 150ms — Pages.jsx
            keeps the element mounted for that window before unmounting.
   - @starting-style runs once on each mount, so card-to-card lightbox
     navigation (which changes only the index) does NOT replay the
     entry. Card-to-card stays instant; only first-open animates. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,7,0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 60px;
  opacity: 1;
  transition: opacity 200ms var(--ease-out);
}
@starting-style {
  .lightbox { opacity: 0; }
}
.lightbox.is-closing {
  opacity: 0;
  transition-duration: 150ms;
  pointer-events: none;
}
.lightbox__inner {
  max-width: 1400px; width: 100%;
  max-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 2.4fr 1fr;
  gap: 0; align-items: stretch;
  background: var(--carbon);
  border: 2px solid var(--tav-green);
  border-radius: 8px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 200ms var(--ease-out),
              transform 200ms var(--ease-out),
              filter 200ms var(--ease-out);
}
@starting-style {
  .lightbox__inner {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
}
.lightbox.is-closing .lightbox__inner {
  opacity: 0;
  transition-duration: 150ms;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__inner,
  .lightbox.is-closing,
  .lightbox.is-closing .lightbox__inner {
    transition: none !important;
  }
}
.lightbox__media {
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  /* No aspect-ratio: the grid cell + parent max-height give the
     media a flexible-but-bounded box; object-fit: contain on the
     image then fills it without distortion. min-height/-width: 0
     so the grid item can shrink properly. */
  min-height: 0; min-width: 0;
}
.lightbox__media svg { width: 100%; height: 100%; }
.lightbox__img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.lightbox__info {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;  /* in case a long caption ever exceeds the panel */
}
@media (max-width: 760px) {
  /* On mobile the side-by-side becomes top-and-bottom. Media gets a
     bounded aspect so the image has a predictable size. */
  .lightbox { padding: 16px; }
  .lightbox__inner {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
  }
  .lightbox__media { aspect-ratio: 4 / 3; }
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 300; line-height: 1.0;
  letter-spacing: -0.8px;
  color: var(--snow); margin: 8px 0 6px;
}
.lightbox__caption {
  font-family: var(--font-body); font-size: 14px;
  color: var(--parchment);
}
.lightbox__count {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--steel); letter-spacing: 2.0px;
}
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--carbon); border: 1px solid var(--border);
  color: var(--snow); border-radius: 6px;
  font-size: 24px; line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox__close:hover { border-color: var(--tav-green); color: var(--tav-green-light); }
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--carbon); border: 1px solid var(--border);
  border-radius: 6px; color: var(--snow);
  display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox__nav:hover:not(:disabled) { border-color: var(--tav-green); color: var(--tav-green-light); }
}
.lightbox__nav:disabled { opacity: 0.3; cursor: not-allowed; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
@media (max-width: 760px) {
  .lightbox { padding: 16px; }
  .lightbox__inner { grid-template-columns: 1fr; }
  .lightbox__nav { display: none; }
}

/* ===== WHAT WE DO — stacked alternating rows =====
   Each service is a full-width row with the discipline blueprint
   (existing BeatVisuals SVG) on one side and the copy on the other.
   Image alternates left / right down the page (echoes the home
   story-arc beat rhythm). The 5-up grid was retired here because the
   reduced-density / image-prominent layout reads as a capabilities
   spec sheet, not a SaaS feature grid. */
.service-stack {
  display: flex; flex-direction: column;
  gap: 56px;
}

.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 32px;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: border-color var(--dur-popover) var(--ease-out),
              transform var(--dur-popover) var(--ease-out),
              box-shadow var(--dur-popover) var(--ease-out);
}
.service-row.reverse .service-row__visual { order: 2; }
.service-row.reverse .service-row__body { order: 1; }

.service-row__visual {
  aspect-ratio: 8 / 5;
  background: var(--abyss);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: stretch;
}
.service-row__visual svg {
  width: 100%; height: 100%; display: block;
}

.service-row__body { padding: 8px 4px; }

.service-row__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 18px;
}
.service-row__num {
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 2.0px;
  color: var(--steel);
}
.service-row__tagline {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2.0px;
  color: var(--tav-green-light);
  text-transform: uppercase;
}
.service-row__name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -1.2px;
  color: var(--snow);
  margin: 0 0 18px;
  font-variation-settings: "wdth" 92;
}
.service-row__desc {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--parchment);
  max-width: 520px;
  margin: 0 0 24px;
}
.service-row__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--tav-green-light);
  transition: color var(--dur-hover) var(--ease-out);
}
.service-row__more svg {
  transition: transform var(--dur-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service-row:hover {
    border-color: var(--tav-green);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -22px rgba(62,140,132,0.55);
  }
  .service-row:hover .service-row__more { color: var(--tav-green); }
  .service-row:hover .service-row__more svg { transform: translateX(3px); }
}
.service-row:active {
  transform: scale(0.99);
  transition-duration: var(--dur-press);
}

@media (max-width: 800px) {
  .service-stack { gap: 32px; }
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .service-row.reverse .service-row__visual { order: 1; }
  .service-row.reverse .service-row__body { order: 2; }
}

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--carbon);
  overflow: hidden;
}
.process-cell {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.process-cell:last-child { border-right: 0; }
.process-cell__num {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--tav-green); letter-spacing: 2.0px;
}
.process-cell__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--snow);
}
.process-cell__desc {
  font-family: var(--font-body); font-size: 13px;
  color: var(--parchment); line-height: 1.55;
  margin: 0;
}
@media (max-width: 760px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-cell:nth-child(2n) { border-right: 0; }
  .process-cell { border-bottom: 1px solid var(--border); }
  .process-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ===== SERVICE DETAIL ===== */
.service-visual {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--carbon);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  width: 100%;
}
.service-visual svg { width: 100%; height: 100%; display: block; }

.service-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: start;
}
.service-body__copy { display: flex; flex-direction: column; gap: 12px; }
.service-body__p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--parchment); margin: 0;
}
.service-body__p:first-of-type { color: var(--snow); font-size: 19px; }

.spec-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(79, 93, 117, 0.3);
  letter-spacing: 2.0px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row__k { color: var(--steel); text-transform: uppercase; letter-spacing: 1.4px; }
.spec-row__v { color: var(--snow); text-align: right; max-width: 60%; }

.gear-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gear-cell {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.gear-cell__cat {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--tav-green-light); letter-spacing: 2.2px;
  text-transform: uppercase;
}
.gear-cell__name {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--snow);
}
.gear-cell__meta {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--steel); letter-spacing: 2.0px;
}
@media (max-width: 880px) {
  .service-body { grid-template-columns: 1fr; gap: 32px; }
  .gear-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gear-list { grid-template-columns: 1fr; }
}

/* ===== SERVICE FAQ ===== */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  max-width: 860px;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--snow); margin: 0 0 10px; letter-spacing: 0.2px;
}
.faq-item__a {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--parchment); margin: 0; max-width: 72ch;
}
@media (max-width: 760px) {
  .faq-item__q { font-size: 17px; }
}

.next-service {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 36px;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--dur-popover) var(--ease-out),
              transform var(--dur-popover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .next-service:hover { border-color: var(--tav-green); transform: translateY(-2px); }
}
.next-service__name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 300;
  letter-spacing: -0.6px;
  color: var(--snow);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.about-grid__h {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--snow); margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.about-grid__p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--parchment); margin: 0;
}
.about-grid__p + .about-grid__p { margin-top: 12px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--carbon);
  overflow: hidden;
}
.about-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.about-stat:last-child { border-right: 0; }
.about-stat__n {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 300;
  letter-spacing: -1.2px; color: var(--snow);
  line-height: 1;
}
.about-stat__n span {
  font-size: 18px; color: var(--tav-green-light);
  margin-left: 2px; letter-spacing: 0;
}
.about-stat__l {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--steel); letter-spacing: 2.2px;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .about-stats { grid-template-columns: 1fr 1fr 1fr; }
  .about-stat { border-bottom: 1px solid var(--border); }
  .about-stat:nth-child(3n) { border-right: 0; }
  .about-stat:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat:nth-child(3n) { border-right: 1px solid var(--border); }
  .about-stat:nth-child(2n) { border-right: 0; }
  .about-stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .about-stat:nth-last-child(-n+2) { border-bottom: 0; }
}

.principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.principle {
  padding: 28px;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.principle__n {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--tav-green); letter-spacing: 2.0px;
  margin-bottom: 12px;
}
.principle__t {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--snow); margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.principle__d {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--parchment); margin: 0;
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ===== PartnerMarquee — continuous monochrome logo strip =====
   Used on both the home Happy Partners section and the About page.
   The track holds the partner list twice; translateX runs 0 → -50%
   so the seam between the duplicates lands invisibly (the second
   pass is identical to the first). Side-mask fades the leftmost
   and rightmost logos so nothing pops in or out of frame abruptly.
   Hover pauses the loop. prefers-reduced-motion stops it and wraps
   the list as a static centered grid. */
.partner-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partner-marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: partner-marquee-scroll 38s linear infinite;
}
@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) {
  .partner-marquee:hover .partner-marquee__track {
    animation-play-state: paused;
  }
}
.partner-marquee__item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 56px;
}
.partner-marquee__img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Force every logo to a clean white silhouette. brightness(0)
     drops all color to black; invert(1) flips to white. Works on
     PNGs delivered in any source color so long as the background
     is transparent. */
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .partner-marquee__img:hover { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  /* Fall back to a static wrapped grid so visitors with the
     preference still see every brand without the scroll. */
  .partner-marquee {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .partner-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  /* No need to render the duplicate pass when wrapping. */
  .partner-marquee__item[aria-hidden="true"] { display: none; }
}

/* ===== CONTACT / CAREERS ===== */
.contact-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
}

.contact-form {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  /* Form exit-fade: when ContactPage/CareersPage set .is-leaving, the
     form briefly fades to 0 over 150ms before the success view replaces
     it. (Motion audit 2026-05-25 — Jakub Opportunity.) */
  opacity: 1;
  transition: opacity 150ms var(--ease-out);
}
.contact-form.is-leaving {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .contact-form { transition: none; }
}
.contact-form .term__head { padding: 0 0 14px; margin-bottom: 4px; }
.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 540px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(79, 93, 117, 0.4);
  flex-wrap: wrap; gap: 12px;
}

/* Honeypot — visually hidden but still in the DOM for bots */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Required-field marker */
.contact-form .required-asterisk {
  color: var(--tav-green);
  margin-left: 2px;
}

/* Inline error banner
   Token substitutions vs. spec: spec referenced --accent/--fg-1,
   but tokens.css uses --tav-green/--fg1. Substituted accordingly. */
.contact-form .form-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--tav-green);
  border-radius: 6px;
  background: color-mix(in oklch, var(--tav-green) 8%, transparent);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.contact-form__actions .text-label a {
  color: var(--tav-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.contact-side { display: flex; flex-direction: column; }
.contact-side__h {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--snow); margin: 0 0 18px;
}
.contact-side__sub {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--snow); text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 0 0 12px;
}
.contact-side__p {
  font-family: var(--font-body); font-size: 14px;
  color: var(--parchment); margin: 0 0 12px;
  line-height: 1.6;
}

.direct-line {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(79, 93, 117, 0.3);
}
.direct-line:last-child { border-bottom: 0; padding-bottom: 0; }
.direct-line__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--tav-green-light);
  background: var(--carbon-raised);
}
.direct-line__label {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--steel); letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.direct-line__value {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--snow);
  display: block;
  transition: color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.direct-line__value:hover { color: var(--tav-green-light); }
}

/* CV upload — file input is visually hidden; its <label> acts as the
   styled trigger so the input matches the rest of the form (which uses
   carbon-raised inputs with charcoal-warm borders). Selected filename
   replaces the prompt text. A "Remove" link clears the attachment. */
.cv-upload {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.cv-upload__input {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  border: 0;
}
.cv-upload__trigger {
  flex: 1 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--carbon-raised);
  border: 1px solid var(--charcoal-warm);
  border-radius: 6px;
  color: var(--parchment);
  font-family: var(--font-body); font-size: 14px;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out),
              background var(--dur-hover) var(--ease-out);
}
.cv-upload__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--tav-green-light);
  flex-shrink: 0;
}
.cv-upload__label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .cv-upload__trigger:hover {
    border-color: var(--tav-green);
    color: var(--snow);
  }
}
.cv-upload__input:focus-visible + .cv-upload__trigger {
  border-color: var(--tav-green);
  box-shadow: 0 0 0 3px rgba(62, 140, 132, 0.18);
}
.cv-upload--drag-over .cv-upload__trigger {
  border-color: var(--tav-green);
  box-shadow: 0 0 0 3px rgba(62, 140, 132, 0.18);
  background: color-mix(in oklch, var(--tav-green) 5%, var(--carbon-raised));
  color: var(--snow);
}
.cv-upload__clear {
  background: transparent; border: 0; padding: 8px 4px;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2.0px; text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cv-upload__clear:hover { color: var(--danger); }
}

.cv-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.cv-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: var(--parchment);
}
.cv-list__bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tav-green);
  margin-top: 7px; flex-shrink: 0;
  filter: drop-shadow(0 0 3px var(--tav-green));
}

.role-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(79, 93, 117, 0.3);
}
.role-row:last-child { border-bottom: 0; }
.role-row__t {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--snow);
}
.role-row__m {
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  color: var(--steel); letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* ===== Contact strip ===== */
.contact-strip {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-strip__h {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px); font-weight: 300;
  color: var(--snow); margin: 0;
  letter-spacing: -0.6px;
}

/* ===== Privacy page =====
   Token substitutions vs. spec: spec referenced --fg-1/--fg-2/--accent,
   but tokens.css uses --fg1/--fg2/--tav-green. Substituted accordingly. */
.privacy-prose {
  max-width: 760px;
  margin: 0 auto;
}
.privacy-prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--fg1);
}
.privacy-prose h2:first-child { margin-top: 0; }
.privacy-prose p,
.privacy-prose ul {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 0 0 16px;
}
.privacy-prose ul { padding-left: 24px; }
.privacy-prose li { margin-bottom: 6px; }
.privacy-prose a {
  color: var(--tav-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-prose strong { color: var(--fg1); font-weight: 600; }
