:root {
  --bg-primary: #f1efeb;
  --bg-secondary: #e8e5df;
  --text-primary: #111111;
  --text-secondary: #65615c;
  --line: rgba(17, 17, 17, .16);
  --footer-bg: #101010;
  --footer-text: #f1efeb;
  --gutter: clamp(32px, 3.4vw, 64px);
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-primary); }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--text-primary); outline-offset: 5px; }
.site-shell { overflow: clip; }
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 40;
  height: var(--header-h); padding: 28px var(--gutter) 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.primary-nav, .work-nav { display: flex; gap: clamp(28px, 3.3vw, 52px); font-size: 11px; font-weight: 500; }
.primary-nav a, .work-nav a, .site-footer a { transition: opacity .25s ease; }
.primary-nav a:hover, .work-nav a:hover, .site-footer a:hover { opacity: .55; }
.section { position: relative; }
.hero { min-height: 100svh; border-bottom: 1px solid var(--line); }
.hero-copy { position: absolute; left: var(--gutter); top: 35%; z-index: 2; }
h1, h2, p { margin: 0; }
.hero h1 { font-size: clamp(48px, 4.2vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.hero-copy p { margin-top: 30px; color: var(--text-primary); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.text-link span, .row-cta b { font-size: 15px; font-weight: 400; transition: transform .35s ease; }
.text-link:hover span, .row-cta:hover b { transform: translate3d(4px, -2px, 0); }
.hero-scroll { position: absolute; left: var(--gutter); top: 88svh; display: inline-flex; gap: 12px; align-items: center; font-size: 10px; }
.hero-scroll i { display: block; width: 7px; height: 7px; border: 1px solid var(--text-primary); border-radius: 50%; background: var(--text-primary); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.object-anchor { position: absolute; pointer-events: none; }
.hero-object-anchor { right: 32vw; top: 54%; width: 1px; height: 1px; }

.work { min-height: 54svh; padding: 0 var(--gutter) 3svh; background: var(--bg-primary); }
.work-rail { position: sticky; top: 0; z-index: 35; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); min-height: 74px; display: flex; align-items: center; justify-content: space-between; background: rgba(241,239,235,.96); border-bottom: 1px solid var(--line); }
.work-brand-lockup { display: flex; align-items: center; gap: 24px; min-width: 260px; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.header-object-anchor { position: relative; width: 44px; height: 30px; flex: 0 0 44px; }
.work-list { width: min(88vw, 1260px); margin: 18px auto 0; }
.work-row { position: relative; min-height: 104px; display: grid; grid-template-columns: 8% 34% 35% 23%; align-items: center; border-bottom: 1px solid var(--line); }
.row-number { color: var(--text-secondary); font-size: 12px; }
.row-title { font-size: clamp(32px, 3vw, 46px); line-height: 1; font-weight: 400; letter-spacing: -.035em; transition: transform .5s cubic-bezier(.2,.75,.25,1); }
.row-description, .row-cta { font-size: 11px; line-height: 1.25; }
.row-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.row-object-anchor { left: 0; top: 50%; width: 1px; height: 1px; }
.work-row:hover .row-title { transform: translate3d(10px, 0, 0); }
.work-row:hover .row-cta { transform: translate3d(5px, 0, 0); }
.about-transition-anchor { position: absolute; left: 50%; bottom: -2px; width: 1px; height: 1px; }

.about { min-height: 64svh; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-frame-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.about-frame-shadow { position: absolute; width: min(94vw, 1520px); height: auto; top: 64%; opacity: .45; filter: blur(1px); }
.about-frame { width: min(108vw, 1740px); height: auto; opacity: .95 !important; }
.about-content { position: relative; z-index: 2; width: min(720px, 52vw); display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; transform: translateY(10px); }
.eyebrow { display: block; margin-bottom: 24px; font-size: 10px; font-weight: 500; letter-spacing: .05em; }
.about h2 { font-size: clamp(30px, 3.15vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -.04em; }
.about-detail p { font-size: 13px; line-height: 1.35; }
.about-detail .text-link { margin-top: 32px; }

.ending { min-height: 100svh; display: flex; align-items: center; background: var(--bg-primary); overflow: hidden; }
.ending-copy { margin-left: clamp(9vw, 12vw, 180px); margin-top: -5svh; position: relative; z-index: 2; }
.ending h2 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.02; font-weight: 400; letter-spacing: -.04em; }
.ending-copy p { margin-top: 26px; font-size: 13px; }
.ending-object-anchor { right: 27vw; top: 52%; width: 1px; height: 1px; }
.fragments { position: absolute; z-index: 1; left: 26%; bottom: 7%; width: 59%; height: 27%; }
.fragments img { position: absolute; width: 26%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 15px rgba(17,17,17,.16)); }
.fragments img:nth-child(1) { left: 4%; bottom: 2%; transform: rotate(-12deg); }
.fragments img:nth-child(2) { left: 32%; bottom: 0; width: 19%; transform: rotate(8deg); }
.fragments img:nth-child(3) { right: 2%; bottom: 10%; width: 28%; transform: rotate(16deg); }
.site-footer { min-height: 78px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; background: var(--footer-bg); color: var(--footer-text); font-size: 10px; }
.site-footer > a { justify-self: center; }
.site-footer > div { justify-self: end; display: flex; gap: 38px; }

.master-object { position: fixed; z-index: 50; top: 0; left: 0; width: clamp(560px, 66vw, 1000px); aspect-ratio: 1344 / 1170; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0; }
.master-image, .master-shadow { position: absolute; inset: 0; width: 100%; height: auto; object-fit: contain; }
.master-image { z-index: 2; }
.master-shadow { z-index: 1; width: 73%; left: 14%; top: 75%; opacity: .62; transform: translateY(2%); }
.master-object.is-intro { transition: opacity 1.4s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 1199px) {
  :root { --header-h: 76px; }
  .hero-copy { top: 32%; }
  .hero h1 { font-size: clamp(46px, 6vw, 64px); }
  .work-row { grid-template-columns: 8% 31% 39% 22%; }
  .about-content { width: min(680px, 66vw); gap: 38px; }
}

@media (max-width: 767px) {
  :root { --gutter: 24px; --header-h: 68px; }
  body { font-size: 13px; }
  .site-header { height: var(--header-h); padding-top: 22px; }
  .brand { font-size: 14px; }
  .primary-nav { gap: 0; }
  .primary-nav a:not(:last-child) { display: none; }
  .primary-nav a:last-child::before { content: "MENU"; }
  .primary-nav a:last-child { font-size: 0; }
  .primary-nav a:last-child::before { font-size: 10px; }
  .hero { min-height: 100svh; display: flex; align-items: flex-start; }
  .hero-copy { position: relative; top: auto; left: auto; padding: 24vh var(--gutter) 0; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1; }
  .hero-copy p { margin-top: 24px; font-size: 12px; }
  .hero-scroll { left: var(--gutter); top: 88svh; }
  .hero-object-anchor { right: 50%; top: 74%; }
  .master-object { width: 112vw; }
  .work { min-height: 100svh; padding-bottom: 8vh; }
  .work-rail { min-height: 62px; }
  .work-brand-lockup { gap: 12px; min-width: auto; font-size: 12px; }
  .header-object-anchor { width: 32px; flex-basis: 32px; }
  .work-nav { display: none; }
  .work-list { width: 100%; margin-top: 12px; }
  .work-row { min-height: 0; padding: 30px 0 34px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto auto; gap: 13px 0; }
  .row-number { grid-row: 1 / 4; }
  .row-title { font-size: 32px; }
  .row-description, .row-cta { grid-column: 2; font-size: 11px; }
  .row-cta { justify-self: start; }
  .row-object-anchor { display: none; }
  .about { min-height: 108svh; }
  .about-frame { width: 196vw; max-width: none; }
  .about-frame-shadow { width: 165vw; top: 68%; }
  .about-content { width: calc(100% - 48px); display: block; }
  .about-lead { margin-bottom: 48px; }
  .about h2 { font-size: 31px; }
  .about-detail p { font-size: 12px; }
  .ending { min-height: 108svh; display: block; padding-top: 25vh; }
  .ending-copy { margin: 0 var(--gutter); }
  .ending h2 { font-size: 38px; }
  .ending-object-anchor { right: 50%; top: 70%; }
  .fragments { left: 7%; bottom: 7%; width: 86%; height: 25%; }
  .fragments img { filter: drop-shadow(0 12px 12px rgba(17,17,17,.16)); }
  .fragments img:nth-child(1) { width: 29%; }
  .fragments img:nth-child(2) { left: 34%; width: 22%; }
  .fragments img:nth-child(3) { width: 31%; }
  .site-footer { min-height: 120px; padding: 22px var(--gutter); grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-footer > a { justify-self: start; grid-column: 1 / -1; order: 3; }
  .site-footer > div { justify-self: end; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .master-object { transition: opacity .2s linear; }
}
