:root {
  --paper: #f2f0ea;
  --ink: #11110f;
  --red: #a70d09;
  --blue: #267b90;
  --line: rgba(17, 17, 15, .24);
  --rail: clamp(170px, 18vw, 250px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--paper); }
html.at-end, html.at-end body { background-color: var(--blue); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--ink); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { transform: none; }

.rail { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--rail); padding: 28px 24px; border-right: 0; display: flex; flex-direction: column; background: rgba(242,240,234,.94); backdrop-filter: blur(12px); }
.wordmark { display: block; width: max-content; }
.wordmark img { width: auto; height: 18px; }
.rail nav { display: flex; flex-direction: column; gap: .55rem; margin-top: 5rem; font: 1.1rem/1.2 var(--serif); }
.rail nav a { width: max-content; position: relative; }
.rail nav a::after, .text-link::after, .contact-link::after { content: ""; position: absolute; left: 0; bottom: -.2em; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.rail nav a:hover::after, .rail nav a:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after, .contact-link:hover::after, .contact-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.rail-bottom { margin-top: auto; font: 1.1rem/1.2 var(--serif); text-transform: none; letter-spacing: 0; }
.rail-bottom p { margin: 0 0 .35rem; }
.rail-bottom p:last-child { color: #8e8c86; }
.availability { display: block; margin-top: 1rem; }
.availability i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #27a35a; margin-right: .4rem; animation: pulse 2s infinite; }

.menu-toggle, .menu { display: none; }
main { margin-left: 0; }
#main { background: var(--paper); }
.hero { margin-left: 0; position: relative; overflow: hidden; border-bottom: 0; background: var(--paper); }
.hero-copy { position: relative; z-index: 8; width: min(760px, 60%); margin-left: clamp(250px, 19vw, 290px); padding-top: clamp(115px, 15vh, 190px); }
.eyebrow { margin: 0 0 2rem; font-size: .66rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em; }
h1, h2 { margin: 0; font-weight: 400; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 3.45vw, 4.25rem); line-height: 1.04; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; }
h1 em { color: var(--red); }
.text-link { display: inline-block; position: relative; margin-top: 3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.text-link span { margin-left: .5rem; }
.hero-copy h1 { font-family: var(--serif); letter-spacing: -.035em; }
.hero-intro { width: min(560px, 92%); margin: 1.9rem 0 0; color: #a09f9a; font: 1.2rem/1.42 var(--serif); }
.hero-actions { display: flex; gap: 2rem; margin-top: 2.1rem; }
.hero-actions a { position: relative; font: .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-actions a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.5rem; height: 3px; background: var(--ink); transform: rotate(-1deg); }
.hero-collage { position: relative; z-index: 4; margin: clamp(48px, 7vh, 90px) 1.5% calc(min(950px, 88vw) * -.18) clamp(110px, 8vw, 150px); height: min(950px, 88vw); }
.cutout { position: absolute; margin: 0; filter: drop-shadow(0 15px 10px rgba(17,17,15,.12)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.cutout:hover { z-index: 9; transform: rotate(0) translateY(-12px) scale(1.025); }
.cutout img { height: 100%; object-fit: cover; }
.cutout-dream { z-index: 5; width: 34%; height: 76%; left: 38%; top: 1%; clip-path: polygon(9% 2%, 88% 0, 100% 12%, 96% 91%, 78% 100%, 4% 94%, 0 16%); transform: rotate(1.5deg); background: #cfe762; padding: 12px; }
.cutout-eiffel { z-index: 4; width: 30%; height: 68%; left: 5%; top: 18%; clip-path: polygon(5% 0, 95% 5%, 100% 95%, 8% 100%, 0 12%); transform: rotate(-7deg); }
.cutout-fashion { z-index: 6; width: 28%; height: 62%; right: 1%; top: 23%; clip-path: polygon(9% 0, 92% 4%, 100% 86%, 79% 100%, 3% 94%, 0 13%); transform: rotate(5deg); }
.cutout-venice { z-index: 7; width: 26%; height: 52%; left: 25%; top: 43%; clip-path: polygon(3% 9%, 89% 0, 100% 93%, 12% 100%, 0 82%); transform: rotate(4deg); }
.collage-sticker { position: absolute; z-index: 8; display: grid; place-items: center; text-align: center; filter: drop-shadow(0 10px 8px rgba(17,17,15,.12)); }
.sticker-red { left: 32%; top: 24%; width: 145px; aspect-ratio: 1; padding: 1rem; border-radius: 46% 54% 42% 58%; background: var(--red); color: #fff; font: 700 1.2rem/.92 var(--sans); letter-spacing: -.06em; transform: rotate(-11deg); }
.sticker-blue { right: 18%; top: 9%; width: 105px; aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: #fff; font: 700 2.2rem var(--sans); transform: rotate(8deg); }
.sticker-note { right: 0; bottom: 11%; padding: 1rem 1.4rem; background: #f4df65; font: .62rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; transform: rotate(-4deg); }
.scribble { position: absolute; z-index: 8; left: 10%; top: 8%; color: var(--blue); font-size: 5rem; transform: rotate(-14deg); }
.hero-local { position: absolute; z-index: 10; left: 24px; bottom: 35px; display: flex; flex-direction: column; gap: .55rem; font: .68rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-local span { color: #aaa9a4; }
.hero-local strong { font-weight: 400; }
.hero-caption { position: absolute; z-index: 10; right: 4%; bottom: 35px; margin: 0; font: italic .76rem var(--serif); }

.work, .manifesto, .services { padding: clamp(70px, 10vw, 150px) clamp(24px, 6vw, 90px); padding-left: clamp(250px, 19vw, 290px); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.section-heading .eyebrow { grid-row: span 2; }
.section-heading h2, .manifesto h2, .contact h2 { font-size: clamp(3rem, 7.2vw, 8rem); line-height: .92; }
.lede { max-width: 48rem; font: 1.35rem/1.35 var(--serif); }
.work-filters { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 3rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .63rem; text-transform: uppercase; letter-spacing: .09em; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(75px, 10vw, 150px); margin-top: 5rem; }
.project-card { display: block; min-width: 0; }
.project-image, .project-copy { display: block; }
.project-card.project-wide { grid-column: 1 / -1; }
.project-card figure { position: relative; margin: 0 0 1rem; overflow: hidden; background: #deddd8; }
.project-card:not(.project-wide) figure, .project-card.project-wide figure { aspect-ratio: 16 / 9; }
.project-card img { height: 100%; object-fit: cover; object-position: top center; filter: saturate(.92); transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.project-image:hover img, .project-image:focus-visible img { transform: scale(1.025); filter: saturate(1.08); }
.project-card figure::after { content: "View project ↗"; position: absolute; right: 14px; bottom: 14px; padding: .55rem .75rem; background: var(--ink); color: #fff; font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.project-image:hover figure::after, .project-image:focus-visible figure::after { opacity: 1; transform: none; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; }
.project-card h3 { margin: 1rem 0 .55rem; font: 400 clamp(2.2rem, 4.5vw, 5rem)/.9 var(--serif); letter-spacing: -.05em; }
.project-card p { width: min(38rem, 90%); margin: 0; color: #66645f; font: 1rem/1.45 var(--serif); }
.project-copy h3, .project-copy p { transition: color .25s ease; }
.project-copy:hover h3, .project-copy:focus-visible h3 { color: var(--red); }
.case-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(20px, 4vw, 64px); margin-top: 5rem; align-items: end; }
.reference-collage { min-height: min(900px, 78vw); position: relative; overflow: hidden; background: #6d99ad; }
.reference-collage figure { margin: 0; }
.reference-main { position: absolute; inset: 0 18% 0 0; }
.reference-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.reference-main figcaption, .reference-inset figcaption { position: absolute; z-index: 3; left: 0; bottom: 0; padding: .7rem .8rem; background: var(--paper); color: var(--ink); font-size: .56rem; text-transform: uppercase; letter-spacing: .1em; }
.reference-inset { position: absolute; z-index: 2; width: 43%; right: 3%; top: 13%; border: 10px solid var(--paper); }
.reference-inset img { width: 100%; height: auto; }
.reference-inset figcaption { left: auto; right: 0; }
.collage-type { position: absolute; z-index: 1; right: -2%; bottom: -5%; color: rgba(255,255,255,.42); font-size: clamp(8rem, 19vw, 22rem); line-height: .75; letter-spacing: -.12em; font-weight: 700; pointer-events: none; }
.case-notes { padding-bottom: 1rem; }
.case-notes dl { margin: 0 0 3rem; }
.case-notes dl div { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .72rem; line-height: 1.35; }
.case-notes dt { text-transform: uppercase; letter-spacing: .08em; }
.case-notes dd { margin: 0; }
.case-notes > p { font: 1.1rem/1.5 var(--serif); }
.detail-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1px; }
.detail { aspect-ratio: 1.25; padding: clamp(20px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; }
.detail span { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.detail strong { font-size: clamp(1.6rem, 3vw, 3.6rem); line-height: .93; font-weight: 400; letter-spacing: -.04em; }
.detail.red { background: var(--red); color: #fff; }
.detail.blue { background: var(--blue); color: #fff; }
.detail.ink { background: var(--ink); color: var(--paper); }

.manifesto { background: var(--red); color: #fff; min-height: 88vh; display: flex; flex-direction: column; justify-content: space-between; }
.manifesto h2 { max-width: 12ch; }
.manifesto-copy { align-self: flex-end; width: min(680px, 64%); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 7rem; font: 1.15rem/1.45 var(--serif); }
.manifesto-copy p { margin: 0; }
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.55); font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; }

.section-heading.compact { grid-template-columns: .65fr 2fr; }
.service-list { list-style: none; padding: 0; margin: 6rem 0 0; }
.service-list li { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 2rem; align-items: baseline; padding: 2rem 0; border-top: 1px solid var(--ink); }
.service-list li:last-child { border-bottom: 1px solid var(--ink); }
.service-list span { font-size: .65rem; }
.service-list h3 { margin: 0; font: 400 clamp(2rem, 4vw, 4.8rem)/.95 var(--serif); letter-spacing: -.04em; }
.service-list p { max-width: 29rem; margin: 0; line-height: 1.45; }

.contact { padding: clamp(70px, 10vw, 150px) clamp(24px, 6vw, 90px) 24px; padding-left: clamp(250px, 19vw, 290px); display: flex; flex-direction: column; background: var(--blue); color: #fff; }
.contact h2 { max-width: 11ch; }
.contact-copy { max-width: 38rem; margin: 2rem 0 3rem; font: 1.15rem/1.45 var(--serif); }
.contact-link { position: relative; width: max-content; margin-top: .5rem; font: clamp(1.25rem, 2.5vw, 2.7rem)/1.2 var(--serif); }
.contact footer a { white-space: nowrap; }
.contact footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.45); margin-top: 2rem; padding-top: 1rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.notfound { min-height: 100svh; padding-bottom: clamp(70px, 10vw, 150px); }
.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { position: fixed; inset: 10px 12px auto; width: auto; height: 42px; padding: 0 3px 0 15px; border: 1px solid rgba(255,255,255,.6); border-radius: 21px; background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.34)); color: var(--ink); flex-direction: row; align-items: center; justify-content: space-between; box-shadow: 0 8px 28px rgba(17,17,15,.1), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(17,17,15,.05); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
  .rail nav, .rail-bottom { display: none; }
  .wordmark img { height: 12px; }
  .menu-toggle, .menu-close { width: 38px; height: 38px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .menu-toggle { display: grid; place-content: center; gap: 4px; }
  .menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu { display: flex; position: fixed; inset: 0; z-index: 80; flex-direction: column; align-items: center; padding: 96px 24px 48px; overflow-y: auto; background: var(--paper); text-align: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  .menu.open { opacity: 1; visibility: visible; }
  .menu-close { position: absolute; top: 13px; right: 16px; }
  .menu-close::before, .menu-close::after { content: ""; position: absolute; left: 9px; top: 18px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
  .menu-close::after { transform: rotate(-45deg); }
  .menu nav { display: grid; justify-items: center; transform: translateY(14px); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .menu.open nav { transform: none; }
  .menu a { color: #6b6964; transition: color .2s ease; }
  .menu a:hover, .menu a:focus-visible, .menu a[aria-current] { color: var(--ink); }
  .menu-primary { gap: 1.5rem; margin-top: auto; font: clamp(2.4rem, 11vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.03em; }
  .menu-secondary { gap: .95rem; margin: 3.2rem 0 auto; font: 1.25rem/1.2 var(--serif); }
  .menu-secondary a { color: #8e8c86; }
  body.menu-open { overflow: hidden; }
  main { margin-left: 0; }
  .hero { margin-left: 0; }
  .hero-copy { width: auto; margin: 0; padding: 140px 24px 0; }
  .hero-collage { margin: 56px -10% 30px 0; height: 620px; }
  .hero-local { left: 20px; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; }
  .section-heading .eyebrow { grid-row: auto; }
  .case-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.project-wide { grid-column: auto; }
  .project-card.project-wide figure, .project-card:not(.project-wide) figure { aspect-ratio: 16 / 9; }
  .reference-collage { min-height: 115vw; }
  .case-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .detail-strip { grid-template-columns: 1fr; }
  .detail { aspect-ratio: 2.4; }
  .manifesto-copy { width: 100%; }
  .process-line { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .service-list li { grid-template-columns: 40px 1fr; }
  .service-list p { grid-column: 2; }
}

@media (max-width: 560px) {
  .hero-copy { padding-top: 100px; }
  .hero-intro { margin-top: 1.4rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.8rem; gap: 1.3rem; }
  .hero-actions a { font-size: .72rem; }
  .hero-collage { margin: 44px -16% 30px 0; height: 510px; }
  .cutout-dream { width: 39%; left: 34%; }
  .cutout-eiffel { width: 34%; left: 2%; }
  .cutout-fashion { width: 31%; }
  .cutout-venice { width: 30%; left: 24%; }
  .sticker-red { width: 88px; font-size: .8rem; }
  .sticker-blue { width: 66px; font-size: 1.3rem; }
  .sticker-note { display: none; }
  .scribble { font-size: 3rem; }
  .hero-caption { display: none; }
  h1 { font-size: clamp(1.7rem, 8.2vw, 2.9rem); }
  .work, .manifesto, .services { padding-left: 20px; padding-right: 20px; }
  .contact { padding-left: 20px; }
  .case-notes, .manifesto-copy { grid-template-columns: 1fr; }
  .detail { aspect-ratio: 1.45; }
  .service-list li { gap: 1rem; }
  .contact-link { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
