:root {
  --gutter: clamp(1rem, 4.4vw, 3.125rem);
  --radius: 0.5rem;
  --header: 3.75rem;
  --overlap: 3.75rem;
  --phone-bar: 4.75rem;
  --gap: 0.625rem;
  --card-padding: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* Sizes are in rem. Up to 1133 px wide, the mockup's width, 1rem is 16 px. Wider screens
   grow every size in step, like the mockup would, up to 1440 px wide. */
html { font-size: clamp(1rem, 1.4122vw, 1.2706rem); scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.625rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 0.1875rem; }
.button-gold:focus-visible { outline: 0.1875rem solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }

.wrap { width: 100%; max-width: 70.8125rem; margin: 0 auto; padding: 0 var(--gutter); }

.icon { display: inline-block; flex: none; width: 1.25em; height: 1.25em; color: var(--gold); }
.icon svg { width: 100%; height: 100%; pointer-events: none; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 0.5rem; }

.sample-note {
  padding: 0.3125rem var(--gutter);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
.sample-note:target { outline: 0.1875rem solid var(--ink); outline-offset: -3px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid transparent;
  border-radius: 0.3125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.button-gold { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); color: var(--ink); }
.button-gold:hover { background: var(--gold-light); }
.button-outline { border-color: var(--gold); background: rgba(11, 10, 9, .55); color: var(--on-black); }
.button-outline:hover { background: var(--black); color: var(--gold-light); }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.375rem; }

.text-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--gold-on-white); }
.text-link .icon { color: inherit; }

/* Top bar and header */
.top-bar { background: var(--black); color: var(--on-black); font-size: 0.8125rem; }
.top-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 1.75rem; }
.top-bar-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.top-bar-item a { text-decoration: none; }
.top-bar-contact { display: inline-flex; gap: 1.5rem; }
.top-line::before, .top-line::after { content: "\2726"; margin: 0 0.625rem; color: var(--gold); }

.site-header .button { padding: 0.5rem 1.125rem; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--black); color: var(--on-black); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; min-height: var(--header); }

.brand { display: inline-flex; flex-direction: column; color: var(--on-black); font-family: var(--serif); text-decoration: none; white-space: nowrap; }
/* The name in two lines: VISUVA in gold, with PRODUCTIONS underneath at the same width */
.brand-name { color: var(--gold); font-size: 1.75rem; font-weight: 500; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.brand-line { margin-top: 0.3125rem; font-family: var(--sans); font-size: 0.6562rem; font-weight: 500; letter-spacing: .42em; line-height: 1; text-transform: uppercase; }

.site-menu { display: flex; align-self: stretch; gap: 1.625rem; margin-left: auto; }
.site-menu a { display: flex; align-items: center; border-bottom: 2px solid transparent; font-size: 0.8438rem; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.site-menu a:hover { color: var(--gold); }
.site-menu a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }

.menu-button {
  display: none;
  margin-left: auto;
  padding: 0.4375rem 0.875rem;
  border: 1.5px solid var(--line-on-black);
  border-radius: 0.375rem;
  background: none;
  color: inherit;
  font: 600 0.9375rem/1.3 var(--sans);
  cursor: pointer;
}

/* Shared text styles */
.eyebrow { margin-bottom: 0.375rem; color: var(--gold-on-white); font-size: 0.8125rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.price { margin-top: 0.5rem; color: var(--gold-on-white); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; }
.icon-pair { display: flex; gap: 0.5rem; font-size: 1.5625rem; }

/* Home: banner */
.hero { position: relative; display: flex; min-height: clamp(29.375rem, 41.6vw, 37.5rem); background: var(--black); color: var(--on-black); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--black) 8%, rgba(11, 10, 9, 0) 26%),
    linear-gradient(90deg, var(--black) 0%, rgba(11, 10, 9, .86) 26%, rgba(11, 10, 9, .05) 52%);
}
.hero-row { position: relative; z-index: 1; display: flex; }
.hero-text { padding: 2.75rem 0 calc(var(--overlap) + 1.75rem); }
.hero .eyebrow { color: var(--gold); font-size: 0.9375rem; font-weight: 600; }
.hero h1 { max-width: 6.4em; margin-top: 0.875rem; line-height: 1.03; }
.hero h1 em { display: block; margin-top: .14em; white-space: nowrap; color: var(--gold); font-family: var(--script); font-size: .84em; font-style: normal; font-weight: 700; line-height: 1.1; }
.hero .button-outline { padding-right: 0.625rem; padding-left: 0.625rem; }
.hero-lead { max-width: 18.125rem; margin-top: 1.125rem; font-size: 0.9062rem; }

.hero-badge {
  position: absolute;
  right: calc(var(--gutter) + 1.4375rem);
  bottom: calc(var(--overlap) + 1.875rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 7.8125rem;
  padding: 0.625rem 0.375rem;
  border: 1.5px solid var(--gold);
  border-radius: 0.375rem;
  background: rgba(11, 10, 9, .78);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.hero-badge .icon { font-size: 1.375rem; margin-bottom: 2px; }
.hero-badge strong { font-size: 1.1875rem; white-space: nowrap; }

/* Home: services */
.services { position: relative; z-index: 2; margin-top: calc(var(--overlap) * -1); }
.service-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0.75rem 0;
  border: 1.5px solid var(--gold);
  border-radius: 0.75rem;
  background: var(--black);
  color: var(--on-black);
  text-align: center;
}
.service-bar li { position: relative; padding: 0 0.625rem; }
.service-bar li + li::before { content: ""; position: absolute; top: 0.25rem; bottom: 0.25rem; left: 0; width: 1px; background: var(--gold-line); }
.service-bar a { display: block; text-decoration: none; }
.service-bar a:hover h2 { color: var(--gold); }
.service-bar .icon { font-size: 2rem; margin: 0 auto 0.375rem; }
.service-bar .icon svg { stroke-width: 1.4; }
.service-bar h2 { font: 700 0.875rem/1.3 var(--sans); text-transform: uppercase; }
.service-bar p { margin-top: 0.1875rem; color: var(--on-black-muted); font-size: 0.7812rem; line-height: 1.35; }

/* Home: about */
.about { padding-top: 2rem; text-align: center; }
.about p { max-width: 45rem; margin: 0.625rem auto 0; color: var(--muted); }
.about .text-link { margin-top: 0.625rem; }

/* Home: portfolio */
.home-portfolio { padding-top: 2rem; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: 0.875rem; }
.photo-strip a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--black); color: var(--white); text-decoration: none; }
.photo-strip img { width: 100%; aspect-ratio: 197 / 256; object-fit: cover; object-position: 50% 0; transition: transform .3s; }
.photo-strip a:hover img { transform: scale(1.04); }
.photo-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3.75rem 1rem 0.875rem; background: linear-gradient(transparent, rgba(11, 10, 9, .74) 50%, rgba(11, 10, 9, .92)); font-size: 0.8438rem; font-weight: 600; line-height: 1.35; }
.photo-caption b { display: block; font-weight: 600; text-transform: uppercase; }

/* Home: packages */
.home-packages { padding: 1.375rem 0 3.5rem; }
.package-band {
  position: relative;
  display: grid;
  grid-template-columns: 17.8125rem 1fr;
  overflow: hidden;
  min-height: 10.3125rem;
  padding: 1.125rem 0;
  border-radius: 0.625rem;
  background: var(--black);
  color: var(--on-black);
}
.package-band-photo { position: absolute; top: 0; right: 0; width: 38%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.package-band::after { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: linear-gradient(90deg, var(--black) 34%, rgba(11, 10, 9, 0) 72%); }
.package-band-text, .package-band-list { position: relative; z-index: 1; }
.package-band-text { padding: 0 1rem 0 2.0625rem; }
.package-band .eyebrow { color: var(--gold); font-size: 0.75rem; }
.package-band h2 { font-size: clamp(1.375rem, 2.35vw, 1.6562rem); }
.package-band .button { margin-top: 0.625rem; padding: 0.5rem 1.125rem; }
.package-band-list { display: grid; grid-template-columns: repeat(3, 10.25rem); }
.package-band-list li { padding: 0 0.375rem 0 1.75rem; border-left: 1px solid var(--gold-line); }
.package-band-list h3 { margin-top: 0.5rem; font: 700 0.875rem/1.3 var(--sans); text-transform: uppercase; }
.package-band-list p { color: var(--on-black-muted); font-size: 0.7812rem; line-height: 1.35; }
.package-band .price { margin-top: 0.375rem; color: var(--gold); font-size: 0.7812rem; }

/* About */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about-story img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; object-position: 78% 0; }
.about-story h2 { margin-bottom: 0.75rem; }
.about-story p { margin-top: 0.625rem; color: var(--muted); }
.about-story .eyebrow { margin-top: 0; color: var(--gold-on-white); }
.about-story .about-years { display: inline-flex; color: var(--on-black); align-items: center; gap: 0.5rem; margin-top: 1.125rem; padding: 0.5rem 0.875rem; border: 1.5px solid var(--gold); border-radius: 0.375rem; background: var(--black); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; }
.about-years strong { font-size: 1rem; }

.how-it-works { padding-bottom: clamp(2.75rem, 6vw, 4rem); }
.step-bar { grid-template-columns: repeat(4, 1fr); counter-reset: step; margin: 1rem 0 0; padding: 1.125rem 0.5rem; list-style: none; }
.step-bar li { counter-increment: step; padding: 0 1rem; }
.step-bar li > h3::before { content: counter(step); display: block; width: 1.875rem; height: 1.875rem; margin: 0 auto 0.5rem; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 0.875rem; line-height: 1.6875rem; }
.step-bar h3 { font: 700 0.875rem/1.3 var(--sans); text-transform: uppercase; }
.step-bar p { margin-top: 0.1875rem; color: var(--on-black-muted); font-size: 0.7812rem; line-height: 1.35; }

/* Services */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service-card { overflow: hidden; border: 1.5px solid var(--gold); border-radius: 0.75rem; background: var(--black); color: var(--on-black); }
.service-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; }
.service-card-text { padding: var(--card-padding); }
.service-card .icon { font-size: 1.75rem; }
.service-card .icon svg { stroke-width: 1.4; }
.service-card h2 { margin-top: 0.375rem; font: 700 1.0625rem/1.3 var(--sans); text-transform: uppercase; }
.service-card p { margin-top: 0.25rem; color: var(--on-black-muted); font-size: 0.9062rem; }
.service-card .text-link { margin-top: 0.625rem; color: var(--gold); }
.service-card .text-link:hover { color: var(--gold-light); }
.service-card .text-link .icon { font-size: 1rem; }

/* Other pages */
.section { padding: clamp(2.75rem, 6vw, 4rem) 0; }
.section-dark { background: var(--black); color: var(--on-black); }
.section-dark p { color: var(--on-black-muted); }

.page-title { padding: clamp(2.25rem, 5vw, 3.5rem) 0; background: var(--black); border-top: 1px solid var(--line-on-black); color: var(--on-black); }
.page-title p { margin-top: 0.5rem; color: var(--on-black-muted); }

.photo-group { padding-bottom: 0; }
.photo-group + .booking-invite { margin-top: clamp(2.75rem, 6vw, 4rem); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 1rem; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius); object-fit: cover; }

.booking-invite { text-align: center; }
.booking-invite p { margin: 0.5rem 0 1.25rem; }

.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.package { display: flex; flex-direction: column; padding: var(--card-padding); border: 1.5px solid var(--gold); border-radius: 0.75rem; background: var(--black); color: var(--on-black); }
.package h2 { margin-top: 0.75rem; font: 700 1.125rem/1.3 var(--sans); text-transform: uppercase; }
.package > p { color: var(--on-black-muted); }
.package-includes { margin-top: 1rem; }
.package-includes li { position: relative; padding: 0.375rem 0 0.375rem 1.25rem; border-top: 1px solid var(--line-on-black); font-size: 0.9375rem; }
.package-includes li::before { content: ""; position: absolute; top: 0.9375rem; left: 2px; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--gold); }
.package > .price { margin: 0.75rem 0 1.125rem; color: var(--gold); }
.package .button { margin-top: auto; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.contact-card { padding: var(--card-padding); border: 1px solid var(--line); border-radius: 0.75rem; }
.contact-card h2 { font-size: 1.625rem; }
.contact-card > p { margin: 0.5rem 0 1.25rem; color: var(--muted); }
.contact-card .contact-list { margin-top: 0.875rem; }

.contact-list { display: grid; gap: 0.5rem; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 2.75rem 0 1.25rem; background: var(--black); color: var(--on-black-muted); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 1.75rem; }
.footer-menu { display: grid; gap: 0.25rem; align-content: start; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { color: var(--gold); }
.site-footer dt { color: var(--on-black); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; margin-top: 1.75rem; font-size: 0.8125rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

/* The menu folds into one button */
@media (max-width: 1060px) {
  .top-line { display: none; }
  .header-row { gap: 0 0.875rem; padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .menu-button { display: block; }
  .site-menu { flex-basis: 100%; order: 3; flex-direction: column; gap: 0; margin-left: 0; padding: 0.5rem 0 0.25rem; }
  .js .site-menu { display: none; }
  .js .site-menu.is-open { display: flex; }
  .site-menu a { padding: 0.5625rem 0; border-bottom: 0; }


  .service-bar { grid-template-columns: repeat(3, 1fr); gap: 1.125rem 0; }
  .service-bar li:nth-child(3n + 1)::before { display: none; }

  .package-band { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .package-band-text { padding: 0; }
  .package-band-photo, .package-band::after { display: none; }
  .package-band-list { grid-template-columns: repeat(3, 1fr); }
  .package-band-list li { padding: 0 0.75rem 0 1rem; }

  .package-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .step-bar { grid-template-columns: repeat(2, 1fr); gap: 1.125rem 0; }
  .step-bar li:nth-child(3)::before { display: none; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(6, 1fr); }
  .photo-strip li { grid-column: span 2; }
  .photo-strip li:nth-child(-n+2) { grid-column: span 3; }
  .photo-strip li:nth-child(-n+2) img { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .about-story { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Phones: the booking button stays at the bottom of the screen */
@media (max-width: 640px) {
  .top-bar { display: none; }
  .site-header .button-gold { position: fixed; right: 1rem; bottom: 0.75rem; left: 1rem; z-index: 15; padding: 0.8125rem 1rem; box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, .45); }
  .site-footer { padding-bottom: calc(1.25rem + var(--phone-bar)); }

  .hero { min-height: 0; }
  .hero-photo { height: 18.75rem; object-position: 80% 0; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 10, 9, 0) 9.375rem, var(--black) 18.125rem); }
  .hero-row { flex-direction: column; justify-content: flex-end; }
  .hero-text { padding: 14.75rem 0 1rem; }
  .hero .button-gold { display: none; }
  .hero-lead { max-width: none; }
  .hero-badge { position: static; flex-direction: row; gap: 0.375rem; align-self: flex-start; width: auto; margin-bottom: calc(var(--overlap) + 1rem); padding: 0.375rem 0.625rem; }
  .hero-badge .icon { margin: 0; }
  .hero-badge strong { font-size: 0.9375rem; }
  .button-row .button { flex: 1 1 auto; }

  .service-bar { grid-template-columns: repeat(2, 1fr); }
  .service-bar li:nth-child(n)::before { display: block; }
  .service-bar li:nth-child(2n + 1)::before { display: none; }

  .package-band-list { grid-template-columns: 1fr; gap: 1rem; }
  .package-band-list li { padding: 0 0 0 1rem; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 0.375rem; }

  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip li, .photo-strip li:nth-child(-n+2) { grid-column: auto; }
  .photo-strip li:nth-child(2) img { aspect-ratio: 3 / 4; }
  .photo-strip li:first-child { grid-column: 1 / -1; }
  .photo-strip li:first-child img { aspect-ratio: 1 / 1; }
  .service-cards { grid-template-columns: 1fr; }
}

/* A printed page can't be clicked, so it shows the address after the credit */
@media print {
  .credit-link::after { content: " \00b7 " attr(data-site); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-strip img { transition: none; }
  .photo-strip a:hover img { transform: none; }
}
