*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --page: #FFFFFF;
  --raised: #F3F5F9;
  --ink: #101623;
  --ink-2: #4B5565;
  --ink-3: #6B7487;
  --line: rgba(16, 22, 35, 0.1);
  --blue: #1D3FAE;
  --live: #16A34A;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
html[data-available="false"] .avail { display: none !important; }
html[data-available="true"] .not-avail { display: none !important; }

body { background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.spec { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--ink-3); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top-name { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--blue); }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--ink-2); transition: color 150ms var(--ease); }
.top-nav a:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.top-name, .status { white-space: nowrap; }
.top-nav a.status { color: var(--ink); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* HERO */
.hero { padding: 96px 0 80px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 112px; line-height: 104px; letter-spacing: -0.02em; max-width: 10em; }
.hero h1 span { color: var(--blue); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 48px; }
.hero-sub { font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #17338F; }
.btn-secondary { background: var(--raised); border-color: var(--line); }
.btn-secondary:hover { background: #E9EDF4; }

.sec { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-label { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.sec-label h2 { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.sec-label p { font-size: 15px; color: var(--ink-3); }

/* WORK INDEX */
.index { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 48px; letter-spacing: -0.01em; transition: color 150ms var(--ease), transform 300ms var(--ease); }
.row p { grid-column: 1; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.row .spec { grid-row: 1; grid-column: 2; }
.row img { display: none; }
.row:hover h3, .row.on h3 { color: var(--blue); transform: translateX(8px); }
.preview { position: sticky; top: 32px; }
.preview-img { aspect-ratio: 808 / 632; border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 200ms var(--ease); }
a.preview-img { display: block; cursor: pointer; transition: box-shadow 150ms var(--ease); }
a.preview-img:hover { box-shadow: 0 0 0 2px var(--blue); }
.preview-cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* BANNER REEL */
.reel-outer { overflow-x: auto; padding: 0 40px 24px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.reel { display: flex; gap: 24px; align-items: flex-end; width: max-content; margin: 0 auto; }
.slot { flex: none; scroll-snap-align: center; }
.slot-frame { position: relative; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.slot-inner { position: relative; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform-origin: 0 0; }
.slot-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.slot iframe { position: relative; display: block; border: 0; }
.slot-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); white-space: nowrap; }
.slot-cap span:first-child { overflow: hidden; text-overflow: ellipsis; }

/* ABOUT */
.lead { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 64px; }
.lead img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top; }
.lead p { font-family: var(--serif); font-size: 40px; line-height: 48px; letter-spacing: -0.01em; max-width: 24em; }
.cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; }
.cols h3 { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-3); margin: 32px 0 8px; }
.cols > div > h3:first-child { margin-top: 0; }
.cols p { font-size: 15px; line-height: 24px; }
.cols p + p { margin-top: 4px; }
.cols b { font-weight: 500; }
.cols .cred + .cred { margin-top: 12px; }
.cols .by { display: block; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.job { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.job .spec { padding-top: 4px; }
.job h4 { font-size: 16px; line-height: 24px; font-weight: 500; }
.job em { display: block; font-style: normal; font-size: 15px; color: var(--ink-2); }
.job ul { list-style: none; margin-top: 8px; }
.job li { position: relative; padding-left: 16px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* CONTACT */
.contact { margin: 0 0 40px; padding: 80px 64px; border-radius: 20px; background: var(--blue); color: #fff; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: 88px; line-height: 84px; letter-spacing: -0.02em; max-width: 12em; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 48px; }
.contact .btn { background: #fff; color: var(--blue); }
.contact .btn:hover { background: #E8EDFB; }
.contact-row a:not(.btn) { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 16px; transition: color 150ms var(--ease); }
.contact-row a:not(.btn):hover { color: #fff; }
.foot { padding: 0 0 40px; font-size: 14px; color: var(--ink-3); }

@media (max-width: 1000px) {
  .hero h1 { font-size: 72px; line-height: 70px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row img { display: block; width: 100%; aspect-ratio: 808 / 632; object-fit: cover; border-radius: 12px; margin-bottom: 12px; grid-row: 1; }
  .row .spec { grid-row: auto; grid-column: 1; }
  .row:hover h3, .row.on h3 { transform: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .lead p { font-size: 28px; line-height: 36px; }
  .contact h2 { font-size: 56px; line-height: 56px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .reel-outer { padding: 0 20px 16px; }
  .top { height: 56px; }
  .top-nav { gap: 16px; }
  .top-nav a:not(.keep):not(.status) { display: none; }
  html[data-available="true"] .top-nav a.keep { display: none; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 48px; line-height: 48px; }
  .hero-sub { font-size: 17px; line-height: 26px; }
  .actions { flex-wrap: wrap; }
  .sec { padding: 56px 0; }
  .row h3 { font-size: 32px; line-height: 36px; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lead img { width: 64px; height: 64px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact { padding: 48px 24px; border-radius: 16px; }
  .contact h2 { font-size: 40px; line-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* SHOWREEL */
.video { border-radius: 16px; overflow: hidden; background: #0B0F18; box-shadow: 0 0 0 1px var(--line); }
.video video { width: 100%; display: block; }

/* CASE STUDY PAGE */
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 150ms var(--ease); }
.back:hover { color: var(--blue); }
.back svg { width: 16px; height: 16px; }
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 40px 0 56px; }
.p-head h1 { font-family: var(--serif); font-weight: 400; font-size: 104px; line-height: 96px; letter-spacing: -0.02em; }
.p-meta { text-align: right; font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 20rem; padding-bottom: 12px; }
.p-meta .spec { display: block; margin-bottom: 4px; }
.p-note { margin: -24px 0 32px; padding: 12px 16px; border-radius: 10px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 40rem; }
.media { display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }
.media img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.m-cols { columns: 3; column-gap: 24px; }
.m-cols img { margin-bottom: 24px; break-inside: avoid; }
.m-cols.two { columns: 2; }
.m-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-vid { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.m-vid.wide { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
.m-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 80px; }
.p-foot a { text-decoration: none; }
.p-ext { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); transition: color 150ms var(--ease); }
.p-ext:hover { color: var(--blue); }
.p-ext svg { width: 16px; height: 16px; }
.next { display: block; padding: 48px 0 64px; border-top: 1px solid var(--line); text-decoration: none; }
.next span { display: block; font-size: 15px; color: var(--ink-3); margin-bottom: 8px; }
.next b { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 72px; letter-spacing: -0.02em; transition: color 150ms var(--ease); }
.next:hover b { color: var(--blue); }

@media (max-width: 1000px) {
  .p-head { grid-template-columns: minmax(0, 1fr); padding: 32px 0 40px; }
  .p-head h1 { font-size: 64px; line-height: 62px; }
  .p-meta { text-align: left; padding-bottom: 0; }
  .m-cols { columns: 2; }
  .m-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next b { font-size: 48px; line-height: 50px; }
}
@media (max-width: 600px) {
  .p-head h1 { font-size: 44px; line-height: 44px; }
  .media { gap: 16px; padding-bottom: 56px; }
  .m-cols, .m-cols.two { columns: 1; }
  .m-cols img { margin-bottom: 16px; }
  .m-vids { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .p-foot { flex-direction: column; align-items: flex-start; padding-bottom: 56px; }
  .next b { font-size: 36px; line-height: 40px; }
}
