/* ==========================================================
   8Bit Enterprise — "Premium" (high-performance agency)
   Minimal grotesk, two-tone headlines, deep maroon accent,
   pixel dot-matrix hero. No libraries.
   ========================================================== */
:root {
  --bg: #f3f3f1;
  --paper: #ffffff;
  --grey: #e6e6e3;
  --ink: #131313;
  --mute: #8b8b88;
  --maroon: #5a1a22;
  --maroon-2: #7a2430;
  --dark: #121212;
  --f: "Inter Tight", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --r: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--maroon); color: #fff; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.h2 { font-weight: 500; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -0.035em; max-width: 900px; }
.mute { color: var(--mute); }
.dark .mute { color: #6f6f6c; }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.kicker--light { color: rgba(255,255,255,.7); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 100px; font-weight: 500; font-size: 15px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .3s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--maroon { background: var(--maroon); color: #fff; }
.btn--maroon:hover { background: var(--maroon-2); }
.btn--glass { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.18); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--xs { height: 30px; padding: 0 14px; font-size: 12px; }

.sec { padding: clamp(80px, 9vw, 130px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.dark { max-width: none; background: var(--dark); color: #fff; }
.dark > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.head-row__side { max-width: 320px; display: grid; gap: 16px; justify-items: start; }
.head-row__side p { color: var(--mute); font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 12px; border-radius: 24px; overflow: hidden; isolation: isolate; min-height: calc(100svh - 24px); display: flex; flex-direction: column; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: blur(6px) saturate(1.1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,20,.55) 0%, rgba(10,10,20,.15) 60%, rgba(10,10,20,0) 100%), linear-gradient(0deg, rgba(10,10,20,.35), transparent 40%); }
.hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }

.nav { display: flex; align-items: center; gap: 20px; padding: 26px clamp(20px, 4vw, 56px); }
.logo { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; margin-right: auto; }
.nav__pill { display: flex; gap: 4px; padding: 5px; border-radius: 100px; background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.nav__pill a { padding: 8px 16px; border-radius: 100px; font-size: 14.5px; transition: background .2s; }
.nav__pill a:hover { background: rgba(255,255,255,.18); }
.nav__cta { height: 44px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 100px; background: var(--ink); font-size: 14.5px; transition: background .2s; }
.nav__cta:hover { background: var(--maroon); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu a { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .nav { position: fixed; z-index: 50; top: 12px; left: 12px; right: 12px; }

.hero__copy { margin-top: auto; padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 7vh, 80px); max-width: 900px; }
.hero__title { font-weight: 500; font-size: clamp(42px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.045em; }
.ln { display: block; overflow: hidden; padding-bottom: .05em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.is-ready .ln > span { transform: none; }
.hero__lede { max-width: 470px; margin-top: 18px; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.faces { display: flex; }
.faces img, .faces i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -9px; }
.faces img:first-child { margin-left: 0; }
.faces i { display: grid; place-items: center; background: var(--maroon); font-style: normal; font-size: 14px; color: #fff; }
.since { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(30px, 6vh, 60px); display: flex; gap: 10px; align-items: end; padding: 6px; background: #fff; color: var(--ink); border-radius: 6px; transition: transform .4s var(--ease); }
.since:hover { transform: translateY(-4px); }
.since span { padding: 4px 6px; }
.since b { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 14px; letter-spacing: .04em; }
.since small { font-size: 12px; }
.since img { width: 120px; height: 130px; object-fit: cover; border-radius: 3px; }

/* added hero elements: rotating badge, info block, 3D blobs */
.hero .nav, .hero__copy, .since, .hero__meta { position: relative; z-index: 2; }
.since { position: absolute; }
.hero__3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.ln:last-child { overflow: visible; }
.badge { position: relative; display: inline-grid; place-items: center; width: .95em; height: .95em; margin-left: .08em; vertical-align: middle; border-radius: 50%; background: #141414; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.badge:hover { transform: scale(1.08); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 12s linear infinite; }
.badge__ring text { font-size: 10.5px; letter-spacing: .12em; fill: #fff; font-family: var(--f); }
.badge__arrow { font-size: .32em; transition: transform .35s var(--ease); }
.badge:hover .badge__arrow { transform: translateX(4px); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__meta { position: absolute; right: clamp(20px, 4vw, 56px); top: clamp(110px, 16vh, 150px); display: grid; grid-template-columns: auto auto; gap: 16px 34px; font-size: 14px; color: #fff; }
.hero__meta .wide { grid-column: 1 / -1; }
.hero__meta dt { font-weight: 600; letter-spacing: .01em; }
.hero__meta dd { opacity: .82; }

/* ---------- Intro ---------- */
.intro__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-top: 40px; }
.intro__row p { color: var(--mute); max-width: 360px; font-size: 17px; }
.intro__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.12)); transition: transform 1.2s var(--ease); }
.intro__img.in img { --s: 1; }

/* ---------- Services (dark) ---------- */
.services { position: relative; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 100px); }
.services__left { display: grid; align-content: start; gap: 22px; }
.services__left p { color: rgba(255,255,255,.65); max-width: 320px; font-size: 15px; }
.services__left .btn { justify-self: start; }
.services__thumb { width: 220px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.services__thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-list { list-style: none; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 31; }
.svc-list a { mix-blend-mode: difference; }
.svc-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.svc-list a { display: flex; align-items: baseline; gap: 22px; padding: 22px 0; font-size: clamp(28px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: rgba(255,255,255,.45); transition: color .3s, padding .45s var(--ease); }
.svc-list span { font-size: 13px; letter-spacing: 0; color: rgba(255,255,255,.4); }
.svc-list li:hover a, .svc-list li.on a { color: #fff; padding-left: 14px; }
.svc-preview { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.svc-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.proj { position: relative; display: block; }
.proj__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--grey); }
.proj--wide .proj__img { aspect-ratio: 16 / 11; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.05); }
.proj__tags { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.proj__tags span { padding: 7px 13px; border-radius: 100px; background: rgba(19,19,19,.82); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); }
.proj__tags span:last-child { background: var(--maroon); }

/* ---------- Why (bento) ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.1fr; gap: 12px; margin-top: 44px; min-height: 420px; }
.b { border-radius: var(--r); overflow: hidden; }
.b--img { position: relative; margin: 0; }
.b--img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.b--img figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12.5px; }
.b--stack { display: grid; gap: 12px; }
.b--card { background: var(--paper); padding: 18px; display: grid; align-content: start; gap: 8px; box-shadow: inset 0 0 0 1px var(--grey); }
.b--card h3 { font-weight: 600; font-size: 16px; }
.b--card p { color: var(--mute); font-size: 13.5px; }
.b--card .btn { justify-self: start; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tools span { font-size: 12px; padding: 5px 10px; border-radius: 100px; background: var(--bg); }
.b--grey { background: var(--grey); padding: 18px; display: flex; flex-direction: column; }
.big { font-weight: 500; font-size: clamp(40px, 4vw, 60px); letter-spacing: -0.05em; line-height: 1; }
.b--grey > p { font-size: 13.5px; margin-top: 4px; }
.bars { flex: 1; display: flex; align-items: end; gap: 3px; margin-top: 20px; min-height: 120px; }
.bars i { flex: 1; background: var(--ink); border-radius: 1px; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); transition-delay: calc(var(--n) * 18ms); }
.in .bars i { transform: none; }
.years { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--mute); }
.b--split { display: grid; grid-template-rows: auto 1fr; gap: 12px; overflow: visible; }
.b--split > div { border-radius: var(--r); }
.quote { padding: 16px 18px; display: grid; align-content: start; gap: 8px; }
.stars { letter-spacing: 3px; font-size: 12px; }
.quote p { font-size: 13.5px; }
.quote small { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); }
.quote small img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ---------- Testimonials (dark) ---------- */
.arrows { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.arrow:hover { background: #fff; color: var(--ink); }
.t-row { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.t-score { background: #1d1d1d; border-radius: var(--r); padding: 24px; display: grid; align-content: space-between; gap: 20px; }
.t-score b { font-size: 46px; font-weight: 500; letter-spacing: -0.04em; }
.t-score p { color: rgba(255,255,255,.65); font-size: 14px; }
.t-score .faces img, .t-score .faces i { border-color: #1d1d1d; }
.t-viewport { overflow: hidden; }
.t-track { display: flex; gap: 16px; transition: transform .7s var(--ease); }
.vid { position: relative; flex: 0 0 calc(50% - 8px); margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vid:hover img { transform: scale(1.04); }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); }
.play { position: absolute; left: 50%; top: 42%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 0; background: var(--maroon); color: #fff; font-size: 15px; padding-left: 3px; cursor: pointer; transition: transform .3s var(--ease); }
.play:hover { transform: scale(1.1); }
.vid figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; font-size: 15px; }
.vid figcaption small { display: block; color: rgba(255,255,255,.65); font-size: 12.5px; margin-top: 4px; }

/* ---------- Performance ---------- */
.perf__row { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(24px, 5vw, 70px); align-items: end; }
.perf b { display: block; font-weight: 500; font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.06em; line-height: 1; }
.perf small { color: var(--mute); font-size: 13px; }
.perf__stack { position: relative; justify-self: end; width: 220px; height: 170px; }
.perf__stack img { position: absolute; width: 150px; height: 170px; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 30px -18px rgba(0,0,0,.4); transition: transform .5s var(--ease); }
.perf__stack img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.perf__stack img:nth-child(2) { left: 34px; transform: rotate(-3deg); }
.perf__stack img:nth-child(3) { left: 70px; transform: rotate(6deg); }
.perf__stack:hover img:nth-child(1) { transform: rotate(-16deg) translateX(-20px); }
.perf__stack:hover img:nth-child(3) { transform: rotate(12deg) translateX(20px); }

/* ---------- News ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { display: grid; gap: 12px; }
.post__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.post p { color: var(--mute); font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; background: var(--maroon); color: #fff; border-radius: 24px; padding: clamp(30px, 5vw, 64px); }
.contact__card .mute { color: rgba(255,255,255,.55); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form input { height: 52px; padding: 0 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; outline: none; transition: border-color .2s, background .2s; }
.form input::placeholder { color: rgba(255,255,255,.6); }
.form input:focus { border-color: #fff; background: rgba(255,255,255,.14); }
.form .wide { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form__ok { grid-column: 1 / -1; min-height: 1em; font-size: 14px; }

/* ---------- Footer ---------- */
.foot { background: var(--dark); color: #fff; padding: 60px var(--gutter) 24px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: 1312px; margin: 0 auto; }
.foot__grid p { color: rgba(255,255,255,.55); margin-top: 8px; max-width: 280px; font-size: 14px; }
.foot__grid small { display: block; color: rgba(255,255,255,.45); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.foot__grid a { display: block; font-size: 14.5px; margin-bottom: 6px; }
.foot__grid a:hover { color: #d98a95; }
.foot__word { font-weight: 500; font-size: 10.5vw; letter-spacing: -0.06em; line-height: .9; white-space: nowrap; text-align: center; margin: 60px 0 20px; color: #1f1f1f; }
.foot__bar { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); max-width: 1312px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__pill, .nav__cta { display: none; }
  .burger { display: block; }
  .since { display: none; }
  .hero__meta { display: none; }
  .services { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b--img { aspect-ratio: 4 / 5; }
  .t-row { grid-template-columns: 1fr; }
  .perf__row { grid-template-columns: repeat(3, 1fr); }
  .perf__stack { display: none; }
  .contact__card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { margin: 8px; border-radius: 18px; min-height: calc(100svh - 16px); }
  .intro__row, .projects, .posts { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .vid { flex-basis: 85%; }
  .perf__row { grid-template-columns: 1fr; gap: 18px; }
  .form { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ln > span { transform: none; }
}

/* ==========================================================
   Apple polish layer
   Calmer palette, system type with size-specific tracking,
   instant press feedback, critically damped easing, glass
   chrome that materializes, accessibility preferences.
   ========================================================== */
:root {
  --bg: #f5f5f7;
  --grey: #ececee;
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --hair: rgba(0,0,0,.08);
  --f: -apple-system, "SF Pro Display", "SF Pro Text", "Inter Tight", system-ui, sans-serif; /* SF on Apple devices, Inter Tight elsewhere */
  --ease: cubic-bezier(.22,1,.36,1);          /* no overshoot: settles like a critically damped spring */
  --r: 22px;
  --lift: 0 1px 2px rgba(0,0,0,.04), 0 14px 34px -20px rgba(0,0,0,.22);
}
body { font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; font-optical-sizing: auto; text-rendering: optimizeLegibility; }

/* type: tighter as it grows, slightly open when small */
.hero__title { font-weight: 600; letter-spacing: -0.042em; line-height: 1.03; }
.h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.07; }
.big, .perf b, .t-score b { font-weight: 600; letter-spacing: -0.045em; }
.svc-list a { font-weight: 600; letter-spacing: -0.035em; }
.post h3, .case__meta b { font-weight: 600; letter-spacing: -0.02em; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--maroon); }
.kicker--light { color: rgba(255,255,255,.6); }
.proj__tags span, .tools span, .years, .foot__grid small, .hero__meta, .post p, .perf small { letter-spacing: .005em; }
.hero__lede, .intro__row p, .head-row__side p, .services__left p { line-height: 1.5; }

/* press feedback lives on pointer-down and is instant; no hover jumps */
.btn:hover { transform: none; }
.btn, .nav__cta, .topbar__cta, .arrow, .play, .badge, .since, .burger, .nav__pill a, .topbar__links a {
  transition: transform .35s var(--ease), background-color .2s, color .2s, box-shadow .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .nav__cta:active, .topbar__cta:active, .arrow:active, .burger:active, .nav__pill a:active, .topbar__links a:active { transform: scale(.96); transition-duration: 90ms; }
.play:active, .badge:active { transform: scale(.92); transition-duration: 90ms; }
.btn--maroon { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 24px -12px rgba(90,26,34,.8); }
.btn--glass, .nav__pill { background: rgba(255,255,255,.14); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.2); }
:focus-visible { outline: 3px solid rgba(0,113,227,.6); outline-offset: 3px; border-radius: 12px; }

/* surfaces: continuous corners, soft depth, hairlines instead of grey fills */
.proj__img, .post__img, .intro__img, .vid, .b, .b--split > div, .t-score { border-radius: var(--r); }
.proj__img, .post__img, .intro__img, .b--img { box-shadow: var(--lift); }
.b--card { box-shadow: inset 0 0 0 1px var(--hair); }
.b--grey { background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.tools span { background: var(--bg); }
.proj__img img, .post__img img, .vid img { transition: transform 1.2s var(--ease); }
.proj:hover .proj__img img, .post:hover .post__img img { transform: scale(1.03); }
.proj__tags span { background: rgba(29,29,31,.6); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }

/* reveals: gentle rise, no bounce */
.js .reveal { transform: translateY(16px) scale(.985); transition: opacity .9s var(--ease), transform 1s var(--ease); }

/* floating glass bar */
.topbar { position: fixed; z-index: 60; top: 12px; left: 50%; width: min(980px, calc(100% - 24px)); height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 8px 0 22px; border-radius: 100px; color: var(--ink);
  background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1px rgba(0,0,0,.06), 0 12px 30px -14px rgba(0,0,0,.25);
  backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%);
  opacity: 0; transform: translate(-50%, -12px) scale(.97); pointer-events: none;
  transition: opacity .3s var(--ease), transform .55s var(--ease), backdrop-filter .45s var(--ease), -webkit-backdrop-filter .45s var(--ease); }
.topbar.on { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.topbar__logo { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; margin-right: auto; }
.topbar__links { display: flex; gap: 2px; }
.topbar__links a { padding: 7px 13px; border-radius: 100px; font-size: 13px; letter-spacing: 0; color: rgba(29,29,31,.7); }
.topbar__links a:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.topbar__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 100px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.topbar__cta:hover { background: var(--maroon); }

/* menu grows from the burger and returns the same way */
.menu { opacity: 1; visibility: hidden; clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .6s var(--ease), visibility 0s .6s; }
.menu-open .menu { visibility: visible; clip-path: circle(150% at calc(100% - 46px) 46px); transition: clip-path .6s var(--ease), visibility 0s; }
.menu a { font-weight: 600; letter-spacing: -0.035em; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(1) { transition-delay: .12s; } .menu-open .menu a:nth-child(2) { transition-delay: .16s; } .menu-open .menu a:nth-child(3) { transition-delay: .2s; } .menu-open .menu a:nth-child(4) { transition-delay: .24s; } .menu-open .menu a:nth-child(5) { transition-delay: .28s; }

/* testimonials are driven by a spring (main.js), not a CSS transition */
.t-viewport { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.t-viewport.is-dragging { cursor: grabbing; }
.t-track { transition: none; will-change: transform; }
.vid img { pointer-events: none; -webkit-user-drag: none; }

@media (max-width: 760px) {
  .topbar__links { display: none; }
  .topbar { width: calc(100% - 16px); top: 8px; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .nav__pill, .btn--glass, .proj__tags span { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .topbar { background: #fff; }
  .nav__pill, .btn--glass { background: rgba(20,20,30,.72); }
  .proj__tags span { background: var(--ink); }
}
@media (prefers-contrast: more) {
  :root { --mute: #3a3a3c; --hair: rgba(0,0,0,.4); }
  .topbar { background: #fff; box-shadow: 0 0 0 1.5px #000; }
  .btn--glass, .nav__pill { background: rgba(0,0,0,.6); box-shadow: inset 0 0 0 1.5px #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; }
  .menu { transition: opacity .2s, visibility 0s .2s; clip-path: none; opacity: 0; }
  .menu-open .menu { opacity: 1; transition: opacity .2s; }
  .menu a { opacity: 1; transform: none; }
}
.hero__title { font-size: clamp(40px, 5.1vw, 76px); }
@media (min-width: 1000px) { .hero__title .ln > span { white-space: nowrap; } }
.hero__copy { max-width: 960px; }
.hero__lede { max-width: 620px; }
.b--orb img { filter: none !important; }
.link-arrow { color: var(--maroon); white-space: nowrap; }
.link-arrow::after { content: " →"; }
.dark .flow { margin-top: 44px; }
