/* =========================================================
   The McKinnis Edit — styles
   Palette anchored on the brand navy (#243b6c, from the live site's theme-color)
   ========================================================= */

:root {
  --navy: #243b6c;
  --navy-deep: #192a4e;
  --navy-ink: #111c35;
  --paper: #f7f4ee;
  --stone: #ece6db;
  --white: #ffffff;
  --ink: #17191e;
  --muted: #61656e;
  --line: rgba(23, 25, 30, 0.14);
  --line-light: rgba(255, 255, 255, 0.28);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slide-ms: 6500ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
body.menu-open { overflow: hidden; }

.sr-only {
  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: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--navy); }
.display--caps { text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(36px, 4.6vw, 64px); }
.lead { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--light { background: var(--white); color: var(--navy-ink); }
.btn--light:hover { background: var(--stone); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy-ink); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn.is-disabled { opacity: 0.4; pointer-events: none; }

.text-link {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--navy);
}
.text-link:hover { color: var(--navy-ink); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-light); background: transparent; color: var(--white);
  border-radius: 50%; cursor: pointer; transition: background-color .25s, color .25s;
}
.icon-btn:hover { background: var(--white); color: var(--navy-ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   HEADER — ghost over hero, solid navy on scroll
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  background: transparent;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), color .9s var(--ease);
}
/* Ghost state over light hero colors: switch to dark ink + darken the light logo */
.site-header[data-tone="dark"]:not(.is-solid):not(.menu-is-open) { color: var(--navy-ink); }
.site-header[data-tone="dark"]:not(.is-solid):not(.menu-is-open) .brand img { filter: brightness(0.18); }
.brand img { transition: height .45s var(--ease), filter .9s var(--ease); }
.site-header.is-solid { background: var(--navy); color: var(--white); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.55); }

.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
  transition: height .45s var(--ease);
}
.site-header.is-solid .header-inner { height: 68px; }

.brand img { height: 62px; width: auto; }
.site-header.is-solid .brand img { height: 48px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.primary-nav a {
  position: relative; text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 20px; border-color: currentColor; color: inherit; }
.nav-cta:hover { background: var(--white); border-color: var(--white); color: var(--navy-ink); }
.site-header[data-tone="dark"]:not(.is-solid) .nav-cta:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle__bar {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle__bar:nth-of-type(2) { top: 18px; }
.menu-toggle__bar:nth-of-type(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--navy);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-menu ul { display: grid; gap: 8px; margin-bottom: 40px; }
.mobile-menu ul a {
  font-family: var(--font-display); font-size: 40px; line-height: 1.2; text-decoration: none;
}
.mobile-menu .btn { width: 100%; }
.mobile-menu__meta { margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.mobile-menu:not([hidden]) { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   HERO — full-bleed rotating color field + photo carousel
   ========================================================= */
.hero {
  --hero-fg: var(--white);
  --hero-bg: var(--navy);
  --hero-muted: rgba(255, 255, 255, 0.86);
  --hero-line: rgba(255, 255, 255, 0.32);
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background-color: var(--navy);
  color: var(--hero-fg);
  overflow: hidden;
  isolation: isolate;
}

/* Rotating color background — one full-bleed radial gradient per slide, crossfaded */
.hero__bgs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  background: radial-gradient(120% 90% at var(--focus, 70% 30%),
    color-mix(in srgb, var(--tint) 55%, var(--navy)) 0%,
    var(--navy) 50%,
    var(--navy-ink) 100%);
}
.hero__bg[data-base] { /* navy slide uses the original lighter-navy glow */
  background: radial-gradient(120% 90% at var(--focus, 70% 30%), #3a5590 0%, var(--navy) 45%, var(--navy-ink) 100%);
}
.hero__bg.is-active { opacity: 1; }

.hero__inner {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 96px);
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 24px;
}
.hero__eyebrow { color: var(--hero-fg); }
.hero__content { text-shadow: 0 1px 18px rgba(17, 28, 53, 0.35); }
.hero__content .btn { text-shadow: none; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 7.2vw, 120px); line-height: 0.92; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
/* Each line stays whole; js sizes the title so the longest line spans the column */
.hero__title-line { display: block; white-space: nowrap; }
.hero__content { min-width: 0; }
.hero__intro { max-width: none; font-size: clamp(16px, 1.25vw, 19px); color: var(--hero-muted); margin-bottom: 36px; transition: color 1s var(--ease); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__btn--solid { background: var(--hero-fg); color: var(--hero-bg, var(--navy)); border-color: var(--hero-fg); }
.hero__btn--solid:hover { opacity: 0.88; }
.hero__btn--outline { background: transparent; color: var(--hero-fg); border-color: var(--hero-fg); }
.hero__btn--outline:hover { background: var(--hero-fg); color: var(--hero-bg, var(--navy)); }

/* Photo column */
.hero__media { justify-self: center; width: 100%; max-width: 540px; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--header-h) - 170px);
  margin-inline: auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 40px 80px -40px rgba(10, 16, 32, 0.55);
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease); z-index: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform-origin: var(--pos, 50% 50%); /* zoom toward the subject, never away from heads */
  transform: scale(1.06);
}
.hero__slide.is-active img { animation: kenburns calc(var(--slide-ms) + 1500ms) linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__slide figcaption { display: none; } /* surfaced in .hero__caption */
.hero__caption {
  margin-top: 16px; text-align: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hero-muted);
  transition: opacity .4s, color 1s var(--ease);
}
.hero__caption.is-fading { opacity: 0; }

/* Controls */
.hero__controls {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 36px;
}
.hero__progress { display: flex; gap: 8px; }
.hero__progress button {
  position: relative; width: 44px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer;
}
.hero__progress button::before, .hero__progress button span {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--hero-line);
}
.hero__progress button span { background: var(--hero-fg); transform: scaleX(0); transform-origin: left; }
.hero__progress button.is-done span { transform: scaleX(1); }
.hero__progress button.is-active span { animation: progress var(--slide-ms) linear forwards; }
.hero.is-paused .hero__progress button.is-active span,
.hero.is-paused .hero__slide.is-active img { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__buttons { display: flex; gap: 8px; }
.hero .icon-btn { color: var(--hero-fg); border-color: var(--hero-line); transition: background-color .25s, color .25s, border-color 1s; }
.hero .icon-btn:hover { background: var(--hero-fg); color: var(--hero-bg, var(--navy)); }
[data-toggle] .i-play { display: none; }
.hero.is-paused [data-toggle] .i-play { display: block; }
.hero.is-paused [data-toggle] .i-pause { display: none; }

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr; align-items: start; gap: 28px;
    padding-top: calc(var(--header-h) + 8px);
  }
  .hero__media { order: -1; max-width: none; justify-self: stretch; }
  .hero__frame { aspect-ratio: 4 / 4.6; max-height: 50svh; width: 100%; }
  .hero__slide img { object-position: var(--pos-m, var(--pos)); transform-origin: var(--pos-m, var(--pos)); }
  .hero__caption { margin-top: 10px; text-align: left; }
  .hero__title { margin-bottom: 18px; }
  .hero__intro { margin-bottom: 24px; }
  .hero__controls { padding-bottom: 28px; }
  .hero .icon-btn { width: 40px; height: 40px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .display em { color: inherit; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
}
.section-head__aside { color: var(--muted); max-width: 44ch; justify-self: end; }
.section-head__aside a { color: var(--navy); }

/* ---------- The edit ---------- */
.edit__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.edit__body { padding-top: 4px; } /* first line of body copy sits level with the eyebrow */
.edit__body p + p { margin-top: 20px; }
.edit__body { color: #3b3f47; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stats dd { font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--ink); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.service-card { display: flex; flex-direction: column; }
.service-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); margin-bottom: 24px; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__num { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px; }
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; margin-bottom: 12px; }
.service-card p { color: var(--muted); margin-bottom: 22px; flex: 1; }
.service-card .text-link { align-self: flex-start; }

/* ---------- Packages ---------- */
.pkg-tabs {
  display: flex; gap: 4px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.pkg-tabs::-webkit-scrollbar { display: none; }
.pkg-tabs [role="tab"] {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: 16px 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.pkg-tabs [role="tab"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.pkg-tabs [aria-selected="true"] { color: var(--navy); }
.pkg-tabs [aria-selected="true"]::after { transform: scaleX(1); }

.pkg-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pkg-panel[hidden] { display: none; }
.pkg-panel:not([hidden]) { animation: fade-up .5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pkg-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white); border: 1px solid transparent; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(17, 28, 53, 0.45); }
.pkg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-card:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.pkg-card:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pkg-card--featured { background: var(--paper); }
.pkg-card__badge {
  position: absolute; top: 0; right: 24px; transform: translateY(-50%);
  background: var(--navy); color: var(--white); padding: 6px 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.pkg-card__tier { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); }
.pkg-card__price { font-family: var(--font-display); font-size: clamp(40px, 3.6vw, 52px); line-height: 1.1; margin: 10px 0 12px; }
.pkg-card__price--inquire { font-size: clamp(30px, 2.6vw, 38px); }
.pkg-card__from { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.pkg-addons { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: 4px; }
.pkg-card__desc { color: var(--muted); margin-bottom: 8px; }
.pkg-card__for { display: block; font-style: italic; color: var(--ink); margin-bottom: 24px; }
.pkg-card ul { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 32px; flex: 1; font-size: 15px; }
.pkg-card li { display: flex; gap: 12px; }
.pkg-card li::before { content: ""; flex: none; width: 12px; height: 1px; background: var(--navy); margin-top: 0.8em; }
.pkg-card__select {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid var(--navy); color: var(--navy);
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.pkg-card:hover .pkg-card__select { background: rgba(36, 59, 108, 0.06); }
.pkg-card:has(input:checked) .pkg-card__select { background: var(--navy); color: var(--white); }
.pkg-card:has(input:checked) .pkg-card__select::before { content: "✓ "; white-space: pre; }
.pkg-card:has(input:checked) .pkg-card__select { font-size: 0; }
.pkg-card:has(input:checked) .pkg-card__select::after { content: "Selected"; font-size: 12px; }
.pkg-card:has(input:checked) .pkg-card__select::before { font-size: 12px; }

.pkg-summary {
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 18px 18px 18px 28px;
  background: var(--white); box-shadow: 0 20px 50px -24px rgba(17, 28, 53, 0.5);
}
.pkg-summary__text { display: flex; flex-direction: column; }
.pkg-summary__label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.pkg-summary strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.3; }

/* ---------- Work / gallery ---------- */
.gallery { columns: 4 240px; column-gap: clamp(12px, 1.4vw, 20px); }
.gallery li { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.03); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__portrait { position: relative; }
.about__portrait img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 30%; }
.about__portrait::after { /* outline frame sized to the photo, not the caption */
  content: ""; position: absolute; top: 24px; left: 24px; right: -24px; bottom: auto;
  aspect-ratio: 3 / 2; z-index: -1; border: 1px solid var(--navy);
}
.about__portrait { isolation: isolate; }
.about__portrait figcaption { margin-top: 40px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.about__body .display { margin-bottom: 24px; }
.about__body .lead { margin-bottom: 20px; }
.about__body > p:not(.eyebrow):not(.lead) { color: #3b3f47; }
.about__partner {
  display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center;
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line);
}
.about__partner img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__partner h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin-bottom: 8px; }
.about__partner p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 120px); }
.contact__intro .display { margin-bottom: 24px; }
.contact__intro > p { color: rgba(255, 255, 255, 0.82); max-width: 42ch; }
.contact__details { display: grid; gap: 18px; margin: 40px 0; padding: 32px 0; border-block: 1px solid var(--line-light); }
.contact__details li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.contact__details span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); padding-top: 4px; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.contact__details a:hover { border-color: var(--white); }

.social { display: flex; flex-wrap: wrap; gap: 24px; }
.social a { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; opacity: 0.85; }
.social a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Embedded Dubsado lead capture (white form on a paper card inside the navy section) */
.contact-embed { align-self: start; min-width: 0; }
.contact-embed .dubsado-form { display: block; width: 1px; min-width: 100%; min-height: 900px; border: 0; background: var(--white); border-radius: 4px; }
.contact-embed__fallback { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.contact-embed__fallback a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

.contact-form { display: grid; gap: 26px; align-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 300; opacity: 0.7; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  color: var(--white); font-size: 17px; font-weight: 300;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px;
}
.field select option { color: var(--ink); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #f2b8a8; }
.field .error { font-size: 13px; color: #f6c8bb; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.contact-form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: var(--white); padding: 64px 0 32px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer__inner .brand img { height: 64px; width: auto; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 14, 26, 0.96); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: menu-in .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(88vw, 1400px); max-height: 86vh; width: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }


/* =========================================================
   NAV DROPDOWN (Portfolio)
   ========================================================= */
.primary-nav .has-sub { position: relative; }
.primary-nav .has-sub > a { padding-right: 16px; }
.primary-nav .has-sub > a::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.primary-nav .subnav {
  position: absolute; left: -24px; top: 100%; min-width: 240px;
  display: flex; flex-direction: column; gap: 0; padding: 14px 0;
  background: var(--navy); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.primary-nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; } /* hover bridge */
.primary-nav .subnav { margin-top: 16px; }
.primary-nav .has-sub:hover .subnav, .primary-nav .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.primary-nav .subnav li { display: block; }
.primary-nav .subnav a { display: block; padding: 12px 24px; color: var(--white); white-space: nowrap; }
.subnav a::after { display: none; }
.subnav a:hover, .subnav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.mobile-sub { display: grid; gap: 4px; margin: 6px 0 12px 4px !important; padding-left: 16px; border-left: 1px solid var(--line-light); }
.mobile-menu .mobile-sub a { font-family: var(--font-body); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }

/* Category chips under "Selected frames" on home */
.work__cats { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 40px; }
.work__cats a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); text-decoration: none; color: var(--navy);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}
.work__cats a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* =========================================================
   PORTFOLIO LANDING PAGES
   ========================================================= */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hero-muted); }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: var(--hero-fg); }
.breadcrumb [aria-current] { color: var(--hero-fg); }
.hero__title-sub {
  display: block; margin-top: 0.28em;
  font-family: var(--font-body); font-weight: 300; font-size: max(16px, 0.17em);
  letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.3;
}
.hero.is-single .hero__controls { visibility: hidden; }

.answer__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.answer__lead { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { color: var(--ink); }

.gallery__ph {
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ddd5c8, #c3b8a6);
  color: rgba(17, 28, 53, 0.45); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.gallery__ph:nth-child(3n) { aspect-ratio: 1; }

.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__aside { margin-top: 20px; color: var(--muted); }
.faq__aside a { color: var(--navy); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 26px; font-weight: 300; color: var(--navy); transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 48px 28px 0; color: #3b3f47; max-width: 62ch; }

.related { padding-block: clamp(56px, 7vw, 96px); }
.related__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.related__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 24px 28px 0; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
  transition: color .25s, padding .35s var(--ease);
}
.related__list li + li a { padding-left: 24px; border-left: 1px solid var(--line); }
.related__list a:hover { color: var(--navy); }
.related__list a span:last-child { font-family: var(--font-body); font-size: 20px; transition: transform .35s var(--ease); }
.related__list a:hover span:last-child { transform: translateX(6px); }

@media (max-width: 960px) {
  .answer__grid, .faq__grid { grid-template-columns: 1fr; }
  .related__list { grid-template-columns: 1fr; }
  .related__list li + li a { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .work__cats { margin-top: -16px; }
}

/* ---------- Missing-image fallbacks ---------- */
.brand__text { display: none; font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.brand img.is-missing { display: none; }
.brand:has(img.is-missing) .brand__text { display: block; }
.brand { text-decoration: none; }
img.is-missing { visibility: hidden; }
.service-card__media:has(.is-missing), .about__partner figure:has(.is-missing), .about__portrait:has(.is-missing) { background: linear-gradient(160deg, #d9d0c1, #b9ae9c); }
.gallery button:has(.is-missing) { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #ddd5c8, #c3b8a6); }
.gallery li:nth-child(3n) button:has(.is-missing) { aspect-ratio: 1; }
.gallery li:nth-child(4n+2) button:has(.is-missing) { aspect-ratio: 3 / 4; }
.about__portrait img.is-missing { aspect-ratio: 4 / 5; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .primary-nav ul { gap: 22px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-is-open { background: var(--navy); }

  .edit__grid, .about__grid, .contact__grid, .section-head--split { grid-template-columns: 1fr; }
  .section-head__aside { justify-self: start; }
  .pkg-panel { grid-template-columns: 1fr; max-width: 560px; }
  .about__portrait { max-width: 480px; }
}

@media (max-width: 640px) {
  .brand img { height: 48px; }
  .site-header.is-solid .brand img { height: 40px; }
  .site-header.is-solid .header-inner { height: 62px; }

  .hero__actions .btn { flex: 1 1 auto; }
  .hero__progress button { width: 28px; }

  .service-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .gallery { columns: 2; }
  .field-row { grid-template-columns: 1fr; }
  .about__partner { grid-template-columns: 96px 1fr; gap: 20px; }
  .about__portrait::after { top: 14px; left: 12px; right: -12px; }
  .pkg-summary { padding: 16px; }
  .pkg-summary .btn { width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

@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; }
  .hero__slide img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
