:root {
  --bg: #0B0C0E;
  --surface: #131417;
  --text: #EDEDEA;
  --soft: #D6D6D2;
  --muted: #B5B5B0;
  --idle: #9A9A95;
  --dim: #8A8A85;
  --line: #2A2C30;
  --blue: #1270E6;
  --blue-light: #4D97F5;
  --blue-pale: #7FB3F8;
  --ease: cubic-bezier(.16,.84,.24,1);
  --gutter: clamp(20px,4.4vw,56px);
  --display: 'Barlow Condensed', sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; background: var(--bg) }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Barlow', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip }
a { color: inherit; text-decoration: none }
a:hover { color: var(--blue-light) }
img { display: block }
button { font: inherit; color: inherit }
::selection { background: var(--blue); color: #fff }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 12px 16px; background: var(--blue); color: #fff; font-weight: 500 }
.skip:focus { top: 12px; color: #fff }

/* Type */
.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; margin: 0 }
.eyebrow { margin: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-light) }
.eyebrow--pale { color: var(--blue-pale) }
.mask { display: block; overflow: hidden; padding-bottom: .05em }
.mask > [data-line] { display: block }
.lead { margin: 0; font-size: clamp(19px,1.75vw,24px); line-height: 1.6; color: var(--soft); text-wrap: pretty }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); border-bottom: 1px solid transparent; transition: background .45s ease, border-color .45s ease, transform .6s var(--ease) }
.header.is-solid { background: rgba(11,12,14,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.08) }
.header.is-menu { background: var(--bg); border-bottom-color: transparent }
.header.is-hidden { transform: translateY(-100%) }
.logo, .logo:hover { display: flex; align-items: center; gap: 14px; color: var(--text) }
.mark { position: relative; width: 52px; aspect-ratio: 640/262; flex: none }
.mark > span { position: absolute; display: block }
.mark-blue { left: 0; top: 0; width: 20.5%; height: 100%; background: var(--blue); border-radius: 4px 0 0 4px }
.mark-a { left: 31.25%; top: 20.2%; width: 50%; height: 18.3%; background: #fff; transform-origin: right }
.mark-b { left: 31.25%; top: 60.3%; width: 50%; height: 19.8%; background: #fff; transform-origin: right }
.mark-r { right: 0; top: 0; width: 20.6%; height: 100%; background: #fff; border-radius: 0 4px 4px 0 }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .32em; white-space: nowrap }
.logo-text b { font-weight: inherit; color: var(--blue-light) }
.nav { display: flex; gap: 36px; white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .2em; text-transform: uppercase }
.btn-outline { display: flex; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; border: 1px solid rgba(237,237,234,.45); padding: 12px 20px; transition: background .3s ease, border-color .3s ease, color .3s ease }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff }
.burger { display: none; flex: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer }
.burger span { display: block; height: 2px; background: var(--text); transition: transform .4s var(--ease) }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg) }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg) }
.back-link { display: none; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; padding: 12px 0 }
@media (max-width: 1099px) {
  .nav, .header .btn-outline { display: none }
  .burger, .back-link { display: flex }
}
/* Small phones: tighten the wordmark so the menu button keeps its size */
@media (max-width: 420px) {
  .header { gap: 12px }
  .logo { gap: 10px }
  .logo-text { font-size: 14px; letter-spacing: .2em }
  .back-link { letter-spacing: .14em }
}
@media (max-width: 340px) { .logo-text { display: none } }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: none; flex-direction: column; justify-content: flex-end; gap: 48px; padding: 120px 24px 40px }
.menu.is-open { display: flex }
.menu nav { display: flex; flex-direction: column; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1.05; text-transform: uppercase }
.menu-foot { display: flex; flex-direction: column; gap: 10px; font-size: 18px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px }
.menu-foot div { display: flex; gap: 24px }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg) }
.hero--project { height: 88svh; min-height: 560px }
.hero-media { position: absolute; inset: 0; will-change: transform }
.hero-media img { width: 100%; height: 100%; object-fit: cover }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,12,14,.6) 0%,rgba(11,12,14,0) 26%), linear-gradient(0deg,rgba(11,12,14,.96) 0%,rgba(11,12,14,.6) 34%,rgba(11,12,14,0) 66%) }
.hero--project .hero-shade { background: linear-gradient(180deg,rgba(11,12,14,.6) 0%,rgba(11,12,14,0) 26%), linear-gradient(0deg,rgba(11,12,14,.96) 0%,rgba(11,12,14,.5) 36%,rgba(11,12,14,0) 66%) }
.hero-content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px,6vw,64px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px }
.hero--project .hero-content { bottom: clamp(32px,5vw,56px) }
.hero-intro { display: flex; flex-direction: column; gap: 22px; max-width: 900px }
.hero-title { font-size: clamp(58px,9.2vw,128px); line-height: .9; letter-spacing: .005em }
.hero--project .hero-title { font-size: clamp(56px,9vw,124px); letter-spacing: 0 }
.tag { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--blue); padding-left: 16px }
.tag-label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.tag-value { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .06em; text-transform: uppercase }
.tag--feature { padding-left: 18px; min-width: 220px }
.tag--feature .tag-value { font-size: 24px }
.tags { display: flex; flex-wrap: wrap; gap: 20px clamp(24px,4vw,48px) }

/* Sections */
.section { padding: clamp(96px,11vw,150px) var(--gutter) }
.section--flush-top { padding-top: 0 }
.section--alt { background: var(--surface) }
.split { display: flex; flex-wrap: wrap; gap: clamp(20px,6vw,80px) }
.split-label { flex: 5 1 220px }
.split-body { flex: 7 1 460px }
.stack { display: flex; flex-direction: column; gap: clamp(56px,7vw,96px) }
.section-head { display: flex; flex-direction: column; gap: 20px }
.section-title { font-size: clamp(34px,3.6vw,48px); letter-spacing: .04em }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px }
.section-head--spaced { margin-bottom: 32px }
.section-note { font-size: 15px; color: var(--dim) }
.rule { height: 1px; background: var(--line) }

/* Home: about */
.about { padding: clamp(96px,12vw,168px) var(--gutter); gap: clamp(24px,6vw,80px) }
.about .split-label { flex-basis: 240px }
.about .split-body { display: flex; flex-direction: column; gap: 32px }
.about h2 { font-size: clamp(36px,4.4vw,58px); line-height: 1.02; text-wrap: balance }
.about p { margin: 0; font-size: clamp(18px,1.6vw,21px); line-height: 1.6; color: var(--muted); max-width: 640px; text-wrap: pretty }

/* Home: selected works */
.work-section { padding: 0 var(--gutter) clamp(96px,12vw,168px); display: flex; flex-direction: column; gap: clamp(36px,4vw,56px) }
.works { --col-gap: clamp(20px,3vw,40px); display: flex; flex-wrap: wrap; gap: clamp(48px,5vw,72px) var(--col-gap); align-items: flex-start }
.work { flex: 1 1 100%; display: flex; flex-direction: column; gap: 18px }
/* Staggered 2x2 on wider screens: large/small, then small/large */
@media (min-width: 760px) {
  .work--lg { flex: 0 0 calc((100% - var(--col-gap)) * 7 / 12) }
  .work--sm { flex: 0 0 calc((100% - var(--col-gap)) * 5 / 12) }
  .work--drop { padding-top: clamp(0px,9vw,140px) }
  .work--drop-sm { padding-top: clamp(0px,6vw,96px) }
}
.media { overflow: hidden; background: var(--surface) }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease) }
.r-4-3 { aspect-ratio: 4/3 }
.r-4-5 { aspect-ratio: 4/5 }
.caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px }
.caption > div { display: flex; flex-direction: column; gap: 4px }
.caption-kicker, .caption-year { font-size: 14px; color: var(--dim) }
.caption-year { font-size: 15px }
.caption-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px,2.2vw,30px); text-transform: uppercase; letter-spacing: .04em }

/* Home: services */
.services { background: var(--surface); padding: clamp(96px,12vw,168px) var(--gutter); display: flex; flex-wrap: wrap; gap: clamp(40px,6vw,80px); align-items: flex-start }
.svc-aside { flex: 5 1 300px; display: flex; flex-direction: column; gap: 28px }
/* Sticky only while the two columns sit side by side; stacked on mobile it would sit under the scrolling list */
@media (min-width: 900px) { .svc-aside { position: sticky; top: 110px } }
.svc-aside h2 { font-size: clamp(36px,3.8vw,52px); line-height: 1 }
.svc-aside h2 .mask { padding-bottom: 0 }
.svc-images { position: relative; aspect-ratio: 5/4; overflow: hidden; background: var(--bg) }
.svc-set { position: absolute; inset: 0; visibility: hidden; transition: visibility 0s .7s }
.svc-set.is-active { visibility: visible; transition: none }
.svc-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 1.2s var(--ease) }
.svc-set.is-active img.is-on { opacity: 1; transform: scale(1) }
.svc-open { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in }
.svc-open:focus-visible { outline-offset: -4px }
.svc-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 4px; background: rgba(11,12,14,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .16em }
.svc-ctrl[hidden] { display: none }
.svc-count { min-width: 64px; text-align: center; color: var(--soft) }
.svc-step { width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; transition: background .3s ease }
.svc-step:hover { background: var(--blue) }
.svc-list { flex: 7 1 440px; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none }
.svc-row { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: baseline; gap: 8px 16px; padding: 28px 0; border-top: 1px solid var(--line); cursor: default }
.svc-row:focus-visible { outline-offset: -2px }
.svc-num { font-size: 14px; color: var(--dim); letter-spacing: .1em }
.svc-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px }
.svc-name { font-family: var(--display); font-weight: 600; font-size: clamp(26px,2.6vw,34px); text-transform: uppercase; letter-spacing: .04em; color: var(--idle); transition: color .4s ease, transform .5s var(--ease); margin: 0 }
.svc-desc { font-size: 17px; color: var(--muted) }
.svc-bar { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--blue); transition: width .7s var(--ease) }
.svc-row.is-active .svc-name { color: #fff; transform: translateX(8px) }
.svc-row.is-active .svc-bar { width: 100% }

/* Contact + footer */
.contact { padding: clamp(96px,11vw,150px) var(--gutter) 40px; display: flex; flex-direction: column; gap: clamp(72px,9vw,120px) }
.contact--home { padding-top: clamp(110px,14vw,190px); gap: clamp(80px,10vw,140px) }
.contact-main { display: flex; flex-direction: column; gap: 24px }
.contact--home .contact-main { gap: 28px }
.contact-cta { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(64px,10vw,140px); line-height: .88; text-transform: uppercase; transition: color .4s ease }
.contact--home .contact-cta { font-size: clamp(72px,13vw,180px) }
.contact-cta .mask { padding-bottom: .04em }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; font-size: clamp(18px,1.8vw,22px) }
.contact--home .contact-links { font-size: clamp(18px,1.8vw,24px) }
.contact-links a { color: var(--muted); transition: color .3s ease }
.contact-links a:hover { color: var(--blue-light) }
.contact-links .contact-email { color: var(--text); border-bottom: 1px solid var(--blue); padding-bottom: 4px }
.footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; font-size: 14px; color: var(--dim) }

/* Project: gallery */
.gallery { padding: 0 var(--gutter) clamp(96px,11vw,150px); display: flex; flex-wrap: wrap; gap: clamp(16px,2vw,24px) }
.shot { display: block; padding: 0; border: 0; overflow: hidden; background: var(--surface); cursor: zoom-in }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease) }
.shot--wide { flex: 1 1 100%; aspect-ratio: 16/9 }
.shot--half { flex: 1 1 calc(50% - 12px); aspect-ratio: 4/5 }
.before-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: clamp(12px,1.6vw,20px) }
.before-grid .shot { aspect-ratio: 3/4 }
.before-grid img { filter: grayscale(.85) brightness(.85); transition: filter .7s ease, transform 1s var(--ease) }

/* Project: before & after */
.ba { display: flex; flex-direction: column; gap: clamp(72px,9vw,128px) }
.ba-pair { display: flex; flex-direction: column; gap: 24px }
.ba-head { display: flex; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px }
.ba-num { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--blue-light) }
.ba-grid { display: flex; flex-wrap: wrap; gap: clamp(16px,2vw,24px) }
.ba-item { position: relative; flex: 1 1 380px; display: flex; flex-direction: column }
.ba-item .shot { aspect-ratio: 4/3; width: 100% }
.ba-item--before img { filter: grayscale(.85) brightness(.85); transition: filter .7s ease, transform 1s var(--ease) }
.ba-label { position: absolute; left: 0; top: 0; z-index: 1; padding: 10px 16px; background: rgba(11,12,14,.78); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); pointer-events: none }
.ba-item--after .ba-label { background: var(--blue); color: #fff }

.compare { --pos: 50%; position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0) }
.compare .ba-label--after { left: auto; right: 0 }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35) }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; letter-spacing: .1em; box-shadow: 0 6px 24px rgba(0,0,0,.4); transition: transform .4s var(--ease) }
.compare:active .compare-handle span, .compare-handle:focus-visible span { transform: scale(1.1) }
.compare-handle:focus-visible { outline: none }
.compare-handle:focus-visible span { outline: 2px solid #fff; outline-offset: 3px }
.compare-links { display: flex; justify-content: space-between; gap: 16px }
.text-btn { padding: 8px 0; border: 0; background: none; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); cursor: zoom-in; transition: color .3s ease }
.text-btn:hover { color: var(--blue-light) }
@media (max-width: 600px) { .compare { aspect-ratio: 4/3 } .compare-handle span { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 14px } }

/* Project: build steps */
.process { gap: clamp(48px,6vw,80px) }
.steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none }
.step { display: flex; flex-wrap: wrap; gap: 24px clamp(24px,4vw,56px); padding: clamp(28px,3vw,40px) 0; border-top: 1px solid var(--line); align-items: flex-start }
.step-text { flex: 4 1 260px; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px 12px; align-items: baseline }
.step-num { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--blue-light) }
.step-text > div { display: flex; flex-direction: column; gap: 10px }
.step-title { font-size: clamp(26px,2.4vw,34px); letter-spacing: .03em; line-height: 1.05 }
.step-desc { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted) }
.step .shot { flex: 7 1 380px; aspect-ratio: 3/2; background: var(--bg) }
.process-title { font-size: clamp(36px,4vw,56px); line-height: 1 }

/* Project: next */
.next, .next:hover { position: relative; display: block; height: clamp(360px,52vw,620px); overflow: hidden; color: var(--text) }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); opacity: .55; transition: transform 1.4s var(--ease), opacity .8s ease }
.next-shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(11,12,14,.9) 0%,rgba(11,12,14,.1) 60%); pointer-events: none }
.next-content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px,5vw,56px); display: flex; flex-direction: column; gap: 14px; pointer-events: none }
.next-title { display: block; font-size: clamp(52px,8vw,112px); line-height: .9 }

/* Hover effects only where a real pointer can hover, so taps on phones don't leave images stuck zoomed */
@media (hover: hover) {
  .work:hover .media img { transform: scale(1.05) }
  .shot:hover img { transform: scale(1.04) }
  .before-grid .shot:hover img, .ba-item--before .shot:hover img { filter: none }
  .next:hover img { transform: scale(1); opacity: .75 }
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,9,10,.96); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s ease }
.lb.is-open { display: flex }
.lb-backdrop { position: absolute; inset: 0; cursor: zoom-out }
.lb-img { position: relative; max-width: calc(100% - 160px); max-height: calc(100% - 140px); object-fit: contain; opacity: 0; transform: scale(.96); transition: transform .5s var(--ease), opacity .35s ease; touch-action: pan-y pinch-zoom }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(20px,4.4vw,40px); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); pointer-events: none }
.lb-close { pointer-events: auto; background: none; border: 0; color: var(--text); letter-spacing: inherit; cursor: pointer; padding: 10px }
.lb-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(237,237,234,.3); background: rgba(11,12,14,.6); color: var(--text); font-size: 22px; cursor: pointer; transition: background .3s ease, border-color .3s ease }
.lb-nav:hover { background: var(--blue); border-color: var(--blue) }
.lb-prev { left: clamp(8px,2vw,32px) }
.lb.is-single .lb-nav { display: none }
.lb-next { right: clamp(8px,2vw,32px) }
/* Phones: photo uses the full width, arrows move below it (swipe also works) */
@media (max-width: 700px) {
  .lb-img { max-width: 100%; max-height: calc(100% - 200px) }
  .lb-nav { top: auto; bottom: 32px; margin-top: 0 }
  .lb-prev { left: calc(50% - 72px) }
  .lb-next { right: calc(50% - 72px) }
}

/* 404 */
.notfound { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 140px var(--gutter) clamp(48px,8vw,96px) }
.notfound h1 { font-size: clamp(72px,13vw,180px); line-height: .88 }
.notfound p { margin: 0; font-size: clamp(18px,1.6vw,21px); line-height: 1.6; color: var(--muted); max-width: 560px }
.notfound .btn-outline { align-self: flex-start }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important }
}
