:root {
  color-scheme: dark;
  --bg: #100e0c;
  --bg-raised: #171411;
  --bg-card: #1d1915;
  --ink: #f2ece1;
  --ink-soft: rgba(242, 236, 225, 0.68);
  --ink-faint: rgba(242, 236, 225, 0.42);
  --accent: #c8a880;
  --accent-bright: #d9bd97;
  --accent-soft: rgba(200, 168, 128, 0.32);
  --line: rgba(242, 236, 225, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

/* Critical: hidden elements must never render or intercept clicks,
   even when a class sets its own display value. */
[hidden] {
  display: none !important;
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

.animated-logo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fdfcfa;
}

.animated-logo > img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translateY(-50%);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 0.8s var(--ease-out), opacity 0.6s ease;
}

.preloader-logo {
  width: min(82vw, 430px);
  height: min(40vw, 205px);
  max-height: 205px;
  border-radius: 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.preloader.is-done {
  transform: translateY(-100%);
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Scroll progress ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 120;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand-logo {
  width: clamp(180px, 16vw, 210px);
  height: 80px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.brand-logo > img {
  left: 3%;
  width: 94%;
  transform: translateY(calc(-50% + 4px));
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.top-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.top-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.top-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.top-nav .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.top-nav .nav-cta:hover {
  background: var(--accent-bright);
  color: var(--bg);
}

/* Hamburger */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: rgba(16, 14, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 14, 12, 0.97);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu nav {
  display: grid;
  gap: 1.4rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease calc(0.08s + var(--i, 0) * 0.07s),
    transform 0.5s var(--ease-out) calc(0.08s + var(--i, 0) * 0.07s),
    color 0.25s ease;
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  opacity: 0;
  transition: opacity 1.4s ease;
  animation: hero-drift 26s ease-in-out infinite alternate;
}

.hero-image.is-active {
  opacity: 1;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(16, 14, 12, 0.25) 0%, rgba(16, 14, 12, 0.78) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 4rem;
  max-width: 820px;
}

/* staggered entrance after preloader */

.hero-content > * {
  opacity: 0;
}

body.is-booted .hero-content > * {
  animation: rise-in 0.9s var(--ease-out) both;
}

body.is-booted .hero-content > .eyebrow {
  animation-delay: 0.1s;
}

body.is-booted .hero-content > h1 {
  animation-delay: 0.22s;
}

body.is-booted .hero-content > .hero-copy {
  animation-delay: 0.7s;
}

body.is-booted .hero-content > .hero-actions {
  animation-delay: 0.85s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  letter-spacing: 0.01em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
}

body.is-booted .hero h1 .line:nth-child(1) > span {
  animation: line-up 1s var(--ease-out) 0.3s both;
}

body.is-booted .hero h1 .line:nth-child(2) > span {
  animation: line-up 1s var(--ease-out) 0.45s both;
}

@keyframes line-up {
  to {
    transform: translateY(0);
  }
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-copy {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 1.4rem auto 2.2rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 2.2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  position: relative;
  width: 44px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dots button::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-faint);
  transition: background 0.3s ease;
}

.hero-dots button.is-active::after {
  background: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--ink-faint);
  border-radius: 14px;
  display: grid;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 2px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(12px);
    opacity: 0.2;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--sans);
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
}

.button.primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: transparent;
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.wide {
  width: 100%;
  border: none;
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem) 0;
  scroll-margin-top: 96px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.is-visible {
  opacity: 1;
  transform: none;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

/* ---------- Work / gallery ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.4rem;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-button sup {
  margin-left: 0.45em;
  font-size: 0.66em;
  color: var(--accent);
  transition: color 0.25s ease;
}

.filter-button:hover {
  border-color: var(--accent-soft);
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.filter-button.is-active sup {
  color: var(--bg);
}

.photo-grid {
  columns: 3 280px;
  column-gap: 1.1rem;
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
}

.photo-card.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition: opacity 0.7s ease var(--delay, 0ms),
    transform 0.7s var(--ease-out) var(--delay, 0ms);
}

.photo-card.reveal.is-in {
  opacity: 1;
  transform: none;
}

.photo-card img {
  width: 100%;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.photo-tag {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(16, 14, 12, 0.62);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 14, 12, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-soft);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}

.photo-card:hover .photo-tag,
.photo-card:focus-visible .photo-tag {
  opacity: 1;
  transform: none;
}

.photo-card:hover .photo-view,
.photo-card:focus-visible .photo-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.empty-gallery {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 3rem;
  text-align: center;
  color: var(--ink-faint);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-raised);
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease calc(var(--i, 0) * 140ms),
    transform 0.7s ease calc(var(--i, 0) * 140ms),
    border-color 0.3s ease,
    translate 0.3s ease;
}

.section.is-visible .service-card {
  opacity: 1;
  transform: none;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--accent-soft);
  translate: 0 -5px;
}

.service-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
}

.service-card:hover .service-photo,
.service-card:focus-visible .service-photo {
  opacity: 0.24;
  transform: scale(1);
}

.service-body {
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
}

.service-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
}

.service-card h3 {
  font-size: 1.6rem;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.service-link {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.service-card:hover .service-link {
  color: var(--accent-bright);
  letter-spacing: 0.18em;
}

/* ---------- About ---------- */

.about-section {
  display: grid;
  grid-template-columns: minmax(160px, 210px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-media img {
  border-radius: 50%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--line);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.2rem;
}

.about-copy p {
  color: var(--ink-soft);
  max-width: 36rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--accent-bright);
}

@media (max-width: 760px) {
  .about-section {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 180px;
  }
}

/* ---------- Contact ---------- */

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.2rem;
}

.contact-copy p {
  color: var(--ink-soft);
  max-width: 30rem;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.contact-email:hover {
  color: var(--accent-bright);
}

.copy-email {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.copy-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quote-form label.wide,
.quote-form .wide {
  grid-column: 1 / -1;
}

.quote-form span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem; /* 16px minimum prevents iOS zoom-on-focus */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 168, 128, 0.14);
}

.quote-form textarea {
  resize: vertical;
}

@media (max-width: 860px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .quote-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  width: min(82vw, 340px);
  height: min(36vw, 150px);
  max-height: 150px;
  border-radius: 2rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.site-footer p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  background: rgba(16, 14, 12, 0.8);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease;
}

.back-to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-height: 100%;
  animation: lightbox-in 0.35s var(--ease-out);
}

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

.lightbox img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
}

.lightbox figcaption span {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}

.lightbox figcaption p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-family: var(--serif);
  font-style: italic;
}

.lightbox figcaption a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox figcaption a:hover {
  color: var(--accent-bright);
}

.lightbox > button {
  background: rgba(16, 14, 12, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox > button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);
  z-index: 150;
  background: var(--bg-card);
  border: 1px solid var(--accent-soft);
  color: var(--ink);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive / motion ---------- */

@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr;
  }
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .lightbox-prev {
    left: 0.8rem;
  }
  .lightbox-next {
    right: 0.8rem;
  }
}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .brand-logo {
    width: 160px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .scroll-hint span {
    animation: none !important;
  }
  body.is-booted .hero-content > *,
  body.is-booted .hero h1 .line > span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .hero-content > * {
    opacity: 1;
  }
  .photo-card.reveal,
  .service-card,
  .section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
