:root {
  --bg: #fbf7f1;
  --paper: rgba(255, 252, 247, 0.92);
  --paper-strong: #fffaf4;
  --ink: #1e2f44;
  --ink-soft: #6a6f77;
  --navy: #0d2237;
  --navy-deep: #0a1b2c;
  --gold: #c89b58;
  --mist: #bccad6;
  --line: rgba(30, 47, 68, 0.12);
  --shadow: 0 26px 80px rgba(97, 73, 38, 0.12);
  --radius-xl: 2.3rem;
  --radius-lg: 1.7rem;
  --radius-md: 1.2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 155, 88, 0.15), transparent 18rem),
    radial-gradient(circle at 78% 12%, rgba(188, 202, 214, 0.2), transparent 16rem),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 52%, #f2eadf 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header,
.hero,
.projects-section,
.portrait-panel,
.story-copy,
.approach-panel,
.site-footer,
.gallery-dialog {
  backdrop-filter: blur(10px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid rgba(200, 155, 88, 0.18);
  box-shadow: 0 14px 34px rgba(97, 73, 38, 0.08);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
}

.brand-logo,
.footer-script {
  font-family: "Allura", cursive;
}

.brand-logo {
  display: block;
  width: clamp(14rem, 22vw, 19rem);
  height: auto;
}

.brand-tag,
.eyebrow,
.project-subtitle,
.footer-copy,
.footer-link {
  color: var(--ink-soft);
}

.brand-tag,
.eyebrow,
.project-subtitle,
.footer-link {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  padding: 0.7rem 1rem;
}

main {
  display: grid;
  gap: 1.3rem;
  margin-top: 1rem;
}

.hero,
.projects-section,
.portrait-panel,
.story-copy,
.approach-panel {
  background: var(--paper);
  border: 1px solid rgba(200, 155, 88, 0.15);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 42rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 250, 244, 0.92));
}

h1,
h2,
h3,
.project-title,
.monogram {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 600;
}

.accent-line {
  display: inline-flex;
  width: 3.2rem;
  height: 1px;
  margin: 1.8rem 0 1.2rem;
  background: linear-gradient(90deg, var(--gold), rgba(200, 155, 88, 0.2));
}

.hero-intro,
.section-heading p,
.story-copy p,
.approach-item p,
#gallery-description,
#gallery-caption {
  color: var(--ink-soft);
  line-height: 1.85;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-list a {
  text-decoration: none;
}

.contact-icon,
.approach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--gold);
}

.contact-icon svg,
.approach-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-media img {
  height: 100%;
  min-height: 42rem;
  object-fit: cover;
  object-position: center;
}

.watercolor-seam {
  position: absolute;
  top: -2%;
  bottom: -2%;
  left: 31%;
  width: min(20rem, 26vw);
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 18%, rgba(188, 202, 214, 0.84), transparent 22%),
    radial-gradient(circle at 48% 34%, rgba(188, 202, 214, 0.62), transparent 26%),
    radial-gradient(circle at 42% 56%, rgba(188, 202, 214, 0.8), transparent 20%),
    radial-gradient(circle at 52% 74%, rgba(188, 202, 214, 0.56), transparent 18%),
    radial-gradient(circle at 28% 8%, rgba(200, 155, 88, 0.45), transparent 14%),
    radial-gradient(circle at 60% 28%, rgba(200, 155, 88, 0.34), transparent 12%),
    radial-gradient(circle at 52% 48%, rgba(200, 155, 88, 0.26), transparent 14%),
    radial-gradient(circle at 46% 76%, rgba(200, 155, 88, 0.28), transparent 12%);
  filter: blur(4px);
  opacity: 0.95;
}

.projects-section {
  padding: 2rem 1.4rem 1.6rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.section-heading.center {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.6rem;
}

.carousel-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-track-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-track-shell::before,
.project-track-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.1rem;
  width: clamp(2rem, 4vw, 4rem);
  pointer-events: none;
  z-index: 1;
}

.project-track-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 247, 241, 0.96), rgba(251, 247, 241, 0));
}

.project-track-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 247, 241, 0.96), rgba(251, 247, 241, 0));
}

.project-track {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 1.1rem;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.project-track.is-dragging {
  cursor: grabbing;
}

.project-card {
  --project-card-width: clamp(10.75rem, 12vw, 12.5rem);
  --project-card-padding: 0.65rem;
  --project-card-gap: 0.75rem;
  --project-copy-height: 7.9rem;
  display: grid;
  flex: 0 0 var(--project-card-width);
  width: var(--project-card-width);
  height: calc(
    ((var(--project-card-width) - (var(--project-card-padding) * 2)) * 1.25) +
    (var(--project-card-padding) * 2) +
    var(--project-card-gap) +
    var(--project-copy-height)
  );
  gap: var(--project-card-gap);
  padding: var(--project-card-padding);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 246, 0.92));
  box-shadow: 0 18px 36px rgba(97, 73, 38, 0.08);
  user-select: none;
  min-width: 0;
}

.project-image,
.project-copy {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.project-image {
  display: block;
  width: 100%;
  height: calc((var(--project-card-width) - (var(--project-card-padding) * 2)) * 1.25);
  overflow: hidden;
  border-radius: 1rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.project-copy {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  justify-items: center;
  text-align: center;
  width: 100%;
  height: var(--project-copy-height);
  min-height: var(--project-copy-height);
  gap: 0.3rem;
  padding: 0.15rem 0.3rem 0.45rem;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: clamp(1.22rem, 1.35vw, 1.65rem);
  line-height: 1.02;
  text-wrap: balance;
}

.project-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 2.55rem;
  line-height: 1.25;
}

.project-subtitle::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, rgba(200, 155, 88, 0.2), var(--gold), rgba(200, 155, 88, 0.2));
}

.story-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.86fr) minmax(0, 1.2fr) minmax(16rem, 0.88fr);
  gap: 1rem;
}

.portrait-panel,
.story-copy,
.approach-panel {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  min-width: 0;
}

.portrait-panel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
}

.portrait-caption {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
}

.portrait-intro,
.portrait-name {
  margin: 0;
}

.portrait-intro {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-soft);
}

.portrait-name {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.services-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.services-inline span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 155, 88, 0.14);
  font-size: 0.88rem;
}

.approach-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.approach-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(30, 47, 68, 0.1);
}

.approach-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer {
  position: relative;
  margin-top: 1.2rem;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy), #0a1e31 100%);
  color: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(200, 155, 88, 0.2);
  box-shadow: 0 32px 70px rgba(13, 34, 55, 0.24);
}

.footer-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.footer-script {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  color: #fff5ea;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.footer-contact a,
.footer-link {
  color: rgba(255, 248, 240, 0.92);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 248, 240, 0.7);
}

.footer-link {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.monogram {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 88, 0.8);
  color: var(--gold);
  font-size: 2.8rem;
  line-height: 1;
  z-index: 1;
}

.footer-wash {
  position: absolute;
  bottom: -2rem;
  width: 18rem;
  height: 11rem;
  background:
    radial-gradient(circle at 25% 30%, rgba(188, 202, 214, 0.48), transparent 26%),
    radial-gradient(circle at 52% 52%, rgba(188, 202, 214, 0.3), transparent 22%),
    radial-gradient(circle at 44% 72%, rgba(200, 155, 88, 0.28), transparent 18%),
    radial-gradient(circle at 70% 58%, rgba(200, 155, 88, 0.2), transparent 16%);
  filter: blur(4px);
  opacity: 0.95;
}

.footer-wash-left {
  left: -3rem;
}

.footer-wash-right {
  right: 7rem;
  transform: scaleX(-1);
}

.gallery-dialog {
  width: min(1100px, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 1.8rem;
  background: #fffaf4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.gallery-dialog[open] {
  display: block;
}

.gallery-dialog.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-dialog::backdrop {
  background: rgba(23, 30, 38, 0);
  backdrop-filter: blur(5px);
  transition: background-color 240ms ease;
}

.gallery-dialog.is-visible::backdrop {
  background: rgba(23, 30, 38, 0.66);
}

.dialog-close-wrap {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.dialog-close {
  border: 1px solid rgba(200, 155, 88, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem);
  align-items: start;
}

.dialog-main-image {
  position: relative;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1;
  align-self: start;
}

.gallery-main-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.gallery-main-photo.is-active {
  opacity: 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid rgba(30, 47, 68, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(200, 155, 88, 0.34);
}

.gallery-arrow:focus-visible {
  outline: 2px solid rgba(200, 155, 88, 0.45);
  outline-offset: 2px;
}

.gallery-arrow span {
  font-size: 1.2rem;
  line-height: 1;
}

.gallery-arrow-prev {
  left: 1rem;
}

.gallery-arrow-next {
  right: 1rem;
}

.dialog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.5rem 1.5rem;
}

.dialog-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: auto;
}

.thumbnail-button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.thumbnail-button img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumbnail-button.is-active {
  border-color: var(--gold);
}

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

  .monogram {
    position: static;
    transform: none;
    margin: 1.2rem auto 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .watercolor-seam {
    top: 34%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 10rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 1rem, 100%);
    padding-top: 0.5rem;
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: var(--radius-xl);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
    gap: 0.8rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .brand-logo {
    width: clamp(12rem, 50vw, 16rem);
  }

  .hero-copy,
  .projects-section,
  .portrait-panel,
  .story-copy,
  .approach-panel,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .project-track {
    gap: 0.8rem;
  }

  .project-card {
    --project-card-width: min(14.75rem, 74vw);
  }

  .dialog-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-arrow {
    width: 2.55rem;
    height: 2.55rem;
  }

  .gallery-arrow-prev {
    left: 0.75rem;
  }

  .gallery-arrow-next {
    right: 0.75rem;
  }
}

@media print {
  body {
    background: white;
  }

  .project-track-shell {
    overflow: visible;
  }

  .project-track-shell::before,
  .project-track-shell::after {
    display: none;
  }

  .project-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    overflow: visible;
    width: 100%;
    padding-bottom: 0;
    scroll-snap-type: none;
    cursor: default;
  }

  .project-card {
    flex: none;
    width: auto;
    break-inside: avoid;
  }
}
