/* =========================================================
   Portfolio · Mahfujar Rahman Refat
   Luxury edition: black · ivory · champagne gold
   ========================================================= */
:root {
    --black: #0c0b0a;
    --char: #131210;
    --char-2: #1a1815;
    --ivory: #f4efe6;
    --ivory-2: #e8e0d1;
    --text: #efe9df;
    --muted: #a39a8b;
    --gold: #d9bf8c;
    --gold-2: #b8975e;
    --gold-3: #8c6d3f;
    --burgundy: #4e1722;
    --line: rgba(217, 191, 140, .2);
    --line-2: rgba(217, 191, 140, .38);
    --gold-grad: linear-gradient(120deg, #f3e3bd 0%, #d4b47a 40%, #a98549 75%, #e2c992 100%);
    --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.22, .9, .25, 1);
    --gut: clamp(16px, 5.5vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; background: var(--black); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--black); }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; }
.wrap { width: 100%; padding-inline: var(--gut); max-width: 1480px; margin-inline: auto; }

/* accent text (class name kept from earlier markup) */
.lime, .purple, h1 em, h2 em {
    font-family: var(--serif); font-style: italic; font-weight: 500;
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}

/* ---------- buttons ---------- */
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 46px; padding: 0 26px;
    border-radius: 999px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer; white-space: nowrap;
    transition: transform .4s var(--ease), box-shadow .4s, background .4s, color .4s;
}
.pill:hover { transform: translateY(-2px); }
.pill-lg { height: 58px; padding: 0 34px; font-size: 13px; }
.pill-lime { background: var(--gold-grad); background-size: 160% 100%; color: #1a1207; box-shadow: 0 14px 34px -16px rgba(217, 191, 140, .7); }
.pill-lime:hover { background-position: 100% 0; box-shadow: 0 18px 40px -14px rgba(217, 191, 140, .85); }
.pill-white { background: var(--ivory); color: var(--black); }
.pill-white:hover { background: #fff; }
.pill-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.pill-dark { background: var(--black); color: var(--gold); }
.pill-dark:hover { background: #000; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.pill.loading { opacity: .7; pointer-events: none; }

.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 0 rgba(217, 191, 140, .6); animation: blink 2.4s infinite; }
@keyframes blink { 70% { box-shadow: 0 0 0 9px rgba(217, 191, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 191, 140, 0); } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px var(--gut); transition: background .5s, padding .5s; }
.nav.scrolled { background: rgba(12, 11, 10, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-block: 14px; box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-links { display: flex; gap: 38px; }
.nav-links a { position: relative; padding: 8px 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .pill { height: 42px; padding: 0 22px; font-size: 11.5px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--text); transition: transform .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.only-mobile { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; background: radial-gradient(70% 80% at 75% 55%, #2a2219 0%, #15120f 45%, var(--black) 75%); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-lines path { fill: none; stroke: rgba(217, 191, 140, .12); stroke-width: 1; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding-top: 120px; }
.hero-copy { padding-bottom: 70px; position: relative; z-index: 3; }
.hero-kicker { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 34px; }
.hero-kicker i { width: 48px; height: 1px; background: var(--gold); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(58px, 7.6vw, 128px); line-height: .95; letter-spacing: -.015em; color: var(--ivory); }
.hero-sub { margin-top: 34px; max-width: 500px; font-size: clamp(15.5px, 1.2vw, 17.5px); color: var(--muted); font-weight: 400; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-avail { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

.hero-art { position: relative; align-self: end; height: min(88vh, 820px); }
.hero-arch {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 78%; height: 88%;
    border-radius: 999px 999px 0 0; box-shadow: inset 0 0 0 1px var(--line-2);
    background: linear-gradient(180deg, rgba(217, 191, 140, .07), rgba(217, 191, 140, 0) 70%);
}
.hero-arch::before { content: ''; position: absolute; inset: 18px 18px 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.hero-glow { position: absolute; left: 50%; top: 30%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(217, 191, 140, .22), transparent 65%); filter: blur(10px); }
.hero-person {
    position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%);
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)) saturate(.95) contrast(1.04); animation: rise 1.4s var(--ease) both .1s;
}
.hero-art::after { content: ''; position: absolute; inset: auto -20% 0; height: 22%; background: linear-gradient(0deg, var(--black), transparent); pointer-events: none; }
.hero-sign {
    position: absolute; right: -4%; bottom: 6%; z-index: 3; font-family: var(--serif); font-style: italic; font-size: clamp(60px, 8vw, 130px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(217, 191, 140, .55); pointer-events: none; animation: rise 1.4s var(--ease) both .5s;
}
@keyframes rise { from { opacity: 0; transform: translate(var(--tx, 0), 50px); } }
.hero-person { --tx: -50%; }

.notif {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 13px 22px 13px 13px; border-radius: 18px;
    background: rgba(19, 18, 16, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .7);
    font-size: 13.5px; line-height: 1.3; white-space: nowrap; animation: pop 1s var(--ease) both, bob 7s ease-in-out infinite;
}
.notif b { display: block; font-weight: 600; color: var(--ivory); }
.notif small { color: var(--muted); font-size: 12px; }
.n-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line-2); }
.n1 { top: 30%; left: -6%; animation-delay: 1s, 2s; }
.n2 { top: 56%; right: -4%; animation-delay: 1.3s, 3s; }
@keyframes pop { from { opacity: 0; transform: translateY(20px); } }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- shared section heads ---------- */
.intro-label, .apps-kicker {
    display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px;
}
.intro-label::before, .apps-kicker::before { content: ''; width: 48px; height: 1px; background: currentColor; }

/* ---------- intro ---------- */
.intro { padding: clamp(120px, 16vw, 230px) 0; background: var(--black); }
.scroll-words { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 74px); line-height: 1.14; max-width: 1180px; color: var(--ivory); }
.scroll-words .sw { opacity: .16; transition: opacity .3s linear; }
.scroll-words .sw.lit { opacity: 1; }

/* ---------- sliding statement ---------- */
.slide-track { height: 260vh; background: var(--black); position: relative; }
.slide-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(12px, 3vw, 56px); }
.slide-card {
    position: relative; width: 100%; height: min(76vh, 700px); border-radius: clamp(24px, 3vw, 44px); overflow: hidden; display: flex; align-items: center;
    background: radial-gradient(70% 90% at 85% 0%, rgba(217, 191, 140, .16), transparent 60%), linear-gradient(160deg, #1d1a16, #100f0d);
    box-shadow: inset 0 0 0 1px var(--line); transform: scale(var(--scale, .9));
}
.slide-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-lines path { fill: none; stroke: rgba(217, 191, 140, .14); stroke-width: 1; }
.slide-text { position: relative; white-space: nowrap; font-family: var(--serif); font-weight: 400; font-size: clamp(90px, 13vw, 220px); letter-spacing: -.02em; color: var(--ivory); transform: translateX(var(--x, 60vw)); will-change: transform; }

/* ---------- apps (pinned phone) ---------- */
.apps { position: relative; height: calc(var(--steps) * 90vh + 30vh); background: linear-gradient(180deg, var(--black), var(--char) 30%, var(--char) 70%, var(--black)); }
.apps::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 40% at 50% 50%, rgba(217, 191, 140, .1), transparent 70%); pointer-events: none; }
.apps-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.apps-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4.5vw, 84px); align-items: center; }
.apps-title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.4vw, 70px); line-height: 1.02; color: var(--ivory); }
.apps-lede { margin-top: 26px; max-width: 360px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.apps-count { margin-top: 54px; display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: 30px; color: var(--muted); }
.apps-count .lime { font-size: 30px; }
.apps-count i { width: 44px; height: 1px; background: var(--gold); }

.phone {
    position: relative; width: 260px; aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 9px;
    background: linear-gradient(145deg, #3a342b, #14120f 40%, #2b261f); box-shadow: 0 0 0 1px rgba(217, 191, 140, .35), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(217, 191, 140, .25);
}
.phone-island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.screen { position: absolute; inset: 9px; border-radius: 38px; overflow: hidden; background: #fff; color: #1b1712; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.apps-phone .phone.big { width: clamp(230px, 20vw, 290px); }
.app-screen { opacity: 0; transform: scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.app-screen.on { opacity: 1; transform: none; }
.as-head { position: relative; padding: 62px 18px 26px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); border-radius: 0 0 28px 28px; }
.as-time { position: absolute; top: 18px; left: 24px; font-size: 12px; font-weight: 600; }
.as-logo { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: rgba(255, 255, 255, .22); margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.as-head b { font-size: 16px; font-weight: 700; }
.as-head small { font-size: 11.5px; opacity: .88; font-weight: 500; max-width: 180px; line-height: 1.35; }
.as-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.as-chips { display: flex; gap: 6px; }
.as-chips span { font-size: 10.5px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: #f1efec; color: #6b6458; }
.as-chips span.on { background: var(--accent); color: #fff; }
.as-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #f7f5f2; }
.as-card i { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 20%, #fff); flex: none; }
.as-card div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.as-card b { height: 8px; width: 80%; border-radius: 4px; background: #e0dbd3; }
.as-card small { height: 6px; width: 50%; border-radius: 4px; background: #ebe7e1; }
.as-card em { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex: none; }
.as-cta { margin-top: 4px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); }

.apps-right { position: relative; min-height: 440px; display: grid; align-items: center; }
.app-info { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); max-width: 430px; }
.app-info.on { opacity: 1; transform: none; pointer-events: auto; }
.app-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.app-info h3 { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3vw, 50px); line-height: 1.02; color: var(--ivory); }
.app-info p { margin-top: 16px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.app-tags span { font-size: 12px; padding: 6px 13px; border-radius: 99px; color: var(--ivory-2); box-shadow: inset 0 0 0 1px var(--line); }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.apps-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.apps-dots i { width: 24px; height: 1px; background: var(--line-2); transition: width .5s var(--ease), background .5s; }
.apps-dots i.on { width: 56px; background: var(--gold); }

/* ---------- ivory section ---------- */
.light { background: var(--ivory); color: #1b1712; padding: clamp(110px, 12vw, 180px) 0; overflow: hidden; }
.light-head { text-align: center; }
.light-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 96px); line-height: 1; color: #15120e; }
.light-head .purple { background: linear-gradient(120deg, #b8975e, #8c6d3f); -webkit-background-clip: text; background-clip: text; }
.light-head p { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #8c7f6a; }
.fan { display: flex; justify-content: center; margin: 80px 0 100px; padding: 20px 0; }
.fan-card {
    position: relative; width: 290px; aspect-ratio: 1.586; border-radius: 20px; padding: 26px; margin: 0 -26px; flex: none;
    display: flex; flex-direction: column; justify-content: flex-end; color: var(--ivory); box-shadow: 0 40px 70px -30px rgba(40, 28, 10, .55);
    transition: transform .7s var(--ease), margin .7s var(--ease);
}
.fan-card.c1 { background: linear-gradient(150deg, #23201c, #0c0b0a); box-shadow: inset 0 0 0 1px rgba(217, 191, 140, .3), 0 40px 70px -30px rgba(40, 28, 10, .55); transform: rotate(-11deg) translateY(18px); }
.fan-card.c2 { background: linear-gradient(135deg, #f1deb3, #c9a66b 45%, #9a7a44 80%, #d8bd86); color: #1a1207; transform: rotate(-3deg); z-index: 1; }
.fan-card.c3 { background: linear-gradient(150deg, #6a2231, var(--burgundy) 55%, #2a0c12); transform: rotate(5deg) translateY(4px); z-index: 2; }
.fan-card.c4 { background: linear-gradient(150deg, #ffffff, #efe8dc); color: #1b1712; box-shadow: inset 0 0 0 1px rgba(184, 151, 94, .5), 0 40px 70px -30px rgba(40, 28, 10, .55); transform: rotate(12deg) translateY(24px); z-index: 3; }
.fan:hover .fan-card { margin: 0 8px; }
.fan-chip { position: absolute; top: 24px; left: 26px; width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f3dd9e, #b8955a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.fan-card.c2 .fan-chip { background: linear-gradient(135deg, #fff3d6, #d6bb85); }
.fan-logo { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-size: 18px; letter-spacing: .08em; opacity: .85; }
.fan-card b { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.fan-card small { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(140, 109, 63, .3); }
.svc { padding: 40px 32px 10px 0; transition: transform .5s var(--ease); }
.svc + .svc { padding-left: 32px; border-left: 1px solid rgba(140, 109, 63, .22); }
.svc-ico { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold-2); }
.svc h3 { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.1; color: #15120e; }
.svc p { margin-top: 12px; font-size: 14.5px; color: #6f6556; line-height: 1.75; }

/* ---------- orbit ---------- */
.orbit-sec { position: relative; overflow: hidden; padding: clamp(110px, 11vw, 170px) 0; background: radial-gradient(60% 55% at 50% 38%, #251f17 0%, #12100e 55%, var(--black) 100%); }
.stars { position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(1.2px 1.2px at 12% 20%, var(--gold), transparent), radial-gradient(1px 1px at 80% 12%, var(--gold), transparent), radial-gradient(1.2px 1.2px at 64% 70%, var(--gold), transparent), radial-gradient(1px 1px at 30% 82%, var(--gold), transparent), radial-gradient(1px 1px at 90% 60%, var(--gold), transparent), radial-gradient(1.2px 1.2px at 45% 35%, var(--gold), transparent), radial-gradient(1px 1px at 6% 60%, var(--gold), transparent); }
.orbit { position: relative; width: min(700px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.ring { position: absolute; border-radius: 50%; }
.ring-dots { inset: 0; border: 2px dotted var(--gold); opacity: .75; animation: spin 90s linear infinite; mask-image: conic-gradient(#000 0 62%, transparent 62% 70%, #000 70% 100%); -webkit-mask-image: conic-gradient(#000 0 62%, transparent 62% 70%, #000 70% 100%); }
.ring-thin { inset: 7%; border: 1px solid var(--line); animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.orbit-center p { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.orbit-center h2 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.6vw, 100px); line-height: 1; color: var(--ivory); }
.planet { position: absolute; inset: 0; pointer-events: none; animation: orbit 80s linear infinite; }
.planet-in {
    position: absolute; left: 50%; top: calc(50% - var(--r)); pointer-events: auto; padding: 11px 20px; border-radius: 99px;
    background: rgba(19, 18, 16, .88); color: var(--ivory); font-size: 13px; font-weight: 500; white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -14px rgba(0, 0, 0, .8); animation: counter 80s linear infinite;
}
@keyframes orbit { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes counter { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
.stack-groups { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(70px, 8vw, 120px); border-top: 1px solid var(--line); }
.stack-group { padding: 30px 26px 0 0; }
.stack-group + .stack-group { padding-left: 26px; border-left: 1px solid var(--line); }
.stack-group small { display: block; font-size: 11.5px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; margin-bottom: 18px; }
.stack-group div { display: flex; flex-direction: column; gap: 8px; }
.stack-group span { font-family: var(--serif); font-size: 21px; color: var(--ivory-2); line-height: 1.2; }

/* ---------- journey ---------- */
.journey { padding: clamp(110px, 12vw, 180px) 0; background: var(--black); }
.journey-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.8vw, 92px); line-height: 1; max-width: 900px; color: var(--ivory); }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.job { padding: clamp(28px, 3vw, 42px); border-radius: 28px; background: linear-gradient(170deg, #191713, #100f0d); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.job:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(217, 191, 140, .25); }
.job.current { background: radial-gradient(90% 70% at 100% 0%, rgba(217, 191, 140, .16), transparent 60%), linear-gradient(170deg, #1f1b15, #110f0c); box-shadow: inset 0 0 0 1px var(--gold-2); }
.job-lead { background: var(--ivory); color: #1b1712; box-shadow: none; }
.job-lead:hover { box-shadow: 0 40px 80px -40px rgba(217, 191, 140, .4); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 32px; }
.job-period { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.job-lead .job-period { color: var(--gold-3); }
.job-now { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); }
.job-emoji { font-size: 18px; color: var(--gold-2); }
.job h3 { margin-top: 50px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.02; }
.job-role { margin-top: 8px; font-size: 14px; color: var(--muted); }
.job-lead .job-role { color: #6f6556; }
.job ul { margin: 26px 0 0; padding: 22px 0 0; list-style: none; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.job-lead ul { border-color: rgba(140, 109, 63, .25); }
.job li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.7; color: var(--ivory-2); }
.job-lead li { color: #4a4237; }
.job li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--gold); }
.job-lead li::before { background: var(--gold-3); }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 60px; border-top: 1px solid var(--line); }
.cred { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
a.cred[href]:hover { padding-left: 10px; }
.cred-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.cred div { flex: 1; min-width: 0; }
.cred b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; color: var(--ivory); }
.cred small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cred .lime { font-family: var(--sans); font-style: normal; font-weight: 600; }
.cred-arrow { color: var(--gold); transition: transform .4s var(--ease); }
a.cred:hover .cred-arrow { transform: translate(3px, -3px); }

/* ---------- promise ---------- */
.promise {
    padding: clamp(130px, 15vw, 220px) 0; text-align: center; background-color: var(--char);
    background-image: linear-gradient(45deg, rgba(217, 191, 140, .035) 25%, transparent 25%, transparent 75%, rgba(217, 191, 140, .035) 75%), linear-gradient(45deg, rgba(217, 191, 140, .035) 25%, transparent 25%, transparent 75%, rgba(217, 191, 140, .035) 75%);
    background-size: 56px 56px; background-position: 0 0, 28px 28px;
}
.promise-tags { display: inline-flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.promise-tags i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.promise h2 { margin: 30px auto 0; max-width: 1050px; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 86px); line-height: 1.05; color: var(--ivory); }

/* ---------- contact (ivory) ---------- */
.contact { background: var(--ivory); color: #15120e; padding: clamp(110px, 12vw, 170px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.contact-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6.8vw, 112px); line-height: .95; }
.contact-copy h2 em { background: linear-gradient(120deg, #b8975e, #8c6d3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-copy > p { margin-top: 28px; max-width: 440px; font-size: 16px; color: #6f6556; line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid rgba(140, 109, 63, .25); max-width: 480px; }
.contact-links a { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(140, 109, 63, .25); font-size: 15px; font-weight: 500; transition: padding .4s var(--ease), color .3s; }
.contact-links a span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--gold-3); box-shadow: inset 0 0 0 1px rgba(140, 109, 63, .4); }
.contact-links a:hover { padding-left: 10px; color: var(--gold-3); }

.form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.2vw, 44px); border-radius: 30px; background: #fffdf9; box-shadow: 0 0 0 1px rgba(140, 109, 63, .18), 0 60px 120px -50px rgba(60, 40, 10, .35); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; padding: 10px 17px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #4a4237; box-shadow: inset 0 0 0 1px rgba(140, 109, 63, .3); transition: .3s; }
.topics input:checked + span { background: #15120e; color: var(--gold); box-shadow: none; }
.topics input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea {
    width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1px solid rgba(140, 109, 63, .22); background: #faf7f1; color: #15120e;
    font: 500 15px var(--sans); outline: none; resize: vertical; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; }
.field span { position: absolute; left: 19px; top: 18px; color: #8c7f6a; font-size: 14.5px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--gold-2); background: #fff; box-shadow: 0 0 0 4px rgba(184, 151, 94, .12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-3); }
.field.invalid input, .field.invalid textarea { border-color: #b4233c; }
.form .pill { width: 100%; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.form-errors { color: #a51d34; font-size: 13.5px; font-weight: 600; }
.form-errors:empty { display: none; }
.form-success { position: absolute; inset: 0; z-index: 5; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #fffdf9; opacity: 0; pointer-events: none; transform: scale(.98); transition: .6s var(--ease); }
.form-success.show { opacity: 1; pointer-events: auto; transform: none; }
.form-success h3 { margin-top: 20px; font-family: var(--serif); font-size: 40px; font-weight: 500; }
.form-success p { margin-top: 6px; color: #6f6556; }
.success-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #1a1207; background: var(--gold-grad); }

/* ---------- footer ---------- */
.footer { background: var(--black); padding: 40px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-links a { color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer small { color: var(--muted); font-size: 12.5px; }

/* ---------- reveal ---------- */
.js .up { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .up.in { opacity: 1; transform: none; }
.js .fan-card.up { transform: translateY(80px); }
.js .fan-card.c1.up.in { transform: rotate(-11deg) translateY(18px); }
.js .fan-card.c2.up.in { transform: rotate(-3deg); }
.js .fan-card.c3.up.in { transform: rotate(5deg) translateY(4px); }
.js .fan-card.c4.up.in { transform: rotate(12deg) translateY(24px); }
.js .fan:hover .fan-card.c1 { transform: rotate(-4deg); } .js .fan:hover .fan-card.c2 { transform: rotate(-1deg) translateY(-10px); }
.js .fan:hover .fan-card.c3 { transform: rotate(1deg) translateY(-10px); } .js .fan:hover .fan-card.c4 { transform: rotate(4deg); }
.fan-card.c2 { transition-delay: 80ms; } .fan-card.c3 { transition-delay: 160ms; } .fan-card.c4 { transition-delay: 240ms; }
.hero .up { animation: rise 1.1s var(--ease) both; }
.hero .up:nth-child(2) { animation-delay: .12s; } .hero .up:nth-child(3) { animation-delay: .24s; }
.hero .up:nth-child(4) { animation-delay: .36s; } .hero .up:nth-child(5) { animation-delay: .48s; }
.js .hero .up { opacity: 1; transform: none; transition: none; }

/* ---------- responsive ---------- */
@media (min-width: 961px) {
    .apps-sticky { padding-top: 64px; }
    .apps-phone .phone.big { width: min(clamp(230px, 20vw, 290px), calc((100svh - 140px) / 2.067)); }
}
@media (max-width: 1180px) {
    .services { grid-template-columns: 1fr 1fr; }
    .svc:nth-child(3) { padding-left: 0; border-left: 0; }
    .stack-groups { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
    .stack-group:nth-child(4) { padding-left: 0; border-left: 0; }
    .fan-card { width: 250px; }
    .fan-card b { font-size: 44px; }
    .nav-links { gap: 26px; }
}
@media (max-width: 960px) {
    .burger { display: block; }
    .hide-sm { display: none; }
    .only-mobile { display: block; }
    .nav-links { position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 12px 22px; border-radius: 22px; background: rgba(19, 18, 16, .97); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .35s var(--ease); }
    .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
    .nav-links a { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-links a::after { display: none; }

    .hero-grid { grid-template-columns: 1fr; padding-top: 120px; gap: 10px; }
    .hero-copy { padding-bottom: 10px; }
    .hero-art { height: 600px; max-width: 520px; width: 100%; justify-self: center; }
    .n1 { left: 0; } .n2 { right: 0; }

    .apps { height: auto; }
    .apps-sticky { position: relative; height: auto; padding: 110px 0 100px; display: block; }
    .apps-grid { grid-template-columns: 1fr; gap: 50px; }
    .apps-phone { justify-self: center; }
    .apps-right { min-height: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
    .app-info { opacity: .55; transform: none; pointer-events: auto; max-width: none; padding: 28px 0; border-bottom: 1px solid var(--line); transition: opacity .5s; cursor: pointer; }
    .app-info.on { opacity: 1; }
    .apps-dots { display: none; }
    .apps-count { margin-top: 30px; }

    .jobs, .creds, .contact-grid { grid-template-columns: 1fr; }
    .fan { flex-wrap: wrap; gap: 16px; margin: 56px 0 70px; }
    .fan-card, .js .fan-card[class*="c"].up.in, .js .fan:hover .fan-card[class*="c"] { margin: 0; transform: none; width: calc(50% - 8px); }
}
@media (max-width: 600px) {
    .brand { font-size: 22px; } .brand-mark { width: 38px; height: 38px; font-size: 13px; }
    .nav-cta .pill { height: 40px; padding: 0 16px; font-size: 10.5px; }
    .hero-actions .pill-lg { height: 54px; padding: 0 26px; font-size: 12px; }
    .hero-art { height: 470px; }
    .hero-sign { right: 0; }
    .notif { font-size: 12px; padding: 9px 14px 9px 9px; gap: 10px; }
    .n-ico { width: 30px; height: 30px; font-size: 12px; }
    .n1 { top: 22%; } .n2 { top: 60%; }
    .slide-track { height: 200vh; }
    .slide-card { height: 58vh; }
    .services, .stack-groups, .row2 { grid-template-columns: 1fr; }
    .svc, .svc + .svc { padding: 30px 0; border-left: 0; border-bottom: 1px solid rgba(140, 109, 63, .22); }
    .stack-group, .stack-group + .stack-group { padding: 26px 0 0; border-left: 0; }
    .fan-card, .js .fan-card[class*="c"].up.in { width: 100%; max-width: 340px; margin-inline: auto; }
    .planet-in { font-size: 10.5px; padding: 7px 11px; }
    .job h3 { margin-top: 30px; }
    .footer-row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Full-stack edition additions
   ========================================================= */
.nav-links { gap: 30px; }
.hero-person { animation: rise 1.4s var(--ease) both .1s, develop 2.6s ease both .3s; }
@keyframes develop { from { filter: grayscale(1) brightness(.85) drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); } }
.hero-title { font-size: clamp(56px, 6.8vw, 116px); }

/* services: 3 × 2 */
.services { grid-template-columns: repeat(3, 1fr); }
.svc { padding: 40px 32px 40px 0; border-bottom: 1px solid rgba(140, 109, 63, .22); }
.svc + .svc { padding-left: 32px; border-left: 1px solid rgba(140, 109, 63, .22); }
.svc:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.fan { margin: 70px 0 90px; }

/* ---------- websites & systems ---------- */
.work { padding: clamp(110px, 12vw, 170px) 0; background: var(--black); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 70px; }
.work-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 86px); line-height: 1; color: var(--ivory); max-width: 820px; }
.work-lede { max-width: 400px; font-size: 15.5px; color: var(--muted); line-height: 1.8; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.site { display: flex; flex-direction: column; gap: 28px; }
.site-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(30px, 4vw, 70px); align-items: center; padding-bottom: 56px; border-bottom: 1px solid var(--line); }

.browser { display: block; border-radius: 16px; overflow: hidden; background: #191714; box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -40px rgba(0, 0, 0, .9); transition: transform .7s var(--ease), box-shadow .7s; }
.site:hover .browser { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--gold-2), 0 60px 100px -40px rgba(217, 191, 140, .25); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: linear-gradient(180deg, #23201b, #1a1814); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a352d; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 260px; height: 22px; border-radius: 99px; display: flex; align-items: center; padding: 0 12px; font-size: 11.5px; color: var(--muted); background: rgba(0, 0, 0, .35); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 1440 / 765; overflow: hidden; background: #f3f1ec; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.site:hover .browser-view img { transform: scale(1.04); }

.site-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2); }
.site-badge.my-product { background: var(--gold-grad); color: #1a1207; box-shadow: none; }
.site-badge.in-progress { color: var(--muted); box-shadow: inset 0 0 0 1px rgba(163, 154, 139, .35); }
.site-cat { font-size: 12.5px; color: var(--muted); }
.site h3 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; color: var(--ivory); }
.site-featured h3 { font-size: clamp(40px, 4vw, 64px); }
.site-body > p { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.site-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-points li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ivory-2); }
.site-points li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold); }
.site-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: gap .4s var(--ease), border-color .3s; }
.site-link:hover { gap: 16px; border-color: var(--gold); }

/* turf booking mock (no screenshot yet) */
.mock-turf { position: absolute; inset: 0; display: grid; grid-template-columns: 30% 1fr; background: #f6f4ef; color: #1d2a22; font-size: 11px; }
.mt-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; background: #13241a; color: #cfe3d4; }
.mt-side b { font-size: 12.5px; color: #fff; margin-bottom: 8px; }
.mt-side span { padding: 6px 8px; border-radius: 7px; }
.mt-side span.on { background: rgba(255, 255, 255, .12); color: #fff; }
.mt-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.mt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mt-head b { display: block; font-size: 13px; }
.mt-head small { color: #6b7a70; }
.mt-head em { font-style: normal; font-weight: 700; color: #2f7d4f; white-space: nowrap; }
.mt-pitch { position: relative; flex: 1; min-height: 40px; border-radius: 8px; background: repeating-linear-gradient(90deg, #2f8a55 0 10%, #2a7d4d 10% 20%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.mt-pitch::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .7); }
.mt-pitch i { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.mt-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mt-slots span { text-align: center; padding: 5px 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #dfe5df; font-weight: 600; }
.mt-slots span.booked { color: #a8b2aa; background: #eceeea; text-decoration: line-through; }
.mt-slots span.pick { background: #2f7d4f; color: #fff; box-shadow: none; }

/* ---------- AI chatbot ---------- */
.bot { padding: clamp(110px, 12vw, 170px) 0; background: radial-gradient(50% 60% at 80% 50%, rgba(217, 191, 140, .08), transparent 70%), var(--char); }
.bot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.bot-copy .work-lede { margin-top: 28px; max-width: 520px; }
.bot-points { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bot-points li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bot-points li > span { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold); min-width: 34px; }
.bot-points b { display: block; font-family: var(--serif); font-weight: 500; font-size: 23px; color: var(--ivory); }
.bot-points small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.chat { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #1c1a16, #12110f); box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 140px -60px rgba(217, 191, 140, .35); }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #1a1207; background: var(--gold-grad); }
.chat-head b { display: block; font-size: 15px; font-weight: 600; color: var(--ivory); }
.chat-head small { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.chat-head .blink { width: 6px; height: 6px; }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; min-height: 380px; }
.msg { max-width: 82%; padding: 13px 17px; border-radius: 20px; font-size: 14.5px; line-height: 1.6; }
.msg.user { align-self: flex-end; background: var(--gold-grad); color: #1a1207; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, .06); color: var(--ivory-2); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.msg.bot b { color: var(--gold); font-weight: 600; }
.typing { display: none; align-self: flex-start; gap: 5px; padding: 14px 17px; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.typing.show { display: inline-flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.js .chat .msg { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .chat .msg.show { opacity: 1; transform: none; }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 16px; padding: 8px 8px 8px 20px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.chat-input b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #1a1207; background: var(--gold-grad); }

/* skills: 6 groups → 3 × 2 */
.stack-groups { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
.stack-group:nth-child(3n+1) { padding-left: 0; border-left: 0; }

/* journey: 2 × 2 */
.jobs { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1180px) {
    .nav-links { gap: 20px; }
    .nav-links a { letter-spacing: .14em; }
    .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .services { grid-template-columns: 1fr 1fr; }
    .svc, .svc + .svc { padding: 34px 24px 34px 0; border-left: 0; }
    .svc:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(140, 109, 63, .22); }
    .site-featured, .bot-grid { grid-template-columns: 1fr; }
    .stack-groups { grid-template-columns: 1fr 1fr; }
    .stack-group, .stack-group + .stack-group { padding-left: 0; border-left: 0; }
    .jobs { grid-template-columns: 1fr; }
    .nav-links { gap: 0; }
}
@media (max-width: 600px) {
    .services, .work-grid, .stack-groups { grid-template-columns: 1fr; }
    .svc, .svc + .svc, .svc:nth-child(even) { padding: 30px 0; border-left: 0; }
    .chat-body { min-height: 0; padding: 20px 16px; }
    .msg { max-width: 90%; font-size: 13.5px; }
    .mock-turf { font-size: 9px; }
}

/* =========================================================
   Round 4: stats band, real app galleries, chapters
   ========================================================= */

/* ---- stats band (replaces the card fan) ---- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 70px 0 90px; border-top: 1px solid rgba(140, 109, 63, .3); border-bottom: 1px solid rgba(140, 109, 63, .3); }
.stat { position: relative; padding: 44px 28px 40px; text-align: left; }
.stat + .stat { border-left: 1px solid rgba(140, 109, 63, .22); }
.stat::before { content: ''; position: absolute; top: -1px; left: 28px; width: 46px; height: 2px; background: linear-gradient(90deg, #b8975e, #8c6d3f); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 5.6vw, 92px); line-height: .9; letter-spacing: -.02em; background: linear-gradient(160deg, #15120e 30%, #8c6d3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { display: block; margin-top: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #15120e; }
.stat small { display: block; margin-top: 8px; font-size: 13.5px; color: #7a6f5f; line-height: 1.6; max-width: 240px; }

/* ---- apps: real store screenshots ---- */
.apps-grid { grid-template-columns: .9fr auto 1.1fr; }
.apps-gallery { position: relative; width: clamp(320px, 30vw, 460px); height: min(74svh, 640px); }
.gal { position: absolute; inset: 0; display: grid; place-items: center; }
.gal-glow { position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); opacity: .45; filter: blur(30px); }
.shot { position: absolute; margin: 0; height: 84%; aspect-ratio: 9 / 16.5; border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(217, 191, 140, .28), 0 40px 80px -30px rgba(0, 0, 0, .85); transition: transform 1s var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.s0 { z-index: 3; transform: translateY(0); }
.shot.s1 { z-index: 2; height: 72%; transform: translateX(-46%) rotate(-7deg); filter: brightness(.72); }
.shot.s2 { z-index: 1; height: 72%; transform: translateX(46%) rotate(7deg); filter: brightness(.72); }
.gal.n1 .shot.s0 { height: 88%; }
.gal:not(.on) .shot.s1 { transform: translateX(-20%) rotate(-2deg); }
.gal:not(.on) .shot.s2 { transform: translateX(20%) rotate(2deg); }

.app-brand { display: flex; align-items: center; gap: 16px; }
.app-logo { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 16px 30px -12px rgba(0, 0, 0, .7); flex: none; }
.app-brand .app-cat { display: block; }
.app-client { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.app-info h3 { margin-top: 22px; }
.app-metric { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.app-metric i { width: 18px; height: 1px; background: var(--gold); }
.app-role { margin: 18px 0 0; padding: 16px 0 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.app-role li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ivory-2); line-height: 1.6; }
.app-role li::before { content: ''; position: absolute; left: 0; top: 10px; width: 9px; height: 1px; background: var(--gold); }
.apps-right { min-height: 600px; }
.app-info p { font-size: 14.5px; line-height: 1.75; }

/* ---- chapter: leadership & education ---- */
.journey { padding-bottom: clamp(70px, 8vw, 110px); }
.chapter { padding: clamp(90px, 10vw, 150px) 0; background: linear-gradient(180deg, var(--black), var(--char)); border-top: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 60px; }
.chap-card { position: relative; padding: clamp(30px, 3.4vw, 48px); border-radius: 30px; overflow: hidden; }
.chap-lead { background: var(--ivory); color: #15120e; }
.chap-edu { background: radial-gradient(90% 80% at 100% 0%, rgba(217, 191, 140, .16), transparent 60%), linear-gradient(170deg, #1f1b15, #100f0d); box-shadow: inset 0 0 0 1px var(--gold-2); }
.chap-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); }
.chap-edu .chap-top { color: var(--gold); }
.chap-top em { font-style: normal; font-size: 18px; }
.chap-card h3 { margin-top: 56px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.2vw, 52px); line-height: 1.02; }
.chap-edu h3 { color: var(--ivory); }
.chap-sub { margin-top: 12px; font-size: 15px; color: #6f6556; }
.chap-edu .chap-sub { color: var(--muted); }
.chap-card ul { margin: 28px 0 0; padding: 22px 0 0; list-style: none; display: grid; gap: 12px; border-top: 1px solid rgba(140, 109, 63, .25); }
.chap-card li { position: relative; padding-left: 22px; font-size: 14.5px; color: #4a4237; line-height: 1.7; }
.chap-card li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold-3); }
.chap-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---- chapter: certifications ---- */
.certs { background: var(--ivory); color: #15120e; padding: clamp(100px, 11vw, 160px) 0; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 70px; }
.cert { display: block; padding: 10px; border-radius: 6px; background: #fffdf8; box-shadow: 0 0 0 1px rgba(140, 109, 63, .35), 0 40px 70px -40px rgba(60, 40, 10, .45); transition: transform .6s var(--ease), box-shadow .6s; }
.cert:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px #b8975e, 0 50px 80px -40px rgba(60, 40, 10, .55); }
.cert-frame { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 26px 26px; border: 1px solid rgba(140, 109, 63, .45); outline: 1px solid rgba(140, 109, 63, .2); outline-offset: -6px;
    background: radial-gradient(120% 70% at 50% 0%, rgba(217, 191, 140, .14), transparent 60%); }
.cert-seal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #1a1207; background: var(--gold-grad); box-shadow: 0 0 0 5px #fffdf8, 0 0 0 6px rgba(140, 109, 63, .45); }
.cert-kind { margin-top: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3); }
.cert h3 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; }
.cert p { margin-top: 10px; font-size: 14px; color: #6f6556; }
.cert-foot { display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 30px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8c7f6a; }
.cert-foot span:last-child { color: var(--gold-3); }

@media (max-width: 1180px) {
    .apps-gallery { width: clamp(280px, 28vw, 380px); }
    .stat-band { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(140, 109, 63, .22); }
}
@media (max-width: 960px) {
    .apps-grid { grid-template-columns: 1fr; }
    .apps-gallery { justify-self: center; width: min(420px, 100%); height: 520px; }
    .apps-right { min-height: 0; }
    .chapter-grid, .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .stat-band { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(140, 109, 63, .22); }
    .stat:nth-child(-n+2) { border-bottom: 0; }
    .apps-gallery { height: 430px; }
    .shot.s1 { transform: translateX(-38%) rotate(-6deg); } .shot.s2 { transform: translateX(38%) rotate(6deg); }
}
@media (min-width: 961px) and (max-height: 820px) { .app-role { display: none; } .app-info h3 { margin-top: 16px; } }

/* ---- formal hero portrait: editorial vignette ---- */
.hero-person {
    height: 84%;
    -webkit-mask-image: radial-gradient(ellipse 58% 68% at 50% 40%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 58% 68% at 50% 40%, #000 62%, transparent 100%);
}
.hero-arch { width: 74%; height: 86%; }
.hero-glow { top: 34%; }

/* ---- chapter with lifestyle photo ---- */
.chapter-grid.has-photo { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
.chapter-grid:not(.has-photo) .chap-stack { display: contents; }
.chap-stack { display: grid; gap: 22px; }
.chap-photo { position: relative; margin: 0; min-height: 560px; border-radius: 30px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.chap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; filter: saturate(.9) contrast(1.03); transition: transform 1.4s var(--ease); }
.chap-photo:hover img { transform: scale(1.04); }
.chap-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 11, 10, .85)); }
.chap-photo figcaption { position: absolute; left: 28px; bottom: 26px; z-index: 1; }
.chap-photo b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ivory); }
.chap-photo small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.chap-stack .chap-card h3 { margin-top: 34px; }
@media (max-width: 960px) { .chapter-grid.has-photo { grid-template-columns: 1fr; } .chap-photo { min-height: 480px; } }

/* ---- MR monogram logo ---- */
.brand-logo { height: 34px; width: auto; filter: drop-shadow(0 4px 14px rgba(217, 191, 140, .25)); transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.06); }
.brand { gap: 16px; }
.footer .brand-logo { height: 30px; }
@media (max-width: 600px) { .brand-logo { height: 28px; } }

/* ---- hero: developer cards beside the portrait ---- */
.code-card, .term-card {
    position: absolute; z-index: 4; border-radius: 16px; overflow: hidden;
    background: rgba(17, 16, 14, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 70px -24px rgba(0, 0, 0, .8);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; animation: pop 1s var(--ease) both, bob 8s ease-in-out infinite;
}
.cc-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.cc-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a352d; }
.cc-bar i:first-child { background: #8c6d3f; }
.cc-bar span { margin-left: 8px; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.code-card { top: 18%; left: -16%; width: 290px; animation-delay: .9s, 2s; }
.code-card pre { margin: 0; padding: 14px 16px 16px; font-size: 11.5px; line-height: 1.6; color: var(--ivory-2); white-space: pre; }
.code-card .k { color: #c9a66b; } .code-card .t { color: #f3e3bd; font-weight: 600; } .code-card .s { color: #9fbf8f; } .code-card .f { color: #e8d3a6; }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--gold); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-card { bottom: 12%; right: -8%; width: 250px; animation-delay: 1.3s, 3.2s; }
.term-card p { margin: 0; padding: 0 14px; font-size: 11.5px; line-height: 1.9; color: var(--ivory-2); }
.term-card p:nth-of-type(1) { padding-top: 10px; }
.term-card p:last-child { padding-bottom: 12px; }
.term-card b { color: var(--gold); }
.term-card .ok { color: #9fbf8f; }
@media (max-width: 1180px) { .code-card { left: -6%; width: 260px; } .code-card pre { font-size: 10.5px; } }
@media (max-width: 960px) { .code-card { left: 0; top: 10%; } .term-card { right: 0; } }
@media (max-width: 600px) { .code-card { display: none; } .term-card { width: 210px; bottom: 8%; } .term-card p { font-size: 10.5px; } }

/* ---- arms-crossed portrait: full figure, fade only at the bottom ---- */
.hero-person {
    height: 92%;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero-arch { width: 78%; height: 88%; }
.code-card { top: 14%; left: -20%; }
.term-card { bottom: 10%; right: -10%; }
@media (max-width: 1180px) { .code-card { left: -8%; } }
@media (max-width: 960px) { .code-card { left: 0; } .term-card { right: 0; } }

/* ---- hero monogram (shown until a hero portrait is uploaded) ---- */
.hero-mono { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 78%; height: 88%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; z-index: 2; animation: rise 1.4s var(--ease) both .15s; --tx: -50%; }
.hero-mono img { width: 58%; height: auto; filter: drop-shadow(0 20px 50px rgba(217, 191, 140, .35)); animation: monoGlow 6s ease-in-out infinite; }
.hero-mono span { font-family: var(--serif); font-size: 160px; color: var(--gold); }
.hero-mono small { font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@keyframes monoGlow { 50% { filter: drop-shadow(0 20px 70px rgba(217, 191, 140, .6)); transform: translateY(-6px); } }
.hero-art:has(.hero-mono) .code-card { top: 6%; left: -24%; }
.hero-art:has(.hero-mono) .term-card { bottom: 8%; right: -6%; }
.hero-art:has(.hero-mono)::after { display: none; }

/* ---- section labels ---- */
.sec-label { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3); }
.sec-label::before, .light-head .sec-label::after { content: ''; width: 40px; height: 1px; background: currentColor; }
.contact-copy .sec-label::after { display: none; }
.apps-kicker { font-weight: 700; }
.slide-label { position: absolute; top: clamp(24px, 4vw, 48px); left: clamp(24px, 4vw, 56px); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.orbit-head { position: relative; text-align: center; margin-bottom: clamp(40px, 5vw, 70px); }
.orbit-head .apps-kicker { justify-content: center; }
.orbit-head .apps-kicker::after { content: ''; width: 48px; height: 1px; background: currentColor; }
.orbit-center p { display: none; }

/* anchor targets stop below the fixed nav */
section[id] { scroll-margin-top: 70px; }
@media (max-width: 600px) { .slide-label { font-size: 10px; letter-spacing: .16em; right: 24px; } .hero-mono span { font-size: 110px; } }

/* =========================================================
   Hero developer scene: workstation behind the portrait
   ========================================================= */
.hero-art .hero-arch { display: none; }
.hero-art::after { height: 26%; }
.dev-scene { position: absolute; inset: 0; z-index: 1; perspective: 1400px; }
.monitor { position: absolute; display: flex; flex-direction: column; align-items: center; }
.m-screen {
    position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #0f0e0c;
    box-shadow: 0 0 0 7px #1b1915, 0 0 0 8px rgba(217, 191, 140, .35), 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 120px -10px rgba(217, 191, 140, .22);
}
.m-stand { width: 16%; height: 46px; background: linear-gradient(180deg, #1d1a16, #0f0e0c); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.m1 { left: -10%; top: 9%; width: 84%; transform: rotateY(12deg); transform-origin: left center; }
.m1 .m-screen { aspect-ratio: 16 / 10; display: grid; grid-template-columns: 26% 1fr; }
.m2 { right: -8%; top: 4%; width: 30%; transform: rotateY(-16deg); transform-origin: right center; }
.m2 .m-screen { aspect-ratio: 10 / 16; padding: 14px 12px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

.ed-side { display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; background: #14120f; border-right: 1px solid var(--line); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 9.5px; color: #8a8173; }
.ed-side b { font-size: 8.5px; letter-spacing: .18em; color: var(--gold-2); margin-bottom: 4px; }
.ed-side span.on { color: var(--ivory); background: rgba(217, 191, 140, .1); margin: 0 -10px; padding: 2px 10px; border-left: 2px solid var(--gold); }
.ed-main { display: flex; flex-direction: column; min-width: 0; }
.ed-tabs { display: flex; height: 26px; background: #14120f; border-bottom: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; }
.ed-tabs span { padding: 0 12px; display: flex; align-items: center; color: #7c7467; border-right: 1px solid var(--line); }
.ed-tabs span.on { color: var(--ivory); background: #0f0e0c; box-shadow: inset 0 2px 0 var(--gold); }
.ed-code { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 85%, transparent); }
.scroll-code { margin: 0; padding: 10px 14px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.7; color: #cfc6b6; white-space: pre; animation: codeScroll 28s linear infinite; }
.scroll-code .k { color: #c9a66b; } .scroll-code .t { color: #f3e3bd; } .scroll-code .s { color: #9fbf8f; } .scroll-code .f { color: #e8d3a6; } .scroll-code .c { color: #6e675b; font-style: italic; }
@keyframes codeScroll { to { transform: translateY(-50%); } }

.m2 .term p { margin: 0; font-size: 9.5px; line-height: 2; color: #cfc6b6; white-space: nowrap; overflow: hidden; }
.m2 .term b { color: var(--gold); }
.m2 .term .ok { color: #9fbf8f; }
.m2 .term .dim { color: #6e675b; }
.m2 .term p { opacity: 0; animation: termIn .4s ease forwards; }
.m2 .term p:nth-child(1) { animation-delay: 1.2s; } .m2 .term p:nth-child(2) { animation-delay: 1.8s; } .m2 .term p:nth-child(3) { animation-delay: 2.6s; }
.m2 .term p:nth-child(4) { animation-delay: 3.4s; } .m2 .term p:nth-child(5) { animation-delay: 4.3s; } .m2 .term p:nth-child(6) { animation-delay: 5.1s; }
.m2 .term p:nth-child(7) { animation-delay: 6s; } .m2 .term p:nth-child(8) { animation-delay: 6.6s; }
@keyframes termIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* the person stands in front of the workstation, rim-lit in gold */
.has-person .hero-person {
    left: auto; right: 2%; height: 90%; transform: none; --tx: 0; z-index: 3;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
    filter: drop-shadow(0 0 1.5px rgba(243, 227, 189, .65)) drop-shadow(-18px 0 40px rgba(217, 191, 140, .28)) drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}
.has-person .hero-glow { left: 62%; top: 42%; width: 80%; background: radial-gradient(circle, rgba(217, 191, 140, .28), transparent 62%); }
.has-person .n1 { top: auto; bottom: 22%; left: -4%; z-index: 4; }
.hero-art:not(.has-person) .n1 { display: none; }
.hero-art:has(.hero-mono) .dev-scene { opacity: .55; }

@media (max-width: 1180px) { .m1 { left: -4%; width: 80%; } .m2 { right: -2%; } }
@media (max-width: 960px) { .m1 { left: 0; } .m2 { right: 0; } }
@media (max-width: 600px) {
    .m1 { top: 6%; width: 92%; } .m2 { display: none; }
    .scroll-code { font-size: 8.5px; } .ed-side { display: none; } .m1 .m-screen { grid-template-columns: 1fr; }
    .has-person .hero-person { right: -4%; height: 86%; }
    .has-person .n1 { left: 0; bottom: 14%; }
}
@media (prefers-reduced-motion: reduce) { .m2 .term p { opacity: 1; } }

/* ---- AI portrait: centred in front of the workstation (matches the approved mock-up) ---- */
.has-person .hero-person {
    left: 52%; right: auto; transform: translateX(-50%); --tx: -50%; height: 86%;
    -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 99%); mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
    filter: drop-shadow(0 0 1px rgba(243, 227, 189, .35)) drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
    animation: rise 1.4s var(--ease) both .1s;
}
.has-person .hero-glow { left: 52%; top: 34%; width: 72%; background: radial-gradient(circle, rgba(217, 168, 90, .38), rgba(217, 191, 140, .08) 45%, transparent 66%); filter: blur(6px); }
.has-person .dev-scene { opacity: .72; }
.has-person .m1 { left: -6%; top: 22%; width: 76%; }
.has-person .m2 { right: -6%; top: 18%; width: 28%; }
.has-person .n1 { display: none; }
@media (max-width: 960px) { .has-person .hero-person { height: 84%; } .has-person .m1 { left: 0; } .has-person .m2 { right: 0; } }
@media (max-width: 600px) { .has-person .hero-person { height: 80%; left: 50%; } }
.has-person .hero-person { height: 93%; } .has-person .m1 { top: 16%; } .has-person .m2 { top: 12%; } .has-person .hero-glow { top: 28%; }

/* ---- portrait: sit higher, dissolve shoulders/torso into the dark (no hard arm cut-offs) ---- */
.has-person .hero-person {
    bottom: 7%; height: 90%;
    -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 34%, #000 58%, rgba(0, 0, 0, .55) 76%, transparent 96%);
    mask-image: radial-gradient(ellipse 50% 62% at 50% 34%, #000 58%, rgba(0, 0, 0, .55) 76%, transparent 96%);
}
.has-person .hero-glow { top: 24%; }
.has-person .m1 { top: 10%; } .has-person .m2 { top: 6%; }
@media (max-width: 600px) { .has-person .hero-person { bottom: 4%; height: 86%; } }

/* =========================================================
   Motion pack (primenow-style scrolling)
   ========================================================= */
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* 1. hero exits as you scroll: copy drifts up and fades, the workstation zooms toward you */
.hero-copy { transform: translateY(calc(var(--hp, 0) * -120px)); opacity: calc(1 - var(--hp, 0) * 1.5); will-change: transform, opacity; }
.hero-art { transform: translateY(calc(var(--hp, 0) * 70px)) scale(calc(1 + var(--hp, 0) * .05)); transform-origin: 50% 100%; will-change: transform; }
.hero .dev-scene { transform: scale(calc(1 + var(--hp, 0) * .28)); transform-origin: 40% 45%; opacity: calc(.72 - var(--hp, 0) * .5); }
.hero-glow { opacity: calc(1 - var(--hp, 0) * .6); }

/* 2. sections slide up over each other like stacked cards */
.light, .work, .bot, .orbit-sec, .journey, .chapter, .certs, .promise, .contact {
    position: relative; margin-top: -48px; border-radius: 48px 48px 0 0;
    box-shadow: 0 -40px 70px -30px rgba(0, 0, 0, .65);
}
.chapter { border-top: 0; }
@media (max-width: 600px) {
    .light, .work, .bot, .orbit-sec, .journey, .chapter, .certs, .promise, .contact { margin-top: -28px; border-radius: 28px 28px 0 0; }
}

/* 3. the giant sliding line smears with scroll speed */
.slide-text { transform: translateX(var(--x, 60vw)) skewX(var(--skew, 0deg)); filter: blur(var(--blur, 0px)); }

/* 4. headings come into focus */
.js .blur-in { opacity: 0; filter: blur(18px); transform: translateY(26px) scale(1.03); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.js .blur-in.in { opacity: 1; filter: blur(0); transform: none; }

/* 5. footer curtain reveal */
.footer { padding: clamp(70px, 9vw, 120px) 0 0; background: radial-gradient(70% 90% at 50% 120%, rgba(217, 191, 140, .14), transparent 60%), var(--black); border-top: 0; overflow: hidden; }
body.footer-reveal .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
body.footer-reveal main { position: relative; z-index: 1; background: var(--black); }
body.footer-reveal .contact { border-radius: 48px; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8), 0 -40px 70px -30px rgba(0, 0, 0, .65); }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-top .sec-label { color: var(--gold); }
.footer-cta { display: inline-flex; align-items: baseline; gap: .3em; flex-wrap: wrap; font-family: var(--serif); font-size: clamp(40px, 5.6vw, 92px); line-height: 1; color: var(--ivory); transition: color .4s; }
.footer-cta em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cta span { font-family: var(--sans); font-size: .5em; color: var(--gold); transition: transform .5s var(--ease); }
.footer-cta:hover span { transform: translateX(12px); }
.footer-contacts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; color: var(--muted); }
.footer-contacts a:hover { color: var(--gold); }
.footer-row { padding: 30px 0; }
.footer-giant {
    font-family: var(--serif); font-size: clamp(80px, 17vw, 300px); line-height: .78; text-align: center; white-space: nowrap; letter-spacing: -.02em;
    color: transparent; -webkit-text-stroke: 1px rgba(217, 191, 140, .35); margin-bottom: -.12em; user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy, .hero-art, .hero .dev-scene { transform: none !important; opacity: 1 !important; }
    .js .blur-in { opacity: 1; filter: none; transform: none; }
}

/* =========================================================
   Engineer details: mono type, terminal line, tech strip, code
   ========================================================= */
:root { --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* section labels read like code comments */
.apps-kicker, .sec-label, .hero-kicker, .intro-label { font-family: var(--mono); font-weight: 500; letter-spacing: .14em; }
.apps-kicker::before, .sec-label::before { content: '//'; width: auto; height: auto; background: none; color: var(--gold-2); letter-spacing: 0; }
.light-head .sec-label::after, .orbit-head .apps-kicker::after { display: none; }
.hero-kicker::after { content: '_'; margin-left: -10px; color: var(--gold); animation: caret 1s steps(1) infinite; }
.stat-l, .app-cat, .site-badge, .job-period, .chap-top, .cert-kind, .cert-foot, .lead-period, .app-metric, .site-link, .slide-label, .tech-label { font-family: var(--mono); letter-spacing: .12em; }

/* live terminal line in the hero */
.hero-type { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px; border-radius: 10px; font-family: var(--mono); font-size: 14px; color: var(--ivory-2); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.hero-type .prompt { color: var(--gold); }
.hero-type .type-word { color: #9fbf8f; min-width: 1ch; }
.hero-type .caret { width: 8px; height: 16px; margin-left: -6px; }
.hero-actions { margin-top: 30px; }

/* tech logo strip */
.tech-strip { position: relative; padding: 46px 0 96px; background: var(--black); border-top: 1px solid var(--line); overflow: hidden; }
.tech-label { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.tech-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 54px; width: max-content; animation: marquee 46s linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 15px; color: var(--ivory-2); white-space: nowrap; transition: color .3s; }
.tech-item i { width: 30px; height: 30px; background: var(--gold-grad); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; transition: transform .4s var(--ease); }
.tech-item:hover { color: var(--gold); }
.tech-item:hover i { transform: scale(1.15) rotate(-6deg); }

/* code under each service */
.svc-code { display: inline-block; margin-top: 14px; padding: 6px 11px; border-radius: 7px; font-family: var(--mono); font-size: 12px; color: #7a5a2c; background: rgba(184, 151, 94, .12); box-shadow: inset 0 0 0 1px rgba(140, 109, 63, .2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc p { margin-top: 14px; }

/* blueprint grid behind the dark sections */
.work, .journey, .bot {
    background-image:
        linear-gradient(rgba(217, 191, 140, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 191, 140, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}
.bot { background-image: linear-gradient(rgba(217, 191, 140, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 191, 140, .045) 1px, transparent 1px), radial-gradient(50% 60% at 80% 50%, rgba(217, 191, 140, .08), transparent 70%); background-size: 64px 64px, 64px 64px, auto; }

.built-with { font-family: var(--mono); font-size: 11.5px; color: var(--gold-2); }
@media (max-width: 600px) { .hero-type { font-size: 12px; } .tech-item { font-size: 13px; } .tech-track { gap: 36px; } }

/* footer giant name: show the full letters (no clipping at the bottom) */
.footer-giant { font-size: clamp(70px, 14.5vw, 250px); line-height: 1; margin: 10px 0 0; padding-bottom: clamp(24px, 3vw, 48px); }
.footer { padding-top: clamp(48px, 6vw, 90px); } .footer-top { padding-bottom: 38px; } .footer-cta { font-size: clamp(38px, 5vw, 84px); } .footer-row { padding: 22px 0; } .footer-giant { font-size: clamp(64px, 13vw, 230px); padding-bottom: clamp(18px, 2.4vw, 40px); }

/* =========================================================
   SaaS vs client work
   SaaS = solid gold (mine). Client = ivory outline (theirs).
   ========================================================= */
.own-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; white-space: nowrap; }
.own-badge.saas { background: var(--gold-grad); color: #1a1207; }
.own-badge.saas::before { content: '◆'; font-size: 9px; }
.own-badge.client { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .55); }
.own-badge.client::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); }

.work-legend { display: grid; gap: 12px; max-width: 440px; }
.work-legend p { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.work-legend .own-badge { min-width: 96px; justify-content: center; }

.work-group + .work-group { margin-top: clamp(90px, 10vw, 140px); }
.group-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 26px 0; margin-bottom: 56px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.group-no { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-style: italic; }
.group-saas .group-no { background: var(--gold-grad); color: #1a1207; }
.group-client .group-no { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .55); }
.group-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; color: var(--ivory); }
.group-head h3 em { font-style: italic; }
.group-saas .group-head h3 em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.group-head p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.group-count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.saas-list { display: grid; gap: clamp(60px, 7vw, 100px); }
.saas-list .site-featured { padding-bottom: 0; border-bottom: 0; }
.saas-list .site-featured:nth-child(even) .browser { order: 2; }
.saas-list .browser { box-shadow: 0 0 0 1px var(--gold-2), 0 50px 90px -40px rgba(217, 191, 140, .28); }

.work-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.group-client .browser-view { filter: saturate(.92); }

/* corner flag on each screenshot so the type is clear even at a glance */
.own-flag { position: absolute; bottom: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.own-flag.saas { background: var(--gold-grad); color: #1a1207; }
.own-flag.client { background: rgba(12, 11, 10, .82); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.site-for { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.site-for b { font-weight: 600; color: var(--ivory); }
.site-for span { margin: 0 6px; color: var(--gold-3); }
.site-body > .site-for + p { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.8; }

.app-brand .own-badge { margin-bottom: 8px; }

@media (max-width: 960px) {
    .saas-list .site-featured:nth-child(even) .browser { order: 0; }
    .group-head { grid-template-columns: auto 1fr; }
    .group-count { grid-column: 2; }
}
@media (max-width: 600px) {
    .work-grid.cols-2 { grid-template-columns: 1fr; }
    .group-head { gap: 16px; margin-bottom: 40px; }
    .group-no { width: 46px; height: 46px; font-size: 21px; }
    .work-legend .own-badge { min-width: 84px; }
}

/* =========================================================
   Client reviews (ivory section between the dark ones)
   ========================================================= */
.reviews { position: relative; margin-top: -48px; border-radius: 48px 48px 0 0; box-shadow: 0 -40px 70px -30px rgba(0, 0, 0, .65); background: var(--ivory); color: #15120e; padding: clamp(110px, 12vw, 170px) 0; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.reviews-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.6vw, 90px); line-height: 1; color: #15120e; }
.reviews-head h2 em { background: linear-gradient(120deg, #b8975e, #8c6d3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reviews-lede { max-width: 380px; font-size: 15.5px; line-height: 1.8; color: #6d6455; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.review { position: relative; margin: 0; display: flex; flex-direction: column; gap: 22px; padding: 38px 34px 30px; border-radius: 26px; background: #fbf8f2; box-shadow: inset 0 0 0 1px rgba(140, 109, 63, .18), 0 30px 60px -40px rgba(40, 28, 10, .45); transition: transform .6s var(--ease), box-shadow .6s; }
.review:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(140, 109, 63, .45), 0 40px 70px -40px rgba(40, 28, 10, .55); }
.review-mark { position: absolute; top: 4px; right: 26px; font-family: var(--serif); font-size: 120px; line-height: 1; color: rgba(184, 151, 94, .28); pointer-events: none; }
.review-stars { display: flex; gap: 4px; font-size: 15px; color: #b8975e; }
.review-stars .off { color: rgba(140, 109, 63, .25); font-style: normal; }
.review-stars i { font-style: normal; }
.review blockquote { margin: 0; flex: 1; font-family: var(--serif); font-size: clamp(21px, 1.7vw, 25px); line-height: 1.4; color: #1b1712; }
.review figcaption { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding-top: 22px; border-top: 1px solid rgba(140, 109, 63, .2); }
.review-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-style: italic; color: #1a1207; background: var(--gold-grad); }
.review figcaption b { display: block; font-size: 15px; font-weight: 600; color: #15120e; }
.review figcaption small { display: block; margin-top: 2px; font-size: 13px; color: #7a705f; }
.review-project { grid-column: 1 / -1; justify-self: start; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; color: #7a5a2c; background: rgba(184, 151, 94, .12); }
@media (max-width: 600px) {
    .reviews { margin-top: -28px; border-radius: 28px 28px 0 0; }
    .reviews-grid { grid-template-columns: 1fr; }
    .review { padding: 32px 24px 26px; }
}

/* =========================================================
   Horizontal project tracks (SaaS row + client carousel)
   ========================================================= */
.group-side { display: flex; align-items: center; gap: 22px; }
.h-nav { display: flex; gap: 10px; }
.h-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; color: var(--gold); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s, opacity .3s, box-shadow .3s; }
.h-nav button:hover:not(:disabled) { background: var(--gold-grad); color: #1a1207; box-shadow: none; }
.h-nav button:disabled { opacity: .3; cursor: default; }
.h-nav.is-static { display: none; }

.h-track { display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 12px 2px 34px; margin: -12px -2px 0; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent; }
.h-track::-webkit-scrollbar { height: 6px; }
.h-track::-webkit-scrollbar-track { background: rgba(217, 191, 140, .08); border-radius: 99px; }
.h-track::-webkit-scrollbar-thumb { background: var(--gold-3); border-radius: 99px; }
.h-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-track.dragging a { pointer-events: none; }
.h-track:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 6px; border-radius: 16px; }
.h-track > .site { flex: none; scroll-snap-align: start; }

/* SaaS: every product side by side (two fill the row; more scroll) */
.saas-track > .site { width: calc((100% - 28px) / 2); }
.saas-track .browser { box-shadow: 0 0 0 1px var(--gold-2), 0 50px 90px -40px rgba(217, 191, 140, .28); }
.saas-track .site h3 { font-size: clamp(34px, 3vw, 48px); }

/* Client: narrower cards so the next one always peeks in */
.client-track > .site { width: clamp(300px, 58%, 760px); }

@media (max-width: 960px) {
    .saas-track > .site { width: 82%; }
    .client-track > .site { width: 72%; }
    .group-side { grid-column: 2; }
}
@media (max-width: 600px) {
    .h-track { gap: 18px; }
    .saas-track > .site, .client-track > .site { width: 86%; }
    .h-nav button { width: 42px; height: 42px; }
}

/* =========================================================
   Tech stack: premium cards
   ========================================================= */
.stack-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(70px, 8vw, 120px); }
.stack-card {
    --mx: 50%; --my: 0%;
    position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 34px 32px 30px; border-radius: 26px; overflow: hidden;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 191, 140, .13), transparent 60%), linear-gradient(165deg, rgba(37, 32, 25, .92), rgba(17, 15, 13, .96));
    box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.stack-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(243, 227, 189, .7), transparent); opacity: .6; }
.stack-card:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px var(--gold-2), 0 50px 90px -40px rgba(217, 191, 140, .22); }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sc-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 30% 20%, rgba(243, 227, 189, .16), rgba(217, 191, 140, .04)); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .5s, color .5s; }
.sc-ico svg { width: 26px; height: 26px; }
.stack-card:hover .sc-ico { background: var(--gold-grad); color: #1a1207; box-shadow: none; }
.sc-no { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; background: linear-gradient(180deg, rgba(217, 191, 140, .55), rgba(217, 191, 140, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack-card h3 { margin-top: 30px; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; color: var(--ivory); }
.sc-line { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sc-chips { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 9px; }
.sc-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; color: var(--ivory-2); background: rgba(244, 239, 230, .035); box-shadow: inset 0 0 0 1px rgba(217, 191, 140, .16); transition: color .3s, box-shadow .3s, background .3s; }
.sc-chips li::before { content: ''; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); opacity: .8; }
.sc-chips li:hover { color: var(--ivory); background: rgba(217, 191, 140, .1); box-shadow: inset 0 0 0 1px var(--gold-2); }
.sc-count { margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); }

@media (max-width: 960px) { .stack-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .stack-cards { grid-template-columns: 1fr; gap: 16px; }
    .stack-card { padding: 28px 24px 24px; }
    .stack-card h3 { font-size: 30px; margin-top: 22px; }
}

/* =========================================================
   Partners & brands: two-way logo marquee
   ========================================================= */
.partners { position: relative; overflow: hidden; margin-top: -48px; border-radius: 48px 48px 0 0; box-shadow: 0 -40px 70px -30px rgba(0, 0, 0, .65); padding: clamp(110px, 12vw, 170px) 0 clamp(100px, 11vw, 150px); background: radial-gradient(70% 60% at 50% 0%, #241e16 0%, #110f0d 55%, var(--black) 100%); }
.partners-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.partners-head .apps-kicker { justify-content: center; }
.partners-head .work-lede { margin-top: 24px; max-width: 560px; }
.partner-rows { display: grid; gap: 22px; margin-top: clamp(60px, 7vw, 90px); }
.partner-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partner-track { display: flex; gap: 22px; width: max-content; animation: partner-slide calc(var(--n) * 6s) linear infinite; }
.partner-marquee.rev .partner-track { animation-direction: reverse; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes partner-slide { to { transform: translateX(calc(-50% - 11px)); } }

.partner { flex: none; display: flex; align-items: center; gap: 18px; min-width: 300px; padding: 18px 28px 18px 18px; border-radius: 22px; background: linear-gradient(165deg, rgba(37, 32, 25, .9), rgba(17, 15, 13, .95)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .5s, transform .5s var(--ease); }
a.partner:hover, div.partner:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold-2), 0 30px 60px -30px rgba(217, 191, 140, .25); }
.partner-logo { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-logo.mono { background: var(--gold-grad); color: #1a1207; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.partner-txt b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.1; color: var(--ivory); white-space: nowrap; }
.partner-txt small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

@media (max-width: 600px) {
    .partners { margin-top: -28px; border-radius: 28px 28px 0 0; }
    .partner { min-width: 250px; padding: 14px 20px 14px 14px; gap: 14px; }
    .partner-logo { width: 52px; height: 52px; border-radius: 13px; }
    .partner-txt b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .partner[aria-hidden="true"] { display: none; }
    .partner-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* partner rows: one row per relationship, each brand listed once */
.partner-rows { gap: 46px; }
.partner-label { display: flex; align-items: center; gap: 16px; width: min(1320px, calc(100% - 48px)); margin: 0 auto 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.partner-label i { flex: 1; height: 1px; background: var(--line); }
.partner-label em { font-style: normal; color: var(--gold-3); }
.partner-track { animation-duration: calc(var(--n) * 5s); }
@media (prefers-reduced-motion: reduce) { .partner[aria-hidden="true"] { display: none; } }

/* partners: static grid, each brand shown once */
.partner-row { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.partner-label { width: auto; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.partner-grid .partner { flex: 1 1 280px; min-width: 0; max-width: calc((100% - 36px) / 3); }
.partner-txt { min-width: 0; }
.partner-txt b, .partner-txt small { white-space: normal; }
@media (max-width: 960px) { .partner-grid .partner { max-width: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .partner-row { width: calc(100% - 32px); } .partner-grid .partner { max-width: 100%; flex-basis: 100%; } }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.partner-grid .partner { max-width: none; min-width: 0; padding: 16px 18px 16px 16px; gap: 14px; }
.partner-grid .partner-logo { width: 56px; height: 56px; border-radius: 14px; }
.partner-grid .partner-txt b { font-size: 21px; }
@media (max-width: 600px) { .partner-grid { grid-template-columns: 1fr; } }

/* partners: one wall of brand tiles (logo + name only) */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; width: min(1320px, calc(100% - 48px)); margin: clamp(60px, 7vw, 90px) auto 0; }
.brand-tile { flex: 0 1 236px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 196px; padding: 30px 20px 26px; border-radius: 24px; text-align: center; background: linear-gradient(165deg, rgba(37, 32, 25, .9), rgba(17, 15, 13, .95)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.brand-tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--gold-2), 0 30px 60px -30px rgba(217, 191, 140, .25); }
.brand-tile .partner-logo { width: 76px; height: 76px; border-radius: 20px; }
.brand-tile .partner-logo.mono { font-size: 30px; }
.brand-tile b { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15; color: var(--ivory); }
@media (max-width: 600px) {
    .partner-wall { width: calc(100% - 32px); gap: 12px; }
    .brand-tile { flex-basis: calc(50% - 6px); min-height: 160px; padding: 22px 12px 20px; gap: 14px; }
    .brand-tile .partner-logo { width: 60px; height: 60px; border-radius: 16px; }
    .brand-tile b { font-size: 18px; }
}
.brand-tile .partner-logo img[src$="aamra.png"] { width: 62%; height: 62%; }
.partner-wall { width: min(1000px, calc(100% - 48px)); }
@media (max-width: 600px) { .partner-wall { width: calc(100% - 32px); } }
.brand-tile .partner-logo img[src$="mm-international.png"] { width: 84%; height: 84%; }
.brand-tile:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.brand-tile { cursor: default; }

/* partners: one horizontally scrollable row */
.partner-wall.h-track { flex-wrap: nowrap; justify-content: flex-start; width: min(1320px, calc(100% - 48px)); padding: 12px 2px 30px; }
.partner-wall.h-track > .brand-tile { flex: 0 0 236px; scroll-snap-align: start; }
.partner-nav { justify-content: center; margin-top: 18px; }
@media (max-width: 600px) {
    .partner-wall.h-track { width: calc(100% - 32px); }
    .partner-wall.h-track > .brand-tile { flex-basis: 46%; }
}

/* footer: small LinkedIn / GitHub logo buttons */
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.footer-social a:hover { background: var(--gold-grad); color: #1a1207; box-shadow: none; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

/* thin gold scroll-progress line under the menu */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--gold-grad); box-shadow: 0 0 12px rgba(217, 191, 140, .6); }

/* magnetic buttons */
.magnetic { transition: transform .45s var(--ease); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } .magnetic { transform: none !important; } }

/* footer contact chips (email / phone / WhatsApp) */
.footer-contacts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.contact-chip { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 99px; color: var(--ivory); background: linear-gradient(165deg, rgba(37, 32, 25, .9), rgba(17, 15, 13, .95)); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .35s, transform .35s var(--ease); }
.contact-chip:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--gold), 0 20px 40px -24px rgba(217, 191, 140, .4); }
.chip-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #1a1207; background: var(--gold-grad); flex: none; }
.chip-ico svg { width: 19px; height: 19px; }
.contact-chip small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-chip > span:last-child { font-size: 14.5px; line-height: 1.25; }
.footer-row small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .contact-chip { width: 100%; } }

/* footer: premium GitHub / LinkedIn cards */
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.social-card { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 16px; min-width: 270px; padding: 12px 22px 12px 12px; border-radius: 22px; color: var(--ivory); background: linear-gradient(165deg, rgba(37, 32, 25, .92), rgba(17, 15, 13, .96)); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgba(0, 0, 0, .9); transition: transform .5s var(--ease), box-shadow .5s; }
.social-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); opacity: 0; transition: opacity .5s; }
.social-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(217, 191, 140, .45); }
.social-card:hover::before { opacity: 1; }
.social-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #1a1207; background: var(--gold-grad); box-shadow: 0 10px 24px -12px rgba(217, 191, 140, .6); transition: background .5s, color .5s; }
.social-ico svg { width: 24px; height: 24px; }
.social-txt { flex: 1; }
.social-txt b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; }
.social-txt small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gold); transition: color .5s; }
.social-arrow { font-size: 18px; color: var(--gold); transition: transform .5s var(--ease), color .5s; }
.social-card:hover .social-ico { background: #15120e; color: var(--gold); box-shadow: none; }
.social-card:hover .social-txt b, .social-card:hover .social-txt small, .social-card:hover .social-arrow { color: #1a1207; }
.social-card:hover .social-arrow { transform: translate(3px, -3px); }
@media (max-width: 600px) { .footer-social { width: 100%; } .social-card { flex: 1 1 100%; min-width: 0; } }
.footer-social a.social-card { width: auto; height: auto; display: inline-flex; border-radius: 22px; }
.footer-social a.social-card:hover { background: none; }
.footer-social a.social-card svg { width: 24px; height: 24px; }

/* footer: icon-only LinkedIn / GitHub / WhatsApp next to the logo */
.footer-row .brand { margin-right: auto; }
.footer-icons { display: flex; gap: 12px; margin-right: auto; }
.footer-icons a { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: linear-gradient(165deg, rgba(37, 32, 25, .95), rgba(17, 15, 13, .98)); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -18px rgba(0, 0, 0, .9); transition: transform .45s var(--ease), color .35s, box-shadow .45s, background .45s; }
.footer-icons a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gold-grad); opacity: 0; transition: opacity .45s; z-index: 0; }
.footer-icons svg { position: relative; z-index: 1; width: 21px; height: 21px; }
.footer-icons a:hover { transform: translateY(-4px); color: #1a1207; box-shadow: 0 20px 36px -16px rgba(217, 191, 140, .55); }
.footer-icons a:hover::after { opacity: 1; }
@media (max-width: 600px) { .footer-row .brand, .footer-icons { margin-right: 0; } }
.footer-row .brand { margin-right: 0; }
.footer-icons { margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--line); }
@media (max-width: 600px) { .footer-icons { margin-left: 0; padding-left: 0; border-left: 0; } }

/* footer row: logo | back to top (centre) | © name + media icons */
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-row .brand { justify-self: start; }
.footer-row .footer-links { justify-self: center; }
.footer-end { justify-self: end; display: flex; align-items: center; gap: 24px; }
.footer-end .footer-icons { margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); }
@media (max-width: 960px) {
    .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-row .brand, .footer-row .footer-links, .footer-end { justify-self: center; }
    .footer-end { flex-direction: column-reverse; gap: 18px; }
    .footer-end .footer-icons { padding: 0; border-left: 0; }
}

/* icons sit under the © name */
.footer-end { flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-end .footer-icons { padding: 0; border-left: 0; }
@media (max-width: 960px) { .footer-end { flex-direction: column; align-items: center; } }

/* footer: logo, © name and icons stacked on the left; back to top centred */
.footer-start { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-start .footer-end { justify-self: auto; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-row .footer-links { grid-column: 2; }
@media (max-width: 960px) {
    .footer-start, .footer-start .footer-end { align-items: center; justify-self: center; }
    .footer-row .footer-links { grid-column: auto; }
}
.footer-copy { grid-column: 3; justify-self: end; }
@media (max-width: 960px) { .footer-copy { grid-column: auto; justify-self: center; } }

/* review avatars: company logos on a clean white tile */
img.review-avatar { display: block; background: #fff; object-fit: contain; border-radius: 14px; box-shadow: 0 0 0 1px rgba(140, 109, 63, .2), 0 10px 22px -12px rgba(40, 28, 10, .45); }
img.review-avatar[src$=".png"] { padding: 5px; }
img.review-avatar[src*="mm-international"] { padding: 2px; }

/* menu: keep the longer labels on one line */
.nav-links a { white-space: nowrap; }

/* keyboard focus: gold ring instead of the browser's blue box (mouse clicks show none) */
.nav-links a:focus { outline: none; }
.nav-links a:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
