@import url("./tokens.css");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--gold);
  color: var(--white);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.container-md {
  width: min(100% - 3rem, var(--max-md));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section-soft {
  background: var(--slate-50);
}

.section-tight {
  padding: 4rem 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--slate-900);
  margin: 0 0 1rem;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.text-muted {
  color: var(--slate-600);
}

.text-center {
  text-align: center;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--slate-600);
  line-height: 1.7;
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--slate-900);
}

.btn-outline {
  border-color: var(--slate-300);
  color: var(--slate-700);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--slate-900);
  color: var(--slate-900);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--slate-900);
}

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-xl {
  width: 4rem;
  height: 4rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.brand-pipe {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.brand-pipe.dark {
  color: var(--slate-300);
}

.brand-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.brand-dark .brand-mark {
  color: var(--slate-900);
}

.brand-dark .brand-tag {
  color: var(--slate-500);
}

.philosophy {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  padding: 0.7rem 0;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .brand-mark {
  font-size: 1.2rem;
}

.site-header .brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.site-header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  color: var(--slate-900);
  border-bottom: 1px solid var(--slate-200);
  width: 100%;
  padding: 0.65rem max(0.85rem, calc((100% - var(--max)) / 2 + 0.85rem));
  margin: 0;
  min-height: 3.25rem;
  box-shadow: var(--shadow-header);
}

.site-header.is-solid .brand-pipe {
  color: var(--slate-300);
}

.site-header.is-solid .brand-tag {
  color: var(--slate-500);
}

.site-header.is-solid .btn-ghost {
  border-color: var(--slate-300);
  color: var(--slate-800);
}

.site-header.is-solid .btn-ghost:hover {
  background: var(--slate-900);
  color: var(--white);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--gold);
}

.header-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 0;
}

.nav-toggle .icon,
.nav-toggle .icon-lg {
  width: 1.35rem;
  height: 1.35rem;
}

.site-header:not(.is-solid) .nav-toggle img {
  filter: brightness(0) invert(1);
}

.site-header.is-solid .nav-toggle {
  color: var(--slate-900);
}

.site-header.is-solid .nav-toggle img {
  filter: none;
}

@media (min-width: 900px) {
  .site-header {
    width: min(100% - 3rem, var(--max));
    padding: 1.35rem 0;
    min-height: 0;
  }

  .site-header .brand-mark {
    font-size: 1.5rem;
  }

  .site-header .brand-tag {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .site-header.is-solid {
    padding: 1rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  }

  .nav-desktop {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-drawer.is-open .nav-drawer-backdrop {
  opacity: 1;
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 320px);
  height: 100%;
  background: var(--white);
  color: var(--slate-800);
  padding: 0.85rem 1.1rem 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-soft);
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer-panel a {
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--slate-100);
  line-height: 1.3;
}

.nav-drawer-panel a:hover {
  color: var(--gold);
}

.nav-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
  padding: 0.25rem;
  margin-bottom: 0.35rem;
}

body.nav-locked {
  overflow: hidden;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate-200);
  padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 0.35rem;
}

.bottom-nav a .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.bottom-nav a[aria-current="page"],
.bottom-nav a:hover {
  color: var(--gold);
}

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

body.has-bottom-nav {
  padding-bottom: 4.5rem;
}

@media (min-width: 900px) {
  body.has-bottom-nav {
    padding-bottom: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  margin-bottom: 0;
}

.hero .lead {
  margin-top: 1.5rem;
  color: var(--slate-200);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 36rem;
}

.hero .btn {
  margin-top: 2.5rem;
}

.page-hero {
  position: relative;
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 1.25rem 2.25rem;
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 900px) {
  .page-hero {
    min-height: 42vh;
    padding: 8rem 1.5rem 3.5rem;
  }
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0;
}

.page-hero .lead {
  color: var(--slate-200);
  margin-top: 0.85rem;
}

/* Story overlap */
.story-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.story-photos {
  position: relative;
  height: 500px;
  width: 100%;
}

.story-photos img:first-child {
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.story-photos img:last-child {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 60%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--white);
}

/* Services */
.services-grid {
  display: grid;
  gap: 4rem 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-media {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
}

.service-media img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.03);
}

.service-badge {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-icon);
  color: var(--white);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* img SVGs ignore currentColor - force white on dark badges */
.service-badge img,
.process-icon img {
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-weight: 300;
  color: var(--slate-600);
  margin: 0;
}

/* Process */
.process-grid {
  display: grid;
  gap: 3rem 2.5rem;
}

@media (min-width: 700px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-item {
  display: flex;
  gap: 1.15rem;
}

.process-icon {
  flex-shrink: 0;
  background: var(--slate-icon);
  color: var(--white);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  height: fit-content;
}

.process-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.process-item p {
  margin: 0;
  font-weight: 300;
  color: var(--slate-600);
}

/* Gallery masonry */
.gallery-band {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-masonry {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0 0.5rem;
}

@media (min-width: 800px) {
  .gallery-masonry {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.gallery-masonry a,
.gallery-masonry figure {
  margin: 0;
  overflow: hidden;
  display: block;
  width: 100%;
  min-width: 0;
}

.gallery-masonry img {
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

@media (min-width: 800px) {
  .gallery-masonry img {
    height: 400px;
  }
}

.gallery-masonry a:hover img,
.gallery-masonry figure:hover img {
  transform: scale(1.04);
}

.gallery-masonry .span-2 {
  grid-column: span 2;
}

@media (max-width: 799px) {
  .gallery-masonry .span-2 {
    grid-column: span 1;
  }
  .gallery-masonry .hide-mobile {
    display: none;
  }
}

/* Testimonials */
.testimonial-section {
  position: relative;
  overflow: hidden;
}

.testimonial-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background: linear-gradient(
    45deg,
    transparent 25%,
    #000 25%,
    #000 50%,
    transparent 50%,
    transparent 75%,
    #000 75%,
    #000 100%
  );
  background-size: 20px 20px;
  pointer-events: none;
}

.testimonial-wrap {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 3rem;
}

.testimonial-quote-icon {
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 2rem;
  filter: invert(67%) sepia(42%) saturate(620%) hue-rotate(5deg) brightness(95%) contrast(88%);
}

.testimonial-text {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--slate-700);
  line-height: 1.7;
  margin: 0;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--gold);
  margin-top: 2.25rem;
}

.testimonial-stars .icon {
  filter: invert(67%) sepia(42%) saturate(620%) hue-rotate(5deg) brightness(95%) contrast(88%);
}

.carousel-btn .icon {
  filter: invert(67%) sepia(42%) saturate(620%) hue-rotate(5deg) brightness(95%) contrast(88%);
}

.btn-primary .icon {
  filter: brightness(0) invert(1);
}

.testimonial-author {
  margin-top: 1.35rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-900);
}

.testimonial-role {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(196, 155, 69, 0.1);
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.carousel-btn:hover {
  background: rgba(196, 155, 69, 0.2);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

@media (min-width: 860px) {
  .carousel-btn {
    display: flex;
  }
}

.testimonial-track {
  width: 100%;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
}

.testimonial-slide.is-active {
  display: flex;
  animation: fadeIn 0.45s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inside look */
.inside-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 860px) {
  .inside-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.inside-heading {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-left: -1.5rem;
}

.inside-photo {
  display: flex;
  justify-content: flex-end;
}

.inside-photo img {
  width: 100%;
  max-width: 24rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* Dark CTA */
.cta-dark {
  position: relative;
  padding: 8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-dark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 1;
}

.cta-dark-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.cta-dark h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.cta-dark p {
  color: var(--slate-300);
  font-weight: 300;
  font-size: 1.1rem;
  margin: 0 0 2.25rem;
}

/* Footer */
.site-footer {
  background: var(--slate-50);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--slate-200);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
    gap: 2rem;
  }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.footer-links a {
  font-weight: 300;
  color: var(--slate-600);
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: grid;
  gap: 1.25rem;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-contact-row .icon {
  color: var(--gold);
  margin-top: 0.15rem;
  filter: invert(67%) sepia(42%) saturate(620%) hue-rotate(5deg) brightness(95%) contrast(88%);
}

.footer-contact-row strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-900);
}

.footer-contact-row a,
.footer-contact-row p {
  margin: 0;
  font-weight: 300;
  color: var(--slate-600);
}

.footer-contact-row a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  text-align: center;
}

.footer-bottom p {
  margin: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--slate-500);
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: var(--slate-400) !important;
  max-width: 42rem;
  margin-inline: auto !important;
}

/* Forms & wizards */
.form-stack {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-800);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-800);
  font-weight: 300;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.chip.is-active,
.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(196, 155, 69, 0.08);
  color: var(--slate-900);
  box-shadow: var(--shadow-xs);
}

.wizard {
  max-width: 44rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.wizard-step-dot {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-400);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
}

.wizard-step-dot.is-active {
  color: var(--white);
  background: var(--gold);
}

.wizard-step-dot.is-done {
  color: var(--slate-700);
  background: rgba(196, 155, 69, 0.15);
}

.wizard-pane {
  display: none;
}

.wizard-pane.is-active {
  display: block;
  animation: fadeIn 0.35s var(--ease);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 155, 69, 0.1);
  color: var(--slate-700);
  font-weight: 300;
  font-size: 0.95rem;
}

.notice.success {
  background: rgba(45, 55, 72, 0.08);
}

.estimate-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border-left: 2px solid var(--gold);
}

.estimate-result strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--slate-900);
  margin: 0.35rem 0;
}

/* Portfolio */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 800px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--slate-100);
  margin: 0;
  width: 100%;
  min-width: 0;
}

.portfolio-card > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover > img {
  transform: scale(1.04);
}

.portfolio-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
}

.portfolio-card.is-hidden {
  display: none;
}

.like-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-600);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.like-btn .icon,
.like-btn img {
  width: 1.05rem !important;
  height: 1.05rem !important;
  max-width: 1.05rem;
  object-fit: contain;
}

.like-btn.is-liked {
  color: var(--gold);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  max-width: min(92vw, 960px);
  width: 100%;
  position: relative;
}

.lightbox-inner img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 1rem;
  font-weight: 300;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Moodboard */
.moodboard {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .moodboard {
    grid-template-columns: 1fr 1.1fr;
  }
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.swatch {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  background: var(--white);
  text-align: left;
}

.swatch.is-active {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold-ring);
}

.swatch-chip {
  height: 2.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
}

.mood-preview {
  min-height: 360px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}

.mood-preview .arch {
  width: 70%;
  height: 70%;
  margin: 1.5rem auto 0;
  border: 10px solid rgba(45, 55, 72, 0.12);
  border-bottom: none;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: rgba(255, 255, 255, 0.35);
  transition: opacity 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.mood-preview.no-arch .arch {
  opacity: 0;
}

/* Portal */
.portal-shell {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .portal-shell {
    grid-template-columns: 240px 1fr;
  }
}

.portal-nav {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  height: fit-content;
}

.portal-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
  font-weight: 400;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
}

.portal-nav button.is-active,
.portal-nav button:hover {
  background: rgba(196, 155, 69, 0.12);
  color: var(--slate-900);
}

.portal-panel {
  display: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  background: var(--white);
}

.portal-panel.is-active {
  display: block;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.2rem;
  bottom: 0;
  width: 1px;
  background: var(--slate-200);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--slate-300);
  background: var(--white);
  z-index: 1;
}

.timeline-step.is-done .timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline-step.is-current .timeline-dot {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold-focus);
}

.people-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.person-card h3 {
  margin-bottom: 0.25rem;
}

.person-card .role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.project-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

@media (min-width: 700px) {
  .project-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .project-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  width: 100%;
  min-width: 0;
}

.project-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  font-weight: 300;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 800px) {
  .kb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.kb-grid a {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.kb-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.5s var(--ease);
}

.kb-grid a:hover img {
  transform: scale(1.03);
}

.faq-list {
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-weight: 300;
  color: var(--slate-600);
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery-masonry img,
  .service-media img,
  .portfolio-card > img,
  .project-card img,
  .kb-grid img {
    transition: none;
  }
  .testimonial-slide.is-active {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-inline: auto; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.stack { display: grid; gap: 1rem; }
.prose p {
  font-weight: 300;
  color: var(--slate-600);
  line-height: 1.75;
  font-size: 1.05rem;
}

.legal {
  max-width: 48rem;
  margin-inline: auto;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal p,
.legal li {
  font-weight: 300;
  color: var(--slate-600);
  line-height: 1.7;
}
