@font-face {
  font-family: 'Unbounded';
  src: url('./assets/fonts/unbounded-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --black: #0b0b0b;
  --paper: #f6f6f3;
  --grey: #e4e4e0;
  --line: #bdbdb8;
  --subtle: #6b6b67;
  --display-font: 'Unbounded', Arial, sans-serif;
  --body-font: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #050505; color: var(--black); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: -4rem; left: 1rem; padding: .8rem 1rem; background: var(--paper); color: var(--black); }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(100% - 72px, 1520px); margin: 36px auto; }
.panel { background: var(--paper); margin-bottom: 24px; overflow: hidden; }
.intro-panel, .work-panel, .services-panel, .contact-panel { padding: 24px clamp(24px, 3.1vw, 48px) 30px; }

.site-header { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; border-bottom: 1px solid var(--black); }
.brand { font-family: var(--body-font); font-size: 27px; font-weight: 300; letter-spacing: .08em; line-height: 1; }
.site-header nav { display: flex; gap: clamp(16px, 2.6vw, 44px); padding-top: 4px; }
.site-header nav a, .header-note, .section-topline, .intro-kicker, .intro-footer, .work-card-info, .footer-line, .dialog-header { font-family: var(--body-font); font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: .09em; }
.site-header nav a:hover, .contact-row a:hover, .footer-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-note { justify-self: end; padding-top: 5px; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 29%); gap: clamp(24px, 4.2vw, 68px); min-height: 690px; padding-top: 30px; }
.intro-main { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.intro-kicker { display: flex; justify-content: space-between; padding-right: 10px; }
h1, h2, h3, p, figure { margin: 0; }
.intro-main h1, .display-title { font-family: var(--display-font); font-weight: 400; letter-spacing: .035em; text-transform: uppercase; }
.intro-main h1 { font-size: clamp(56px, 6.7vw, 108px); line-height: 1.06; margin-top: auto; white-space: nowrap; }
.intro-description { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr); gap: 26px; padding: 40px 0 25px; }
.intro-description p { font-size: clamp(15px, 1.24vw, 19px); line-height: 1.4; letter-spacing: 0; font-weight: 400; max-width: 380px; }
.intro-description .intro-lead { grid-column: 1 / -1; max-width: none; white-space: nowrap; font-family: var(--body-font); font-size: 3.5cqw; font-weight: 500; line-height: 1.3; letter-spacing: .01em; text-transform: none; }
.intro-actions { display: flex; gap: 20px; border-top: 1px solid var(--black); }
.action-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 170px; padding: 13px 0; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .06em; }
.arrow-icon { display: inline-block; width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -.12em; }
.action-link .arrow-icon { width: 17px; height: 17px; }
.action-link:hover { opacity: .6; }
.portrait-slot { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
.portrait-frame { position: relative; flex: 1; min-height: 560px; overflow: hidden; background: #d6d6d3; border: 1px solid var(--black); }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--black); padding-top: 10px; margin-top: 30px; }

.section-topline { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--black); padding-bottom: 14px; }
.display-title { font-size: clamp(60px, 8.2vw, 132px); line-height: 1.04; }
.work-panel .display-title { padding: clamp(35px, 4vw, 58px) 0 clamp(26px, 3vw, 42px); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; padding-bottom: clamp(20px, 3vw, 42px); }
.work-item { min-width: 0; }
.work-card { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.work-cover { display: block; position: relative; overflow: hidden; background: #b6b6b2; }
.work-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1); transition: filter .45s ease, transform .55s ease; }
.work-play { position: absolute; inset: auto 10px 10px auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: rgba(0,0,0,.32); }
.work-play::after { content: ''; display: block; width: 0; height: 0; margin-left: 2px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
.work-card:hover .work-cover img, .work-card:focus-visible .work-cover img { filter: grayscale(0); transform: scale(1.025); }
.work-card-info { display: flex; justify-content: space-between; align-items: start; gap: 8px; border-top: 1px solid var(--black); margin-top: 7px; padding-top: 7px; font-size: 10px; }
.work-card-title { max-width: 290px; line-height: 1.25; text-transform: uppercase; }
.work-card-index { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.work-card-index .arrow-icon { width: 11px; height: 11px; }
.work-placeholder-cover { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #080808; color: #dededc; }
.work-placeholder-cover::before { content: ''; position: absolute; inset: -5%; background: url('./assets/noise.svg') 0 0 / 180px 180px repeat; mix-blend-mode: screen; opacity: .16; animation: signal-grain 1.6s steps(2, end) infinite; }
.work-placeholder-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.035) 3px 4px, transparent 4px 7px); pointer-events: none; }
.work-placeholder-cover span { position: relative; z-index: 1; font-family: var(--body-font); font-size: clamp(8px, 1vw, 13px); font-weight: 500; letter-spacing: .19em; text-align: center; text-shadow: 0 0 7px rgba(255,255,255,.32); }
@keyframes signal-grain { 0% { transform: translate(0, 0); } 50% { transform: translate(-4px, 3px); } 100% { transform: translate(3px, -2px); } }

.project-dialog { position: fixed; width: min(100% - 32px, 1060px); max-height: min(92vh, 980px); padding: 18px; border: 1px solid var(--black); background: var(--paper); color: var(--black); overflow: auto; }
.project-dialog::backdrop { background: rgba(0,0,0,.78); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--black); padding-bottom: 12px; margin-bottom: 16px; }
.dialog-close { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; letter-spacing: .09em; }
.dialog-close:hover { opacity: .55; }
.project-dialog video { width: 100%; max-height: 60vh; aspect-ratio: 16 / 9; background: #111; }
.project-dialog.is-portrait { width: min(calc(100% - 20px), calc(34.875vh + 30px), 440px); padding: 14px; overflow-x: hidden; }
.project-dialog.is-portrait video { width: 100%; max-height: 62vh; aspect-ratio: 9 / 16; object-fit: cover; background: transparent; }
.project-dialog.is-portrait .dialog-header { gap: 6px; font-size: 8px; letter-spacing: .02em; }
.project-dialog.is-portrait .dialog-close { font-size: 8px; white-space: nowrap; letter-spacing: 0; }
.project-dialog.is-portrait .dialog-copy { display: block; margin-top: 12px; padding-top: 12px; }
.project-dialog.is-portrait .dialog-copy h2 { font-size: clamp(13px, 2vw, 19px); overflow-wrap: anywhere; }
.project-dialog.is-portrait .dialog-copy p { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
.dialog-copy { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; border-top: 1px solid var(--black); padding-top: 18px; margin-top: 16px; }
.dialog-copy h2 { font-family: var(--display-font); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; font-weight: 400; letter-spacing: .025em; text-transform: uppercase; }
.dialog-copy p { max-width: 560px; font-size: 15px; line-height: 1.45; font-weight: 400; }
body.modal-open { overflow: hidden; }

.services-panel .display-title { padding: clamp(65px, 7vw, 115px) 0 clamp(55px, 6vw, 95px); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.service { padding: 18px 28px 36px 0; min-height: 205px; }
.service + .service { padding-left: 25px; border-left: 1px solid var(--line); }
.service h3 { font-family: var(--display-font); font-size: clamp(24px, 2.4vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: .025em; margin-top: 18px; }
.service p { max-width: 330px; font-size: 15px; line-height: 1.4; font-weight: 400; margin-top: 14px; }

.contact-panel { margin-bottom: 0; }
.contact-panel .display-title { padding: clamp(65px, 7vw, 115px) 0 clamp(65px, 7vw, 115px); }
.contact-row { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--black); padding-top: 17px; }
.contact-row p { font-size: clamp(18px, 2vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.contact-row div { display: flex; gap: clamp(25px, 5vw, 90px); }
.contact-row a { font-family: var(--display-font); font-size: clamp(18px, 1.8vw, 27px); font-weight: 400; letter-spacing: .025em; }
.footer-line { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--black); padding-top: 12px; margin-top: 100px; }

@media (max-width: 1100px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) 32%; min-height: 610px; gap: 28px; }
  .intro-main h1 { font-size: clamp(50px, 6.3vw, 82px); }
  .portrait-frame { min-height: 490px; }
  .intro-description { grid-template-columns: 1fr; gap: 15px; padding-top: 34px; }
  .intro-description p { max-width: 550px; }
  .work-grid { gap: 14px 10px; }
}

@media (max-width: 740px) {
  .site-shell { width: min(100% - 20px, 600px); margin: 10px auto; }
  .panel { margin-bottom: 10px; }
  .intro-panel, .work-panel, .services-panel, .contact-panel { padding: 17px 16px 20px; }
  .site-header { grid-template-columns: auto 1fr; min-height: 50px; }
  .site-header nav { justify-self: end; gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a { font-size: 9px; }
  .site-header nav a:first-child, .site-header nav a:last-child, .header-note { display: none; }
  .intro-grid { display: flex; flex-direction: column; min-height: 0; padding-top: 22px; gap: 30px; }
  .intro-main h1 { font-size: clamp(36px, 9.1vw, 62px); line-height: 1.08; margin-top: 65px; }
  .intro-description { grid-template-columns: 1fr; gap: 14px; padding: 34px 0 15px; }
  .intro-description .intro-lead { font-size: 6.25cqw; line-height: 1.35; }
  .intro-description .intro-lead span { display: block; }
  .intro-description p:not(.intro-lead) { max-width: none; white-space: nowrap; font-size: 3.7cqw; }
  .intro-actions { justify-content: space-between; gap: 8px; }
  .action-link { min-width: 0; width: 50%; font-size: 9px; }
  .portrait-slot { width: 100%; }
  .portrait-frame { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .intro-footer { margin-top: 28px; font-size: 8px; }
  .display-title { font-size: clamp(35px, 9.6vw, 58px); }
  .work-panel .display-title { padding: 35px 0 28px; }
  .work-grid { gap: 12px 8px; padding-bottom: 20px; }
  .work-card-info { gap: 4px; margin-top: 5px; padding-top: 5px; font-size: 8px; letter-spacing: .02em; }
.work-play { inset: auto 6px 6px auto; width: 28px; height: 28px; }
  .work-placeholder-cover span { font-size: 8px; }
  .work-card.is-active .work-cover img { filter: grayscale(0); }
  .services-panel .display-title { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service + .service { min-height: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 0 30px; }
  .service h3 { font-size: clamp(24px, 7vw, 30px); margin-top: 8px; }
  .service p { font-size: 14px; }
  .contact-panel .display-title { padding: 70px 0; }
  .contact-row { display: block; }
  .contact-row p { font-size: 15px; line-height: 1.35; letter-spacing: .01em; text-transform: none; }
  .contact-row div { flex-wrap: wrap; gap: 20px; margin-top: 32px; }
  .contact-row a { font-size: 18px; }
  .footer-line { margin-top: 80px; flex-wrap: wrap; font-size: 8px; }
  .project-dialog { width: calc(100% - 20px); max-height: 94vh; padding: 12px; }
  .project-dialog video { max-height: 48vh; }
  .dialog-copy { grid-template-columns: 1fr; gap: 14px; }
  .dialog-copy h2 { font-size: 22px; }
  .dialog-copy p { font-size: 14px; }
}

@media (hover: none) {
  .work-card:hover .work-cover img { filter: grayscale(1); transform: none; }
  .work-card.is-active .work-cover img { filter: grayscale(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-cover img { transition: none; }
  .work-placeholder-cover::before { animation: none; }
}
