:root {
  --bg: #f3eee4;
  --bg-soft: #ebe3d6;
  --panel: #fbf8f1;
  --panel-strong: #e8dfd0;
  --text: #171512;
  --muted: #625b51;
  --quiet: #8a8174;
  --line: rgba(23, 21, 18, 0.16);
  --line-strong: rgba(23, 21, 18, 0.34);
  --accent: #a65521;
  --accent-soft: rgba(166, 85, 33, 0.12);
  --green: #6d7f40;
  --blue: #557188;
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 84px 84px, 84px 84px, auto;
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(166, 85, 33, 0.09), transparent 38%),
    linear-gradient(300deg, rgba(85, 113, 136, 0.08), transparent 44%);
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, transparent 46%, var(--accent) 47% 53%, transparent 54%),
    linear-gradient(#f8f4ec, #f8f4ec);
  transform: rotate(12deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.section,
.section-grid,
.intro-band,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: clamp(64px, 9vw, 118px) 0 clamp(46px, 7vw, 88px);
}

.hero-copy {
  max-width: 780px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 7.8vw, 118px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 70px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffaf0;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, 0.045) 1px, transparent 1px),
    #faf7ef;
  background-size: 52px 52px, 52px 52px, auto;
}

.hero-visual canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.visual-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-caption span {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.intro-band {
  border-block: 1px solid var(--line);
  padding: clamp(34px, 5vw, 60px) 0;
}

.intro-band p {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(23px, 3vw, 40px);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading.wide {
  max-width: 920px;
}

.section-heading p,
.body-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.make-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.make-card,
.work-card,
.experiment-card,
.process-list li,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.86);
  box-shadow: 0 18px 48px rgba(56, 45, 32, 0.06);
}

.make-card {
  padding: 18px;
}

.make-card p,
.work-card p,
.experiment-card p,
.process-list p {
  color: var(--muted);
}

.card-diagram {
  position: relative;
  height: 170px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    #f7f2e8;
  background-size: 32px 32px, 32px 32px, auto;
}

.film-diagram::before,
.film-diagram::after,
.object-diagram::before,
.object-diagram::after,
.system-diagram::before,
.system-diagram::after {
  position: absolute;
  content: "";
}

.film-diagram::before {
  inset: 38px 22px;
  border-block: 2px solid var(--accent);
}

.film-diagram::after {
  inset: 56px 34px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 28px);
}

.object-diagram::before {
  width: 92px;
  height: 92px;
  left: 34px;
  top: 38px;
  border: 2px solid var(--green);
  transform: rotate(16deg);
}

.object-diagram::after {
  right: 36px;
  bottom: 34px;
  width: 90px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 -28px 0 var(--line-strong), 0 -56px 0 var(--line-strong);
}

.system-diagram::before {
  inset: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.system-diagram::after {
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: -72px -34px 0 var(--blue), 76px 34px 0 var(--green), 42px -58px 0 var(--text);
  transform: translate(-50%, -50%);
}

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

.work-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
}

.work-thumb {
  position: relative;
  min-height: 168px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(166, 85, 33, 0.16), transparent 48%),
    linear-gradient(90deg, rgba(23, 21, 18, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    #f8f4eb;
  background-size: auto, 34px 34px, 34px 34px, auto;
  overflow: hidden;
}

.work-thumb::before {
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line-strong);
  content: "";
}

.work-thumb::after {
  position: absolute;
  width: 52%;
  height: 52%;
  right: 14%;
  bottom: 12%;
  border: 2px solid var(--accent);
  background:
    linear-gradient(90deg, transparent 48%, var(--line-strong) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, var(--line-strong) 49% 51%, transparent 52%);
  content: "";
  transform: rotate(var(--angle, 0deg));
}

.work-image {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.work-thumb:has(.work-image)::before,
.work-thumb:has(.work-image)::after {
  opacity: 0;
}

.work-card:nth-child(2n) .work-thumb::after {
  border-radius: 999px;
}

.work-card:nth-child(3n) .work-thumb::after {
  width: 62%;
  height: 34%;
  right: 18%;
  bottom: 32%;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.type-label,
.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: auto 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.meta-list p {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.meta-list strong {
  color: var(--text);
}

.case-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.case-study {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
}

.case-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(48px, 9vw, 132px);
}

.case-subtitle {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
}

.case-question {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 30px);
}

.case-hero-media,
.case-gallery figure,
.video-grid figure {
  margin: 0;
}

.case-hero-media {
  border: 1px solid var(--line);
  background: var(--panel);
}

.case-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

figcaption {
  color: var(--quiet);
  font-size: 13px;
  padding-top: 10px;
}

.case-hero-media figcaption,
.case-gallery figcaption,
.video-grid figcaption {
  padding: 12px 14px 14px;
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: clamp(30px, 5vw, 76px);
  padding: clamp(48px, 7vw, 86px) 0;
}

.case-main-copy p {
  max-width: 780px;
  color: var(--text);
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.case-facts {
  display: grid;
  gap: 12px;
  align-self: start;
}

.case-facts p {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 12px;
}

.case-facts strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-pullquote {
  margin: 0;
  border-block: 1px solid var(--line);
  padding: clamp(34px, 5vw, 58px) 0;
}

.simulation-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  margin-bottom: clamp(44px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.78);
  padding: clamp(14px, 2.4vw, 24px);
}

.simulation-video-stack {
  display: grid;
  gap: 12px;
}

.simulation-feature figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.simulation-feature video {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: #0d0d0d;
  object-fit: cover;
}

.simulation-feature h3 {
  font-size: clamp(26px, 3vw, 42px);
}

.simulation-feature p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.42;
}

.case-pullquote p {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(44px, 7vw, 78px) 0;
}

.case-columns article,
.next-steps-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.72);
  padding: 20px;
}

.case-columns p,
.case-columns li,
.next-steps-panel li {
  color: var(--muted);
}

.case-columns ul,
.next-steps-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
}

.system-strip span {
  min-height: 98px;
  border-right: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 680;
  text-transform: lowercase;
}

.system-strip span:last-child {
  border-right: 0;
}

.media-section {
  padding-top: clamp(56px, 8vw, 96px);
}

.case-gallery,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-gallery {
  margin-bottom: 16px;
}

.case-gallery figure,
.video-grid figure {
  border: 1px solid var(--line);
  background: var(--panel);
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
  object-fit: cover;
}

.next-steps-panel {
  margin-top: clamp(38px, 6vw, 72px);
}

.experiments-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.experiment-card {
  min-height: 250px;
  padding: 18px;
}

.status-pill {
  margin-bottom: 26px;
  color: var(--green);
}

.approach {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 6vw, 88px);
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 20px;
}

.process-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.process-list h3 {
  margin-bottom: 6px;
}

.process-list p {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.body-copy p {
  max-width: 720px;
}

.about-section {
  padding-top: 0;
  border-top: 0;
}

.contact-section {
  padding: clamp(62px, 9vw, 112px) 0;
}

.contact-panel {
  padding: clamp(24px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(166, 85, 33, 0.1), transparent 48%),
    rgba(251, 248, 241, 0.94);
}

.contact-panel h2 {
  max-width: 970px;
}

.prompt-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 14px;
}

.placeholder-note {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .approach,
  .split-section,
  .case-hero,
  .case-body,
  .simulation-feature {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual canvas {
    min-height: 390px;
  }

  .make-grid,
  .work-grid,
  .experiment-grid,
  .case-columns,
  .case-gallery,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .system-strip {
    grid-template-columns: 1fr;
  }

  .system-strip span {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-strip span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 660px) {
  html {
    scroll-behavior: auto;
  }

  .section,
  .section-grid,
  .intro-band,
  .contact-section,
  .site-footer,
  .case-study {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .make-grid,
  .work-grid,
  .experiment-grid,
  .case-columns,
  .case-gallery,
  .video-grid,
  .prompt-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .visual-caption {
    grid-template-columns: 1fr;
  }
}

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