:root {
  --bg: #f3ede2;
  --bg-strong: #e7ddcf;
  --surface: rgba(255, 252, 246, 0.72);
  --surface-strong: #fffaf2;
  --text: #1c140f;
  --muted: rgba(28, 20, 15, 0.68);
  --line: rgba(28, 20, 15, 0.1);
  --accent: #b6522f;
  --accent-dark: #8c3517;
  --shadow: 0 20px 60px rgba(63, 39, 24, 0.12);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --shell: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  font-family: "Manrope", system-ui, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(28, 20, 15, 0.045) 0.6px, transparent 0.6px);
  background-size: 12px 12px;
  opacity: 0.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 0;
}

.header-shell,
.section-shell {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(63, 39, 24, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: #fff6ee;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--text);
  background: rgba(28, 20, 15, 0.06);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-strong);
  color: var(--text);
}

.mobile-nav {
  display: none;
}

.section {
  padding: 72px 0;
}

.hero-section {
  padding-top: 56px;
}

.hero-layout,
.about-grid,
.manual-layout {
  display: grid;
  gap: 24px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.about-copy,
.manual-panels,
.project-card,
.contact-card,
.carousel {
  padding: clamp(22px, 3vw, 34px);
}

.eyebrow,
.section-kicker,
.section-index,
.video-type,
.project-type,
.hero-card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-copy h1,
.section-heading h2,
.about-copy h3,
.video-body h3,
.project-copy h3,
.manual-panel h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.92;
}

.hero-lead,
.section-intro,
.about-copy p,
.video-body p,
.project-copy p,
.manual-panel li,
.contact-card span {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions,
.link-row,
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.link-row a,
.video-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 600;
}

.button-dark {
  background: var(--text);
  color: #fff6ee;
}

.button-light,
.link-row a,
.video-body a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(160deg, rgba(182, 82, 47, 0.14), rgba(255, 252, 246, 0.72) 40%),
    rgba(255, 252, 246, 0.72);
}

.role-chip,
.manual-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.role-chip:hover,
.role-chip.is-active,
.manual-tab:hover,
.manual-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(182, 82, 47, 0.35);
  background: rgba(182, 82, 47, 0.12);
}

.hero-role-output {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.section-intro {
  margin: 0 0 24px 82px;
  max-width: 52rem;
}

.about-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.about-portrait {
  overflow: hidden;
  min-height: 100%;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.about-copy h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 360ms ease;
}

.video-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.video-thumb,
.project-gallery img {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.video-thumb {
  background: #0f0d0b;
  aspect-ratio: 16 / 9;
}

.video-thumb-short {
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.video-thumb img,
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-body {
  display: grid;
  gap: 14px;
}

.video-body h3 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 0.96;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

.manual-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.manual-tabs {
  display: grid;
  gap: 10px;
}

.manual-tab {
  text-align: left;
}

.manual-panels {
  min-height: 320px;
}

.manual-panel {
  display: grid;
  gap: 10px;
}

.manual-panel ul {
  margin: 0;
  padding-left: 20px;
}

.project-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

.project-card {
  display: grid;
  gap: 22px;
}

.project-copy {
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.project-gallery {
  display: grid;
  gap: 14px;
}

.project-gallery.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery img {
  aspect-ratio: 4 / 3;
}

.graphics-gallery img {
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 10px;
}

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

.contact-card {
  text-decoration: none;
  display: grid;
  gap: 8px;
}

.contact-card strong {
  font-size: 1.15rem;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--text);
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(63, 39, 24, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav {
    width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
    margin: 10px auto 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 16px 40px rgba(63, 39, 24, 0.08);
    grid-template-columns: 1fr;
    gap: 4px;
    display: none;
  }

  .mobile-nav.open {
    display: grid;
  }

  .hero-layout,
  .about-grid,
  .video-card,
  .manual-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .carousel-arrow {
    display: none;
  }

  .section-intro {
    margin-left: 0;
  }

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

  .project-gallery.three-up,
  .project-gallery.two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .header-shell {
    padding: 12px 14px;
  }

  .hero-copy,
  .hero-card,
  .about-copy,
  .manual-panels,
  .project-card,
  .contact-card,
  .carousel {
    padding: 20px;
  }

  .hero-role-output {
    font-size: 1.9rem;
  }
}
