/* UxWithAwais — premium portfolio. Hand-written, ~10KB, no framework. */
:root {
  --bg: #f6f5f1;
  --bg-2: #ffffff;
  --ink: #0b0c0a;
  --ink-2: #3a3d37;
  --mute: #6b6f66;
  --line: rgba(11, 12, 10, 0.1);
  --green: #3ddc84;
  --green-ink: #0a6b36;
  --dark: #0b0c0a;
  --dark-2: #15170f;
  --on-dark: #f3f2ec;
  --on-dark-mute: #a3a69b;
  --radius: 28px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--mute); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.display { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.display em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 56ch; }

/* progress + grain */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); z-index: 90; }

/* nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 80; display: flex; justify-content: center; padding: 0 14px; transition: transform 400ms var(--ease-out); }
.nav.hide { transform: translateY(-140%); }
.nav-in { width: min(100%, 980px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(246, 245, 241, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(11, 12, 10, 0.06); }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; display: inline-flex; align-items: center; min-height: 44px; }
.mail { min-height: 44px; display: inline-flex !important; align-items: center; }
.logo b { color: var(--green-ink); font-weight: 700; }
.links { display: none; gap: 4px; }
.links a { position: relative; padding: 10px 16px; font-size: 15px; font-weight: 600; border-radius: 999px; transition: background-color 200ms ease; }
.links a[aria-current="true"] { background: rgba(11, 12, 10, 0.07); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--ink); color: #fff; min-height: 48px; position: relative; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease-out); will-change: transform; }
.btn:active { transform: scale(0.97); }
.btn .arr { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--ink); transition: transform 300ms var(--ease-out); }
.btn.light { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.btn.green { background: var(--green); color: var(--ink); }
.btn.green .arr { background: var(--ink); color: var(--green); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-label { position: relative; z-index: 1; display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
  .links a:hover { background: rgba(11, 12, 10, 0.06); }
}
.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 300ms var(--ease-out); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 70; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 500ms var(--ease-in-out), visibility 0s linear 500ms; }
.sheet.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 500ms var(--ease-in-out), visibility 0s; }
.sheet a.big { font-size: clamp(36px, 10vw, 56px); font-weight: 500; letter-spacing: -0.03em; padding: 6px 0; opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.sheet.open a.big { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 50ms); }
.nav-cta { display: none; }
@media (min-width: 960px) { .links, .nav-cta { display: flex; } .menu-btn { display: none; } }

/* hero */
.hero { padding: clamp(130px, 16vw, 190px) 0 clamp(60px, 8vw, 100px); overflow: clip; }
.hero::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(61, 220, 132, 0.28), transparent 70%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate3d(-6vmax, 6vmax, 0) scale(1.08); } }
.hero-grid { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 64px; } }
.avail { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.hero h1 { font-size: clamp(46px, 8.6vw, 128px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 500; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 70ms + 150ms); }
.ready h1 .w > i, .in .w > i { transform: none; }
.hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--ink-2); }
.uline { position: relative; display: inline-block; }
.uline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.09em; background: var(--green); border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--ease-in-out) 1100ms; }
.ready .uline::after { transform: scaleX(1); }
.hero .lead { margin-top: 32px; }
.hero .lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.textlink { font-weight: 700; padding: 12px 4px; display: inline-flex; gap: 8px; position: relative; }
.textlink::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1px; background: currentColor; transform-origin: 100% 50%; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover::after { transform: scaleX(0); } }
[data-fade] { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms + 500ms); }
.ready [data-fade] { opacity: 1; transform: none; filter: none; }
.portrait { position: relative; perspective: 1000px; max-width: 440px; margin-inline: auto; width: 100%; }
.portrait-card { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 3 / 4; background: #dfe3d8; box-shadow: 0 40px 80px -30px rgba(11, 12, 10, 0.35); transform-style: preserve-3d; will-change: transform; clip-path: inset(0 0 100% 0 round 36px); transition: clip-path 1200ms var(--ease-in-out) 300ms; }
.ready .portrait-card { clip-path: inset(0 0 0 0 round 36px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.12); transition: transform 1600ms var(--ease-out) 300ms; }
.ready .portrait img { transform: scale(1); }
.chip { position: absolute; background: var(--dark); color: var(--on-dark); border-radius: 20px; padding: 12px 18px; font-size: 13px; line-height: 1.3; box-shadow: 0 16px 40px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px) scale(0.95); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.ready .chip { opacity: 1; transform: none; transition-delay: 1300ms; }
.chip small { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; color: var(--on-dark-mute); font-weight: 700; }
.chip b { font-size: 18px; font-weight: 600; }
.chip.a { top: 28px; right: -14px; animation: bob 6s ease-in-out infinite; }
.chip.b { bottom: 30px; left: -18px; background: #fff; color: var(--ink); animation: bob 7s ease-in-out -2s infinite; }
.chip.b small { color: var(--mute); }
@keyframes bob { 50% { translate: 0 -8px; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 56px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.track span::after { content: "✦"; color: var(--green-ink); font-size: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 0 28px 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: 14px; font-weight: 600; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-split] [data-split] {}

/* work */
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr auto; align-items: end; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; min-height: 44px; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.work-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } .work-grid .card:nth-child(3n+1) { grid-column: span 2; } }
.card { display: block; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.card[hidden] { display: none; }
.card .shot { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1100ms var(--ease-in-out) calc(var(--i, 0) * 90ms + 100ms); }
.card.in .shot { clip-path: inset(0 0 0 0 round var(--radius)); }
.card.out { opacity: 0; transform: scale(0.97); }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #e4e6df; border: 1px solid var(--line); }
.card:nth-child(3n+1) .shot { aspect-ratio: 21 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; scale: 1.1; translate: 0 var(--py, 0px); transition: object-position 400ms var(--ease-out), transform 700ms var(--ease-out); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,12,10,.35)); opacity: 0; transition: opacity 300ms ease; }
.pill { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px) scale(0.97); transition: opacity 250ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .shot img { object-position: 50% 100%; transition: object-position 7s linear; }
  .card:hover .shot::after, .card:hover .pill { opacity: 1; transform: none; }
}
.card-meta { display: flex; justify-content: space-between; gap: 16px; padding: 22px 6px 0; align-items: flex-start; }
.card h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.2; }
.card .site { font-size: 13px; color: var(--mute); font-weight: 600; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tags span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--mute); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.more { display: flex; justify-content: center; margin-top: 56px; }

/* dark sections */
.dark { background: var(--dark); color: var(--on-dark); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); }
.dark .eyebrow, .dark .lead { color: var(--on-dark-mute); }
.dark .display em { color: var(--green); }

/* services */
.rows { border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(40px, 5vw, 64px); }
.row { display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; transition: padding 400ms var(--ease-out); }
@media (min-width: 900px) { .row { grid-template-columns: 90px 1.1fr 1.4fr 48px; align-items: center; gap: 32px; } }
.row .n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--on-dark-mute); }
.row h3 { font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.1; }
.row p { color: var(--on-dark-mute); grid-column: 2; max-width: 52ch; }
@media (min-width: 900px) { .row p { grid-column: auto; } }
.row .go { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); place-items: center; transition: background-color 250ms ease, color 250ms ease, transform 400ms var(--ease-out); }
@media (min-width: 900px) { .row .go { display: grid; } }
.row::before { content: ""; position: absolute; inset: 0 -20px; background: rgba(255,255,255,.05); border-radius: 20px; opacity: 0; transition: opacity 300ms ease; z-index: 0; }
.row > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { opacity: 1; }
  .row:hover .go { background: var(--green); color: var(--ink); border-color: var(--green); transform: rotate(-45deg); }
}

/* process */
.steps { position: relative; display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps .bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { padding-top: 32px; position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transition: background-color 300ms ease, transform 400ms var(--ease-out); }
.step.on::before { background: var(--green); transform: scale(1.3); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--mute); }
.step h3 { font-size: 26px; letter-spacing: -0.03em; font-weight: 600; margin: 6px 0 10px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* manifesto */
.manifesto p.big { font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
.manifesto p.big { max-width: 24ch; }
.mw { color: rgba(243, 242, 236, 0.2); transition: color 300ms ease; }
.mw.lit { color: var(--on-dark); }
.mw.green.lit { color: var(--green); }
.checks { display: grid; gap: 12px 40px; margin-top: 56px; padding: 0; list-style: none; }
@media (min-width: 700px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.checks li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); color: var(--on-dark-mute); }
.checks li::before { content: "↗"; color: var(--green); }

/* experience + tools */
.two { display: grid; gap: 56px; }
@media (min-width: 900px) { .two { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.exp { list-style: none; padding: 0; margin: 0; }
.exp li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.exp b { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.exp span { color: var(--mute); font-size: 15px; }
.exp em { font-style: normal; color: var(--mute); font-size: 14px; font-weight: 600; grid-row: 1; grid-column: 2; align-self: center; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tool { padding: 14px 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.tool small { display: block; color: var(--mute); font-weight: 500; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .tool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(11,12,10,.25); } }

/* faq */
.faq { max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 4px; text-align: left; font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; min-height: 64px; }
.q .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 400ms var(--ease-out), background-color 250ms ease; }
.q .pm::before, .q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 400ms var(--ease-out); }
.q.open .pm { transform: rotate(180deg); background: var(--green); border-color: var(--green); }
.q.open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease-out); }
.q.open .ans { grid-template-rows: 1fr; }
.ans > div { overflow: hidden; }
.ans p { padding: 0 64px 28px 4px; color: var(--ink-2); opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.q.open .ans p { opacity: 1; transform: none; transition-delay: 120ms; }

/* contact */
.contact h2 { font-size: clamp(44px, 8vw, 120px); line-height: .96; letter-spacing: -0.045em; font-weight: 500; }
.contact h2 em { color: var(--green); }
.cgrid { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 900px) { .cgrid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.alt { display: grid; gap: 12px; margin-top: 28px; }
.mail { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255,255,255,.3); display: inline-block; padding-bottom: 2px; }
form { display: grid; gap: 4px; }
.f { position: relative; border-bottom: 1px solid rgba(255,255,255,.2); padding-top: 26px; transition: border-color 300ms ease; }
.f:focus-within { border-color: var(--green); }
.f input, .f textarea { width: 100%; background: transparent; border: 0; color: var(--on-dark); font: inherit; font-size: 19px; padding: 10px 0 14px; outline: 0; resize: vertical; }
.f label { position: absolute; left: 0; top: 36px; font-size: 17px; color: var(--on-dark-mute); pointer-events: none; transform-origin: 0 0; transition: transform 300ms var(--ease-out), color 300ms ease; }
.f input:focus + label, .f input:not(:placeholder-shown) + label, .f textarea:focus + label, .f textarea:not(:placeholder-shown) + label { transform: translateY(-30px) scale(0.78); color: var(--green); }
.form-status { min-height: 1.5em; color: var(--on-dark-mute); font-size: 14px; margin-top: 10px; }
.hint { font-size: 13px; color: var(--on-dark-mute); margin-top: 12px; }

footer { padding: 40px 0 48px; color: var(--mute); font-size: 14px; }
.foot { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { padding: 12px 0; display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .foot a:hover, .mail:hover { color: var(--green-ink); } .dark .mail:hover { color: var(--green); } }

/* cursor label */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.6); transition: opacity 200ms ease; will-change: transform; }
.cursor.on { opacity: 1; }
.cursor i { font-style: normal; transform: scale(var(--s, 0.6)); transition: transform 300ms var(--ease-out); }
.cursor.on i { --s: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .track { animation: none; }
  [data-reveal], [data-fade], .w > i, .chip { opacity: 1; transform: none; filter: none; }
  .portrait-card { clip-path: none; }
}

/* ---- extra motion layer ---- */
.dark { transform-origin: 50% 0; transform: scale(var(--ds, 1)); will-change: transform; }
.row h3 { transition: translate 400ms var(--ease-out); }
.row .n { transition: color 300ms ease; }
@media (hover: hover) and (pointer: fine) { .row:hover h3 { translate: 14px 0; } .row:hover .n { color: var(--green); } }
.portrait { translate: 0 var(--ppy, 0px); }
.badge { position: absolute; right: -10px; bottom: -34px; width: 124px; height: 124px; border-radius: 50%; background: var(--green); display: grid; place-items: center; z-index: 3; opacity: 0; transform: scale(0.6) rotate(-30deg); transition: opacity 600ms ease 1500ms, transform 900ms var(--ease-out) 1500ms; }
.ready .badge { opacity: 1; transform: none; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; fill: var(--ink); text-transform: uppercase; }
.badge b { font-size: 26px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .badge:hover b { transform: translateY(4px); } }
.badge:active { transform: scale(0.97); }
@keyframes spin { to { transform: rotate(360deg); } }
.contact::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(61, 220, 132, 0.13), transparent 60%); opacity: 0; transition: opacity 500ms ease; }
.contact:hover::after { opacity: 1; }
.contact > .wrap { position: relative; z-index: 1; }
.mega { white-space: nowrap; font-size: clamp(40px, 14.5vw, 230px); line-height: 0.9; letter-spacing: -0.065em; font-weight: 700; text-align: center; padding: 0 var(--pad); overflow: hidden; margin-top: clamp(40px, 6vw, 80px); user-select: none; }
.mega b { color: var(--green-ink); font-weight: 700; }
.mega .w > i { transition-duration: 1200ms; }
.intro { position: fixed; inset: 0; z-index: 200; background: var(--dark); color: var(--on-dark); display: none; flex-direction: column; justify-content: space-between; padding: clamp(20px, 4vw, 48px); clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-in-out); }
.intro-on .intro { display: flex; }
.intro.done { clip-path: inset(0 0 100% 0); }
.intro-l { font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.04em; }
.intro-l b { color: var(--green); }
.intro-n { font-size: clamp(80px, 22vw, 300px); line-height: 0.85; font-weight: 500; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; align-self: flex-end; }
.intro-n i { font-family: var(--serif); font-style: italic; color: var(--green); font-size: 0.4em; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } .dark { transform: none; } .card .shot { clip-path: none; } .badge { opacity: 1; transform: none; } }

/* ---- Figma-style canvas in the hero (desktop + mouse only) ---- */
.cv { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 6; }
@media (min-width: 960px) and (hover: hover) and (pointer: fine) { .cv { display: block; } }
.cv-sel { position: absolute; left: 0; top: 0; border: 1.5px solid var(--c, #2f7cf6); opacity: 0; transition: opacity 220ms ease; }
.cv-sel.on { opacity: 1; }
.cv-sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--c, #2f7cf6); border-radius: 2px; }
.cv-sel i:nth-child(1) { left: -5px; top: -5px; } .cv-sel i:nth-child(2) { right: -5px; top: -5px; }
.cv-sel i:nth-child(3) { left: -5px; bottom: -5px; } .cv-sel i:nth-child(4) { right: -5px; bottom: -5px; }
.cv-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); background: var(--c, #2f7cf6); color: var(--tc, #fff); font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.cv-cur { position: absolute; left: 0; top: 0; opacity: 0; transition: transform 1100ms var(--ease-in-out), opacity 300ms ease; will-change: transform; }
.cv-cur.show { opacity: 1; }
.cv-cur svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.cv-cur span { position: absolute; left: 14px; top: 18px; font: 700 11px/1 var(--sans); padding: 5px 9px; border-radius: 6px 12px 12px 12px; white-space: nowrap; }
.cv-cur { color: var(--c, #000); } .cv-cur span { background: var(--c); color: var(--tc, #fff); }
.cv-cur.me { --c: var(--green); --tc: var(--ink); }
.cv-cur.client { --c: #8b5cf6; --tc: #fff; }
.cv-note { position: absolute; left: 0; top: 0; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px 11px; box-shadow: 0 18px 40px -12px rgba(11,12,10,.3); font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: 0 0; transition: opacity 250ms ease, transform 350ms var(--ease-out); }
.cv-note.on { opacity: 1; transform: none; }
.cv-note b { display: block; font-size: 11px; color: #8b5cf6; margin-bottom: 2px; }
.cv-note.me b { color: var(--green-ink); }
.cv-ripple { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid var(--green-ink); opacity: 0; }
.cv-ripple.go { animation: ripple 600ms var(--ease-out); }
@keyframes ripple { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.4); } }

/* ---- multiplayer build of the hero ---- */
.thumbs { margin-top: 44px; }
.mini { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: 12px; }
.trow { display: flex; gap: 14px; flex-wrap: wrap; }
.slot { display: block; width: 132px; min-height: 44px; }
.th { display: block; transition: translate 300ms var(--ease-out); }
.th .im { display: block; width: 132px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e4e6df; box-shadow: 0 10px 24px -14px rgba(11,12,10,.35); }
.th img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 300ms var(--ease-out); }
.th em { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .slot:hover .th { translate: 0 -4px; } .slot:hover img { object-position: 50% 100%; transition: object-position 3s linear; } }
.build .th { transition: transform 1000ms var(--ease-in-out), opacity 300ms ease; will-change: transform; }
.build .th:not(.show) { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)); }
.build .th.show { opacity: 1; transform: none; }
.build [data-fade] { transition-delay: 0ms; }
.build [data-fade].show { opacity: 1; transform: none; filter: none; }
.build h1.show .w > i { transform: none; }
.build .uline.show::after { transform: scaleX(1); transition-delay: 0ms; }
.build .portrait.s-card .portrait-card { clip-path: inset(0 0 0 0 round 36px); transition-delay: 0ms; }
.build .portrait.s-card img { transform: none; transition-delay: 0ms; }
.build .portrait.s-chips .chip { opacity: 1; transform: none; transition-delay: 0ms; }
.build .portrait.s-badge .badge { opacity: 1; transform: none; transition-delay: 0ms; }
html.nt *, html.nt *::before, html.nt *::after { transition: none !important; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--ink); animation: caret 700ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.skip-build, .replay { display: none; }
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .skip-build:not([hidden]) { display: inline-flex; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 96; align-items: center; gap: 10px; padding: 12px 20px; min-height: 44px; border-radius: 999px; background: var(--dark); color: var(--on-dark); font-weight: 700; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.3); transition: transform 160ms var(--ease-out); }
  .skip-build:active { transform: translateX(-50%) scale(0.97); }
  .skip-build kbd { font: 700 11px var(--sans); background: rgba(255,255,255,.14); border-radius: 6px; padding: 3px 7px; }
  .replay:not([hidden]) { display: inline-flex; align-items: center; position: absolute; left: var(--pad); bottom: 22px; z-index: 7; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font-weight: 700; font-size: 13px; backdrop-filter: blur(8px); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
  .replay:active { transform: scale(0.97); }
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }

/* ---- inner pages ---- */
.phero { padding: clamp(140px, 17vw, 210px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: clip; }
.phero::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -25vmax; top: -32vmax; background: radial-gradient(closest-side, rgba(61,220,132,.22), transparent 70%); pointer-events: none; }
.phero .display { font-size: clamp(44px, 7.6vw, 112px); max-width: 16ch; }
.phero .lead { margin-top: 28px; }
.crumbs { display: flex; gap: 10px; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 24px; }
.crumbs a { padding: 12px 0; } .crumbs span[aria-hidden] { padding: 12px 0; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }
.page-sec { padding: clamp(56px, 8vw, 110px) 0; }
.svc-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.svc .n { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--mute); }
.svc h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.svc p { color: var(--ink-2); }
.svc ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; }
.svc li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); } .svc li::before { content: "→"; color: var(--green-ink); font-weight: 700; }
.svc .textlink { margin-top: auto; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,12,10,.3); } }
.feat { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .feat { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
.feat li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feat .k { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--mute); }
.feat b { display: block; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 4px; }
.feat span { color: var(--ink-2); font-size: 16px; }
.fit { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .fit { grid-template-columns: repeat(2, 1fr); } }
.fit div { padding: 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); }
.fit h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.fit p { color: var(--on-dark-mute); }
.ind-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind { padding: 28px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); transition: transform 400ms var(--ease-out); }
.ind small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.ind h3 { font-size: 30px; letter-spacing: -0.04em; font-weight: 600; margin: 10px 0 8px; }
.ind h3 em { font-family: var(--serif); font-weight: 400; }
.ind p { color: var(--ink-2); font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .ind:hover { transform: translateY(-4px); } }
.about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.about-photo { border-radius: 36px; overflow: hidden; aspect-ratio: 3/4; background: #dfe3d8; box-shadow: 0 40px 80px -30px rgba(11,12,10,.35); max-width: 460px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.prose p { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); margin-top: 20px; max-width: 60ch; }
.prose p:first-child { margin-top: 0; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); letter-spacing: -0.025em; line-height: 1.25; }
.not-found { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.not-found .big404 { font-size: clamp(120px, 28vw, 380px); line-height: .85; letter-spacing: -0.07em; font-weight: 500; }
.not-found .big404 em { color: var(--green-ink); }
