/* ==========================================================================
   CSECarpentry — design tokens & base
   Round 3: exact client palette, self-hosted Montserrat, video hero.
   Sharp square shape language kept from round 2 (see DESIGN.md).
   ========================================================================== */

/* Self-hosted Montserrat (variable, weights 100-900). No Google servers. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color — exact client-specified palette (see DESIGN.md) */
  --bg:            #F8F8F6;
  --surface:       #FFFFFF;
  --surface-sunk:  #F1F0EC;
  --border:        #E5E2DC;
  --border-strong: #CCC7BE;

  --ink:           #242321;   /* headings */
  --text:          #64615E;   /* body text (5.8:1 on bg) */
  --ink-faint:     #8A867F;   /* large/decorative only */

  --button:        #5B4636;
  --button-hover:  #735A46;
  --accent:        #B08D57;   /* brass — icons, small details, hover accents only */
  --accent-soft:   #F0E7D8;

  --dark:          #242321;   /* footer / darkest surface */
  --cream:         #FFFFFF;

  --shadow-color: 36 10% 12%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.10);
  --shadow-md: 0 10px 24px -10px hsl(var(--shadow-color) / 0.22);
  --shadow-lg: 0 28px 64px -16px hsl(var(--shadow-color) / 0.30);

  /* Type — one family, weight does the work */
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Spacing scale — fluid */
  --space-3xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.375rem);
  --space-2xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-xs:  clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-sm:  clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-md:  clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --space-lg:  clamp(2.25rem, 1.9rem + 1.75vw, 3.5rem);
  --space-xl:  clamp(3.5rem, 2.8rem + 3.5vw, 6rem);
  --space-2xl: clamp(5rem, 3.8rem + 6vw, 9rem);

  --content-max: 78rem;
  --measure: 62ch;

  /* Sharp shape language: square corners everywhere. */
  --radius: 0px;
  --radius-chamfer: 2px;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-sm: 200ms;
  --dur-md: 420ms;
  --dur-lg: 700ms;

  /* z-index scale */
  --z-sticky: 100;
  --z-mobile-bar: 150;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -3rem;
  background: var(--dark);
  color: var(--surface);
  padding: 0.75rem 1.25rem;
  z-index: var(--z-toast);
  transition: top var(--dur-sm) var(--ease-out-quart);
}
.skip-link:focus {
  top: var(--space-sm);
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: min(100% - 2.5rem, var(--content-max));
  margin-inline: auto;
}

@media (min-width: 56rem) {
  .wrap { width: min(100% - 6rem, var(--content-max)); }
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--sunk {
  background: var(--surface-sunk);
}

.section--dark {
  background: var(--button);
  color: #E9E2DA;
}
.section--dark h1, .section--dark h2, .section--dark h3 {
  color: var(--cream);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--button);
}

.section--dark .eyebrow { color: var(--accent); }

/* ==========================================================================
   Buttons & links — sharp, square
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--dur-sm) var(--ease-out-quart),
              box-shadow var(--dur-sm) var(--ease-out-quart),
              background-color var(--dur-sm) var(--ease-out-quart);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  background: var(--button);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--button);
  background: var(--surface);
  transform: translateY(-2px);
}

.btn--on-dark {
  background: var(--cream);
  color: var(--button);
}
.btn--on-dark:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

.link-underline {
  position: relative;
  color: var(--button);
  font-weight: 600;
  padding-bottom: 0.15em;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  transition: background-size var(--dur-sm) var(--ease-out-quart);
}
.link-underline:hover { background-size: 0% 1.5px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-chamfer);
  flex: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-strong);
}
.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__name em {
  display: block;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav-primary {
  display: none;
}

.nav-primary ul {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-primary a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding-block: 0.35rem;
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--button);
  transition: right var(--dur-sm) var(--ease-out-quart);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
  right: 0;
}
.nav-primary a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Email header control */
.contact-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: background-color var(--dur-sm), border-color var(--dur-sm), transform var(--dur-sm) var(--ease-out-quart);
}
.contact-chip svg { width: 1.15rem; height: 1.15rem; flex: none; }

.contact-chip--email {
  background: var(--button);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.contact-chip--email:hover { background: var(--button-hover); transform: translateY(-2px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  flex: none;
  border: 1.5px solid transparent;
}
.icon-btn:hover { background: var(--surface-sunk); border-color: var(--border); }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }

.nav-toggle {
  display: inline-flex;
}

@media (min-width: 64rem) {
  .nav-primary { display: block; }
  .contact-chip { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-sm);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-md) var(--ease-out-quint),
              transform var(--dur-md) var(--ease-out-quint),
              visibility 0s linear var(--dur-md);
}
.nav-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity var(--dur-md) var(--ease-out-quint),
              transform var(--dur-md) var(--ease-out-quint),
              visibility 0s;
}
.nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-panel__links {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-panel__links a {
  font-size: clamp(1.9rem, 1.5rem + 2.2vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-panel__links a[aria-current="page"] { color: var(--button); }
.nav-panel__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.nav-panel__contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-panel__contact svg { color: var(--button); width: 1.25rem; height: 1.25rem; }

@media (min-width: 64rem) {
  .nav-panel { display: none; }
}

/* ==========================================================================
   Mobile contact bar — WhatsApp primary + Call
   ========================================================================== */

.mobile-call-bar {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-mobile-bar);
  display: flex;
  gap: 1px;
  box-shadow: var(--shadow-lg);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background-color var(--dur-sm), transform var(--dur-sm) var(--ease-out-quart);
}
.mobile-call-bar a:active { transform: scale(0.97); }
.mobile-call-bar svg { width: 1.2rem; height: 1.2rem; flex: none; }

.mobile-call-bar__email {
  flex: 1;
  background: var(--button);
  color: var(--cream);
}
.mobile-call-bar__email svg { color: var(--accent); }

body { padding-bottom: 5.5rem; }

@media (min-width: 64rem) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Hero — full-screen video
   ========================================================================== */

.hero-video {
  position: relative;
  /* Exactly fills the first viewport below the sticky header, so the
     headline, sub-text and both buttons are visible without scrolling. */
  height: min(calc(100svh - 4.6rem), 62rem);
  min-height: 30rem;
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim: keeps text crisp and softens the 720p footage.
   Dark gradient weighted to the text side + gentle overall tint. */
.hero-video__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgb(20 16 12 / 0.72) 0%, rgb(20 16 12 / 0.45) 46%, rgb(20 16 12 / 0.18) 100%),
    linear-gradient(to top, rgb(20 16 12 / 0.55) 0%, rgb(20 16 12 / 0.05) 40%);
}

.hero-video__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-md);
}

/* Frosted panel behind text: subtle, sharp-cornered */
.hero-video__panel {
  max-width: 46rem;
  padding: var(--space-md);
  background: rgb(20 16 12 / 0.30);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgb(255 255 255 / 0.14);
}

.hero__kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.hero__kicker span:not(:last-child)::after {
  content: "•";
  margin-left: 0.5rem;
  color: rgb(255 255 255 / 0.55);
}

.hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3.9vw, 4.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.04;
  max-width: 14ch;
}

.hero__lede {
  margin-top: var(--space-sm);
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 500;
  color: rgb(255 255 255 / 0.92);
}

.hero__actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__actions .btn--ghost {
  border-color: rgb(255 255 255 / 0.55);
  color: #FFFFFF;
}
.hero__actions .btn--ghost:hover {
  border-color: #FFFFFF;
  background: rgb(255 255 255 / 0.1);
}

@media (max-width: 63.98rem) {
  /* The fixed WhatsApp/Call bar occupies the bottom ~4.75rem of the
     viewport: end the hero above it so the buttons are never covered. */
  .hero-video {
    height: calc(100svh - 4.6rem - 4.75rem);
    min-height: 24rem;
  }
  .hero-video__content { padding-block: var(--space-sm); }
}
@media (max-width: 40rem) {
  .hero-video { align-items: center; }
  .hero-video__panel { padding: var(--space-sm); }
  .hero__kicker { font-size: 0.75rem; margin-bottom: var(--space-2xs); }
  .hero__title { font-size: 2rem; }
  .hero__lede { font-size: 1rem; margin-top: var(--space-2xs); }
  .hero__actions { margin-top: var(--space-sm); gap: 0.6rem; }
  .hero__actions .btn { padding: 0.75rem 1.1rem; font-size: 0.875rem; }
}

/* Non-hero page kicker (portfolio/contact headers) */
.page-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--button);
  margin-bottom: var(--space-2xs);
}
.page-kicker span:not(:last-child)::after {
  content: "•";
  margin-left: 0.5rem;
  color: var(--accent);
}

/* ==========================================================================
   Carpentry Services — large image sections
   ========================================================================== */

.services__head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.services__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 40rem) {
  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sunk);
}
.service__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease-out-quint);
}
.service:hover .service__frame img { transform: scale(1.055); }

.service__frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -5rem 4rem -3rem hsl(var(--shadow-color) / 0.45);
  pointer-events: none;
}

.service__number {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgb(20 16 12 / 0.5);
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.04em;
}

.service__body {
  padding-top: var(--space-sm);
}

.service__name {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service__desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  max-width: 48ch;
}

/* ==========================================================================
   Work strip (homepage teaser)
   ========================================================================== */

.work-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.work-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 40rem) {
  .work-strip__grid { grid-template-columns: repeat(4, 1fr); }
}

.work-strip__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  background: var(--surface);
}
.work-strip__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
@media (min-width: 40rem) {
  .work-strip__item:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
}

.work-strip__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease-out-quint);
}
.work-strip__item:hover img { transform: scale(1.06); }

.work-strip__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(20 16 12 / 0.6), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-out-quart);
}
.work-strip__item:hover::after { opacity: 1; }

.work-strip__tag {
  position: absolute;
  left: 0.85rem; bottom: 0.85rem;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-md) var(--ease-out-quart), transform var(--dur-md) var(--ease-out-quart);
  z-index: 1;
}
.work-strip__item:hover .work-strip__tag { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Customer Reviews — sliding carousel
   ========================================================================== */

.reviews__head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.reviews__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-sm);
  margin: 0 calc(var(--space-sm) * -1);
  padding-inline: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.reviews__track::-webkit-scrollbar { height: 8px; }
.reviews__track::-webkit-scrollbar-thumb { background: var(--border-strong); }
.reviews__track::-webkit-scrollbar-track { background: transparent; }

.review-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(20rem, 82vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--button);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.review-card__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.review-card__quote {
  font-style: italic;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

.review-card__author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--button);
}

.reviews__controls {
  display: none;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}
.reviews__controls button {
  width: 2.75rem; height: 2.75rem;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color var(--dur-sm), background-color var(--dur-sm);
}
.reviews__controls button:hover { border-color: var(--button); background: var(--surface); }
.reviews__controls svg { width: 1.2rem; height: 1.2rem; }

@media (min-width: 48rem) {
  .reviews__controls { display: flex; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
}
.cta-band__title {
  font-size: clamp(2rem, 1.7rem + 1.6vw, 3.25rem);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band__kicker {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.cta-band__actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.cta-band__actions .btn--ghost {
  border-color: rgb(255 255 255 / 0.4);
  color: var(--cream);
}
.cta-band__actions .btn--ghost:hover {
  border-color: var(--cream);
  background: rgb(255 255 255 / 0.08);
}
.cta-band__social {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.cta-band__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #E9E2DA;
  font-size: 0.875rem;
  font-weight: 600;
}
.cta-band__social a:hover { color: #FFFFFF; }
.cta-band__social svg { width: 1.1rem; height: 1.1rem; }

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

.site-footer {
  background: var(--dark);
  color: #B4B0AA;
  padding-block: var(--space-lg) var(--space-md);
}
.site-footer a:hover { color: #FFFFFF; }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-between;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid #43413D;
}

.footer__brand { display: flex; align-items: center; gap: 0.65rem; }
.footer__brand img { width: 40px; height: 40px; border-radius: var(--radius-chamfer); border: 1px solid #43413D; }
.footer__brand span { font-weight: 800; color: #FFFFFF; font-size: 1.05rem; }

.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.footer__nav a { font-size: 0.9rem; font-weight: 600; }

.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; font-weight: 600; color: #FFFFFF; }
.footer__contact svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }

.footer__bottom {
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #8A867F;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-lg) var(--ease-out-quint),
                transform var(--dur-lg) var(--ease-out-quint);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* ==========================================================================
   Page header (portfolio / contact)
   ========================================================================== */

.page-header {
  padding-block: var(--space-xl) var(--space-lg);
}
.page-header__title {
  font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  max-width: 16ch;
}
.page-header__lede {
  margin-top: var(--space-xs);
  max-width: var(--measure);
  font-size: 1.0625rem;
}

/* ==========================================================================
   Portfolio gallery
   ========================================================================== */

.gallery {
  columns: 1;
  column-gap: var(--space-sm);
}
@media (min-width: 36rem) {
  .gallery { columns: 2; }
}
@media (min-width: 62rem) {
  .gallery { columns: 3; }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.gallery__item img {
  width: 100%;
  transition: transform var(--dur-lg) var(--ease-out-quint), filter var(--dur-md) var(--ease-out-quart);
}
.gallery__item:hover img { transform: scale(1.045); }

.gallery__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(20 16 12 / 0.8) 0%, transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-out-quart);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-sm);
}
.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay { opacity: 1; }

.gallery__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.gallery__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFFFFF;
  padding: 0.25rem 0.55rem;
}
.gallery__caption {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery__expand {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem;
  background: rgb(20 16 12 / 0.5);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--dur-md) var(--ease-out-quart), transform var(--dur-md) var(--ease-out-quart);
}
.gallery__expand svg { width: 1.1rem; height: 1.1rem; }
.gallery__item:hover .gallery__expand,
.gallery__item:focus-visible .gallery__expand { opacity: 1; transform: scale(1); }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  background: rgb(20 16 12 / 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-md) var(--ease-out-quart), visibility 0s linear var(--dur-md);
  padding: var(--space-sm);
}
.lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-md) var(--ease-out-quart), visibility 0s;
}

.lightbox__figure {
  position: relative;
  max-width: min(64rem, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transform: scale(0.97);
  transition: transform var(--dur-md) var(--ease-out-quint);
}
.lightbox[data-open="true"] .lightbox__figure { transform: scale(1); }

.lightbox__img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid #43413D;
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  color: #FFFFFF;
  font-size: 0.9375rem;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}
.lightbox__caption .gallery__tag { margin-right: 0.4rem; }
.lightbox__caption a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lightbox__caption a:hover { color: #FFFFFF; }

.lightbox__close {
  position: absolute;
  top: -3.25rem; right: 0;
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: rgb(20 16 12 / 0.45);
}
.lightbox__close:hover { background: rgb(20 16 12 / 0.65); }
.lightbox__close svg { width: 1.4rem; height: 1.4rem; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: rgb(20 16 12 / 0.45);
}
.lightbox__nav:hover { background: rgb(20 16 12 / 0.65); }
.lightbox__nav svg { width: 1.5rem; height: 1.5rem; }
.lightbox__nav--prev { left: -1rem; }
.lightbox__nav--next { right: -1rem; }
@media (min-width: 48rem) {
  .lightbox__nav--prev { left: -3.75rem; }
  .lightbox__nav--next { right: -3.75rem; }
}
@media (max-width: 40rem) {
  .lightbox__nav { display: none; }
}

/* ==========================================================================
   Portfolio videos
   ========================================================================== */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.videos__head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 56rem) {
  .videos__grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.video-card__frame {
  border: 1px solid var(--border);
  background: var(--dark);
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.video-card__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__caption {
  font-size: 0.9375rem;
  color: var(--text);
}

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

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Instagram band — compact horizontal strip under the form, not a tall card */
.contact-card--instagram {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-md);
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--dur-sm), transform var(--dur-sm) var(--ease-out-quart);
}
.contact-card--instagram:hover { border-color: var(--button); transform: translateY(-2px); }
.contact-card--instagram .contact-card__title {
  margin-top: 0;
  font-size: 1.25rem;
  flex: none;
}
.contact-card--instagram .contact-card__note {
  flex: 1 1 14rem;
}
.contact-card--instagram__arrow {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  color: var(--accent);
  margin-left: auto;
  transition: transform var(--dur-sm) var(--ease-out-quart);
}
.contact-card--instagram:hover .contact-card--instagram__arrow { transform: translateX(4px); }

.contact-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--button);
}
.contact-card__eyebrow svg { width: 1.2rem; height: 1.2rem; }

.contact-card__title {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  margin-top: var(--space-2xs);
}

.contact-card__note {
  font-size: 0.9375rem;
  color: var(--text);
}
.contact-card__note a { color: var(--button); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-card__note a:hover { color: var(--button-hover); }

/* ---- Contact form ("email portal") ---- */

.contact-form {
  justify-content: flex-start;
  gap: var(--space-md);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 30rem) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form__field > span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-form__field > span em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
}
.contact-form__field input,
.contact-form__field textarea {
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  transition: border-color var(--dur-sm);
  resize: vertical;
}
.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 2.5px solid var(--button);
  outline-offset: 1px;
  border-color: var(--button);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: var(--ink-faint); }

.contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.contact-form__status {
  font-size: 0.875rem;
  font-weight: 600;
}
.contact-form__status[data-state="success"] { color: var(--button); }
.contact-form__status[data-state="error"] { color: #A6392C; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.contact-strip__mini {
  flex: 1 1 12rem;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.contact-strip__mini strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.2rem; font-weight: 700; }
.contact-strip__mini span { font-size: 0.875rem; }

/* ==========================================================================
   Misc utility
   ========================================================================== */

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

@media (min-width: 40rem) {
  .hero__actions .btn { padding-inline: 2rem; }
}
