:root {
  --bg: #f8f8f5;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6e7068;
  --line: rgba(21, 21, 21, 0.14);
  --soft: #eff3ea;
  --accent: #1f2c1f;
  --shadow: 0 18px 50px rgba(16, 22, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Montserrat, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(248, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 400;
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid currentColor;
}

.nav-toggle {
  background: var(--ink);
  border: 0;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-weight: 400;
  min-height: 44px;
  padding: 10px 18px;
}

.hero,
.page-hero {
  min-height: calc(100vh - 62px);
  padding: clamp(38px, 6vw, 76px) clamp(18px, 5vw, 64px);
}

.hero {
  align-items: start;
  display: grid;
  overflow: hidden;
  position: relative;
}

.hero-content {
  max-width: 980px;
  position: relative;
  padding-top: clamp(32px, 7vh, 86px);
  z-index: 2;
}

.hero-visual {
  bottom: -34px;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  max-width: min(56vw, 860px);
  opacity: 1;
  pointer-events: none;
  position: absolute;
  right: clamp(-24px, 2vw, 48px);
  width: 54vw;
  z-index: 1;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.hero-visual::before {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(248, 248, 245, 0.58) 16%, rgba(248, 248, 245, 0) 42%);
}

.hero-visual::after {
  background:
    linear-gradient(180deg, rgba(248, 248, 245, 0) 54%, var(--bg) 100%),
    rgba(0, 0, 0, 0.08);
  mix-blend-mode: multiply;
}

.hero-visual img {
  height: auto;
  width: 100%;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 6.2rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 980px;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.8rem);
  line-height: 1;
}

p {
  color: var(--muted);
}

.hero p:not(.eyebrow),
.page-hero p,
.contact-copy p {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 690px;
}

.scroll-story {
  height: 460vh;
  position: relative;
}

.story-stage {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  min-height: calc(100vh - 62px);
  padding: clamp(28px, 5vw, 64px);
  position: sticky;
  top: 62px;
}

.story-copy {
  max-width: 520px;
}

.story-copy span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-top: 24px;
}

.story-images {
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 160px);
  min-height: 460px;
  position: relative;
}

.story-card {
  border-radius: 8px;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translateY(34px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms ease;
}

.story-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-card img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  width: 100%;
}

.story-card span {
  background: rgba(248, 248, 245, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  bottom: 18px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  left: 18px;
  padding: 10px 14px;
  position: absolute;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.model-section {
  background: var(--paper);
  border-block: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
}

.model-grid,
.experience-grid,
.service-list {
  display: grid;
  gap: 16px;
}

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

.model-grid article,
.experience-card,
.service-list div,
.social-panel a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.model-grid article {
  background: var(--soft);
}

.model-grid span,
.experience-card span,
.service-list span,
.social-panel span {
  color: var(--ink);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.portfolio-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
}

.portfolio-strip img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.process-table {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.service-list {
  margin-top: 28px;
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  min-height: calc(100vh - 62px);
  padding: clamp(38px, 6vw, 76px) clamp(18px, 5vw, 64px);
}

.social-panel {
  display: grid;
  gap: 14px;
}

.social-panel a {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-panel a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}

.footer-credit {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
}

.footer-credit a {
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-weight: 400;
}

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

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

@media (max-width: 900px) {
  .model-section,
  .contact-layout,
  .story-stage {
    grid-template-columns: 1fr;
  }

  .scroll-story {
    height: 430vh;
  }

  .story-stage {
    align-content: center;
    min-height: calc(100svh - 62px);
  }

  .story-images {
    aspect-ratio: 16 / 10;
    max-height: 42svh;
    min-height: 230px;
    position: relative;
  }

  .story-card {
    opacity: 0;
    position: absolute;
    transform: translateY(20px) scale(0.98);
  }

  .story-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .hero-visual {
    bottom: -18px;
    max-width: 680px;
    opacity: 0.18;
    right: -160px;
    width: 92vw;
  }

  .model-grid,
  .experience-grid,
  .portfolio-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .site-nav {
    align-items: stretch;
    display: none;
    flex-direction: column;
    width: 100%;
  }

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

  .site-nav a {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
  }

  .model-grid,
  .experience-grid,
  .portfolio-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    bottom: -8px;
    opacity: 0.12;
    right: -220px;
    width: 128vw;
  }
}
