:root {
  --ink: #0b0b0c;
  --ink-soft: #171719;
  --paper: #f3f0ea;
  --white: #fff;
  --red: #7b0b16;
  --red-bright: #b21425;
  --red-soft: #ead7d7;
  --muted: #67615d;
  --line: #d9d3ca;
  --shell: min(1240px, calc(100% - 64px));
  --display: "Bahnschrift Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); background: var(--white); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(243,240,234,.92); border-bottom: 1px solid rgba(11,11,12,.11); backdrop-filter: blur(14px); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 32px rgba(11,11,12,.08); }
.nav-wrap { min-height: 104px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(14px, 1.5vw, 24px); }
.wordmark { justify-self: start; display: inline-grid; align-items: start; gap: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: .78; letter-spacing: .04em; text-transform: uppercase; }
.wordmark span { display: block; }
.wordmark span:nth-child(2) { padding-left: 14px; color: var(--red-bright); }
.wordmark span:nth-child(3) { padding-left: 37px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.25vw, 22px); }
.site-nav a { position: relative; padding: 34px 0; font-family: var(--display); font-size: .83rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--red-bright); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-cta { justify-self: end; }
.site-header .nav-cta { padding: 14px 18px; font-size: .94rem; }
.header-cv { padding: 13px 16px; border: 1px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: .84rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.header-cv:hover, .header-cv:focus-visible { color: var(--white); background: var(--red-bright); border-color: var(--red-bright); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--ink); padding: 13px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--white); }

.button { appearance: none; border: 1px solid transparent; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover, .button-dark:focus-visible { background: var(--red); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--ink); color: var(--white); }
.text-link { padding: 10px 0; border: 0; background: transparent; font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid var(--red-bright); }

.hero { min-height: calc(100svh - 104px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-grid { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.kicker { margin: 0 0 26px; font-size: .67rem; font-weight: 900; letter-spacing: .11em; line-height: 1.55; text-transform: uppercase; }
.kicker span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--red-bright); }
.hero h1, .display-heading { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: .88; text-transform: uppercase; }
.hero h1 { font-size: clamp(4.3rem, 8.8vw, 8.3rem); }
.hero h1 span { display: block; white-space: nowrap; }
.hero-prefix { width: max-content; transition: opacity .24s ease, transform .32s ease; }
.hero-prefix.is-changing { opacity: 0; transform: translateY(-.12em); }
.hero-flip-line { width: max-content; perspective: 900px; }
.hero h1 .hero-flip-card { position: relative; display: inline-block; transform-origin: 50% 50%; transform-style: preserve-3d; backface-visibility: hidden; will-change: transform; }
.hero-flip-card.is-flipping { animation: hero-headline-flip .8s cubic-bezier(.55,.02,.2,1); }
.hero h1 em { position: relative; z-index: 0; color: var(--white); font-style: normal; }
.hero h1 em::before { content: ""; position: absolute; z-index: -1; inset: 10% -3% 2%; background: var(--red-bright); transform: rotate(-1.5deg); clip-path: polygon(2% 9%, 100% 0, 98% 85%, 1% 100%); }
@keyframes hero-headline-flip { 0% { transform: rotateX(0deg); } 46% { transform: translateY(-.06em) rotateX(-90deg); } 50% { transform: translateY(.06em) rotateX(90deg); } 100% { transform: rotateX(0deg); } }
.hero-intro { max-width: 560px; margin: 32px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.08rem); }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 25px; }
.cv-orbit { position: relative; z-index: 1; width: auto; min-width: 94px; height: 46px; flex: 0 0 auto; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: var(--white); background: var(--red-bright); font-family: var(--display); text-align: center; text-transform: uppercase; box-shadow: 0 10px 30px rgba(178,20,37,.28); }
.cv-orbit::before, .cv-orbit::after { content: ""; position: absolute; z-index: -1; inset: -1px; border: 2px solid var(--red-bright); border-radius: 999px; animation: cv-ripple 2.4s ease-out infinite; }
.cv-orbit::after { animation-delay: 1.2s; }
.cv-orbit span, .cv-orbit b { display: inline-block; line-height: 1; }
.cv-orbit span { margin: 0; font: 700 1.05rem/1 Arial, sans-serif; }
.cv-orbit b { font-size: .72rem; letter-spacing: .05em; }
@keyframes cv-ripple { 0% { opacity: .75; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(1.45); } }
.hero-visual { position: relative; max-width: 590px; width: 100%; justify-self: end; }
.portrait-block { position: relative; min-height: min(64vw, 630px); margin-left: 0; background: transparent; border: 0; overflow: visible; isolation: isolate; }
.portrait-block[data-open-service] { cursor: pointer; }
.portrait-block[data-open-service]:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 5px; }
.portrait-block img.portrait-image { position: absolute; z-index: 2; left: 50%; bottom: 0; width: auto; max-width: none; height: 108%; max-height: none; object-fit: contain; object-position: center bottom; filter: none; mix-blend-mode: normal; pointer-events: none; transform: translateX(-50%); transition: opacity .34s ease, filter .34s ease; }
.portrait-image-base { opacity: 1; }
.portrait-block img.portrait-image-hover { opacity: 0; transform: translateX(-50%) scaleX(1.0112); }
.portrait-block:hover .portrait-image-base { opacity: 0; }
.portrait-block:hover .portrait-image-hover { opacity: 1; }
.portrait-accent { position: absolute; z-index: 0; left: 10%; right: 0; top: 24%; bottom: 0; width: auto; height: auto; background: var(--red-bright); }
.hero-tools { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.hero-tool { --from-x: 0; --from-y: 0; --rotation: 0deg; --delay: 0s; position: absolute; width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 17px; color: var(--ink); background: var(--white); box-shadow: 0 15px 28px rgba(0,0,0,.28); font: 700 1.4rem/1 Arial, sans-serif; opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(.2); transition: opacity .28s ease var(--delay), transform .62s cubic-bezier(.18,.9,.24,1.28) var(--delay); }
.hero-tool:nth-child(even) { color: var(--white); background: var(--ink); border-color: var(--white); }
.portrait-block:hover .hero-tool { opacity: 1; transform: translate(0,0) scale(1) rotate(var(--rotation)); animation: hero-tool-bob 2.8s ease-in-out calc(var(--delay) + .55s) infinite; }
.hero-tool-brush { left: 0; top: 13%; --from-x: 175px; --from-y: 110px; --rotation: -10deg; --delay: .02s; }
.hero-tool-pen { left: -4%; top: 31%; --from-x: 190px; --from-y: 50px; --rotation: 9deg; --delay: .1s; }
.hero-tool-laptop { left: 5%; top: 47%; --from-x: 165px; --from-y: -5px; --rotation: -7deg; --delay: .18s; }
.hero-tool-spark { right: 0; top: 11%; color: var(--white); background: var(--red-bright); border-color: var(--white); --from-x: -165px; --from-y: 115px; --rotation: 10deg; --delay: .06s; }
.hero-tool-play { right: -4%; top: 29%; --from-x: -195px; --from-y: 55px; --rotation: -8deg; --delay: .14s; }
.hero-tool.hero-tool-chat { right: 5%; top: 46%; color: var(--ink); background: var(--white); border-color: var(--ink); --from-x: -165px; --from-y: 0px; --rotation: 8deg; --delay: .22s; }
.hero-tool-brush::before { content: ""; position: absolute; width: 7px; height: 31px; border-radius: 999px; background: currentColor; transform: translate(3px,-3px) rotate(42deg); }
.hero-tool-brush::after { content: ""; position: absolute; width: 16px; height: 14px; background: currentColor; clip-path: polygon(50% 100%, 0 18%, 100% 18%); transform: translate(-10px,12px) rotate(42deg); }
.hero-tool-pen::before { content: ""; width: 20px; height: 20px; border: 3px solid currentColor; border-radius: 2px 9px 2px 9px; transform: rotate(45deg); }
.hero-tool-pen::after { content: ""; position: absolute; width: 3px; height: 28px; border-radius: 99px; background: currentColor; transform: translate(9px,-9px) rotate(45deg); }
.hero-tool-spark i { position: absolute; right: 9px; bottom: 8px; font-size: .62rem; font-style: normal; }
.hero-tool-laptop i { position: relative; width: 30px; height: 21px; border: 2px solid currentColor; border-radius: 3px; }
.hero-tool-laptop i::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -7px; height: 3px; border-radius: 0 0 8px 8px; background: currentColor; }
.hero-tool-chat img { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; }
@keyframes hero-tool-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.portrait-label { position: absolute; z-index: 4; left: 14%; bottom: 5%; display: flex; gap: 8px; padding: 9px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 12px 25px rgba(0,0,0,.18); transform: translateY(45%); }
.flag-contact { position: relative; display: grid; place-items: center; border-radius: 50%; cursor: help; }
.flag-contact::before, .flag-contact::after { position: absolute; left: 50%; z-index: 8; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .24s ease; }
.flag-contact::before { content: ""; bottom: calc(100% + 7px); width: 10px; height: 10px; background: var(--ink); transform: translate(-50%, 5px) rotate(45deg); }
.flag-contact::after { content: attr(data-connect); bottom: calc(100% + 12px); padding: 8px 13px; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.24); font: 700 .78rem/1 var(--display); letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, 7px); }
.flag-contact:hover::before, .flag-contact:hover::after, .flag-contact:focus-visible::before, .flag-contact:focus-visible::after { opacity: 1; }
.flag-contact:hover::before, .flag-contact:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }
.flag-contact:hover::after, .flag-contact:focus-visible::after { transform: translate(-50%, 0); }
.flag-contact:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.portrait-label .flag { position: relative; width: 35px; height: 35px; display: block; margin: 0; overflow: hidden; border: 1px solid #c8c2bb; border-radius: 50%; background: var(--paper); }
.flag-pk { background: linear-gradient(90deg, #fff 0 24%, #01411c 24%) !important; }
.flag-pk::before { content: ""; position: absolute; z-index: 1; left: 13px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: #fff; }
.flag-pk::after { content: ""; position: absolute; z-index: 2; left: 17px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: #01411c; }
.flag-pk i::after { content: "★"; position: absolute; z-index: 3; left: 23px; top: 9px; color: #fff; font: 700 6px/1 Arial, sans-serif; transform: rotate(-17deg); }
.flag-ae { background: linear-gradient(to bottom, #00732f 0 33.33%, #fff 33.33% 66.66%, #000 66.66%) !important; }
.flag-ae::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 31%; background: #f00; }
.belief-strip { color: var(--white); background: var(--ink); border-top: 1px solid #232326; border-bottom: 1px solid #232326; }
.belief-strip .shell { min-height: clamp(130px, 11vw, 175px); display: flex; align-items: center; }
.belief-strip blockquote { width: 100%; margin: 0; font: 700 clamp(.72rem, 2.85vw, 3.2rem)/.96 var(--display); letter-spacing: -.02em; text-align: center; white-space: nowrap; }
.quote-animated .quote-word { display: inline-block; opacity: 0; transform: translateY(.22em); }
.belief-strip.is-playing .quote-word { animation: quote-word-in .4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--word-index) * .16s); }
@keyframes quote-word-in { to { opacity: 1; transform: translateY(0); } }

.section { padding: clamp(80px, 10vw, 145px) 0; }
.display-heading { font-size: clamp(3.4rem, 7vw, 7.4rem); }
.display-heading span { color: var(--red-bright); }
.about { padding-top: 42px; padding-bottom: clamp(80px, 8vw, 115px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 6vw, 90px); align-items: stretch; }
.about .display-heading { font-size: clamp(3.5rem, 4.35vw, 4.8rem); line-height: .94; letter-spacing: -.035em; white-space: nowrap; }
.about .display-heading span { display: block; }
.about-copy { min-height: 148px; padding-top: 0; display: flex; flex-direction: column; justify-content: space-between; }
.about-copy .lead { margin: 0 0 14px; color: var(--ink); font-size: clamp(1.05rem, 1.45vw, 1.35rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.28; }
.about-copy > p:not(.lead) { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.52; }
.about-facts { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts div { min-width: 0; padding: 23px 18px 24px; border-right: 1px solid var(--line); }
.about-facts div:first-child { padding-left: 0; }
.about-facts div:last-child { border-right: 0; }
.about-facts strong { display: block; font: 700 clamp(2rem, 3.2vw, 3.3rem)/1 var(--display); letter-spacing: -.02em; }
.about-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: .73rem; line-height: 1.35; }

.capabilities, .experience { color: var(--white); background: var(--ink); }
.section-heading-row { display: grid; grid-template-columns: 1fr 330px; gap: 50px; align-items: end; }
.section-heading-row > p { margin: 0 0 8px; color: #a6a19c; }
.capability-heading { grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); gap: clamp(45px, 5vw, 70px); align-items: center; }
.capability-copy .display-heading { font-size: clamp(4.2rem, 6vw, 6.3rem); }
.capability-copy .heading-line { display: block; color: var(--white); white-space: nowrap; }
.capability-copy .heading-line:last-child { color: var(--red-bright); }
.capability-copy p { max-width: 720px; margin: 25px 0 0; color: #aaa5a1; }
.software-panel { min-width: 0; }
.software-prompt { position: relative; width: fit-content; margin: 0 auto 38px; padding: 10px 40px 10px 34px; border: 1px solid rgba(237, 29, 52, .78); border-radius: 999px; color: var(--white); background: linear-gradient(100deg, rgba(194, 18, 39, .34), rgba(194, 18, 39, .1)); box-shadow: 0 0 0 0 rgba(237, 29, 52, .42), 0 12px 28px rgba(0,0,0,.24); font: 700 .9rem/1.2 var(--display); letter-spacing: .055em; text-align: center; text-transform: uppercase; animation: software-prompt-pulse 2.2s ease-out infinite; }
.software-prompt::before { content: ""; position: absolute; left: 15px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); transform: translateY(-50%); }
.software-prompt::after { content: "\2193"; position: absolute; right: 16px; top: 50%; color: var(--red-bright); font: 700 1.05rem/1 Arial, sans-serif; transform: translateY(-55%); animation: software-prompt-nudge 1.1s ease-in-out infinite; }
.software-prompt span { animation: software-prompt-blink 2s linear infinite; }
@keyframes software-prompt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237, 29, 52, .42), 0 12px 28px rgba(0,0,0,.24); } 50% { box-shadow: 0 0 0 8px rgba(237, 29, 52, 0), 0 16px 34px rgba(194,18,39,.22); } }
@keyframes software-prompt-nudge { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
@keyframes software-prompt-blink { 0%, 76%, 91%, 100% { opacity: 1; } 84% { opacity: .08; } }
.software-showcase { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.software-token { position: relative; min-height: 98px; padding: 13px 9px; display: grid; place-content: center; gap: 7px; border: 1px solid #3d3d40; border-radius: 14px; text-align: center; box-shadow: 0 12px 28px rgba(0,0,0,.16); animation: tool-float 4.2s ease-in-out infinite; transition: transform .3s cubic-bezier(.2,.8,.2,1.15), border-color .2s ease, box-shadow .2s ease; transform-origin: 50% 50%; will-change: transform; cursor: help; }
.software-token:nth-child(2), .software-token:nth-child(6) { animation-delay: -.7s; }
.software-token:nth-child(3), .software-token:nth-child(7) { animation-delay: -1.4s; }
.software-token:nth-child(4), .software-token:nth-child(8) { animation-delay: -2.1s; }
.software-token:nth-child(5), .software-token:nth-child(9) { animation-delay: -2.8s; }
.software-token:hover, .software-token:focus-visible { z-index: 20; border-color: #777; box-shadow: 0 22px 42px rgba(0,0,0,.38); animation: none; transform: translateY(-6px) scale(1.2) rotate(20deg); outline: none; }
.software-token::before { content: ""; position: absolute; z-index: 31; left: 50%; bottom: calc(100% + 7px); border: 7px solid transparent; border-top-color: var(--white); opacity: 0; pointer-events: none; transform: translateX(-50%) rotate(-20deg); transition: opacity .18s ease; }
.software-token::after { content: attr(data-say); position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 20px); width: max-content; max-width: 230px; padding: 10px 13px; border-radius: 13px; color: var(--ink); background: var(--white); box-shadow: 0 14px 30px rgba(0,0,0,.35); font: 700 .72rem/1.3 Arial, sans-serif; letter-spacing: 0; text-transform: none; opacity: 0; pointer-events: none; transform: translate(-50%, 8px) scale(.92) rotate(-14deg); transform-origin: 50% 100%; transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1.25); }
.software-token:hover::before, .software-token:focus-visible::before { opacity: 1; }
.software-token:hover::after, .software-token:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-14deg); }
.software-token b { font: 700 1rem/1 var(--display); letter-spacing: .02em; }
.software-token small { color: #aaa5a1; font-size: .52rem; letter-spacing: .05em; text-transform: uppercase; }
@keyframes tool-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.tone-blue { color: #86c5ff; background: #101e35; }
.tone-orange { color: #ff9c52; background: #2a180e; }
.tone-purple { color: #d2a7ff; background: #21142d; }
.tone-red { color: #ff8290; background: #2d1015; }
.tone-cyan { color: #8de8e9; background: #0f292a; }
.tone-white { color: #171719; background: #f2eee9; }
.display-heading-light { color: var(--white); }
.service-grid { margin-top: 65px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 315px; padding: 24px; position: relative; overflow: visible; border: 1px solid #343437; border-radius: 18px; background: #111113; box-shadow: 0 14px 32px rgba(0,0,0,.12); transform-style: preserve-3d; cursor: pointer; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; border-color: var(--red-bright); background: var(--red); box-shadow: 0 20px 45px rgba(0,0,0,.3); transform: translateY(-6px); }
.service-card.reveal.is-visible:hover { transform: translateY(-6px); }
.service-card:focus-visible { z-index: 2; outline: 2px solid var(--white); outline-offset: 5px; }
.service-icon { position: relative; z-index: 2; width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 32px; border: 1px solid #56565a; border-radius: 16px; font-size: 1.45rem; transform-origin: center; transition: color .32s ease, border-color .32s ease, background .32s ease, box-shadow .32s ease, transform .38s cubic-bezier(.2,.8,.2,1.15); }
.service-card:hover .service-icon { color: var(--red-bright); border-color: var(--white); background: var(--white); box-shadow: -12px 18px 30px rgba(0,0,0,.38), 0 0 0 6px rgba(255,255,255,.1); transform: perspective(700px) translate3d(10px,-14px,70px) rotate(-14deg) rotateX(8deg) scale(1.55); }
.service-icon i, .service-icon b { position: absolute; display: block; font-style: normal; font-weight: 400; }
.icon-brand i { width: 5px; height: 31px; border-radius: 5px 5px 2px 2px; background: currentColor; transform: translateX(-7px) rotate(38deg); }
.icon-brand i::after { content: ""; position: absolute; left: 0; bottom: -6px; border-left: 2.5px solid transparent; border-right: 2.5px solid transparent; border-top: 6px solid currentColor; }
.icon-brand b { width: 9px; height: 27px; border: 2px solid currentColor; border-radius: 4px 4px 8px 8px; transform: translate(8px, 2px) rotate(-40deg); }
.icon-brand b::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -5px; height: 7px; border-radius: 0 0 7px 7px; background: currentColor; }
.icon-target i { width: 31px; height: 31px; border: 2px solid currentColor; border-radius: 50%; }
.icon-target i::before { content: ""; position: absolute; inset: 6px; border: 2px solid currentColor; border-radius: 50%; }
.icon-target i::after { content: ""; position: absolute; width: 5px; height: 5px; left: 11px; top: 11px; border-radius: 50%; background: currentColor; }
.icon-laptop i { width: 31px; height: 22px; border: 2px solid currentColor; border-radius: 3px; transform: translateY(-3px); }
.icon-laptop i::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -7px; height: 3px; border-radius: 0 0 6px 6px; background: currentColor; }
.icon-interface i { width: 32px; height: 27px; border: 2px solid currentColor; border-radius: 3px; }
.icon-interface i::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px solid currentColor; }
.icon-interface i::after { content: ""; position: absolute; left: 9px; right: 0; top: 7px; border-top: 2px solid currentColor; }
.icon-cube-play i { left: 11px; font-size: 2.15rem; line-height: 1; transform: rotate(45deg); }
.icon-cube-play b { right: 9px; bottom: 9px; font-size: .72rem; line-height: 1; }
.icon-ai { font-size: 1.85rem; }
.service-card h3 { margin: 0 0 14px; font: 700 1.65rem/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; transition: font-size .34s cubic-bezier(.2,.8,.2,1), line-height .34s ease, letter-spacing .34s ease; }
.service-card h3 span { display: block; }
.service-card:hover h3 { font-size: clamp(2.75rem, 3.2vw, 3.3rem); line-height: .88; letter-spacing: -.01em; }
.service-card:nth-child(5):hover h3 { font-size: clamp(2.35rem, 2.7vw, 2.75rem); }
.service-card p { margin: 0; color: #a9a5a1; font-size: .9rem; line-height: 1.48; }
.service-card:hover p { color: #f1e8e8; }

.skills { padding-bottom: 0; background: var(--white); }
.skills-grid { display: grid; grid-template-columns: minmax(430px, .8fr) minmax(0, 1.2fr); gap: clamp(45px, 6vw, 100px); align-items: center; }
.skills .display-heading { font-size: clamp(4rem, 6vw, 6.8rem); white-space: nowrap; }
.skills-note { max-width: 330px; color: var(--muted); }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.skill { display: grid; gap: 11px; }
.skill-head { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: center; }
.skill-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; font: 700 1.72rem/1 var(--display); letter-spacing: .01em; }
.skill-copy > div { display: flex; justify-content: space-between; gap: 20px; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.skill-copy strong { color: var(--ink); }
.skill-copy > div span { color: var(--red-bright); font-weight: 900; }
.skill-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .69rem; line-height: 1.35; }
.skill-track { height: 13px; margin-left: 67px; overflow: hidden; border-radius: 999px; background: #e6e1dc; }
.skill-track i { display: block; width: 0; height: 100%; background: var(--red-bright); transition: width 1.15s cubic-bezier(.2,.75,.25,1); }
.skill-list.is-visible .skill-track i { width: var(--level); }
.tool-carousel { width: 100%; margin-top: 80px; padding: 30px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f6f2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.tool-carousel-track { width: max-content; display: flex; animation: tool-carousel-loop 46s linear infinite; will-change: transform; }
.tool-carousel-group { flex: 0 0 auto; display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.tool-logo { position: relative; width: 88px; height: 78px; flex: 0 0 88px; padding: 14px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ddd7d0; border-radius: 18px; background: var(--white); box-shadow: 0 8px 22px rgba(11,11,12,.08); transition: transform .25s cubic-bezier(.2,.8,.2,1.15), border-color .2s ease, box-shadow .2s ease; }
.tool-logo img { width: 100%; height: 100%; display: block; margin: auto; object-fit: contain; object-position: center; transform-origin: center; }
.tool-logo-figma { padding: 0; background: #000; }
.tool-logo-figma img { transform: scale(1.66); }
.tool-logo-sublime img { width: 68%; height: 68%; }
.tool-logo-clipchamp img { width: 70%; height: 70%; }
.tool-logo-pair { grid-template-columns: 1fr 1fr; gap: 7px; padding: 15px 10px; }
.tool-logo:hover { z-index: 2; border-color: var(--red-bright); box-shadow: 0 15px 34px rgba(194,18,39,.18); transform: translateY(-7px) scale(1.12); }
.tool-carousel:hover .tool-carousel-track { animation-play-state: paused; }
@keyframes tool-carousel-loop { to { transform: translateX(-50%); } }

.experience { padding-top: clamp(48px, 5vw, 72px); }
.experience-heading { grid-template-columns: 190px 1fr 1.15fr; gap: 35px; }
.experience-heading h2 { grid-column: 1 / 3; font-size: clamp(3.5rem, 5vw, 5.4rem); white-space: nowrap; }
.experience-heading > p { grid-column: 3; max-width: none; margin-bottom: 5px; font-size: .9rem; line-height: 1.55; }
.experience-heading > p span { display: block; white-space: nowrap; }
.timeline { margin-top: 38px; border-top: 1px solid #3a3a3d; }
.timeline-row { padding: 32px 0; display: grid; grid-template-columns: 190px 1fr 1.15fr; gap: 35px; border-bottom: 1px solid #3a3a3d; align-items: start; }
.timeline-date { color: var(--red-soft); font: 700 .88rem/1.12 var(--display); letter-spacing: .07em; }
.timeline-row .timeline-date span { display: block; margin-top: 5px; color: var(--white); font-size: .84em; letter-spacing: .08em; }
.timeline-row h3 { margin: 0 0 7px; font: 700 1.12rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.timeline-row a, .timeline-row div > span { color: #aaa5a2; font-size: .78rem; }
.timeline-row a:hover { color: var(--white); text-decoration: underline; }
.timeline-row p { margin: 0; color: #a6a19c; font-size: .85rem; }

.work { position: relative; overflow: hidden; padding-bottom: clamp(36px, 4vw, 56px); background: var(--paper); }
.work::before { content: ""; position: absolute; width: 520px; height: 520px; left: -280px; top: 28%; border-radius: 50%; background: rgba(194,18,39,.12); filter: blur(95px); pointer-events: none; }
.work > .shell { position: relative; z-index: 1; }
.work-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: end; gap: clamp(36px, 7vw, 100px); }
.work-heading .display-heading { font-size: clamp(3.4rem, 6.2vw, 6.6rem); }
.work-heading .display-heading span { display: inline-block; white-space: nowrap; }
.work-intro { margin: 0 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.portfolio-filter-shell { margin-top: 42px; overflow-x: auto; scrollbar-width: none; }
.portfolio-filter-shell::-webkit-scrollbar { display: none; }
.portfolio-filters { width: max-content; min-width: 100%; display: flex; justify-content: center; gap: 8px; }
.portfolio-filter { padding: 9px 15px; border: 1px solid #cfc7c0; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.55); font: 700 .63rem/1 var(--display); letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.portfolio-filter:hover, .portfolio-filter:focus-visible { border-color: var(--red-bright); color: var(--red-bright); outline: none; transform: translateY(-2px); }
.portfolio-filter[aria-pressed="true"] { border-color: var(--ink); color: var(--white); background: var(--ink); }
.portfolio-category-grid { position: relative; height: 410px; margin-top: 22px; overflow: hidden; perspective: 1300px; isolation: isolate; }
.portfolio-category { --carousel-x: 0px; --carousel-rotate: 0deg; --carousel-scale: 1; --carousel-opacity: 0; --carousel-stack: 1; --hover-lift: 0px; position: absolute; top: 50%; left: 50%; z-index: var(--carousel-stack); width: clamp(270px, 29vw, 410px); height: 320px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 22px; color: var(--white); background: var(--ink); opacity: 0; pointer-events: none; text-align: left; cursor: pointer; box-shadow: 0 18px 42px rgba(11,11,12,.2); transform: translate(-50%, -50%) translateX(var(--carousel-x)) rotateY(var(--carousel-rotate)) scale(var(--carousel-scale)) translateY(var(--hover-lift)); transform-origin: center; will-change: transform, opacity; transition: opacity .42s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease; }
.portfolio-category.is-in-range { opacity: var(--carousel-opacity); pointer-events: auto; }
.portfolio-category.is-active { box-shadow: 0 24px 62px rgba(11,11,12,.3); }
.portfolio-category img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: none; transform: scale(1.015); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.portfolio-category:hover, .portfolio-category:focus-visible { --hover-lift: -7px; z-index: 50; border-color: var(--red-bright); outline: none; opacity: 1; box-shadow: 0 0 0 2px rgba(190,15,39,.18), 0 26px 58px rgba(11,11,12,.32); }
.portfolio-category:hover img, .portfolio-category:focus-visible img { transform: scale(1.07); }
.portfolio-category-copy { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; isolation: isolate; }
.portfolio-category-copy::before { content: ""; position: absolute; z-index: -1; right: -22px; bottom: -20px; left: -22px; height: 132px; background: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.36) 52%, transparent); opacity: .78; pointer-events: none; transition: opacity .32s ease, height .38s ease; }
.portfolio-category-copy strong { display: block; max-width: 100%; font: 700 clamp(1.05rem, 1.35vw, 1.35rem)/.92 var(--display); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0,0,0,.72); text-transform: uppercase; transition: font-size .38s cubic-bezier(.2,.8,.2,1.08), letter-spacing .38s ease; }
.portfolio-category-copy strong span { display: block; white-space: nowrap; }
.portfolio-category:hover .portfolio-category-copy::before, .portfolio-category:focus-visible .portfolio-category-copy::before { height: 160px; opacity: .94; }
.portfolio-category:hover .portfolio-category-copy strong, .portfolio-category:focus-visible .portfolio-category-copy strong { font-size: clamp(2.1rem, 2.7vw, 2.7rem); letter-spacing: -.02em; }
.portfolio-carousel-controls { margin-top: -2px; display: flex; justify-content: center; gap: 14px; align-items: center; }
.portfolio-carousel-controls button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #cfc7c0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.66); font-size: 1rem; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.portfolio-carousel-controls button:hover, .portfolio-carousel-controls button:focus-visible { border-color: var(--red-bright); color: var(--white); background: var(--red-bright); outline: none; transform: translateY(-2px); }
.portfolio-carousel-controls button:disabled { opacity: .32; cursor: default; transform: none; }
.portfolio-carousel-controls > span { min-width: 68px; color: var(--muted); font: 700 .67rem/1 var(--display); letter-spacing: .08em; text-align: center; }
.portfolio-carousel-controls b { color: var(--red-bright); font-weight: 700; }
.portfolio-grid[hidden], .work-hint[hidden] { display: none !important; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.filter-button { padding: 8px 11px; border: 0; border-bottom: 1px solid transparent; color: var(--muted); background: transparent; font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.filter-button.active, .filter-button:hover { color: var(--ink); border-bottom-color: var(--red-bright); }
.portfolio-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project { position: relative; min-height: 0; aspect-ratio: 1.5; padding: 0; border: 0; background: var(--ink); overflow: hidden; text-align: left; cursor: zoom-in; }
.project-wide { grid-column: span 1; }
.project.hidden { display: none; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.95) hue-rotate(310deg) saturate(2.4) contrast(1.12) brightness(.68); transform: scale(1.01); transition: filter .45s ease, transform .45s ease; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,8,9,.88)); }
.project:hover img, .project:focus-visible img { filter: none; transform: scale(1.045); }
.project-meta { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: var(--white); }
.project-meta b, .project-meta small { display: block; }
.project-meta b { font: 700 1.15rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.project-meta small { margin-top: 7px; color: #d1cdca; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.work-hint { margin: 20px 0 0; color: var(--muted); font-size: .72rem; }

.portfolio-gallery-dialog { width: min(1180px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 24px); margin: auto; padding: 0; overflow: hidden; border-radius: 26px; color: var(--white); background: #0b0b0d; box-shadow: 0 35px 120px rgba(0,0,0,.58); }
.portfolio-gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.portfolio-gallery-close { top: 20px; right: 22px; color: var(--white); background: rgba(255,255,255,.08); border-radius: 50%; }
.portfolio-gallery-close:hover { background: var(--red-bright); }
.portfolio-gallery-header { min-height: 92px; padding: 23px 88px 20px 28px; display: flex; justify-content: space-between; gap: 30px; align-items: center; border-bottom: 1px solid #2e2e32; }
.portfolio-gallery-header small { color: var(--red-soft); font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.portfolio-gallery-header h2 { margin: 4px 0 0; font: 700 clamp(1.65rem, 3vw, 2.7rem)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.portfolio-gallery-header > span { color: #aaa5a1; font: 700 .82rem/1 var(--display); letter-spacing: .08em; }
.portfolio-gallery-stage { width: 100%; height: min(64svh, 660px); min-height: 280px; padding: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; contain: layout paint; background: #121215; }
.portfolio-gallery-stage > img[data-gallery-image] { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; aspect-ratio: auto; flex: 0 1 auto; display: block; object-fit: contain !important; object-position: center center; opacity: 1; transform: scale(1); transition: opacity .18s ease, transform .32s ease; }
.portfolio-gallery-stage img.is-changing { opacity: 0; transform: scale(.985); }
.video-gallery-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 174px); min-height: 280px; display: grid; place-items: center; overflow: hidden; background: #050506; }
.video-gallery-stage iframe { width: 100%; height: 100%; display: block; border: 0; background: #050506; }
.video-gallery-stage iframe[hidden], .video-gallery-placeholder[hidden] { display: none; }
.video-gallery-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; color: #c8c3bf; text-align: center; background: radial-gradient(circle at center, rgba(190,15,39,.18), transparent 34%), #101012; }
.video-gallery-placeholder > span { width: 72px; height: 72px; margin: auto; display: grid; place-items: center; border: 1px solid #56565c; border-radius: 50%; color: var(--white); background: var(--red-bright); font-size: 1.2rem; text-indent: 4px; }
.video-gallery-placeholder p { margin: 0; font-size: .78rem; line-height: 1.7; }
.portfolio-gallery-footer { min-height: 82px; padding: 15px 25px; display: flex; justify-content: space-between; gap: 30px; align-items: center; border-top: 1px solid #2e2e32; }
.portfolio-gallery-status { width: min(430px, 48%); display: flex; gap: 15px; align-items: center; color: #aaa5a1; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-gallery-progress { height: 3px; flex: 1; overflow: hidden; border-radius: 999px; background: #303035; }
.portfolio-gallery-progress i { display: block; width: 100%; height: 100%; background: var(--red-bright); transform: scaleX(0); transform-origin: left center; }
.portfolio-gallery-dialog.is-playing .portfolio-gallery-progress i { animation: portfolio-gallery-progress 3.6s linear forwards; }
.portfolio-gallery-controls { display: flex; gap: 9px; align-items: center; }
.portfolio-gallery-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #3e3e43; border-radius: 50%; color: var(--white); background: #171719; font-size: 1.05rem; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.portfolio-gallery-controls button:hover, .portfolio-gallery-controls button:focus-visible { border-color: var(--red-bright); color: var(--white); background: var(--red-bright); outline: none; transform: translateY(-2px); }
.portfolio-gallery-controls .portfolio-gallery-toggle { color: var(--white); background: var(--red-bright); border-color: var(--red-bright); }
@keyframes portfolio-gallery-progress { to { transform: scaleX(1); } }

.credentials { padding-top: clamp(58px, 6vw, 86px); background: var(--white); }
.credentials-heading { text-align: center; }
.credentials-heading .display-heading { font-size: clamp(2.4rem, 5.2vw, 5.35rem); line-height: .95; white-space: nowrap; }
.credentials-heading .display-heading span { color: var(--red-bright); }
.credential-intro { max-width: 720px; margin: 22px auto 0; color: var(--muted); }
.education-grid { margin-top: clamp(42px, 5vw, 68px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.education-card { min-height: 255px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #faf8f5; box-shadow: 0 14px 34px rgba(11,11,12,.06); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.education-card:hover { border-color: rgba(178,20,37,.55); box-shadow: 0 22px 48px rgba(11,11,12,.12); transform: translateY(-6px); }
.education-card.reveal.is-visible:hover { transform: translateY(-6px); }
.education-year { color: var(--red-bright); font: 700 1.7rem/1 var(--display); letter-spacing: .04em; }
.education-card small { margin-top: 26px; color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.education-card h3 { margin: 8px 0 14px; font: 700 1.55rem/1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.education-card p { margin: auto 0 0; color: var(--muted); font-size: .78rem; }
.certification-block { margin-top: clamp(62px, 7vw, 92px); }
.certification-heading { margin: 0 0 26px; font: 700 clamp(2rem, 3.4vw, 3.7rem)/1 var(--display); letter-spacing: -.01em; text-align: center; text-transform: uppercase; }
.certification-heading span { color: var(--red-bright); }
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cert-grid article { position: relative; z-index: 0; min-height: 220px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: z-index .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.cert-grid article:hover { z-index: 2; border-color: rgba(178,20,37,.45); box-shadow: 0 22px 48px rgba(11,11,12,.18); transform: translateY(-7px); }
.cert-grid span { color: var(--red-bright); font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cert-grid h3 { margin: 42px 0 12px; font: 700 1rem/1.12 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cert-grid p { margin: 0; color: var(--muted); font-size: .72rem; }

.contact-band { padding: clamp(70px, 8vw, 110px) 0; color: var(--white); background: var(--red); overflow: hidden; }
.contact-band-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.contact-band h2 { margin: 0; font: 700 clamp(3.5rem, 7.2vw, 7.5rem)/.88 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.contact-band h2 span { color: var(--ink); }
.contact-band p { margin-top: 0; color: #f0dfe1; }

.site-footer { position: relative; padding: clamp(72px, 8vw, 110px) 0 20px; overflow: hidden; color: var(--white); background: radial-gradient(circle at 50% 16%, rgba(178,20,37,.22), transparent 29%), var(--ink); }
.site-footer::before, .site-footer::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.site-footer::before { top: -185px; left: -90px; }
.site-footer::after { right: -115px; bottom: -210px; }
.footer-showcase { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-name { display: inline-grid; justify-items: center; font-family: var(--display); font-size: clamp(2rem, 4.2vw, 4.1rem); font-weight: 800; line-height: .76; letter-spacing: .035em; text-transform: uppercase; transition: letter-spacing .35s ease, transform .35s ease; }
.footer-name:hover { letter-spacing: .05em; transform: scale(1.025); }
.footer-name span { display: block; }
.footer-name span:nth-child(2) { color: var(--red-bright); }
.footer-role { margin: 34px 0 0; color: #c8c3bf; font: 700 clamp(.8rem, 1.2vw, 1.05rem)/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.footer-connect { margin-top: 44px; }
.footer-connect h3, .footer-contact h3 { margin: 0 0 18px; color: #7e7975; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-socials { display: flex; justify-content: center; gap: 14px; }
.footer-social-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid #3a3a3d; border-radius: 22px; color: var(--white); background: rgba(24,24,26,.9); box-shadow: 0 12px 34px rgba(0,0,0,.22); transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .3s cubic-bezier(.2,.8,.2,1.15); }
.footer-social-icon svg { width: 30px; height: 30px; fill: currentColor; }
.footer-social-icon:hover { color: var(--white); background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 20px 45px rgba(178,20,37,.28); transform: translateY(-8px) rotate(-5deg); }
.footer-social-icon:nth-child(2):hover { transform: translateY(-8px) rotate(5deg); }
.footer-contact { margin-top: 42px; }
.footer-contact a { display: block; margin: 7px 0; color: #ded9d5; font-size: clamp(.88rem, 1.3vw, 1.06rem); transition: color .2s ease, letter-spacing .2s ease; }
.footer-contact a:hover { color: var(--white); letter-spacing: .025em; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid #303033; display: flex; justify-content: space-between; color: #777370; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom .back-to-top { position: fixed; z-index: 62; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; margin: 0; color: var(--white); background: var(--red-bright); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 1.15rem; transition: transform .2s ease, background .2s ease; }
.footer-bottom .back-to-top:hover { color: var(--white); background: var(--red); transform: translateY(-3px); }
.footer-bottom .back-to-top span { margin: 0; color: inherit; font-size: inherit; }
.sticky-actions { position: fixed; z-index: 61; left: 18px; top: 50%; display: grid; gap: 8px; transform: translateY(-50%); }
.sticky-actions a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d5cfc7; color: var(--ink); background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: .65rem; font-weight: 900; letter-spacing: .02em; text-transform: lowercase; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sticky-actions a:hover { color: var(--white); background: var(--red-bright); border-color: var(--red-bright); transform: translateX(4px); }
.sticky-actions .sticky-cv { color: var(--white); background: var(--ink); text-transform: uppercase; }

dialog { border: 0; }
dialog::backdrop { background: rgba(5,5,6,.84); backdrop-filter: blur(8px); }
.contact-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 42px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.42); }
.dialog-close { position: absolute; z-index: 5; top: 14px; right: 15px; width: 40px; height: 40px; border: 0; color: var(--ink); background: transparent; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.dialog-kicker { margin: 0 0 12px; color: var(--red-bright); font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.contact-dialog h2 { max-width: 420px; margin: 0; font: 700 clamp(2.4rem, 6vw, 4rem)/.94 var(--display); text-transform: uppercase; }
.contact-dialog > p:not(.dialog-kicker):not(.dialog-email) { color: var(--muted); font-size: .85rem; }
.contact-options { margin-top: 26px; display: grid; gap: 10px; }
.contact-options a { padding: 14px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; border: 1px solid var(--line); background: var(--white); transition: border-color .2s ease, transform .2s ease; }
.contact-options a:hover { border-color: var(--ink); transform: translateX(4px); }
.contact-options .whatsapp-option { color: var(--white); background: var(--ink); border-color: var(--ink); }
.social-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--red-bright); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.contact-options b, .contact-options small { display: block; }
.contact-options b { font-size: .83rem; }
.contact-options small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.whatsapp-option small { color: #aaa; }
.dialog-email { margin: 22px 0 0; font-size: .75rem; }
.dialog-email a { color: var(--red); font-weight: 800; text-decoration: underline; }
.service-dialog { width: min(390px, calc(100% - 28px)); margin: auto; padding: 48px 34px 34px; overflow: visible; border-radius: 22px; color: var(--ink); background: var(--paper); text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.service-dialog::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 22px 22px 0 0; background: var(--red-bright); }
.service-dialog h2 { margin: 0; font: 700 clamp(2rem, 5vw, 2.8rem)/.95 var(--display); text-transform: uppercase; }
.service-dialog h2 span { display: block; color: var(--red-bright); }
.service-chat { min-width: 190px; margin-top: 28px; padding: 14px 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--white); background: var(--ink); font: 700 .9rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 12px 28px rgba(0,0,0,.18); transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.service-chat:hover, .service-chat:focus-visible { color: #062b16; background: #25d366; box-shadow: 0 16px 34px rgba(37,211,102,.34); transform: translateY(-3px); }
.lightbox { width: min(1180px, calc(100% - 28px)); max-width: none; max-height: calc(100svh - 28px); margin: auto; padding: 0; color: var(--white); background: var(--ink); overflow: hidden; }
.lightbox-close { color: var(--white); background: rgba(11,11,12,.75); }
.lightbox-stage { height: min(76svh, 780px); display: grid; place-items: center; background: #111; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-copy { padding: 15px 20px 17px; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.lightbox-copy p { margin: 0; font: 700 1rem var(--display); letter-spacing: .03em; text-transform: uppercase; }
.lightbox-copy span { color: #aaa; font-size: .72rem; text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } .quote-word { opacity: 1 !important; transform: none !important; animation: none !important; } .tool-carousel { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .tool-carousel-track { animation: none !important; transform: none !important; } .tool-carousel-group[aria-hidden="true"] { display: none; } }

@media (max-width: 1180px) and (min-width: 1041px) {
  .nav-wrap { grid-template-columns: 1fr auto auto auto; }
  .header-cv { order: 2; }
  .nav-cta { order: 3; }
  .menu-toggle { display: block; order: 4; }
  .site-nav { position: absolute; left: 0; right: 0; top: 104px; padding: 20px 32px 25px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 28px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a::after { bottom: 8px; }
}

@media (max-width: 1040px) {
  :root { --shell: min(100% - 44px, 940px); }
  .nav-wrap { grid-template-columns: 1fr auto auto auto; }
  .header-cv { order: 2; }
  .nav-cta { order: 3; }
  .menu-toggle { display: block; order: 4; }
  .site-nav { position: absolute; left: 0; right: 0; top: 104px; padding: 20px 22px 25px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 28px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a::after { bottom: 8px; }
  .hero-grid { grid-template-columns: 1fr .78fr; gap: 45px; }
  .hero h1 { font-size: clamp(4.1rem, 8.8vw, 6.7rem); }
  .portrait-block { min-height: 540px; margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 760px; min-height: 0; margin-top: 28px; padding-top: 0; }
  .about-facts { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; gap: 45px; }
  .section-heading-row { grid-template-columns: 1fr; }
  .section-heading-row > p { max-width: 560px; }
  .experience-heading h2, .experience-heading > p { grid-column: 1; }
  .experience-heading h2 { font-size: clamp(3.2rem, 8vw, 5rem); }
  .experience-heading > p span { white-space: normal; }
  .capability-heading { grid-template-columns: 1fr; }
  .software-showcase { max-width: 720px; }
  .education-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .project-wide { grid-column: span 1; }
  .work-heading { grid-template-columns: 1fr; }
  .work-intro { max-width: 620px; }
  .portfolio-category-grid { height: 380px; }
  .filter-row { justify-content: flex-start; }
  .contact-band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 74px; }
  :root { --shell: min(100% - 28px, 650px); }
  .nav-wrap { min-height: 74px; grid-template-columns: 1fr auto auto; gap: 11px; }
  .header-cv { display: none; }
  .nav-cta { order: 2; padding: 10px 12px; }
  .menu-toggle { order: 3; }
  .site-nav { top: 74px; }
  .hero { min-height: auto; padding-top: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6rem); }
  .hero-visual { max-width: 520px; margin-top: 15px; justify-self: center; }
  .portrait-block { min-height: 590px; }
  .display-heading { font-size: clamp(3.3rem, 16vw, 5.5rem); }
  .experience { padding-top: 42px; }
  .experience-heading h2 { font-size: clamp(2rem, 10vw, 4.25rem); }
  .capability-copy .display-heading { font-size: clamp(2rem, 8.5vw, 4rem); }
  .about .display-heading { font-size: clamp(3rem, 12vw, 4.6rem); white-space: normal; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .about-facts div, .about-facts div:first-child { padding: 18px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 315px; }
  .software-showcase { grid-template-columns: repeat(3, 1fr); }
  .skills .display-heading { font-size: clamp(3.3rem, 15vw, 5.5rem); }
  .skill-list { grid-template-columns: 1fr; }
  .skill-track { margin-left: 0; }
  .tool-carousel { margin-top: 55px; padding: 22px 0; }
  .tool-carousel-group { gap: 16px; padding-right: 16px; }
  .tool-logo { width: 72px; height: 64px; flex-basis: 72px; padding: 11px; border-radius: 14px; }
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-filter-shell { margin-right: -14px; margin-left: -14px; }
  .portfolio-filters { justify-content: flex-start; padding: 0 14px 4px; }
  .portfolio-category-grid { height: 330px; margin-top: 15px; }
  .portfolio-category { width: min(78vw, 340px); height: 265px; }
  .portfolio-carousel-controls { margin-top: -5px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project { min-height: 290px; }
  .credentials-heading .display-heading { white-space: normal; }
  .education-grid { grid-template-columns: 1fr; }
  .education-card { min-height: 220px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-grid article { min-height: 185px; }
  .cert-grid h3 { margin-top: 30px; }
  .footer-name { font-size: clamp(1.9rem, 8.4vw, 3.25rem); }
  .lightbox-copy { display: block; }
  .lightbox-copy span { display: block; margin-top: 5px; text-align: left; }
  .portfolio-gallery-dialog { width: calc(100% - 12px); max-height: calc(100svh - 12px); border-radius: 18px; }
  .portfolio-gallery-header { min-height: 80px; padding: 18px 68px 16px 18px; }
  .portfolio-gallery-header > span { display: none; }
  .portfolio-gallery-stage { height: min(66svh, 620px); min-height: 250px; }
  .video-gallery-stage { min-height: 220px; }
  .portfolio-gallery-footer { min-height: 76px; padding: 13px 16px; }
  .portfolio-gallery-status { width: auto; flex: 1; }
  .portfolio-gallery-progress { display: none; }
  .portfolio-gallery-controls button { width: 41px; height: 41px; }
  .sticky-actions { left: 7px; }
  .sticky-actions a { width: 40px; height: 40px; }
  .footer-bottom .back-to-top { right: 7px; bottom: 7px; width: 42px; height: 42px; }
}

@media (max-width: 460px) {
  .nav-cta { display: none; }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .hero h1 { font-size: 3.75rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portrait-block { min-height: 510px; }
  .footer-social-icon { width: 64px; height: 64px; border-radius: 18px; }
  .footer-social-icon svg { width: 26px; height: 26px; }
  .contact-dialog { padding: 38px 20px 22px; }
  .contact-options a { grid-template-columns: 38px 1fr; }
  .software-showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .software-token { min-height: 84px; padding: 9px 5px; }
  .skill-head { grid-template-columns: 46px 1fr; }
  .skill-icon { width: 46px; height: 46px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div, .about-facts div:first-child { display: grid; grid-template-columns: 82px 1fr; align-items: center; }
  .about-facts span { margin-top: 0; }
}
