:root {
  --black: #000;
  --ink: #333;
  --muted: #666;
  --line: #e5e5e5;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--black);
  font-family: var(--sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.logo { font-family: "Inter", var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.05em; }
.roll { display: inline-block; height: 20px; overflow: hidden; line-height: 20px; font-size: 16px; }
.roll span { display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.roll:hover span { transform: translateY(-100%); }

/* ---------- Shared ---------- */
.serif { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.label { font-family: var(--serif); font-style: italic; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.label.dot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #000; flex: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.row { display: grid; grid-template-columns: 360px 1fr; gap: 0; align-items: start; }
.row > .col { max-width: 672px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.hero { padding: 120px 40px 60px; display: grid; grid-template-columns: 1fr 400px 120px; align-items: end; gap: 0; max-width: 1280px; margin: 0 auto; }
.hero h1 { font-weight: 400; font-size: 64px; line-height: 1.1; letter-spacing: -0.02em; position: relative; }
.hero .avatar { will-change: transform; width: 126px; height: 126px; border-radius: 50%; object-fit: cover; margin: 14px 0 0 434px; }
.hero .tagline { font-size: 14.4px; line-height: 1.4; color: var(--ink); max-width: 400px; align-self: center; }
.hero .scroll { font-size: 16px; color: var(--ink); align-self: center; justify-self: end; }

.services { padding-top: 60px; padding-bottom: 160px; }
.pills { display: flex; flex-wrap: wrap; gap: 14px; max-width: 480px; }
.pill { border: 1px solid #000; border-radius: 999px; padding: 10px 16px; font-size: 14.4px; transition: background .25s, color .25s; }
.pill:hover { background: #000; color: #fff; }

.portfolio { padding: 0 0 160px; }
.portfolio .label { margin: 0 0 40px 28px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px 20px; padding: 0 40px; max-width: 1200px; margin: 0 auto; }
.card { display: block; }
.card .thumb { aspect-ratio: 550 / 639; overflow: hidden; background: #f3f3f3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.04); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.card .meta h5 { font-weight: 400; font-size: 20px; }
.card .meta span { color: var(--ink); }

.about { padding-bottom: 160px; }
.about h3 { font-weight: 400; font-size: 36px; line-height: 1.4; margin-bottom: 48px; }
.about p { font-size: 20px; line-height: 1.4; color: var(--muted); margin-bottom: 24px; max-width: 560px; }

.cta { display: grid; grid-template-columns: 1fr 1fr; padding: 40px 40px 160px; max-width: 1280px; margin: 0 auto; }
.cta .small { font-size: 16px; line-height: 1.6; max-width: 320px; }
.cta .big { font-size: 64px; line-height: 1.6; color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #000; border-radius: 999px; padding: 6px 18px 6px 6px; margin-top: 24px; font-size: 16px; }
.btn .arrow { width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; transition: transform .3s; }
.btn:hover .arrow { transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 20px 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.footer-mail { font-size: 28.8px; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: 16px; color: var(--ink); }
.socials { display: flex; justify-content: space-between; }
.socials a { font-family: var(--serif); font-style: italic; color: var(--ink); }
.socials a:hover { color: #000; text-decoration: underline; }

/* ---------- Project pages ---------- */
.p-hero { padding-top: 140px; padding-bottom: 60px; }
.p-hero h1 { font-weight: 400; font-size: 64px; line-height: 1.1; }
.p-hero .sub { font-size: 24px; line-height: 1.4; color: var(--ink); margin-top: 16px; max-width: 840px; }
.p-hero .label a:hover { text-decoration: underline; }
.p-hero .row { align-items: end; }
.services .row, .about .row { align-items: start; }
.cover { padding: 0 20px; max-width: 1280px; margin: 0 auto 160px; }
.cover img { width: 100%; }

.block { padding-bottom: 120px; }
.block h3 { font-weight: 400; font-size: 36px; line-height: 1.4; margin-bottom: 36px; }
.block p { font-size: 20px; line-height: 1.4; color: var(--ink); max-width: 560px; margin-bottom: 24px; white-space: pre-line; }
.block p.muted { color: var(--muted); }
.block p.sub-h { color: #000; margin-bottom: 4px; }
.block .label { padding-top: 10px; }
.block img, .block video { margin-top: 24px; width: 100%; max-width: 600px; }
.full { padding: 0 40px 120px; max-width: 1280px; margin: 0 auto; }
.full img { width: 100%; }
.full .cap { text-align: center; margin-bottom: 16px; }
.full h3 { font-weight: 400; font-size: 36px; text-align: center; }
.full p.center { text-align: center; font-size: 20px; color: var(--ink); margin: 8px 0 24px; }
.bleed img { width: 100%; }
.bleed { padding-bottom: 0; }
.video { display: flex; justify-content: center; padding: 0 0 160px; }
.video video { width: 316px; border-radius: 0; }

.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 130px; max-width: 950px; margin: 0 auto; padding: 0 40px 120px; }
.posters figure:nth-child(even) { margin-top: 290px; }
.posters .num { font-family: var(--serif); font-style: italic; color: var(--ink); margin-bottom: 16px; }

.next { border-top: 1px solid var(--line); padding: 80px 40px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.next .big { font-size: 48px; line-height: 1.1; }
.next a:hover .big { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Contact ---------- */
.c-hero { padding: 120px 40px 80px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: end; }
.c-hero h1 { font-weight: 400; font-size: 64px; line-height: 1.1; max-width: 840px; }
.c-body { display: grid; grid-template-columns: 1fr 480px; gap: 40px; padding: 40px 40px 120px; max-width: 1280px; margin: 0 auto; }
.c-body .info p { font-size: 20px; color: var(--ink); margin-top: 24px; max-width: 360px; line-height: 1.4; }
.c-body .info a.mail { display: inline-block; font-size: 28.8px; margin-top: 16px; }
.c-body .info a.mail:hover { text-decoration: underline; text-underline-offset: 4px; }
form label { display: block; font-family: "Inter", var(--sans); font-size: 12px; font-weight: 500; color: #888; margin: 0 0 8px; letter-spacing: 0; }
form input, form textarea {
  width: 100%; font: 15px "Inter", var(--sans); padding: 11px 12px; margin-bottom: 20px;
  background: #f4f4f4; border: 1px solid #eee; border-radius: 10px; outline: none; transition: border-color .2s;
}
form input:focus, form textarea:focus { border-color: #000; }
form textarea { height: 100px; resize: vertical; }
form button { width: 100%; padding: 12px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 600 14px "Inter", var(--sans); cursor: pointer; transition: opacity .2s; }
form button:hover { opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .hero { grid-template-columns: 1fr; padding: 80px 16px 40px; gap: 24px; }
  .hero h1, .p-hero h1, .c-hero h1 { font-size: 42px; }
  .hero .avatar { margin: 16px 0 16px; width: 96px; height: 96px; }
  .hero .scroll { justify-self: start; }
  .services { padding-top: 40px; padding-bottom: 80px; }
  .portfolio .label { margin-left: 16px; }
  .grid { grid-template-columns: 1fr; gap: 48px; padding: 0 16px; }
  .about h3 { font-size: 28px; margin-bottom: 24px; }
  .about p, .block p { font-size: 18px; }
  .cta { grid-template-columns: 1fr; padding: 40px 16px 100px; gap: 24px; }
  .cta .big { font-size: 44px; line-height: 1.2; }
  .p-hero { padding-top: 80px; padding-bottom: 40px; }
  .p-hero .sub { font-size: 20px; }
  .cover { padding: 0 16px; margin-bottom: 80px; }
  .block { padding-bottom: 80px; }
  .about { padding-bottom: 100px; }
  .block h3, .full h3 { font-size: 28px; }
  .full { padding: 0 16px 80px; }
  .posters { grid-template-columns: 1fr; gap: 40px; padding: 0 16px 80px; }
  .posters figure:nth-child(even) { margin-top: 0; }
  .next { padding: 48px 16px; }
  .next .big { font-size: 32px; }
  .c-hero { padding: 80px 16px 40px; flex-direction: column; align-items: start; gap: 16px; }
  .c-body { grid-template-columns: 1fr; padding: 24px 16px 80px; }
  .footer-mail { font-size: 22px; }
  .socials { gap: 16px; }
}
