:root {
  --bg: #d7ccbf;
  --paper: #faf6f0;
  --paper-strong: #fdf9f1;
  --ink: #130f0b;
  --ink-soft: #6f6156;
  --ink-soft-2: #857971;
  --sand: #bead9f;
  --line: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(73, 49, 34, 0.18);
  --shadow: 0 24px 70px rgba(52, 34, 22, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

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

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

button {
  font: inherit;
}

.editorial-body {
  background:
    linear-gradient(rgba(215, 204, 191, 0.96), rgba(215, 204, 191, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 38%);
  overflow-x: hidden;
}

.page-wordmark {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.16);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(4rem, 17vw, 15rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  padding-top: 1rem;
  z-index: 0;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,0.12) 8% 12%, transparent 12% 100%),
    linear-gradient(180deg, transparent 0 90%, rgba(255,255,255,0.08) 90% 100%);
  background-size: 21rem 21rem, 100% 12rem;
  mix-blend-mode: screen;
}

.floating-header,
.section-cap,
.feature-grid,
.services-list article,
.contact-editorial,
.subpage-header {
  display: flex;
}

.floating-header {
  position: fixed;
  top: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 1.7rem 2rem 1.25rem;
  color: #fff;
  width: 100%;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}

.floating-header::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.floating-header.is-scrolled {
  background: rgba(19, 15, 11, 0.32);
  backdrop-filter: blur(10px);
  padding-top: 1rem;
  padding-bottom: 0.95rem;
}

.brand-wordmark {
  position: relative;
  z-index: 1;
  font-family: "Bodoni Moda", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.editorial-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.editorial-nav a,
.editorial-mobile-nav a,
.back-link {
  opacity: 0.95;
}

.editorial-nav a:hover,
.editorial-mobile-nav a:hover,
.back-link:hover {
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.mobile-nav {
  display: none;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0 1.25rem 1rem;
}

.editorial-mobile-nav a {
  background: rgba(255,255,255,0.82);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-editorial {
  --mx: 0px;
  --my: 0px;
  --scroll-offset: 0px;
  position: relative;
  min-height: 100vh;
  margin: 0 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media,
.hero-shade,
.hero-frame {
  position: absolute;
  inset: 0;
}

.hero-media {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03) translate3d(var(--mx), var(--my), 0);
  animation: heroBreath 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(44, 28, 18, 0.54) 0%, rgba(44, 28, 18, 0.22) 42%, rgba(44, 28, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.28));
}

.hero-frame {
  border: 1px solid rgba(255,255,255,0.32);
  inset: 1rem;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 184, 0.22) 0%, rgba(255, 227, 184, 0) 72%);
  filter: blur(12px);
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.hero-glow-left {
  left: -6rem;
  top: 10rem;
}

.hero-glow-right {
  right: -3rem;
  bottom: 4rem;
  animation-duration: 18s;
}

.hero-copy,
.hero-note {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-copy {
  max-width: 82rem;
  padding: 12.5rem 5.5rem 4rem;
}

.hero-kicker,
.section-label,
.section-cap span,
.feature-meta {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.portfolio-feature h2,
.portfolio-alone h1,
.gallery-showcase h1,
.process-hero h1,
.services-copy h2,
.journal-head h2,
.contact-editorial h2 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  display: grid;
  margin-top: 8.5rem;
  font-size: clamp(5.4rem, 10.5vw, 10.8rem);
  line-height: 0.84;
}

.hero-copy h1 em {
  display: block;
  margin-left: clamp(8rem, 21vw, 24rem);
  font-style: italic;
  font-weight: 400;
}

.hero-text,
.hero-note p,
.feature-copy p,
.feature-side p,
.services-list p,
.journal-cards h3,
.contact-lines a,
.process-list p {
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-text {
  max-width: 26rem;
  margin: 2.4rem 0 0 auto;
}

.hero-note {
  max-width: 23rem;
  margin: 0 5.5rem 3rem auto;
}

.hero-scroll-link {
  position: absolute;
  right: 5.5rem;
  bottom: 2rem;
  z-index: 2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.7);
}

.intro-band,
.portfolio-feature,
.services-editorial,
.journal-strip,
.contact-editorial,
.portfolio-page,
.process-page,
.gallery-showcase {
  position: relative;
  z-index: 1;
}

.intro-band {
  max-width: 76rem;
  margin: 3.5rem auto 5rem;
  padding: 0 2rem;
}

.intro-band p {
  max-width: 52rem;
  margin: 0;
  color: var(--ink);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.portfolio-feature,
.portfolio-page,
.gallery-showcase,
.process-hero,
.process-list {
  max-width: 124rem;
}

.portfolio-feature,
.gallery-showcase,
.process-hero,
.process-list {
  margin: 0 2rem 2rem;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.portfolio-feature {
  padding: 2.2rem 2rem 2.8rem;
}

.section-cap {
  justify-content: space-between;
  color: rgba(42, 22, 13, 0.52);
}

.portfolio-feature h2,
.portfolio-alone h1 {
  text-align: center;
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.98;
  margin: 1.3rem 0 2.3rem;
}

.portfolio-feature h2 em,
.portfolio-alone h1 em {
  font-style: italic;
  font-weight: 500;
}

.feature-grid {
  align-items: start;
  gap: 2.4rem;
}

.feature-main {
  flex: 1.3;
  margin: 0;
}

.feature-main img,
.feature-side img,
.journal-cards img,
.editorial-gallery-grid img {
  object-fit: cover;
  transition: transform 0.9s ease, opacity 0.55s ease, filter 0.55s ease;
}

.feature-main img {
  aspect-ratio: 1 / 1.06;
}

.live-figure {
  overflow: hidden;
}

.live-figure:hover .live-main-image,
.feature-side:hover .live-side-image,
.journal-cards article:hover img,
.editorial-gallery-grid img:hover {
  transform: scale(1.04);
}

.feature-copy {
  flex: 0.78;
  padding-top: 0.4rem;
}

.feature-copy h3,
.feature-copy h2 {
  margin: 7.5rem 0 1rem;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
}

.feature-copy p,
.feature-side p,
.services-list p,
.section-cap span,
.section-label,
.back-link,
.contact-lines a,
.journal-cards h3,
.process-list p {
  color: var(--ink-soft);
}

.feature-side {
  flex: 0.5;
  padding-top: 10rem;
}

.feature-side img {
  aspect-ratio: 0.82;
  margin-bottom: 1.25rem;
}

.live-switcher {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.live-switcher-item {
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-dark);
  padding: 0.95rem 0 0;
  color: rgba(42, 22, 13, 0.55);
  cursor: pointer;
  font-family: "Bodoni Moda", serif;
  font-size: 1.4rem;
  transition: color 0.35s ease, transform 0.35s ease;
}

.live-switcher-item:hover,
.live-switcher-item.is-active {
  color: var(--ink);
  transform: translateX(8px);
}

.services-editorial {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  max-width: 92rem;
  margin: 4rem auto;
  padding: 0 2rem;
}

.services-copy h2,
.journal-head h2,
.contact-editorial h2,
.process-hero h1,
.gallery-showcase h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 1;
}

.services-list {
  border-top: 1px solid var(--line-dark);
}

.services-list article {
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.services-list span {
  flex: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.services-list h3,
.journal-cards h3 {
  margin: 0 0 0.8rem;
  font-family: "Bodoni Moda", serif;
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.05;
}

.journal-strip {
  max-width: 92rem;
  margin: 4rem auto;
  padding: 0 2rem;
}

.journal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.journal-cards article {
  background: rgba(255,255,255,0.55);
}

.journal-cards img {
  aspect-ratio: 1.35;
}

.journal-cards h3 {
  padding: 1.25rem 0.4rem 0;
}

.contact-editorial {
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 92rem;
  margin: 4rem auto 2.5rem;
  padding: 0 2rem;
}

.contact-lines {
  display: grid;
  gap: 0.8rem;
  text-align: right;
}

.contact-lines a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem 2rem;
  color: rgba(42, 22, 13, 0.74);
  font-size: 0.95rem;
}

.portfolio-page {
  padding: 1.5rem 0 3rem;
}

.subpage-header {
  align-items: center;
  justify-content: space-between;
  padding: 5.5rem 2rem 2rem;
}

.back-link {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-alone {
  margin-top: 0;
}

.process-hero,
.gallery-showcase {
  padding: 2rem;
}

.process-list {
  padding: 0 2rem 2rem;
}

.gallery-showcase h1,
.process-hero h1 {
  margin-top: 0.8rem;
}

.editorial-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.editorial-gallery-grid img {
  aspect-ratio: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.portfolio-feature.is-switching .live-main-image,
.portfolio-feature.is-switching .live-side-image,
.portfolio-feature.is-switching [data-portfolio-title],
.portfolio-feature.is-switching [data-portfolio-text],
.portfolio-feature.is-switching [data-portfolio-meta],
.portfolio-feature.is-switching [data-portfolio-accent] {
  opacity: 0.2;
  filter: blur(3px);
}

@keyframes heroBreath {
  from {
    transform: scale(1.03) translate3d(var(--mx), calc(var(--my) + var(--scroll-offset)), 0);
  }
  to {
    transform: scale(1.08) translate3d(var(--mx), calc(var(--my) + var(--scroll-offset) - 10px), 0);
  }
}

@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(26px, -18px, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-media {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .editorial-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero-copy {
    padding: 9rem 2rem 3rem;
  }

  .hero-copy h1 em {
    margin-left: 0;
  }

  .hero-text,
  .hero-note {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-grid,
  .services-editorial,
  .contact-editorial {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .feature-copy h3,
  .feature-copy h2,
  .feature-side {
    margin-top: 0;
    padding-top: 0;
  }

  .live-switcher-item:hover,
  .live-switcher-item.is-active {
    transform: none;
  }
}

@media (max-width: 720px) {
  .floating-header {
    padding: 1rem 1rem 0.9rem;
  }

  .floating-header::after {
    left: 1rem;
    right: 1rem;
  }

  .hero-editorial,
  .portfolio-feature,
  .gallery-showcase,
  .process-hero,
  .process-list {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .hero-editorial {
    min-height: 92vh;
  }

  .hero-copy {
    padding: 8rem 1.4rem 2rem;
  }

  .hero-copy h1 {
    margin-top: 5.5rem;
    font-size: clamp(3.7rem, 17vw, 5.1rem);
  }

  .hero-scroll-link {
    right: 1.4rem;
    bottom: 1.4rem;
  }

  .hero-note,
  .portfolio-feature,
  .gallery-showcase,
  .process-hero,
  .process-list,
  .intro-band,
  .services-editorial,
  .journal-strip,
  .contact-editorial,
  .subpage-header,
  .editorial-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portfolio-feature h2,
  .portfolio-alone h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .journal-cards,
  .editorial-gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-lines {
    text-align: left;
  }

  .editorial-footer,
  .subpage-header,
  .contact-editorial {
    flex-direction: column;
    align-items: flex-start;
  }
}
