/* /css/styles.css — UPDATED */

/* ========== 0) Base / Tokens ========== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: #2b2b2b;
  --muted: #3f3f3f;
  --bg: #f4f4f4;
  --ink: #111;
  --container: 1200px;
  --radius: 18px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
} /* why: prevent overflow on small screens */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
}
p {
  margin-bottom: 1rem;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
button {
  cursor: pointer;
}
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
html {
  scroll-behavior: smooth;
}
:root {
  --header-offset: 80px;
} /* чому: щоб якір не ховався під хедером */
[id] {
  scroll-margin-top: var(--header-offset);
}

/* ========== 1) Header ========== */
header {
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | nav | cta (menu-toggle overlays) */
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
}
header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-weight: 800;
}
header .logo img.logo-image {
  width: 40px;
  height: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}
header nav a {
  padding: 10px 12px;
  font-weight: 600;
  text-decoration: none;
}
header .cta {
  justify-self: end;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid var(--muted);
  font-weight: 700;
}
header .cta:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 22px;
}
@media (max-width: 768px) {
  header {
    grid-template-columns: auto auto 1fr; /* logo | toggle | cta */
    grid-template-areas: "logo toggle cta" "nav nav nav";
  }
  header .logo {
    grid-area: logo;
  }
  .menu-toggle {
    display: inline-flex;
    justify-self: start;
    grid-area: toggle;
  }
  header .cta {
    grid-area: cta;
    justify-self: end;
  }
  header nav {
    grid-area: nav;
    display: none; /* closed by default */
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 8px;
  }
  header.nav-open nav {
    display: flex;
  } /* open state */
}

/* ========== 2) Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
  overflow: hidden;
}
@supports (height: 1svh) {
  .hero {
    min-height: 100svh;
  } /* why: better mobile viewport */
}
.hero .video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero .video-background video,
.hero .video-background iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.55)
  );
}
.hero > :not(.video-background) {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 6vw, 54px);
  margin-bottom: 12px;
}
.hero p {
  color: #f2f2f2;
  font-size: clamp(15px, 2vw, 20px);
  margin-bottom: 16px;
}
.cta-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-weight: 700;
  transition: background 0.25s;
}
.cta-buttons a:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ========== 3) Section header (utility) ========== */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  max-width: var(--container);
  margin: clamp(48px, 9vw, 120px) auto;
  padding: clamp(24px, 3.5vw, 48px) 20px;
  text-align: center;
}
.section-header .eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3c3c3c;
  font-size: clamp(11px, 1.2vw, 13px);
  margin-bottom: clamp(10px, 1.2vw, 12px);
}
.section-header .display-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(12px, 1.8vw, 18px);
}
.section-header .display-title em {
  font-style: italic;
  font-weight: 600;
}
.section-header .subhead {
  font-weight: 700;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 20px);
  max-width: 820px;
  margin: 0 auto;
}
.section-band {
  position: relative;
}
.section-band.is-band::before,
.section-header.is-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--band, transparent);
}

/* ========== 4) Services (50/50) ========== */
.services {
  /* was: width:100vw + negative margins → potential horizontal scroll on some OS */
  width: 100%;
  padding: 0;
  background: #f6f1ea;
}
.services .service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image text";
  min-height: 100vh;
  align-items: stretch;
}
.services .service-item + .service-item {
  margin-top: 0;
}
.services .service-item:nth-of-type(even) {
  grid-template-areas: "text image";
}
.services .service-image {
  grid-area: image;
  position: relative;
  overflow: hidden;
}
.services .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services .service-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  padding: clamp(28px, 6vw, 96px);
  text-align: left;
}
.services .service-text h3 {
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.services .service-text p {
  color: #616161;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 900px) {
  .services .service-item {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text";
    min-height: auto;
  }
}
@media (max-width: 900px) {
  .services .service-item,
  .services .service-item:nth-of-type(even) {
    /* чому: перебиваємо більш специфічне правило */
    grid-template-columns: 1fr !important;
    grid-template-areas: "image" "text" !important;
    row-gap: 16px;
  }
}

/* ========== 5) Packages (cards with photo) ========== */
#highlights-package {
  --pkg-bg: url("/images/service1.jpg");
}
#short-film-package {
  --pkg-bg: url("/images/service2.jpg");
}
#full-film-package {
  --pkg-bg: url("/images/service3.jpg");
}

.packages {
  padding: 0 30px 60px;
  text-align: center;
  background: #fff;
}
.packages .area-selection {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: -10px 0 40px;
}
.duration-btn {
  background: #fff;
  border: 2px solid #e09d50;
  color: #e09d50;
  padding: 12px 25px;
  border-radius: 15px;
  font-weight: 700;
  transition: 0.25s;
}
.duration-btn:hover,
.duration-btn.active {
  background: #e09d50;
  color: #fff;
  box-shadow: 0 8px 15px rgba(224, 157, 80, 0.35);
  transform: translateY(-2px);
}

.packages .package-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .packages .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .packages .package-grid {
    grid-template-columns: 1fr;
  }
}

.packages .package-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: clamp(320px, 36vw, 520px);
  padding: clamp(18px, 2.6vw, 32px);
  text-align: center;
  color: #dfdfdf;
  background: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.packages .package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pkg-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: 0;
  filter: brightness(0.82) contrast(1.05) saturate(1.06);
}
.packages .package-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.42) 35%,
    rgba(0, 0, 0, 0.46) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}
@supports (mix-blend-mode: multiply) {
  .packages .package-card::after {
    background: rgba(0, 0, 0, 0.5);
    mix-blend-mode: multiply;
  }
}
.packages .package-card > * {
  position: relative;
  z-index: 2;
}
.packages .package-card h3 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f4f3f2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: clamp(22px, 3.6vw, 40px);
  margin: 0 0 8px;
}
.packages .package-price {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.packages .package-features {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: clamp(13px, 1.3vw, 15px);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  padding: 10px 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 10px;
  max-width: 85%;
}
.packages .package-features li::before {
  content: "•";
  margin-right: 10px;
  opacity: 0.95;
}
.packages .package-features::after {
  content: none !important;
}
.packages .package-card .learn-more {
  position: absolute;
  left: clamp(18px, 2.6vw, 32px);
  bottom: clamp(14px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255, 255, 255, 0.98);
  text-decoration: underline;
  z-index: 3;
}
.packages .package-card .learn-more:hover {
  text-decoration: none;
  opacity: 0.95;
}
.packages .package-card:hover::before {
  filter: brightness(0.9) contrast(1.05) saturate(1.06);
  transition: filter 0.25s ease, transform 0.35s ease;
}
.packages .package-card.selected {
  outline: 3px solid rgba(224, 157, 80, 0.9);
  outline-offset: -3px;
  transform: translateY(-6px);
  transition: transform 0.25s ease;
}
.small-note {
  margin: 30px;
}

/* ========== 6) Portfolio / Video gallery ========== */
.work {
  background: #f6f1ea;
}
.video-gallery {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr); /* fixed: proper desktop grid */
}
@media (max-width: 1200px) {
  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 2000px) {
  .video-gallery {
    max-width: none;
    grid-template-columns: repeat(8, minmax(200px, 1fr));
  }
}

.video-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-button {
  position: absolute;
  inset: auto auto 50% 50%;
  transform: translate(-50%, 50%);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: #000;
  color: #fff;
  opacity: 0.92;
  border: 0;
}
.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========== 7) Contact ========== */
.contact-section {
  overflow: visible;
  --container: 1320px;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 20px;
}
@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}
.contact-info h3,
.contact-form h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
}
.input-group {
  margin-bottom: 16px;
}
.submit-btn {
  background: #000;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
}

@media (min-width: 1100px) {
  .contact-inner {
    max-width: min(96vw, var(--container));
    padding-inline: clamp(12px, 2.5vw, 24px);
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(36px, 6vw, 96px);
    justify-items: stretch;
  }
  .contact-info {
    justify-self: start;
    max-width: 560px;
  }
  .contact-form {
    justify-self: end;
    max-width: 780px;
  }
}
@media (min-width: 1500px) {
  .contact-section {
    --container: 1440px;
  }
  .contact-inner {
    max-width: min(95vw, var(--container));
    gap: clamp(48px, 7vw, 120px);
  }
}
/* Form alignment */
.contact-form .input-group {
  display: grid;
  grid-template-columns: 150px minmax(320px, 1fr);
  align-items: center;
  column-gap: 16px;
}
.contact-form label {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  line-height: 1.4;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.contact-form input {
  height: 44px;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form ::placeholder {
  opacity: 0.6;
}
.contact-form .submit-btn {
  margin-left: 150px;
}
@media (max-width: 900px) {
  .contact-form .input-group {
    grid-template-columns: 1fr;
  }
  .contact-form label {
    text-align: left;
  }
  .contact-form .submit-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* ========== 8) Footer ========== */
footer {
  background: #000;
  color: #fff;
  padding: clamp(32px, 5vw, 64px) 20px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}
footer .footer-grid > * {
  text-align: left;
}
footer .footer-grid h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}
footer .footer-grid a {
  color: #bbb;
  display: block;
  margin-bottom: 8px;
}
footer .footer-grid a:hover {
  color: #fff;
}
footer > p {
  color: #ddd;
  text-align: center;
  margin-top: 24px;
}

/* ========== 9) Social icons (single, consolidated) ========== */
.social-icons {
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.social-icons .icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #111;
  line-height: 1;
}
.social-icons .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.social-icons i {
  font-size: 26px;
  line-height: 1;
  font-style: normal;
}
.social-icons .icon:hover {
  color: #777;
  opacity: 0.7;
}

/* ========== 10) BOOKING (book.html only) ========== */
.hidden {
  display: none !important;
}
.step {
  display: none;
}
.step:not(.hidden) {
  display: block;
}
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-container > main {
  flex: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 120px;
}
#step1 {
  text-align: center;
  margin-top: 8px;
  margin-bottom: clamp(24px, 5vw, 56px);
}
#step1 h2 {
  margin: 0 auto clamp(14px, 3vw, 28px);
}
#step1 .duration-btn {
  margin: 8px 10px;
}
#step2 > h3,
#step2 > #duration-heading {
  text-align: center;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
#step2 > h3 {
  margin-top: clamp(6px, 2vw, 18px);
  margin-bottom: clamp(8px, 2.4vw, 18px);
}
#step2 > #duration-heading {
  margin-bottom: clamp(16px, 3vw, 26px);
  color: var(--muted);
}
#step2 .package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.8vw, 32px);
  max-width: var(--container);
  margin: clamp(14px, 3vw, 32px) auto clamp(40px, 7vw, 84px);
}
#step2 .package-card {
  border: none;
  padding: 35px;
  background: linear-gradient(145deg, #fff, #f9f2ea);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-width: 350px;
}
#step2 .package-card:hover,
#step2 .package-card.selected {
  transform: translateY(-8px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.15);
}
#step2 .package-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #e4a444;
}
#step2 .package-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #777;
  margin-bottom: 10px;
}
#step2 .package-features {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
#step2 .package-features li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}
#step2 .package-features li::before {
  content: "–";
  color: #777;
  margin-right: 10px;
  font-weight: 700;
}
#step2 .navigation-buttons {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 24px);
  margin-bottom: clamp(18px, 3vw, 28px);
}
#step2 .navigation-buttons button {
  background-color: #895736;
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 15px;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#step2 .navigation-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(137, 87, 54, 0.4);
}
#client-details .summary-box {
  background: linear-gradient(145deg, #fff, #f7eee7);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}
#client-details .form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
#client-details .form-actions button {
  background: #cdb28d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
#client-details input,
#client-details textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#step1,
#step2,
#client-details {
  margin-bottom: 24px;
}

/* ========== Packages • Crew Recommendation (mini header style) ========== */
.section-header--sm .display-title {
  font-size: clamp(26px, 4.2vw, 42px);
}
.section-header--sm .subhead {
  font-size: clamp(13px, 1.4vw, 18px);
}
.crew-advice {
  padding: 0 20px clamp(36px, 6vw, 72px);
}
.crew-advice .advice-body {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.crew-advice .lead {
  font-weight: 600;
  color: var(--muted);
  margin: 0 auto clamp(16px, 2.8vw, 28px);
  max-width: 900px;
}
.crew-advice .definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin: 0 auto clamp(16px, 4vw, 36px);
  max-width: 1100px;
  text-align: left;
}
@media (max-width: 900px) {
  .crew-advice .definition-list {
    grid-template-columns: 1fr;
  }
}
.crew-advice .def-item {
  background: linear-gradient(145deg, #fff, #f7efe6);
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.crew-advice dt {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 0 0 8px;
}
.crew-advice dd {
  margin: 0;
  color: #616161;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
}
.crew-advice .advice-summary {
  font-weight: 700;
  max-width: 940px;
  margin: clamp(14px, 3vw, 24px) auto 0;
}
.crew-advice .small-note {
  color: #777;
  font-size: 12px;
  margin-top: 8px;
}

/* ===== About / Team ===== */
.about {
  padding: 0 20px clamp(56px, 8vw, 96px);
}
.about .team {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}
.person-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
@media (max-width: 960px) {
  .person-card {
    grid-template-columns: 1fr;
  }
}
.about .team .person-card:nth-child(even) .person-photo {
  order: 2;
}
.about .team .person-card:nth-child(even) .person-meta {
  order: 1;
}
@media (max-width: 960px) {
  .about .team .person-card:nth-child(even) .person-photo,
  .about .team .person-card:nth-child(even) .person-meta {
    order: initial;
  }
}
.person-photo {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-meta {
  max-width: 680px;
}
.person-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 0;
}
.person-role {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.person-bio {
  margin: clamp(10px, 2vw, 16px) 0 0;
  color: #4d4d4d;
  line-height: 1.75;
}
.person-highlights {
  margin: clamp(10px, 2vw, 18px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.person-highlights li {
  color: #5a5a5a;
}

/* CTA banner */
.cta-banner {
  max-width: var(--container);
  margin: clamp(24px, 6vw, 64px) auto 0;
  text-align: center;
  background: linear-gradient(145deg, #fff, #f7efe6);
  padding: clamp(16px, 3.5vw, 28px);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.cta-banner .cta-text {
  font-weight: 700;
  margin: 0 0 12px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9999px;
  border: 1px solid var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* /css/styles.css — ADD after the existing Portfolio styles */

/* 1) Compact header just for Portfolio + wider container */
.work {
  --container: 1360px; /* важлива секція — більше ширини на ноутбуках */
  padding: 0 20px 64px;
}
.work .section-header {
  margin: clamp(24px, 4vw, 56px) auto clamp(12px, 2.2vw, 20px);
  padding: 0 20px;
}
.work .section-header .display-title {
  margin-bottom: 6px;
}
.work .section-header .subhead {
  margin-top: 0;
}

/* 2) Denser grid and wider max width */
.video-gallery {
  max-width: min(96vw, var(--container));
  gap: clamp(12px, 1.2vw, 18px);
  margin-top: clamp(8px, 1.4vw, 14px);
}

/* 3) Laptops: show 3 columns for larger cards (overrides earlier rules) */
@media (min-width: 1024px) and (max-width: 1360px) {
  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4) Back to 4 columns on wider screens */
@media (min-width: 1361px) and (max-width: 1680px) {
  .video-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
