:root {
  --bg: #dceeed;
  --bg-soft: #eef8f7;
  --paper: rgba(247, 255, 253, 0.78);
  --ink: #163636;
  --muted: #4f6f6d;
  --line: rgba(22, 54, 54, 0.12);
  --accent: #1e8d97;
  --accent-soft: #72bfc0;
  --shadow: 0 24px 80px rgba(19, 64, 66, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(30, 141, 151, 0.18), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(114, 191, 192, 0.18), transparent 20%),
    linear-gradient(180deg, #f3fcfb 0%, var(--bg) 45%, #d0e7e4 100%);
}

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

img.lazyload,
img.lazyloading {
  opacity: 0;
  filter: blur(12px);
}

img.lazyloaded {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 360ms ease,
    filter 420ms ease;
}

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

.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: calc(64px + var(--safe-bottom));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(16px + var(--safe-top)) 0 16px;
  background: rgba(243, 252, 251, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(30, 141, 151, 0.18);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.contact-links a {
  position: relative;
}

.site-nav a::after,
.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.contact-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero {
  min-height: calc(100svh - 88px - var(--safe-top));
  min-height: calc(100dvh - 88px - var(--safe-top));
  padding: 56px 0 40px;
}

.hero-copy {
  width: min(100%, 34rem);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  max-width: 100%;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h3 {
  font-size: 2rem;
}

p {
  margin: 0;
  line-height: 1.75;
}

.hero-text,
.intro-copy,
.method-card p {
  color: var(--muted);
  font-size: 1rem;
}

.intro-grid h2,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 100%;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

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

.button-dark {
  color: #f7fffe;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(22, 54, 54, 0.18);
}

.button-light {
  border: 1px solid rgba(28, 24, 20, 0.18);
  background: rgba(255, 250, 244, 0.5);
}

.hero-visual {
  position: relative;
  min-height: 0;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-card-main {
  position: relative;
  inset: auto;
  border-radius: 32px;
  padding: 18px;
  background: rgba(247, 255, 253, 0.72);
}

.hero-card-main img {
  height: auto;
  aspect-ratio: 1598 / 1065;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
}

.hero-card-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 250, 244, 0.74);
  backdrop-filter: blur(12px);
}

.intro-grid,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.about-merged {
  align-items: start;
}

.about-merged-media img {
  height: 680px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.about-merged-copy {
  gap: 20px;
}

.info-block {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.info-block strong {
  font-size: 0.96rem;
}

.contact-section h2 {
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
}

.contact-section .section-label {
  margin-bottom: 14px;
}

.contact-intro {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.contact-item {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(247, 255, 253, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  align-content: start;
}

.contact-item span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.contact-qr {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  margin-top: 6px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19, 64, 66, 0.08);
}

.contact-studio-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(30, 141, 151, 0.18);
}

.works-section,
.method-section {
  padding: 52px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.works-series {
  display: grid;
  gap: 34px;
}

.work-series {
  display: grid;
  gap: 18px;
}

.work-series-heading {
  display: grid;
  gap: 10px;
  max-width: 56ch;
}

.work-series-heading h3 {
  font-size: clamp(1.28rem, 2.3vw, 1.8rem);
  line-height: 1.04;
}

.work-series-heading p {
  color: var(--muted);
  font-size: 0.98rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.work-series-heading p::-webkit-scrollbar {
  display: none;
}

.work-strip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 141, 151, 0.45) rgba(255, 255, 255, 0.45);
}

.work-strip.is-pending {
  min-height: clamp(220px, 26vw, 340px);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    rgba(247, 255, 253, 0.28);
  background-size: 220% 100%, auto;
  animation: strip-pulse 1.8s ease-in-out infinite;
}

.work-strip::-webkit-scrollbar {
  height: 10px;
}

.work-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 141, 151, 0.38);
}

.work-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.42);
}

.work-image {
  flex: 0 0 auto;
  margin: 0;
  height: clamp(220px, 26vw, 340px);
  padding: 10px;
  border-radius: 22px;
  background: rgba(247, 255, 253, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.exhibit-trigger {
  display: flex;
  align-items: flex-start;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-image img {
  width: auto;
  height: 100%;
  max-width: none;
  border-radius: 14px;
}

@keyframes strip-pulse {
  0% {
    background-position: 100% 0, 0 0;
  }

  100% {
    background-position: -100% 0, 0 0;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding:
    calc(20px + var(--safe-top))
    calc(20px + var(--safe-right))
    calc(20px + var(--safe-bottom))
    calc(20px + var(--safe-left));
  background: rgba(7, 26, 28, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  width: min(72vw, 980px);
  height: min(72vh, 760px);
  position: relative;
}

.lightbox-stage.is-loading::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.92);
  position: absolute;
  animation: lightbox-spin 0.9s linear infinite;
}

.lightbox-image {
  max-width: min(72vw, 980px);
  max-height: min(72vh, 760px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox-image.is-ready {
  opacity: 1;
}

.lightbox-image.is-portrait {
  max-height: min(80vh, 860px);
  max-width: min(52vw, 700px);
}

.lightbox-close,
.lightbox-nav {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #f6fffe;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: calc(18px + var(--safe-top));
  right: calc(18px + var(--safe-right));
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: calc(18px + var(--safe-left));
}

.lightbox-next {
  right: calc(18px + var(--safe-right));
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.method-card {
  display: grid;
  gap: 16px;
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(244, 233, 221, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.method-card span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-section {
  align-items: end;
  margin-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .contact-section,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 0;
  }

  .about-merged-media img {
    height: 520px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .work-image {
    height: min(42vw, 340px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 40px, 1200px);
  }

  .site-header {
    gap: 14px;
    align-items: stretch;
    flex-direction: column;
    padding-top: calc(14px + var(--safe-top));
    margin-inline: -20px;
    padding-inline: 20px;
    border-bottom: 1px solid rgba(22, 54, 54, 0.08);
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 0;
  }

  .hero {
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 24px;
  }

  h1 {
    line-height: 1.24;
  }

  .section-heading h2,
  .intro-grid h2,
  .contact-section h2,
  .work-series-heading h3 {
    line-height: 1.24;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .hero-card-main {
    inset: auto;
    padding: 12px;
  }

  .intro-grid,
  .contact-section,
  .works-section,
  .method-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .intro-copy,
  .about-merged-copy,
  .work-series-heading,
  .contact-section > div:first-child {
    max-width: 34rem;
  }

  .work-image {
    height: min(76vw, 320px);
  }

  .work-strip {
    gap: 12px;
    margin-right: -2px;
    padding-right: 2px;
  }

  .about-merged-media img {
    height: min(98vw, 420px);
  }

  .contact-item {
    min-height: 118px;
    padding: 18px;
  }

  .contact-qr {
    width: min(100%, 240px);
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(18px + var(--safe-bottom));
    transform: none;
  }

  .lightbox-prev {
    left: calc(14px + var(--safe-left));
  }

  .lightbox-next {
    right: calc(14px + var(--safe-right));
  }

  .lightbox-close {
    top: calc(14px + var(--safe-top));
    right: calc(14px + var(--safe-right));
  }

  .lightbox-stage {
    width: min(100%, 88vw);
    height: min(62svh, 62dvh, 520px);
  }

  .lightbox-image {
    max-width: min(100%, 88vw);
    max-height: min(62svh, 62dvh, 520px);
  }

  .lightbox-image.is-portrait {
    max-width: min(72vw, 420px);
    max-height: min(72svh, 72dvh, 620px);
  }
}
