/* Tadrous William portfolio: light, warm, quietly animated */

:root {
  --bg: #FBF8F3;
  --bg-2: #F5EFE6;
  --surface: #FFFFFF;
  --border: #EADFCF;
  --border-2: #F1EAE0;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #78716C;
  --accent: #F97316;
  --accent-ink: #C2410C;
  --accent-soft: #FFEAD8;
  --mint: #DCF5E7;   --mint-ink: #0F766E;
  --lilac: #E6E4FB;  --lilac-ink: #4338CA;
  --sky: #DDEFFC;    --sky-ink: #0369A1;
  --rose: #FDE7EF;   --rose-ink: #BE185D;
  --green: #16A34A;
  --upwork: #14A800;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(124, 90, 58, .06), 0 10px 30px -12px rgba(124, 90, 58, .18);
  --shadow-lg: 0 2px 4px rgba(124, 90, 58, .06), 0 24px 60px -20px rgba(124, 90, 58, .28);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --max: 1160px;
}

*, *::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(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.55rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none !important; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--upwork); color: #fff; box-shadow: 0 8px 22px -8px rgba(20, 168, 0, .55); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(20, 168, 0, .6); background: #129600; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(251, 248, 243, .92); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; text-decoration: none !important; }
.brand-pic { position: relative; width: 40px; height: 40px; flex: none; }
.brand-pic img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--border), 0 4px 10px -4px rgba(124, 90, 58, .4); transition: transform .3s ease; }
.brand:hover .brand-pic img { transform: scale(1.08) rotate(-3deg); }
.brand-pic::after { content: ""; position: absolute; right: -1px; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; border: 2px solid var(--bg); }
.mono-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: .9rem; font-weight: 700; position: relative; overflow: hidden;
}
.mono-mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .96rem; position: relative; text-decoration: none; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#E4DACB 1.3px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; pointer-events: none; }
.blob.b1 { width: 420px; height: 420px; background: #FFD9B8; right: -80px; top: -60px; animation: drift1 16s ease-in-out infinite alternate; }
.blob.b2 { width: 360px; height: 360px; background: #CFEFE2; right: 220px; bottom: -160px; animation: drift2 18s ease-in-out infinite alternate; }
.blob.b3 { width: 300px; height: 300px; background: #E3E0FB; left: -120px; top: 180px; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 70px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(80px, -60px) scale(.95); } }
@keyframes drift3 { to { transform: translate(60px, -50px) scale(1.1); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); margin-bottom: 26px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.hero h1 { margin-bottom: 22px; }
.hl { position: relative; white-space: nowrap; color: var(--accent-ink); }
.hl svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; overflow: visible; }
.hl path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; opacity: .45; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.3s .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust .stars { color: #F59E0B; letter-spacing: 1px; }
.trust .dot { width: 4px; height: 4px; border-radius: 50%; background: #D6CCBE; }

/* hero visual: live chat demo */
.demo { position: relative; }
.window {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: hover 7s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translateY(-8px); } }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #FAF6F0; border-bottom: 1px solid var(--border-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-bar i:nth-child(1) { background: #F8B4A0; } .window-bar i:nth-child(2) { background: #F7D79A; } .window-bar i:nth-child(3) { background: #B7E3C6; }
.window-bar span { margin-left: auto; margin-right: auto; font-family: var(--mono); font-size: .76rem; color: #A8A29E; transform: translateX(-20px); }
.chat { padding: 22px 20px 18px; min-height: 330px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.msg.show { opacity: 1; transform: none; }
.msg.q { align-self: flex-end; background: var(--accent); color: #fff; font-weight: 600; border-bottom-right-radius: 6px; }
.msg.a { align-self: flex-start; background: #F5F1EB; color: var(--ink); border-bottom-left-radius: 6px; }
.msg.a.refuse { background: #FFF7ED; }
.src { display: block; margin-top: 6px; font-family: var(--mono); font-size: .74rem; color: var(--accent-ink); }
.typing { align-self: flex-start; display: none; gap: 5px; padding: 14px 16px; background: #F5F1EB; border-radius: 16px; border-bottom-left-radius: 6px; }
.typing.show { display: inline-flex; }
.typing b { width: 7px; height: 7px; border-radius: 50%; background: #A8A29E; animation: bounce 1s ease-in-out infinite; }
.typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .86rem; font-weight: 700; color: var(--ink);
}
.chip-float small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.chip-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip-float .ic svg { width: 18px; height: 18px; }
.chip-float.c1 { left: -34px; bottom: 40px; animation: float1 6s ease-in-out infinite; }
.chip-float.c2 { right: 18px; top: -30px; animation: float2 7s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes float2 { 50% { transform: translateY(10px) rotate(1deg); } }

/* ---------- proof bar ---------- */
.proof { padding: 0 0 40px; margin-top: -24px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--accent)); }
.stat .num { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 1.2rem; color: var(--muted); font-weight: 700; margin-left: 2px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--mono); font-weight: 600; font-size: .95rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #E2D3BE; }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-icon svg .dr { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .svc-icon svg .dr { stroke-dashoffset: 60; transition: stroke-dashoffset 1s .5s ease; }
.js .card.in .svc-icon svg .dr { stroke-dashoffset: 0; }
.card:hover .svc-icon { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(6deg); } }
.card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.card li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2316A34A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.card .more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.card .more:hover svg { transform: translateX(4px); }
.note { text-align: center; color: var(--muted); margin-top: 30px; font-size: .96rem; }

/* ---------- work ---------- */
.work-list { display: grid; gap: 34px; }
.project {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .35s ease, transform .35s ease;
}
.project:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project.flip .shot { order: 2; }
.shot { background: var(--tint, #FFF1E6); padding: 34px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.shot .frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -18px rgba(60, 40, 20, .35); border: 1px solid rgba(0,0,0,.06); transition: transform .5s ease; width: 100%; }
.project:hover .shot .frame { transform: scale(1.025) rotate(-.4deg); }
.frame .fbar { height: 22px; background: #F7F3ED; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid #EFE7DB; }
.frame .fbar i { width: 7px; height: 7px; border-radius: 50%; background: #E2D8CA; display: block; }
.body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.tag { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.body h3 { font-size: 1.65rem; letter-spacing: -.025em; margin-bottom: 12px; }
.body > p { color: var(--ink-2); }
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 24px; }
.pill { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; line-height: 1.2; }
.pill b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.pill span { display: block; margin-top: 4px; font-size: .76rem; line-height: 1.3; color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { min-height: 44px; padding: 10px 18px; font-size: .93rem; }

/* sentinel visual made in CSS */
.sat { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 18px 40px -18px rgba(60,40,20,.35); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tiles i { aspect-ratio: 1; border-radius: 5px; display: block; animation: tile 4s ease-in-out infinite; }
@keyframes tile { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(.86); filter: saturate(1.4); } }
.sat-score { text-align: center; }
.sat-score b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.sat-score span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.medal { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: .8rem; }

/* ---------- cta strip ---------- */
.strip {
  margin-top: 56px; padding: 30px 34px; border-radius: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #FFF1E6, #FDF6EE 45%, #EAF7F0); border: 1px solid var(--border);
}
.strip h3 { margin: 0; font-size: 1.45rem; }
.strip p { margin: 4px 0 0; color: var(--muted); }

/* ---------- more projects ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.mini {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px;
  color: var(--ink); text-decoration: none !important; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mini:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow); }
.mini b { display: flex; justify-content: space-between; gap: 10px; font-size: 1rem; }
.mini b::after { content: "→"; color: var(--accent); transition: transform .25s ease; }
.mini:hover b::after { transform: translateX(3px); }
.mini span { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.mini em { font-style: normal; color: var(--accent-ink); font-weight: 700; }
.client {
  margin-top: 26px; background: var(--surface); border: 1px dashed #DCCDB8; border-radius: 20px; padding: 28px 30px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.client .badge { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.client .badge svg { width: 26px; height: 26px; }
.client h3 { margin-bottom: 8px; }
.client p { color: var(--ink-2); margin: 0 0 8px; }

/* ---------- testimonial ---------- */
.quote-box { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark { font-family: Georgia, serif; font-size: 8rem; line-height: .6; color: var(--accent); opacity: .25; display: block; height: 50px; }
.quote-box blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.quote-box .stars5 { color: #F59E0B; font-size: 1.4rem; letter-spacing: 4px; margin: 22px 0 6px; }
.quote-box cite { font-style: normal; color: var(--muted); font-weight: 600; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: var(--border); }
.steps .line { position: absolute; left: 6%; top: 27px; height: 2px; width: 0; background: var(--accent); transition: width 1.8s ease; }
.steps.in .line { width: 88%; }
.step { position: relative; text-align: left; }
.step .n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; position: relative; z-index: 1;
  background: var(--surface); border: 2px solid var(--border); font-family: var(--mono); font-weight: 700; color: var(--ink);
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.steps.in .step .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps.in .step:nth-child(3) .n { transition-delay: .45s; } .steps.in .step:nth-child(4) .n { transition-delay: .9s; }
.steps.in .step:nth-child(5) .n { transition-delay: 1.35s; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-2); font-size: .95rem; }
.send { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.send div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.send b { display: block; margin-bottom: 4px; }
.send span { color: var(--muted); font-size: .94rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.portrait {
  aspect-ratio: 1; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #FFE3CC, #FDF1E4 50%, #DDF3E8); border: 1px solid var(--border); display: grid; place-items: center;
}
.portrait .initials { font-size: 6.5rem; font-weight: 800; letter-spacing: -.06em; color: var(--ink); position: relative; z-index: 1; }
.portrait .ring { position: absolute; inset: 14%; border-radius: 50%; border: 2px dashed rgba(249, 115, 22, .35); animation: spin 30s linear infinite; }
.portrait .ring.r2 { inset: 4%; border-style: dotted; animation-duration: 50s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait .photo { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: hover 7s ease-in-out infinite; }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px; margin: 24px 0 28px; justify-content: start; }
.facts div b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.facts div span { color: var(--muted); font-size: .86rem; font-weight: 600; }

/* ---------- final cta ---------- */
.final {
  text-align: center; border-radius: 30px; padding: 72px 30px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFE6D0, #FDF4EA 48%, #DDF3E8); border: 1px solid var(--border); color: var(--ink);
}
.final h2 { color: var(--ink); max-width: 760px; margin: 0 auto 16px; }
.final p { color: var(--ink-2); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.final .cta-row { justify-content: center; margin: 0; }
.final .btn-ghost { background: #fff; }
.final .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.final .g1 { background: #FFC08F; left: -180px; top: -260px; animation: drift1 14s ease-in-out infinite alternate; }
.final .g2 { background: #A7E3CB; right: -200px; bottom: -280px; animation: drift2 16s ease-in-out infinite alternate; }
.final > * { position: relative; }

/* ---------- footer ---------- */
footer { padding: 40px 0 110px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--ink-2); font-weight: 600; }

/* ---------- mobile sticky bar ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  transform: translateY(140%); transition: transform .35s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 14px 30px -10px rgba(20, 168, 0, .65); }

/* ---------- reveal (hidden only when JavaScript runs, so content never disappears) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; } .rise.d4 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- case study pages ---------- */
.cs-hero { padding: 54px 0 40px; overflow: hidden; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); margin-bottom: 26px; }
.crumb:hover { color: var(--accent-ink); }
.cs-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 900px; }
.cs-hero .lead { max-width: 760px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; }
.cs-shot { margin: 10px 0 0; border-radius: 22px; padding: clamp(16px, 4vw, 44px); background: var(--tint, #FFF1E6); border: 1px solid var(--border); }
.cs-shot .frame { box-shadow: var(--shadow-lg); }
.cs-body { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.cs-body h2 { font-size: 1.7rem; margin-top: 8px; }
.cs-body section { padding: 0 0 44px; }
.cs-body ul { padding-left: 0; list-style: none; }
.cs-body li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-2); }
.cs-body li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); opacity: .8; }
.cs-body p { color: var(--ink-2); }
.aside { position: sticky; top: 94px; display: grid; gap: 16px; }
.aside .box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.aside h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.aside .btn { width: 100%; }
.aside .btn + .btn { margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); font-size: .95rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-2); }
.table th { background: #FAF6F0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--ink); }
.gallery { display: grid; gap: 22px; margin: 8px 0 10px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.video { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); background: #0f172a; }
.video img { width: 100%; transition: transform .5s ease, filter .3s ease; }
.video:hover img { transform: scale(1.02); filter: brightness(.92); }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(249,115,22,.5); animation: halo 2s ease-out infinite;
}
.video .play svg { width: 30px; height: 30px; margin-left: 5px; }
@keyframes halo { 70% { box-shadow: 0 0 0 22px rgba(249,115,22,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } }
.video video { width: 100%; display: block; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; color: var(--ink); text-decoration: none !important; transition: border-color .25s ease, transform .25s ease; }
.next:hover { border-color: var(--accent); transform: translateY(-3px); }
.next small { display: block; color: var(--muted); font-weight: 600; }
.next b { font-size: 1.3rem; }
.next .arrow { font-size: 1.6rem; color: var(--accent); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf b { font-size: 6rem; letter-spacing: -.05em; color: var(--accent); display: block; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .cs-body { grid-template-columns: 1fr; }
  .demo { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .services-grid, .more-grid { grid-template-columns: 1fr; }
  .project, .project.flip { grid-template-columns: 1fr; }
  .project.flip .shot { order: 0; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .steps::before, .steps .line { display: none; }
  .send { grid-template-columns: 1fr; }
  .about-grid .portrait { max-width: 300px; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px;
    background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; }
  .nav.open .nav-links { transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border-2); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; }
  .menu-btn { display: block; }
  .hero { padding-top: 36px; }
  .chip-float.c1 { left: -6px; bottom: -22px; } .chip-float.c2 { right: -6px; top: -26px; }
  .body { padding: 28px 24px; }
  .shot { padding: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, auto); }
  .client { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .final { padding: 56px 22px; border-radius: 24px; }
  .strip { padding: 24px; }
  .stat .num { font-size: 2.1rem; }
}
@media (max-width: 420px) {
  .proof-grid { gap: 12px; }
  .stat { padding: 18px; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  .hl path { stroke-dashoffset: 0; }
}
