/* MaAb v4: charcoal + red, slanted shapes, animated transitions (from the user's mock-up, Dec 3) */
:root {
  --bg: #0d0d10; --bg-2: #141418; --bg-3: #1b1b21; --ink: #f5f5f7; --muted: #a6a6b0; --dim: #6d6d78;
  --red: #e5242c; --red-2: #ff3b42; --red-dark: #8f1015; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --head: "Poppins", system-ui, sans-serif; --text: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .9, .25, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gut: clamp(20px, 6vw, 120px); --max: 1440px; --skew: -14deg;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
.red { color: var(--red); }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

/* ---------- background slashes (the mock's thin red diagonals at the edges) */
.slashes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.slashes i { position: absolute; width: 2px; height: 70vh; background: linear-gradient(to bottom, transparent, var(--red) 40%, transparent); opacity: .55; transform: rotate(28deg); }
.slashes i:nth-child(1) { left: 2%; top: -12vh; }
.slashes i:nth-child(2) { left: 9%; top: 52vh; height: 55vh; opacity: .3; }
.slashes i:nth-child(3) { right: 6%; top: 18vh; }
.slashes i:nth-child(4) { right: 13%; top: 74vh; height: 40vh; opacity: .3; }
.slashes i { animation: slashDrift 9s ease-in-out infinite alternate; }
.slashes i:nth-child(2n) { animation-duration: 12s; }
@keyframes slashDrift { to { translate: 0 6vh; } }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; height: 68px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--head); }
.logo__mark { width: 34px; height: 21px; fill: var(--red); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: translateX(3px) skewX(-8deg); }
.nav__links { position: relative; display: flex; gap: 6px; margin: 0 auto; }
.nav__links a { position: relative; padding: 10px 18px; font: 500 15px/1 var(--text); color: var(--muted); transition: color .25s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--ink); }
.nav__bar { position: absolute; bottom: -1px; height: 3px; border-radius: 3px; background: var(--red); left: 0; width: 0;
  transition: left .45s var(--ease), width .45s var(--ease); box-shadow: 0 0 14px rgba(229, 36, 44, .6); }
.nav__social { display: flex; gap: 8px; }
.nav__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color .25s, transform .25s var(--ease), background .25s; }
.nav__social a:hover { border-color: var(--red); transform: translateY(-2px); background: var(--bg-3); }
.nav__social img, .nav__social svg { width: 18px; height: 18px; }
.nav__social .ic-roblox { filter: invert(1); }
.nav__toggle { display: none; }

/* ---------- buttons: parallelograms. The button itself is cut to the slanted shape (clip-path), so the
   fill, the 1px border (an inner layer inset by 1px) and the hover shine all follow the slant. */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { --cut: 14px; --poly: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 calc(26px + var(--cut));
  font: 600 15px/1 var(--text); isolation: isolate; overflow: hidden; clip-path: var(--poly); transition: background .3s, transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; z-index: -1; transition: background .3s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn--red { background: linear-gradient(100deg, var(--red), #c4151c); }
.btn--red:hover { background: linear-gradient(100deg, var(--red-2), var(--red)); }
/* the shine: a slanted light band that crosses the button on hover, clipped to the same shape */
.btn--red::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(var(--skew)); transition: left .65s var(--ease); }
.btn--red:hover::after { left: 115%; }
.btn--ghost { background: var(--line-2); }
.btn--ghost::before { inset: 1px; clip-path: polygon(calc(var(--cut) - .5px) 0, 100% 0, calc(100% - var(--cut) + .5px) 100%, 0 100%); background: #16161b; }
.btn--ghost:hover { background: var(--red); }
.btn--ghost:hover::before { background: #22131a; }
button.btn { border: 0; color: inherit; cursor: pointer; }
.btn .ic { width: 18px; height: 18px; }
.btn--copy b { font-weight: 600; color: var(--red-2); }
.btn--copy.is-copied { background: var(--red); }
.btn--copy.is-copied::before { background: #22131a; }
.btn--big { --cut: 18px; height: 64px; padding: 0 calc(38px + var(--cut)); font-size: 18px; }

/* ---------- hero */
main { position: relative; z-index: 1; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: 0 32px; max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) 0; min-height: calc(100svh - 68px); align-content: start; }
.hero__copy { padding-top: clamp(16px, 4vh, 56px); position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 22px; }
.eyebrow i { width: 26px; height: 5px; background: var(--red); border-radius: 2px; transform: skewX(var(--skew)); }
.eyebrow b { color: var(--muted); font-weight: 500; margin: 0 2px; }
.hero h1 { font: 800 clamp(36px, 3.45vw, 62px)/1.04 var(--head); letter-spacing: -0.02em; }
.hero h1 .line { display: block; }
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin-top: 22px; }
.hero .btns { margin-top: 30px; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.live b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* the slanted picture frame with its slideshow */
.hero__media { position: relative; height: min(56vh, 560px); min-height: 360px; margin-right: calc(-1 * var(--gut) + 8px);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); background: #000; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, rgba(13,13,16,.55), transparent 30%), linear-gradient(to top, rgba(13,13,16,.75), transparent 35%); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-on { opacity: 1; z-index: 2; }
.slide.is-on img { animation: kenburns 7s linear forwards; }
.slide.is-in { opacity: 1; z-index: 2; animation: wipeIn 1.05s var(--ease-io) both; }
.slide.is-out { opacity: 1; z-index: 1; }
@keyframes wipeIn { from { clip-path: polygon(118% 0, 140% 0, 122% 100%, 100% 100%); } to { clip-path: polygon(-30% 0, 140% 0, 122% 100%, -48% 100%); } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* the red blade that leads each wipe */
.hero__media .blade { position: absolute; top: -10%; bottom: -10%; width: 9%; z-index: 4; background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red-2) 60%, transparent);
  transform: skewX(-12deg); left: 110%; opacity: .9; pointer-events: none; }
.hero__media .blade.is-go { animation: blade 1.05s var(--ease-io) both; }
@keyframes blade { from { left: 110%; } to { left: -25%; } }
.slide__info { position: absolute; left: 18%; bottom: 26px; z-index: 5; display: flex; flex-direction: column; gap: 2px; }
.slide__info b { font: 700 20px/1.2 var(--head); }
.slide__info span { font-size: 13px; color: var(--muted); }
.slide__info.is-swap { animation: infoSwap .7s var(--ease) both; }
@keyframes infoSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slide__bars { position: absolute; right: 28px; bottom: 30px; z-index: 5; display: flex; gap: 8px; }
.slide__bars button { position: relative; width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.22); cursor: pointer; overflow: hidden; }
.slide__bars button::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.slide__bars button.is-done::after { transform: scaleX(1); }
.slide__bars button.is-on::after { animation: barFill var(--slide-ms, 6000ms) linear forwards; }
.hero__media:hover .slide__bars button.is-on::after, .hero__media.is-paused .slide__bars button.is-on::after { animation-play-state: paused; }
@keyframes barFill { to { transform: scaleX(1); } }

/* services strip, slanted like the mock */
.services { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 0 0; padding: 22px 28px;
  isolation: isolate; margin-top: -1px; }
.services::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-2); border: 1px solid var(--line); transform: skewX(var(--skew)); border-radius: 6px; }
.svc { display: flex; align-items: center; gap: 16px; padding: 4px 18px; }
.svc + .svc { border-left: 1px solid var(--line); }
.svc__ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(229,36,44,.6); background: rgba(229,36,44,.06);
  transition: transform .4s var(--ease), background .3s, border-color .3s; }
.svc__ic svg { width: 26px; height: 26px; fill: var(--red); }
.svc:hover .svc__ic { transform: rotate(-8deg) scale(1.06); background: rgba(229,36,44,.16); border-color: var(--red); }
.svc h3 { font: 600 17px/1.2 var(--head); }
.svc p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- blocks */
.block { max-width: var(--max); margin: 0 auto; padding: 72px var(--gut) 0; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.block h2 { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--head); }
.slash { width: 7px; height: 28px; background: var(--red); transform: skewX(var(--skew)); border-radius: 2px; }
.more { font: 500 15px/1 var(--text); color: var(--muted); display: inline-flex; gap: 8px; transition: color .25s; }
.more span { transition: transform .3s var(--ease); }
.more:hover { color: var(--ink); }
.more:hover span { transform: translateX(5px); }

/* project cards (featured + grid) */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform .45s var(--ease), border-color .3s; cursor: pointer; }
.pcard::after { content: ""; position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; background: linear-gradient(135deg, transparent 50%, var(--red) 50%); opacity: .0; transition: opacity .3s; z-index: 3; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(229,36,44,.55); }
.pcard:hover::after { opacity: 1; }
.pcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.pcard__img img, .pcard__img picture { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard--tall .pcard__img img { object-position: 50% 16%; }
.pcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,16,.95) 4%, rgba(13,13,16,.15) 55%, transparent); }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pcard h3 { font: 600 19px/1.2 var(--head); }
.pcard__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pcard__go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.pcard__go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pcard:hover .pcard__go { transform: translate(3px, -3px); background: var(--red); border-color: var(--red); }
.pcard__chip { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 6px;
  background: rgba(13,13,16,.75); backdrop-filter: blur(8px); font: 600 12px/1 var(--text); border: 1px solid var(--line-2); }
.pcard__chip .dot { width: 7px; height: 7px; }
.pcard__tag { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 10px; border-radius: 6px; font: 600 11px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; background: var(--red); }

/* ---------- about row */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) auto; gap: 40px; align-items: center; padding-top: 80px; }
.about__me { display: flex; gap: 28px; align-items: flex-start; }
.avatar { flex: none; width: 140px; height: 140px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(229,36,44,.7); background: radial-gradient(circle at 50% 40%, #3a0d10, #120607); box-shadow: 0 0 40px -12px rgba(229,36,44,.7); }
.avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.avatar:hover img { transform: scale(1.06) rotate(-2deg); }
.about__me p { color: var(--muted); margin-top: 14px; max-width: 54ch; }
.stats { display: flex; gap: 32px; margin: 18px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 700 24px/1.1 var(--head); }
.stats dt { font-size: 13px; color: var(--dim); }
.about__tools { border-left: 1px solid var(--line); padding-left: 40px; }
.tools { list-style: none; display: flex; gap: 14px; margin: 18px 0 0; padding: 0; }
.tools li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tool { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); transition: transform .35s var(--ease), border-color .3s; }
.tool img { width: 34px; height: 34px; }
.tools li:first-child .tool img { filter: invert(1); }
.tools li:hover .tool { transform: translateY(-4px) rotate(-4deg); border-color: var(--red); }
.tools small { font-size: 12px; color: var(--dim); }

/* ---------- filters + grid */
.filters { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.filters button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); padding: 9px 18px; font: 500 14px/1 var(--text); cursor: pointer; transition: color .25s; }
.filters button[aria-selected="true"] { color: #fff; }
.filters__bar { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 7px; background: var(--red); transform: skewX(var(--skew)); transition: left .45s var(--ease), width .45s var(--ease); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid .pcard.is-hidden { display: none; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* ---------- contact */
.contact { position: relative; max-width: var(--max); margin: 96px auto 0; padding: 0 var(--gut); }
.contact__in { position: relative; padding: 64px 56px; isolation: isolate; overflow: hidden; border-radius: 14px; }
.contact__in::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, #1d0a0c, var(--bg-2) 55%); border: 1px solid rgba(229,36,44,.35); border-radius: 14px; }
.contact__in::after { content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; width: 38%; height: 160%; background: linear-gradient(90deg, transparent, rgba(229,36,44,.22)); transform: skewX(var(--skew)); }
.contact h2 { font: 800 clamp(30px, 3.4vw, 52px)/1.08 var(--head); max-width: 18ch; }
.contact .btns { margin-top: 30px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 40px; color: var(--dim); font-size: 14px; }
.foot .logo { font-size: 18px; }
.foot .logo__mark { width: 28px; height: 17px; }

/* ---------- case viewer */
.case { width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 1px solid rgba(229,36,44,.4); border-radius: 14px; background: var(--bg-2); color: var(--ink); overflow: auto; }
.case[open] { animation: caseIn .45s var(--ease) both; }
.case::backdrop { background: rgba(5,5,7,.8); backdrop-filter: blur(6px); }
@keyframes caseIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.case__media { background: #000; }
.case__compare { position: relative; aspect-ratio: 16 / 10; overflow: hidden; --cut: 50%; }
.case__compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case__compare [data-a] { transition: opacity .35s; }
.case__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); transition: clip-path .5s var(--ease); }
.case__compare.is-drag .case__b { transition: none; }
.case__compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--cut); width: 3px; background: var(--red); box-shadow: 0 0 12px var(--red); pointer-events: none; transition: left .5s var(--ease); }
.case__compare.is-drag::after { transition: none; }
.case__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.case__thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.case__thumbs button { flex: none; width: 92px; height: 58px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; transition: border-color .25s, transform .25s; }
.case__thumbs button:hover { transform: translateY(-2px); }
.case__thumbs button[aria-current="true"] { border-color: var(--red); }
.case__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.case__info { padding: 44px 36px; display: flex; flex-direction: column; gap: 14px; }
.case__info h2 { font: 700 28px/1.15 var(--head); }
.case__info p { color: var(--muted); }
.case__specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 8px 0 0; font-size: 14px; }
.case__specs dt { color: var(--dim); }
.case__specs dd { margin: 0; }
.case__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background .25s, transform .25s; }
.case__close:hover { background: var(--red); transform: rotate(90deg); }

/* ---------- motion: intro on load, reveals on scroll */
.is-intro [data-intro] { opacity: 0; }
[data-intro].is-shown { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.hero__media[data-intro].is-shown { animation: frameIn 1.2s var(--ease-io) both; animation-delay: 150ms; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes frameIn { from { opacity: 1; clip-path: polygon(100% 0, 100% 0, 100% 100%, 88% 100%); } to { opacity: 1; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); } }
.hero h1.is-shown .line { animation: lineUp .9s var(--ease) both; }
.hero h1.is-shown .line:nth-child(2) { animation-delay: 90ms; }
.hero h1.is-shown .line:nth-child(3) { animation-delay: 180ms; }
@keyframes lineUp { from { opacity: 0; transform: translateY(40px) skewY(3deg); } to { opacity: 1; transform: none; } }
.nav[data-reveal-now] { animation: navIn .7s var(--ease) both; }
@keyframes navIn { from { transform: translateY(-100%); } to { transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
[data-reveal].in { opacity: 1; transform: none; }
.pcard[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s; }
.pcard[data-reveal].in:hover { transform: translateY(-6px); }

/* ---------- responsive */
@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about__cta { grid-column: 1 / -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .svc:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .nav__links, .nav__social { display: none; }
  .nav { justify-content: space-between; }
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); cursor: pointer; }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); animation: rise .35s var(--ease) both; }
  .nav.is-open .nav__links a { padding: 14px 0; font-size: 18px; }
  .nav__bar { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero__media { order: -1; height: 46vw; min-height: 220px; margin: 0 calc(-1 * var(--gut)) 28px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  @keyframes frameIn { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
  .slide__info { left: var(--gut); }
  .services { margin-top: 36px; }
  .featured, .grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__tools { border-left: 0; padding-left: 0; }
  /* case viewer: photos on top, text underneath */
  .case { width: calc(100vw - 20px); max-width: 640px; max-height: calc(100dvh - 24px); }
  .case__grid { grid-template-columns: minmax(0, 1fr); }
  .case__compare { aspect-ratio: 4 / 3; }
  .case__thumbs { padding: 10px; }
  .case__thumbs button { width: 80px; height: 52px; }
  .case__info { padding: 22px 22px 28px; gap: 12px; }
  .case__info h2 { font-size: 26px; }
  .case__close { top: 10px; right: 10px; background: rgba(20,20,26,.85); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; padding: 18px 8px; }
  .services::before { transform: none; }
  .svc + .svc { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .featured, .grid { grid-template-columns: 1fr; }
  .about__me { flex-direction: column; }
  .contact__in { padding: 40px 24px; }
  .btn { height: 48px; padding: 0 22px; }
  .btns .btn { flex: 1 1 auto; justify-content: center; }
  .filters { width: 100%; } .filters button { flex: 1; padding: 9px 8px; }
  .foot { flex-direction: column; text-align: center; }
  .eyebrow { font-size: 12px; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .is-intro [data-intro], [data-reveal] { opacity: 1; transform: none; }
}
