/* ==========================================================================
   Silmars Barbershop
   Deep plum and gold, taken from the Silmar's logo. Mobile-first, breakpoints
   at 480 / 768 / 1024.
   ========================================================================== */

:root {
  /* Colors */
  --plum-deep: #1c1021;
  --plum: #301934;
  --plum-soft: #452a4b;
  --lavender: #c9b2e0;
  --gold-glint: #fff3c4;
  --gold-light: #f0d67e;
  --gold: #d9b44a;
  --gold-deep: #b48f2c;
  --gold-dark: #6f5510;
  --paper: #f8f5ef;
  --paper-warm: #efe9df;
  --white: #ffffff;
  --text: #221a26;
  --text-muted: #5a5160;
  --text-on-dark: #f6f1f7;
  --text-on-dark-muted: #cdc3d2;
  --line: #d9d1c6;
  --line-dark: rgba(255, 255, 255, 0.18);
  --input-border: #9c93a0;
  --success: #2c6e41;
  --error: #b3261e;

  /* RGB channels for overlays */
  --plum-rgb: 28, 16, 33;
  --gold-rgb: 217, 180, 74;

  /* Typography */
  --font-heading: 'Young Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.94rem;
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h3: 1.35rem;
  --fs-lead: clamp(1.12rem, 1.04rem + 0.35vw, 1.3rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(4rem, 3rem + 4vw, 6.5rem);
  --container-max: 1180px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-height: 80px;

  /* Radii */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-photo: 0 18px 40px rgba(var(--plum-rgb), 0.24);
  --shadow-nav: 0 2px 18px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 16px rgba(var(--plum-rgb), 0.06), 0 1px 3px rgba(var(--plum-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--plum-rgb), 0.14), 0 10px 20px rgba(var(--plum-rgb), 0.08);
  --shadow-btn: 0 4px 15px rgba(var(--gold-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--gold-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --focus-ring: 0 0 0 3px rgba(111, 85, 16, 0.3);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--gold);
  color: var(--plum-deep);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Scroll reveals: hidden state only when JS is running */
.js .fade-in {
  opacity: 0;
  transform: translateY(60px);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--plum-deep);
  box-shadow: var(--shadow-btn);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.9rem;
  font-size: 1.12rem;
}

.btn-nav {
  border-radius: var(--radius-full);
  padding-inline: 1.5rem;
}

.btn-submit {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link--light {
  color: var(--white);
  text-decoration-color: var(--gold);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--plum-deep);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: none;
  color: var(--white);
  text-decoration: none;
}

.logo-img {
  width: auto;
  height: 64px;
}

.logo-text {
  max-width: 6em;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.1;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding: var(--space-md) var(--gutter) var(--space-xl);
  background: var(--plum-deep);
  border-top: 1px solid var(--line-dark);
}

.nav-menu.open {
  display: block;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-on-dark);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu .btn-nav {
  width: 100%;
  margin-top: var(--space-md);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--nav-height) + var(--space-xl)) var(--space-3xl);
  background: var(--plum-deep);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-bg picture {
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(var(--plum-rgb), 0.62) 0%, rgba(var(--plum-rgb), 0.1) 22%),
    linear-gradient(90deg, rgba(var(--plum-rgb), 0.86) 0%, rgba(var(--plum-rgb), 0.7) 100%);
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 44rem;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.05;
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lavender);
}

.hero-line {
  display: block;
}

.highlight {
  color: var(--gold);
}

.hero-text {
  max-width: 34rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

.hero-quote {
  max-width: 28rem;
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.4;
}

.hero-quote figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Marquee and location strip
   ========================================================================== */

.marquee {
  padding-block: 0.95rem;
  background: var(--plum);
  color: var(--text-on-dark);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-weight: 500;
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline: 1.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Static without motion: show the 8 services once */
.marquee-item:nth-child(n + 9) {
  display: none;
}

.area-strip {
  padding-block: 0.85rem;
  background: var(--gold);
  color: var(--plum-deep);
}

.area-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem var(--space-xl);
}

.area-strip strong {
  font-weight: 700;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  gap: var(--space-2xl);
}

.services-intro h2 {
  margin-bottom: var(--space-md);
}

.services-intro p + p {
  margin-top: var(--space-md);
  color: var(--text-muted);
}

.services-intro .btn {
  margin-top: var(--space-lg);
}

.service-group + .service-group {
  margin-top: var(--space-2xl);
}

.service-group h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--plum);
}

.service-icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--gold-dark);
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--space-md);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.price-name {
  font-weight: 500;
}

.price-time {
  grid-row: 2;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.price-cost {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
}

/* ==========================================================================
   Cuts
   ========================================================================== */

.cuts {
  background: var(--paper-warm);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.cuts-head {
  margin-bottom: var(--space-xl);
}

.cuts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
}

.cut--lead,
.cuts-more {
  grid-column: span 2;
}

.cut {
  display: flex;
  flex-direction: column;
}

.cut-zoom {
  position: relative;
  display: block;
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--plum);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: zoom-in;
}

.cut-zoom picture {
  height: 100%;
}

.cut-zoom img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cut-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--plum-rgb), 0.45);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cut-zoom-icon svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition-base);
  transform: scale(0.8);
}

.cut-zoom:hover .cut-zoom-icon,
.cut-zoom:focus-visible .cut-zoom-icon {
  opacity: 1;
}

.cut-zoom:hover .cut-zoom-icon svg,
.cut-zoom:focus-visible .cut-zoom-icon svg {
  transform: scale(1);
}

.cut figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.cuts-more {
  align-self: center;
  padding-block: var(--space-sm);
}

/* ==========================================================================
   Proof band
   ========================================================================== */

.proof {
  padding-block: var(--section-pad);
  background: var(--plum);
  color: var(--text-on-dark);
}

.proof-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.proof-statement {
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem);
  line-height: 1.1;
}

.proof-line {
  display: block;
}

.proof-number {
  display: inline-block;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}

.proof-facts > div {
  padding-block: var(--space-md);
  border-top: 1px solid var(--line-dark);
}

.proof-facts > div:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.proof-facts dt {
  font-weight: 700;
}

.proof-facts dd {
  margin: 0.15rem 0 0;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  gap: var(--space-2xl);
}

.about-media {
  position: relative;
  padding-bottom: var(--space-2xl);
  padding-right: var(--space-xl);
}

.about-photo {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  border: 5px solid var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-photo);
}

.about-copy h2 {
  margin-bottom: var(--space-md);
}

.about-copy p + p {
  margin-top: var(--space-md);
}

.about-sign {
  font-weight: 700;
}

.about-copy .btn {
  margin-top: var(--space-lg);
}

.hiring {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--plum);
}

.hiring p {
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

.hiring a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews {
  background: var(--paper-warm);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.reviews h2 {
  margin-bottom: var(--space-xl);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold-deep);
}

.stars svg {
  width: 18px;
  height: 18px;
}

.review blockquote {
  margin-top: var(--space-sm);
}

.review-by {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}

.review--featured {
  max-width: 54rem;
  padding-bottom: var(--space-xl);
}

.review--featured blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  line-height: 1.38;
}

.review-list {
  display: grid;
  border-top: 1px solid var(--line);
  margin-bottom: var(--space-lg);
}

.review-list .review {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Gift card banner
   ========================================================================== */

.cta {
  position: relative;
  padding-block: clamp(5rem, 4rem + 6vw, 8.5rem);
  background: var(--plum-deep);
  color: var(--text-on-dark);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg picture {
  height: 100%;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--plum-rgb), 0.94) 0%, rgba(var(--plum-rgb), 0.82) 55%, rgba(var(--plum-rgb), 0.5) 100%);
}

.cta-content {
  position: relative;
}

.cta-line {
  display: block;
}

.cta-content p {
  max-width: 32rem;
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-details h2 {
  margin-bottom: var(--space-lg);
}

.contact-list > div {
  display: grid;
  gap: 0.1rem;
  padding-block: var(--space-md);
  border-top: 1px solid var(--line);
}

.contact-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-muted);
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--space-md);
}

.hours li + li {
  margin-top: 0.2rem;
}

.form-panel {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-intro {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

.form-intro a,
.form-error a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.form-field {
  margin-bottom: var(--space-md);
}

.form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--gold-dark);
  box-shadow: var(--focus-ring);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  color: var(--error);
}

.form-error {
  margin: 0 0 var(--space-md);
}

.form-success {
  padding: var(--space-md);
  border-left: 3px solid var(--success);
  font-weight: 500;
}

.check-field {
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-top: var(--space-3xl);
  background: var(--plum-deep);
  color: var(--text-on-dark-muted);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

.footer-brand img {
  width: 150px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: var(--space-md);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  background: var(--gold);
  color: var(--plum-deep);
}

.footer-title {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
  color: var(--white);
}

.footer-links a {
  display: inline-block;
  min-width: 44px;
  padding-block: 0.6rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.footer-links--plain li:first-child {
  padding-block: 0.6rem;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(var(--plum-rgb), 0.95);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  max-width: min(100%, 720px);
  text-align: center;
}

.lightbox-img {
  width: auto;
  max-height: 82vh;
  margin-inline: auto;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  margin-top: var(--space-xs);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--plum-rgb), 0.75);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 26px;
  height: 26px;
}

.lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox-prev {
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 480px) {
  .logo-text {
    max-width: none;
  }

  .area-strip-inner {
    row-gap: 0;
  }

  .about-portrait {
    width: 36%;
  }
}

@media (min-width: 768px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(var(--plum-rgb), 0.62) 0%, rgba(var(--plum-rgb), 0) 22%),
      linear-gradient(90deg, rgba(var(--plum-rgb), 0.95) 0%, rgba(var(--plum-rgb), 0.85) 45%, rgba(var(--plum-rgb), 0.3) 100%);
  }

  .cuts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cut--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* The smaller photos set the row height; the lead photo fills it */
  .cut--lead .cut-zoom img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    object-position: 50% 75%;
  }

  .cuts-more {
    grid-column: span 1;
  }

  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .form-panel {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-links a {
    min-height: 44px;
  }

  .nav-menu .btn-nav {
    width: auto;
    margin-top: 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .proof-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
  }

  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-3xl);
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .contact-list > div {
    grid-template-columns: 7rem 1fr;
    gap: var(--space-md);
    align-items: baseline;
  }
}

/* ==========================================================================
   Premium animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals */
  .js .fade-in {
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  }

  .cuts-grid .cut:nth-child(2n) { transition-delay: 0.1s; }
  .cuts-grid .cut:nth-child(3n) { transition-delay: 0.2s; }
  .review-list .review:nth-child(2) { transition-delay: 0.15s; }
  .service-group:nth-child(2) { transition-delay: 0.1s; }

  /* 3D buttons */
  .btn-primary {
    transition: all 0.4s var(--ease-out);
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
  }

  .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-btn-pressed);
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(var(--gold-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  }

  @keyframes nav-cta-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(var(--gold-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 4px 22px rgba(var(--gold-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  }

  /* Nav link underline */
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    width: 100%;
  }

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-out) 0.2s both;
  }

  .highlight {
    background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 40%, var(--gold-glint) 50%, var(--gold) 60%, var(--gold) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s both;
  }

  @keyframes hero-zoom-out {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
  }

  @keyframes slide-down {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  @keyframes gold-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
  }

  /* Marquee */
  .marquee-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: scroll-marquee 8s linear infinite;
  }

  .marquee-item:nth-child(n + 9) {
    display: inline-flex;
  }

  @keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Service icons */
  .js .service-group .service-icon {
    transform: scale(0);
  }

  .js .service-group.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-out) 0.3s forwards;
  }

  @keyframes icon-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }

  /* Cuts gallery */
  .cut-zoom {
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  }

  .cut-zoom img {
    transition: transform var(--transition-slow);
  }

  .cut-zoom:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }

  .cut-zoom:hover img {
    transform: scale(1.05);
  }

  /* Proof band numbers */
  .js .proof-statement .proof-number {
    opacity: 0;
  }

  .js .proof-statement.visible .proof-number {
    animation: pop-in 0.6s var(--ease-out) both;
    opacity: 1;
  }

  .js .proof-statement.visible .proof-number.counter {
    animation-delay: 0.2s;
  }

  .js .proof-statement.visible .proof-number.stat-bounce {
    animation: stat-bounce 0.9s ease;
  }

  @keyframes pop-in {
    from { transform: scale(0.5) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
  }

  @keyframes stat-bounce {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-10px); }
    30% { transform: translateY(0); }
    45% { transform: translateY(-5px); }
    60% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
  }

  /* About photo */
  .js .about-media.visible .about-photo img {
    animation: about-zoom 12s linear both;
  }

  @keyframes about-zoom {
    from { transform: scale(1.15); }
    to { transform: scale(1); }
  }

  /* Reviews */
  .review-list .review {
    transition: opacity 1.2s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  }

  .js .review-list .review.visible:hover {
    transform: translateY(-6px);
    border-bottom-color: var(--gold-deep);
  }

  .js .review .stars svg {
    transform: scale(0);
  }

  .js .review.visible .stars svg {
    animation: star-pop 0.3s var(--ease-out) forwards;
  }

  .js .review.visible .stars svg:nth-child(1) { animation-delay: 0.2s; }
  .js .review.visible .stars svg:nth-child(2) { animation-delay: 0.3s; }
  .js .review.visible .stars svg:nth-child(3) { animation-delay: 0.4s; }
  .js .review.visible .stars svg:nth-child(4) { animation-delay: 0.5s; }
  .js .review.visible .stars svg:nth-child(5) { animation-delay: 0.6s; }

  @keyframes star-pop {
    0% { transform: scale(0) rotate(-30deg); }
    70% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
  }

  /* Form panel depth */
  .js .form-panel.fade-in {
    transition: opacity 1.2s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  }

  .js .form-panel.visible:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--gold-deep);
  }

  /* Micro-interactions */
  .contact-list > div {
    transition: transform 0.3s ease;
  }

  .contact-list > div:hover {
    transform: translateX(8px);
  }

  .footer-links a {
    transition: transform 0.3s ease, color var(--transition-fast);
  }

  .footer-links a:hover {
    transform: translateX(4px);
  }

  /* Lightbox image */
  .lightbox-img.zoom {
    animation: lightbox-zoom 0.4s var(--ease-out);
  }

  @keyframes lightbox-zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .marquee-track {
    animation-duration: 12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightbox {
    transition: none;
  }
}
