:root {
  --ink: #11110f;
  --paper: #f4f2ed;
  --white: #fff;
  --muted: #6d6a64;
  --line: rgba(17, 17, 15, .18);
  --pad: clamp(22px, 5vw, 76px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 74px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.site-header.scrolled { background: rgba(244, 242, 237, .94); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.wordmark { width: 42px; font-size: 20px; font-weight: 700; letter-spacing: -.08em; }
.desktop-nav { display: flex; gap: 34px; font-size: 13px; }
.desktop-nav a, .header-cta { position: relative; }
.desktop-nav a::after, .header-cta::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.desktop-nav a:hover::after, .header-cta:hover::after { right: 0; }
.header-cta { justify-self: end; font-size: 13px; }
.header-cta span { margin-left: 8px; }

.section-pad { padding: clamp(92px, 12vw, 170px) var(--pad); }
.section-kicker { margin: 0 0 38px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  background: #0c0c0b;
  color: var(--white);
  overflow: hidden;
}
.hero-copy { z-index: 2; align-self: end; padding: 145px var(--pad) 90px; }
.eyebrow { margin: 0 0 34px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(82px, 10vw, 168px); line-height: .75; letter-spacing: -.085em; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 58px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border: 1px solid currentColor; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; transition: background .3s, color .3s; }
.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hero .button-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.button:hover { background: transparent; color: currentColor; }
.hero .button:hover { background: transparent; color: var(--white); }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-visual { position: relative; margin: 0; height: 100svh; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,11,.46), transparent 42%), linear-gradient(0deg, rgba(12,12,11,.2), transparent 44%); }
.hero-visual img { object-position: center 48%; filter: saturate(.78) contrast(1.03); transform: scale(1.02); }
.hero-index { position: absolute; z-index: 3; left: var(--pad); top: 94px; font-size: 10px; letter-spacing: .14em; opacity: .72; }

.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 10vw; align-items: start; }
.manifesto h2 { margin: 0; max-width: 880px; font-size: clamp(54px, 7.2vw, 118px); line-height: .92; letter-spacing: -.07em; font-weight: 500; }
.manifesto h2 em { font-family: Georgia, serif; font-weight: 400; }
.manifesto-copy { padding-top: 18px; }
.manifesto-copy p { margin: 0; font-size: 19px; line-height: 1.55; letter-spacing: -.02em; }
.manifesto-copy .manifesto-note { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: .08em; }

.services { background: var(--ink); color: var(--white); }
.section-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin: 0; font-size: clamp(50px, 6.6vw, 104px); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
.section-head > p { max-width: 310px; margin: 0; font-size: 15px; line-height: 1.5; color: #b8b5ae; }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.service-card {
  grid-column: span 4;
  position: relative;
  height: 540px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #282824;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; height: 500px; }
.service-card img { transition: transform .8s var(--ease), filter .6s ease; filter: grayscale(30%); }
.service-card:hover img { transform: scale(1.045); filter: grayscale(0); }
.service-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.72)); }
.service-num { position: absolute; top: 22px; left: 24px; font-size: 10px; letter-spacing: .16em; }
.service-title { position: absolute; left: 24px; bottom: 28px; max-width: 84%; font-size: clamp(25px, 2.4vw, 42px); line-height: .95; letter-spacing: -.045em; }
.service-more { position: absolute; right: 22px; top: 22px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.service-card:hover .service-more { opacity: 1; transform: translateY(0); }

.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.quality-image { height: min(76vw, 850px); max-height: 850px; }
.quality-image img { object-position: center; filter: grayscale(100%); }
.quality-copy h2 { margin: 0; font-size: clamp(45px, 5.2vw, 82px); line-height: .95; letter-spacing: -.06em; font-weight: 500; }
.quality-copy > p { max-width: 540px; margin: 42px 0 54px; font-size: 18px; line-height: 1.55; }
.quality-copy ul { margin: 0; padding: 0; list-style: none; }
.quality-copy li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.quality-copy li:last-child { border-bottom: 1px solid var(--line); }
.quality-copy li span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }

.portfolio { background: #ddd8cf; }
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.carousel-nav button { width: 48px; height: 48px; border: 1px solid rgba(17,17,15,.4); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.carousel-nav button:hover { background: var(--ink); color: var(--white); }
.carousel-count { margin-right: 16px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.carousel-count b { color: var(--ink); font-weight: 500; }
.portfolio-carousel { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); overflow: hidden; }
.carousel-track { display: flex; gap: 14px; padding: 0 var(--pad) 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 clamp(290px, 29vw, 430px); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #b8b2a8; scroll-snap-align: start; }
.carousel-slide img { transition: transform .8s var(--ease); }
.carousel-slide:hover img { transform: scale(1.035); }
.portfolio-link { display: inline-flex; gap: 12px; margin-top: 38px; padding-bottom: 7px; border-bottom: 1px solid; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.process { background: var(--paper); }
.process > h2 { margin: 0 0 78px; font-size: clamp(50px, 7vw, 106px); line-height: .9; letter-spacing: -.065em; font-weight: 500; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.process-num { font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.process-list li > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.process h3 { margin: 0; font-size: 27px; letter-spacing: -.04em; font-weight: 500; }
.process-list p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.55; color: #4c4944; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; background: var(--ink); color: var(--white); }
.about-image { height: 760px; }
.about-image img { filter: grayscale(100%); object-position: center 35%; }
.about-copy h2 { margin: 0; font-size: clamp(60px, 7vw, 108px); line-height: .86; letter-spacing: -.07em; font-weight: 500; }
.about-role { margin: 18px 0 48px; color: #aaa79f; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.about-copy > p:not(.section-kicker):not(.about-role) { max-width: 570px; margin-bottom: 48px; font-size: 19px; line-height: 1.55; color: #d9d6d0; }
.about blockquote { max-width: 560px; margin: 0 0 52px; padding: 24px 0; border-top: 1px solid #44433f; border-bottom: 1px solid #44433f; font: italic 24px/1.35 Georgia, serif; }

.contact { text-align: left; }
.contact .section-kicker { margin-bottom: 34px; }
.contact h2 { margin: 0; font-size: clamp(52px, 7.6vw, 118px); line-height: .9; letter-spacing: -.07em; font-weight: 500; }
.contact-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.contact-meta > * { min-height: 160px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 22px; padding: 22px 24px; border-right: 1px solid var(--line); }
.contact-meta > *:last-child { border-right: 0; }
.contact-meta span { grid-column: 1; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-meta b { grid-column: 1; align-self: end; font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.04em; }
.contact-meta i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 22px; font-style: normal; }

.footer { display: flex; justify-content: space-between; padding: 22px var(--pad); border-top: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); animation: fade-in .3s ease both; }
.modal-panel { position: relative; width: min(640px, 92vw); height: 100%; padding: 68px clamp(28px, 5vw, 72px); overflow: auto; background: var(--paper); animation: panel-in .55s var(--ease) both; outline: none; }
.modal-close { position: absolute; right: 24px; top: 20px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 34px; font-weight: 300; cursor: pointer; }
.modal-index { margin: 0 0 44px; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.modal h2 { margin: 0; max-width: 480px; font-size: clamp(48px, 6vw, 76px); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
.modal-summary { margin: 38px 0 30px; max-width: 490px; font-size: 18px; line-height: 1.45; }
.modal-list { margin: 0; padding: 0; list-style: none; }
.modal-list li { padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.modal-list li::before { content: "—"; margin-right: 12px; }
.modal-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--ink); }
.modal-bottom div { display: grid; gap: 7px; }
.modal-bottom span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.modal-bottom strong { font-size: 27px; font-weight: 500; letter-spacing: -.04em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes panel-in { from { transform: translateX(100%); } }

@media (max-width: 900px) {
  .site-header { height: 62px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .header-cta { font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 62px; }
  .hero-copy { grid-row: 2; padding: 42px var(--pad) 54px; }
  .hero h1 { font-size: clamp(74px, 24vw, 112px); line-height: .8; }
  .hero-visual { grid-row: 1; height: 64svh; min-height: 470px; }
  .hero-visual::after { background: linear-gradient(0deg, rgba(12,12,11,.5), transparent 55%); }
  .hero-index { top: 82px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 50px; }
  .manifesto h2 { font-size: clamp(50px, 14vw, 76px); }
  .manifesto-copy { max-width: 620px; padding-top: 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .section-head h2 { font-size: clamp(48px, 13vw, 74px); }
  .service-card, .service-card:nth-child(2), .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; height: 460px; }
  .service-card:last-child { grid-column: span 12; }
  .quality, .about { grid-template-columns: 1fr; gap: 64px; }
  .quality-image, .about-image { height: min(115vw, 760px); }
  .about-image { order: 2; }
  .about-copy { order: 1; }
  .carousel-slide { flex-basis: clamp(270px, 43vw, 380px); }
  .process-list li { grid-template-columns: 70px 1fr; }
  .process-list li > div { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .section-pad { padding-top: 92px; padding-bottom: 92px; }
  .wordmark { font-size: 18px; }
  .header-cta span { margin-left: 4px; }
  .hero-visual { height: 58svh; min-height: 430px; }
  .hero-visual img { object-position: center 48%; }
  .hero-copy { padding-top: 36px; }
  .eyebrow { margin-bottom: 24px; }
  .hero h1 { font-size: 23vw; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { width: max-content; }
  .manifesto-copy p { font-size: 17px; }
  .service-grid { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; touch-action: pan-y; margin: 0; padding: 0; }
  .service-card, .service-card:nth-child(2), .service-card:nth-child(4), .service-card:nth-child(5), .service-card:last-child { grid-column: 1 / -1; width: 100%; height: 460px; scroll-snap-align: none; }
  .service-more { opacity: 1; transform: none; }
  .service-title { font-size: 30px; }
  .quality-copy h2 { font-size: 13vw; }
  .quality-copy > p { font-size: 17px; margin: 32px 0 42px; }
  .portfolio-head { gap: 30px; }
  .carousel-nav { width: 100%; justify-content: space-between; }
  .carousel-count { margin-right: auto; }
  .carousel-slide { flex-basis: 82vw; }
  .process > h2 { font-size: 13vw; margin-bottom: 48px; }
  .process-list li { grid-template-columns: 44px 1fr; gap: 12px; padding: 25px 0; }
  .process h3 { font-size: 23px; }
  .about-copy h2 { font-size: 17vw; }
  .about-copy > p:not(.section-kicker):not(.about-role) { font-size: 17px; }
  .contact h2 { font-size: 13vw; }
  .contact-meta { grid-template-columns: 1fr; margin-top: 48px; }
  .contact-meta > * { min-height: 126px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-meta > *:last-child { border-bottom: 0; }
  .footer { gap: 20px; }
  .modal { align-items: flex-end; }
  .modal-panel { width: 100%; height: min(88svh, 760px); padding: 52px 22px 30px; border-radius: 18px 18px 0 0; animation-name: sheet-in; }
  .modal h2 { font-size: 13vw; }
  .modal-summary { margin-top: 28px; font-size: 16px; }
  .modal-bottom { align-items: stretch; flex-direction: column; }
  .modal-bottom .button { width: 100%; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

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