:root {
  --bg: #061411;
  --accent-green: #adff85;
  --green-dark: #0a211c;
  --avatar-bg: #12382d;
  --pill-bg: #0a1f19;
  --white: #fcfffe;
  --muted: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.05);
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Brand mark pinned to top, content centered in viewport.
   Centered with left/right + margin auto (no transform) to avoid sub-pixel blur. */
.hero > .brand {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Vertical column grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(12.5% - 1px),
    var(--line) calc(12.5% - 1px),
    var(--line) 12.5%
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  z-index: 0;
}

/* ---------- Emphasis ---------- */
.serif-italic {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  color: var(--accent-green);
}

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(173, 255, 133, 0.1);
  border: 1px solid rgba(173, 255, 133, 0.2);
  color: var(--accent-green);
  border-radius: 1000px;
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

/* ---------- Brand mark ---------- */
.brand {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 74px;
  margin-bottom: 56px;
}

.brand::after {
  content: "";
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: -8px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(6, 20, 17, 0) 0%, rgba(6, 20, 17, 0.8) 70%);
  pointer-events: none;
  z-index: 1;
}

.brand__avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 150px;
  overflow: hidden;
  background: var(--avatar-bg);
  border: 1.25px solid var(--line);
  box-shadow:
    0 20px 20px rgba(0, 0, 0, 0.09),
    0 5px 11px rgba(0, 0, 0, 0.1);
}


.brand__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__signature {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(-15deg);
  transform-origin: center;
  font-family: "Imperial Script", cursive;
  font-size: 24px;
  letter-spacing: -0.6px;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Content ---------- */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 818px;
}

.hero__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* ---------- Testimonial ---------- */
.testimonial {
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--pill-bg);
  border-radius: 1000px;
  padding: 10px 20px;
}

.testimonial__stars {
  display: flex;
  align-items: center;
}

.testimonial__quote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.42px;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Headline ---------- */
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero__heading {
  font-family: "Manrope", var(--sans);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -2.56px;
  color: var(--white);
  max-width: 838px;
  text-wrap: balance; /* never leave one word alone on a line */
}

.hero__heading .accent {
  color: var(--accent-green);
}

.hero__sub {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.16px;
  color: var(--muted);
  max-width: 376px;
  text-wrap: pretty; /* avoid single-word last line */
}

/* ---------- CTAs ---------- */
.hero__actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.16px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}


.btn--primary {
  background: var(--accent-green);
  color: var(--green-dark);
}

.btn--primary:hover { filter: brightness(1.05); }

.btn--ghost {
  background: var(--glass);
  color: #fff;
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

.cta__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.16px;
  color: var(--muted);
}

.dot {
  position: relative;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.dot::before,
.dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--accent-green);
}

.dot::before {
  inset: 0;
  opacity: 0.2;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dot::before { animation: none; }
}

.dot::after {
  width: 8px;
  height: 8px;
  top: 8.5px;
  left: 8.5px;
}

/* ---------- Work ---------- */
.work {
  position: relative;
  z-index: 1;
  padding: 32px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
}

.work__head,
.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}

.work__heading {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--white);
  max-width: 640px;
  text-wrap: balance;
}

.section__sub {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--muted);
  max-width: 480px;
  text-wrap: pretty;
}

.section__heading {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--white);
  max-width: 640px;
  text-wrap: balance;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Exactly 3 projects → single row of 3. 2 and 4 stay 2-col (4 = 2x2). */
.work__grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

.work__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* Hover: dim only the non-hovered card(s), lighten the hovered one.
   :not(:hover) keeps the hovered card at full opacity regardless of specificity. */
.work__grid:has(.work__card:hover) .work__card:not(:hover) {
  opacity: 0.2;
}

.work__card:hover {
  background: #0e2a22;
  border-color: rgba(173, 255, 133, 0.2);
}

.work__card--link {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: none;
  overflow: visible;
}

.work__shot {
  position: relative;
  height: 620px;
  padding: 16px;
  --frame-h: 588px; /* height - 2*16 padding; keyframe stop point */
}

.work__frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.work__shot img {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  /* Eases back to the top when the animation is removed on hover-out */
  transition: transform 0.8s ease;
}

.work__shot--video .work__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040510;
}

.work__shot--video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Static by default; scrolls only while the card is hovered.
   -100% = full image height; + frame height (588 = 620 - 2*16 padding) stops at bottom. */
.work__card:hover .work__shot img {
  animation: scroll-shot 90s linear infinite;
}

/* Touch devices have no hover: auto-scroll once the shot is in view.
   Small delay so the top of the design is visible before it starts moving. */
@media (hover: none) {
  .work__shot.in-view img {
    animation: scroll-shot 90s linear infinite;
    animation-delay: 1.2s;
  }
}

@keyframes scroll-shot {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, calc(-100% + var(--frame-h, 588px)), 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .work__card:hover .work__shot img,
  .work__shot.in-view img { animation: none; }
}

/* Cursor-following "View site" pill on the linkable card */
.work__cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 1000px;
  background: var(--accent-green);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 0 8px rgba(173, 255, 133, 0.18), 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.work__cursor svg { display: block; }

.work__card--link:hover .work__cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px 40px;
}

.work__title {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.4px;
  color: var(--white);
}

.work__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.work__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  list-style: none;
}

.work__services li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  color: var(--accent-green);
  background: rgba(173, 255, 133, 0.1);
  border: 1px solid rgba(173, 255, 133, 0.2);
  border-radius: 1000px;
  padding: 8px 16px 8px 12px;
}

/* ---------- Video testimonial ---------- */
.video-testimonial {
  position: relative;
  z-index: 1;
  padding: 56px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-testimonial__player {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pill-bg);
  border: 1px solid rgba(173, 255, 133, 0.25);
  box-shadow: 0 0 0 6px rgba(173, 255, 133, 0.06), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.video-testimonial__player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  accent-color: var(--accent-green);
}

.video-testimonial__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: var(--accent-green);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 4px;
  box-shadow: 0 0 0 8px rgba(173, 255, 133, 0.18), 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.video-testimonial__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.05);
}

.video-testimonial__player.is-playing .video-testimonial__play {
  display: none;
}

/* Native cues hidden; captions rendered in custom overlay below for full styling control */
.vcaptions {
  position: absolute;
  left: 50%;
  bottom: 52px; /* sits just above the control bar, never overlapping it */
  top: auto;
  transform: translateX(-50%);
  width: calc(100% - 28px); /* near edge-to-edge, small side spacing */
  max-width: none;
  background: var(--bg);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 8px 20px;
  border-radius: 12px;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.vcaptions.is-visible {
  display: block;
}

/* ---------- Custom video controls (on brand) ---------- */
.vplayer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(2, 8, 6, 0.85) 0%, rgba(2, 8, 6, 0) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

/* Controls reveal when JS flags show-controls (auto-clears a few seconds into
   playback so the title is readable). */
.video-testimonial__player.show-controls .vplayer {
  opacity: 1;
  transform: translateY(0);
}

/* Hover reveal only on real pointer devices. On touch, iOS keeps :hover "stuck"
   after a tap, which would pin the bar open and defeat the auto-hide. */
@media (hover: hover) {
  .video-testimonial__player:hover .vplayer {
    opacity: 1;
    transform: translateY(0);
  }
}

.vplayer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.vplayer__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-green);
}

.vplayer__btn.is-active {
  color: var(--accent-green);
}

.vplayer__time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  min-width: 34px;
  text-align: center;
}

.vplayer__seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 100px;
  background: linear-gradient(to right, var(--accent-green) var(--progress, 0%), rgba(255, 255, 255, 0.22) var(--progress, 0%));
  cursor: pointer;
  outline: none;
}

.vplayer__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--green-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.vplayer__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: var(--accent-green);
}

.video-testimonial__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}

.video-testimonial__name {
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}

.video-testimonial__role {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  z-index: 1;
  padding: 56px 0 80px;
  overflow: hidden;
}

.testimonials .section__head {
  padding: 0 24px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-row infinite carousel */
.testimonials__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-left 60s linear infinite;
}

.marquee--right .marquee__track {
  animation-name: marquee-right;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* --set-w (width of one original set) is set in JS; loops seamlessly */
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--set-w))); }
}

@keyframes marquee-right {
  from { transform: translateX(calc(-1 * var(--set-w))); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Gradient transition into next section */
.testimonials__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 20, 17, 0) 0%, var(--bg) 92%);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 400px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(173, 255, 133, 0.08);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.testimonial-card__quote {
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.testimonial-card__quote .highlight {
  color: var(--accent-green);
  font-weight: 500;
}

.testimonial-card__header div {
  display: flex;
  flex-direction: column;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__avatar--initials {
  background: var(--avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-green);
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  z-index: 1;
  padding: 56px 24px 80px;
  max-width: 640px;
  margin: 0 auto;
  scroll-margin-top: 40px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__row {
  display: flex;
  gap: 16px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.contact__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.contact__field input,
.contact__field textarea {
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--white);
  outline: none;
  resize: vertical;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--accent-green);
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Keep autofilled fields on-brand (override browser's light yellow/blue fill) */
.contact__field input:-webkit-autofill,
.contact__field input:-webkit-autofill:hover,
.contact__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  border: 1px solid var(--line);
  -webkit-box-shadow: 0 0 0 1000px var(--pill-bg) inset;
  box-shadow: 0 0 0 1000px var(--pill-bg) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.contact__field input:-webkit-autofill:focus {
  border-color: var(--accent-green);
}

.contact__submit {
  align-self: center;
  margin-top: 8px;
  min-width: 200px;
}

/* Honeypot anti-spam field */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 0;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 64px 24px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.brand--footer {
  width: 60px;
  height: 74px;
  margin-bottom: 0;
}

.brand--footer::after { display: none; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
}

.modal.is-open {
  visibility: visible;
}

/* Overlay + blur appear instantly with the popup (no fade delay) */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--pill-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--glass);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal__close:hover { background: rgba(255, 255, 255, 0.16); }

.modal__body,
.modal__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.modal__success {
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 0;
}

.modal__title {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.8px;
  color: var(--white);
}

.modal__sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 8px;
}

.modal__submit {
  margin-top: 4px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.modal__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(173, 255, 133, 0.12);
  border: 1px solid rgba(173, 255, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Stack from the top so centered content never rides up over the brand mark */
  .hero { justify-content: flex-start; padding-top: 184px; }
  .hero__heading { font-size: 40px; letter-spacing: -1.4px; }
  .hero__content { gap: 40px; }
  .work__heading, .section__heading { font-size: 32px; }
  .work__grid { grid-template-columns: 1fr; }
  .work__meta { padding: 24px; }
  .work__shot { height: 420px; --frame-h: 388px; }
  .testimonial-card { width: 320px; }
  .contact__row { flex-direction: column; }
  /* Mobile uses native captions instead of the custom overlay */
  .vcaptions { display: none !important; }
  /* Tighten the control bar so every button (incl. fullscreen) fits the frame */
  .vplayer { gap: 4px; padding: 24px 10px 10px; }
  .vplayer__btn { width: 30px; height: 30px; }
  .vplayer__btn svg { width: 16px; height: 16px; }
  .vplayer__time { min-width: 26px; font-size: 11px; }
}

@media (max-width: 480px) {
  .hero__heading { font-size: 32px; letter-spacing: -1px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .testimonial__quote { white-space: normal; }
}
