:root {
  --ink: #1c2a48;
  --navy: #1c2a48;
  --lemon: #f5c543;
  --leaf: #4f6b3a;
  --cream: #f6f2ea;
  --cream-warm: #efe8d8;
  --white: #f6f2ea;
  --rule: rgba(28, 42, 72, 0.16);
  --deep-sea: #1c2a48;
  --sea: #1c2a48;
  --linen: #efe8d8;
  --sand: #efe8d8;
  --terracotta: #4f6b3a;
  --card-lemon: #f5c543;
  --card-navy: #1c2a48;
  --card-tan: #efe8d8;
  --card-green: #4f6b3a;
  --card-cream: #f6f2ea;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", Helvetica, Arial, sans-serif;
  --shadow: 0 22px 60px rgba(28, 42, 72, 0.18);
  --soft-shadow: 0 14px 32px rgba(28, 42, 72, 0.12);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(246, 242, 234, 0.78);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark img {
  width: clamp(40px, 4vw, 54px);
  height: clamp(40px, 4vw, 54px);
  object-fit: contain;
}

.brand-name {
  display: block;
  padding-top: 0.04em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a,
.header-cta {
  position: relative;
}

.site-nav a::after,
.header-cta::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.header-cta:hover::after,
.site-nav a:focus-visible::after,
.header-cta:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(28px, 5vw, 72px)) clamp(18px, 4vw, 54px) clamp(28px, 5vw, 72px);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding-bottom: clamp(16px, 4vw, 48px);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(28, 42, 72, 0.4);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 5.5vw, 5.2rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5.1rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero-text,
.about-copy p,
.contact-copy p {
  color: rgba(28, 42, 72, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-section .eyebrow {
  color: var(--lemon);
}

.hero-section .hero-text {
  max-width: 620px;
  color: rgba(246, 242, 234, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button-secondary {
  color: var(--white);
  background: rgba(246, 242, 234, 0.08);
  border-color: rgba(246, 242, 234, 0.8);
  backdrop-filter: blur(10px);
}

.collage-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.collage-shell::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(28, 42, 72, 0.68) 0%, rgba(28, 42, 72, 0.3) 44%, rgba(28, 42, 72, 0.12) 100%),
    linear-gradient(180deg, rgba(28, 42, 72, 0.16) 0%, rgba(28, 42, 72, 0.06) 48%, rgba(28, 42, 72, 0.44) 100%);
}

.collage-toolbar {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 54px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 0;
}

.collage-toolbar p {
  margin: 0;
  color: rgba(246, 242, 234, 0.86);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(28, 42, 72, 0.28);
  border: 1px solid rgba(246, 242, 234, 0.56);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(28, 42, 72, 0.46);
  transform: translateY(-1px);
}

.media-track {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

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

.media-card {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--linen);
  box-shadow: none;
  isolation: isolate;
  scroll-snap-align: start;
}

.media-card.is-large {
  flex-basis: 100%;
}

.media-card.is-wide {
  flex-basis: 100%;
}

.media-card::after,
.about-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(28, 42, 72, 0) 52%, rgba(28, 42, 72, 0.54));
}

.media-card img {
  transition: transform 800ms ease;
}

.media-card:hover img,
.media-card:focus-within img,
.motion-card img {
  transform: scale(1.045);
}

.motion-card img {
  animation: soft-pan 9s ease-in-out infinite alternate;
}

.motion-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 242, 234, 0.78);
  border-radius: 999px;
  background: rgba(28, 42, 72, 0.32);
  backdrop-filter: blur(14px);
}

.motion-indicator::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--white);
  content: "";
  transform: translate(-50%, -50%);
}

.media-label {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(88px, 10vw, 132px);
  z-index: 3;
  max-width: min(420px, 45vw);
  color: var(--white);
  text-align: right;
  text-shadow: 0 1px 18px rgba(28, 42, 72, 0.35);
}

.media-label span,
.work-card-copy p,
.site-footer > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.media-label strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.work-section,
.about-section,
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 54px);
  scroll-margin-top: var(--header-height);
}

.work-section > *,
.about-section > *,
.contact-section > * {
  position: relative;
  z-index: 1;
}

.work-section {
  padding-top: clamp(44px, 6vw, 78px);
}

.section-heading {
  display: block;
  max-width: 680px;
  margin: 0 auto 26px;
  text-align: center;
}

.work-section .section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--lemon);
}

.work-section .section-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-cream);
  box-shadow: var(--soft-shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.work-card button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.work-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--linen);
}

.work-card-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 42, 72, 0) 42%, rgba(28, 42, 72, 0.58) 100%);
  content: "";
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.work-card button:hover .work-card-media img,
.work-card button:focus-visible .work-card-media img {
  transform: scale(1.04);
}

.work-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px;
  align-content: end;
  color: var(--white);
  overflow: hidden;
}

.work-card-copy h3 {
  margin-bottom: 0;
  max-width: 500px;
  font-size: clamp(1.18rem, 1.9vw, 1.75rem);
}

.work-card-copy span {
  display: block;
  max-width: 420px;
  color: rgba(246, 242, 234, 0.78);
  font-size: 0.86rem;
}

.work-card-copy p {
  color: var(--lemon);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: clamp(16px, 3vw, 42px);
}

.gallery-modal.is-open {
  display: grid;
  place-items: center;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 42, 72, 0.68);
  backdrop-filter: blur(10px);
}

.gallery-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 90px rgba(28, 42, 72, 0.36);
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gallery-header h3 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.gallery-close {
  flex: 0 0 auto;
}

.gallery-close span {
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-description {
  max-width: 720px;
  margin: 0;
  color: rgba(28, 42, 72, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linen);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(28, 42, 72, 0) 58%, rgba(28, 42, 72, 0.46));
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(28, 42, 72, 0.42);
}

body.gallery-open {
  overflow: hidden;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
  background: var(--cream-warm);
}

.about-media {
  position: relative;
  min-height: clamp(420px, 58vw, 680px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 720px;
}

.about-copy h2 {
  max-width: 680px;
  font-size: clamp(2.4rem, 4.4vw, 4.45rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(246, 242, 234, 0.95), rgba(239, 232, 216, 0.92)),
    var(--white);
}

.contact-copy {
  max-width: 650px;
}

.inquiry-panel {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contact-lines span {
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-lines a {
  display: grid;
  grid-template-columns: minmax(105px, 0.28fr) minmax(0, 0.72fr);
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(28, 42, 72, 0.12);
  transition: color 180ms ease;
}

.contact-lines a:last-child {
  border-bottom: 0;
}

.contact-lines a:hover,
.contact-lines a:focus-visible {
  color: var(--deep-sea);
}

.contact-lines strong {
  overflow-wrap: anywhere;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.site-footer > span {
  margin: 0;
  color: rgba(246, 242, 234, 0.72);
  text-align: right;
}

@keyframes soft-pan {
  from {
    transform: scale(1.03) translateX(-1.5%);
  }

  to {
    transform: scale(1.08) translateX(1.5%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .header-cta {
    align-self: start;
  }

  .hero-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 34px);
  }

  .collage-shell {
    justify-self: stretch;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 106px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-mark {
    gap: 8px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.72rem;
  }

  .header-cta {
    font-size: 0.72rem;
  }

  .hero-section {
    min-height: 100svh;
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 3.65rem);
    line-height: 0.93;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .collage-toolbar {
    top: calc(var(--header-height) + 14px);
    right: 16px;
    bottom: auto;
  }

  .collage-toolbar p {
    display: none;
  }

  .media-card,
  .media-card.is-large,
  .media-card.is-wide {
    flex-basis: 100%;
    height: 100%;
  }

  .media-label {
    display: none;
  }

  .work-section,
  .about-section,
  .contact-section {
    padding-inline: 16px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(5) {
    grid-column: auto;
    min-height: 0;
  }

  .gallery-panel {
    max-height: 88vh;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .contact-lines a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer > span {
    text-align: left;
  }
}

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