/* ============ Aws Nasser — Portfolio ============ */
:root {
  --bg: #0A0A0A;
  --bg-2: #111110;
  --bg-3: #181816;
  --ink: #F2EFE9;
  --ink-dim: #9A968D;
  --line: rgba(242, 239, 233, 0.09);
  --amber: #FF5A1F;
  --amber-soft: rgba(255, 90, 31, 0.12);
  --radius: 18px;
  --max: 1200px;
  --font-display: "Clash Display", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: #0A0A0A; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.dim { color: var(--ink-dim); }
.amber { color: var(--amber); }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 26px; font-weight: 600;
}
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--amber); }
.sec-num { color: var(--ink-dim); font-size: 0.85rem; font-family: var(--font-display); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo span { color: var(--amber); }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 0.9rem; color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: #0A0A0A; background: var(--amber); padding: 9px 20px; border-radius: 100px; font-weight: 600;
  transition: transform 0.2s ease;
}
.nav-links .nav-cta:hover { transform: translateY(-2px); color: #0A0A0A; }
.burger { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(10,10,10,0.55) 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem;
  border: 1px solid var(--line); background: rgba(17,17,16,0.6); padding: 8px 16px; border-radius: 100px;
  color: var(--ink-dim); margin-bottom: 28px; backdrop-filter: blur(6px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #6BCB77; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(107,203,119,0.5);} 50% { box-shadow: 0 0 0 7px rgba(107,203,119,0);} }
.hero-sub { max-width: 560px; color: var(--ink-dim); font-size: 1.08rem; margin: 26px 0 38px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s;
  border: 1px solid transparent;
}
.btn-amber { background: var(--amber); color: #0A0A0A; }
.btn-amber:hover { transform: translateY(-3px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(17,17,16,0.5); }
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-3px); }
.hero-meta { display: flex; gap: 26px; margin-top: 48px; align-items: center; flex-wrap: wrap; color: var(--ink-dim); font-size: 0.88rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-dim);
  transition: all 0.22s ease; background: rgba(17,17,16,0.5);
}
.socials a:hover { color: #0A0A0A; background: var(--amber); border-color: var(--amber); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 30s linear infinite; white-space: nowrap; }
.marquee-track span { font-family: var(--font-display); font-size: 1rem; color: var(--ink-dim); display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--amber); font-size: 0.8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; background: var(--bg-2); transition: border-color 0.25s; }
.stat:hover { border-color: rgba(245,166,35,0.4); }
.stat b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; display: block; }
.stat b em { color: var(--amber); font-style: normal; }
.stat span { color: var(--ink-dim); font-size: 0.88rem; }

/* ---------- Experience ---------- */
.xp-row {
  display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: baseline;
  padding: 30px 10px; border-bottom: 1px solid var(--line); transition: background 0.25s, padding-left 0.25s;
}
.xp-row:first-of-type { border-top: 1px solid var(--line); }
.xp-row:hover { background: var(--bg-2); padding-left: 22px; }
.xp-row h3 { font-size: 1.25rem; margin-bottom: 4px; }
.xp-row .co { color: var(--amber); font-size: 0.92rem; }
.xp-row .yrs { color: var(--ink-dim); text-align: right; font-size: 0.92rem; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.proj {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s; display: block;
}
.proj:hover { transform: translateY(-7px); border-color: rgba(245,166,35,0.45); }
.proj-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-3); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.proj:hover .proj-img img { transform: scale(1.045); }
.proj-body { padding: 24px 26px 28px; }
.proj-cat { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.proj-body h3 { font-size: 1.35rem; margin: 8px 0 6px; }
.proj-body p { color: var(--ink-dim); font-size: 0.93rem; }

/* ---------- Services ---------- */
.svc { border-bottom: 1px solid var(--line); }
.svc:first-of-type { border-top: 1px solid var(--line); }
.svc-head {
  width: 100%; background: none; border: none; color: var(--ink); text-align: left;
  display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 18px; padding: 30px 8px;
}
.svc-head .num { font-family: var(--font-display); color: var(--ink-dim); font-size: 0.95rem; }
.svc-head h3 { font-size: clamp(1.35rem, 3vw, 2rem); transition: color 0.25s; }
.svc-head:hover h3 { color: var(--amber); }
.svc-head .plus { font-size: 1.6rem; color: var(--amber); transition: transform 0.3s; justify-self: end; font-weight: 300; }
.svc.open .plus { transform: rotate(45deg); }
.svc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1); }
.svc-body-inner { padding: 0 8px 32px 88px; color: var(--ink-dim); max-width: 720px; }
.svc-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.svc-tags span { border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: 0.8rem; }

/* ---------- Prompts ---------- */
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), border-color 0.28s;
  position: relative;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(245,166,35,0.5); }
.pcard-cat {
  align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--amber-soft); color: var(--amber); padding: 5px 12px; border-radius: 100px; font-weight: 600;
}
.pcard h3 { font-size: 1.2rem; }
.pcard p { color: var(--ink-dim); font-size: 0.9rem; flex: 1; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; color: var(--ink-dim); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 15px; }
.pcard-foot .go { color: var(--amber); font-weight: 600; }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.about-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about-handle {
  position: absolute; bottom: 16px; left: 16px; background: rgba(10,10,10,0.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; font-size: 0.83rem;
}
.about-txt p { color: var(--ink-dim); margin-top: 20px; }
.about-txt .lead { color: var(--ink); font-size: 1.12rem; }

/* ---------- Tech stack ---------- */
.stack-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack-track { display: flex; gap: 18px; width: max-content; animation: scroll 36s linear infinite; padding: 6px 0; }
.stack-track:hover { animation-play-state: paused; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; padding: 18px 26px;
  display: flex; flex-direction: column; gap: 3px; min-width: 190px;
}
.chip b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.chip span { color: var(--ink-dim); font-size: 0.78rem; }

/* ---------- Clients ---------- */
.clients { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.clients span { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--ink-dim); font-weight: 500; transition: color 0.25s; }
.clients span:hover { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg-2); display: flex; flex-direction: column; gap: 18px; }
.testi q { font-size: 0.98rem; color: var(--ink); quotes: "“" "”"; }
.testi .who b { display: block; font-size: 0.92rem; }
.testi .who span { color: var(--ink-dim); font-size: 0.8rem; }
.testi .stars { color: var(--amber); letter-spacing: 3px; font-size: 0.85rem; }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--bg-2); transition: border-color 0.25s; }
.proc:hover { border-color: rgba(245,166,35,0.4); }
.proc .step { font-family: var(--font-display); font-size: 2.6rem; color: var(--amber-soft); -webkit-text-stroke: 1px var(--amber); font-weight: 600; }
.proc h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.proc p { color: var(--ink-dim); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--ink); text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 6px;
  font-size: 1.06rem; font-weight: 500; font-family: var(--font-body);
}
.faq-q:hover { color: var(--amber); }
.faq-q .plus { color: var(--amber); font-size: 1.4rem; transition: transform 0.3s; font-weight: 300; }
.faq.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--ink-dim); }
.faq-a p { padding: 0 6px 24px; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info p { color: var(--ink-dim); margin: 18px 0 30px; }
.contact-info .email { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--amber); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; color: var(--ink); font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s;
}
.field select { appearance: none; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--bg-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--ink-dim); font-size: 0.9rem; }
.foot-links a:hover { color: var(--amber); }
.copyright { margin-top: 40px; color: var(--ink-dim); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Prompt library page ---------- */
.lib-hero { padding: 160px 0 50px; }
.lib-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 34px 0 44px; }
.search {
  flex: 1; min-width: 240px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px;
  padding: 13px 22px; color: var(--ink); font-size: 0.95rem;
}
.search:focus { outline: none; border-color: var(--amber); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-dim); border-radius: 100px;
  padding: 9px 18px; font-size: 0.85rem; transition: all 0.2s;
}
.pill:hover { color: var(--ink); border-color: var(--ink-dim); }
.pill.active { background: var(--amber); color: #0A0A0A; border-color: var(--amber); font-weight: 600; }

/* Prompt detail */
.prompt-block { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin: 30px 0; }
.prompt-block pre {
  padding: 30px; white-space: pre-wrap; word-break: break-word; color: var(--ink);
  font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 0.9rem; line-height: 1.7;
}
.copy-btn {
  position: absolute; top: 14px; right: 14px; background: var(--amber); color: #0A0A0A; border: none;
  border-radius: 100px; padding: 9px 18px; font-weight: 600; font-size: 0.82rem; transition: transform 0.2s;
}
.copy-btn:hover { transform: translateY(-2px); }
.meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.meta-tags span { border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: 0.8rem; color: var(--ink-dim); }
.back-link { color: var(--ink-dim); font-size: 0.9rem; display: inline-flex; gap: 8px; margin-bottom: 26px; }
.back-link:hover { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats, .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: rgba(10,10,10,0.97); padding: 26px 24px; gap: 20px; border-bottom: 1px solid var(--line);
  }
  .burger { display: block; }
  .projects-grid, .prompt-grid, .testi-grid, .stats, .proc-grid { grid-template-columns: 1fr; }
  .xp-row { grid-template-columns: 1fr; gap: 4px; }
  .xp-row .yrs { text-align: left; }
  form .row { grid-template-columns: 1fr; }
  .svc-body-inner { padding-left: 8px; }
  .svc-head { grid-template-columns: 44px 1fr 30px; }
}

/* ============ Jayden-style hero (v2) ============ */
.hero-v2 { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 0 90px; position: relative; overflow: hidden; }
.smoke { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.smoke i {
  position: absolute; border-radius: 50%; filter: blur(90px); display: block;
  background: radial-gradient(circle, rgba(255,94,0,0.85) 0%, rgba(190,52,0,0.55) 45%, transparent 72%);
  animation: drift 16s ease-in-out infinite alternate;
}
.smoke i:nth-child(1) { width: 46vw; height: 34vw; left: -14vw; top: 8%; opacity: 0.5; }
.smoke i:nth-child(2) { width: 40vw; height: 30vw; right: -12vw; bottom: 4%; opacity: 0.42; animation-delay: -6s; animation-duration: 20s; }
.smoke i:nth-child(3) { width: 26vw; height: 22vw; left: 24vw; bottom: -10vw; opacity: 0.3; animation-delay: -11s; animation-duration: 24s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(70px, -55px) scale(1.18) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .smoke i { animation: none; } }
.hero-v2::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(10,10,10,0.45) 62%, var(--bg) 100%);
}
.hero-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.corner { position: absolute; top: 100px; z-index: 2; font-size: 0.85rem; color: var(--ink-dim); line-height: 1.5; }
.corner.left { left: 42px; text-align: left; }
.corner.right { right: 42px; text-align: right; }
.corner b { color: var(--ink); font-weight: 500; display: block; }
.photo-card {
  width: min(420px, 80vw); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 110px rgba(255, 90, 0, 0.28), 0 10px 40px rgba(0,0,0,0.6);
}
.photo-card img { width: 100%; aspect-ratio: 436/460; object-fit: cover; object-position: center top; }
.script-name {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(4.2rem, 11vw, 7.6rem); line-height: 0.9; color: #fff;
  margin-top: -0.72em; position: relative; z-index: 3;
  text-shadow: 0 8px 34px rgba(0,0,0,0.65);
}
.hero-lines { margin-top: 18px; color: var(--ink-dim); font-size: 1.06rem; }
.hero-lines b { color: var(--ink); font-weight: 600; }
.hero-v2 .socials { justify-content: center; margin: 26px 0 34px; }
.btn-dark {
  background: rgba(28,27,26,0.85); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 8px 8px 28px; display: inline-flex; align-items: center; gap: 16px;
  border-radius: 100px; font-weight: 600; font-size: 0.95rem; transition: transform 0.22s ease, border-color 0.22s;
  backdrop-filter: blur(6px);
}
.btn-dark:hover { transform: translateY(-3px); border-color: var(--amber); }
.arrow-circle {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0A0A0A;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background 0.22s, transform 0.22s;
}
.btn-dark:hover .arrow-circle { background: var(--amber); transform: rotate(45deg); }

/* ---- Right icon rail ---- */
.siderail {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 95;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(17,17,16,0.72); border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 7px; backdrop-filter: blur(12px);
}
.siderail a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim); transition: all 0.2s ease;
}
.siderail a:hover, .siderail a.active { background: var(--amber); color: #0A0A0A; }
.siderail svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) { .siderail { display: none; } }
@media (max-width: 900px) { .corner { display: none; } }

/* ============ Liquid glass + global animated background (v3) ============ */

/* ---- Fixed animated aurora behind the whole site ---- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.bg-fx i {
  position: absolute; border-radius: 50%; filter: blur(110px); display: block;
  background: radial-gradient(circle, rgba(255,94,0,0.5) 0%, rgba(190,52,0,0.3) 45%, transparent 72%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-fx i:nth-child(1) { width: 55vw; height: 40vw; left: -18vw; top: -6%; opacity: 0.35; }
.bg-fx i:nth-child(2) { width: 45vw; height: 34vw; right: -15vw; top: 35%; opacity: 0.28; animation-delay: -8s; animation-duration: 28s; }
.bg-fx i:nth-child(3) { width: 38vw; height: 30vw; left: 18vw; bottom: -14%; opacity: 0.22; animation-delay: -15s; animation-duration: 34s; }
@media (prefers-reduced-motion: reduce) { .bg-fx i { animation: none; } }

/* ---- Sections become translucent so the aurora glows through ---- */
body { background: transparent; }
.marquee { background: rgba(17,17,16,0.55); backdrop-filter: blur(10px); }
.glass-section { background: rgba(15,15,14,0.55) !important; backdrop-filter: blur(14px); }

/* ---- Liquid glass card treatment ---- */
.stat, .pcard, .testi, .proc, .chip, .proj, .prompt-block {
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 45%, rgba(255,90,31,0.035) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 40px rgba(0,0,0,0.35);
  position: relative; overflow: hidden;
}
/* specular sheen sweep on hover */
.stat::before, .pcard::before, .testi::before, .proc::before, .proj::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
  transform: skewX(-18deg); transition: left 0.65s ease; pointer-events: none; z-index: 1;
}
.stat:hover::before, .pcard:hover::before, .testi:hover::before, .proc:hover::before, .proj:hover::before { left: 130%; }
.proj-body { position: relative; z-index: 2; }

/* glass form fields */
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.045); backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.10);
}
.search, .pill { background: rgba(255,255,255,0.045); backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.10); }
.pill.active { background: var(--amber); }

/* glass accordions rows */
.svc-head, .faq-q { position: relative; }
.svc.open, .faq.open { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border-radius: 14px; }

/* photo card gets a glass ring + floating motion */
.photo-card {
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 40px 110px rgba(255, 90, 0, 0.30), 0 10px 40px rgba(0,0,0,0.6);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@media (prefers-reduced-motion: reduce) { .photo-card { animation: none; } }

/* frosted glass badge/buttons refinement */
.btn-ghost { background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.12); }
.btn-dark { background: rgba(255,255,255,0.06); backdrop-filter: blur(14px); border-color: rgba(255,255,255,0.12); }
.siderail { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); }
.nav.scrolled { background: rgba(12,12,11,0.55); border-color: rgba(255,255,255,0.08); }
footer { background: rgba(17,17,16,0.6); backdrop-filter: blur(12px); }

/* ============ v4: light mode, gallery, logos, cursor, interactivity ============ */

/* ---- Theme toggle ---- */
.theme-toggle {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; justify-content: center; transition: transform 0.25s, border-color 0.25s;
  order: 2; margin-left: auto; margin-right: 12px;
}
.nav-inner { gap: 0; }
.nav-links { order: 3; } .burger { order: 4; }
.logo { order: 1; }
@media (min-width: 681px) { .theme-toggle { margin-left: 0; order: 4; margin-right: 0; margin-left: 18px; } }
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); border-color: var(--amber); }
.tt-moon { display: none; } .tt-sun { display: block; }
[data-theme="light"] .tt-moon { display: block; } [data-theme="light"] .tt-sun { display: none; }

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg: #F4F1EA; --bg-2: #FFFFFF; --bg-3: #EAE6DC;
  --ink: #17140F; --ink-dim: #6E6A61; --line: rgba(23, 20, 15, 0.10);
}
[data-theme="light"] body { color: var(--ink); }
[data-theme="light"] .bg-fx { background: var(--bg); }
[data-theme="light"] .bg-fx i { opacity: 0.18; }
[data-theme="light"] .bg-fx i:nth-child(2) { opacity: 0.14; }
[data-theme="light"] .bg-fx i:nth-child(3) { opacity: 0.11; }
[data-theme="light"] .hero-v2::after { background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(244,241,234,0.4) 62%, var(--bg) 100%); }
[data-theme="light"] .smoke i { opacity: 0.30; }
[data-theme="light"] .script-name { color: #17140F; text-shadow: 0 6px 26px rgba(255,255,255,0.5); }
[data-theme="light"] .stat, [data-theme="light"] .pcard, [data-theme="light"] .testi,
[data-theme="light"] .proc, [data-theme="light"] .chip, [data-theme="light"] .proj, [data-theme="light"] .prompt-block {
  background: linear-gradient(160deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.45) 50%, rgba(255,90,31,0.06) 100%);
  border: 1px solid rgba(23,20,15,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 40px rgba(23,20,15,0.10);
}
[data-theme="light"] .marquee, [data-theme="light"] .glass-section { background: rgba(255,255,255,0.5) !important; }
[data-theme="light"] .nav.scrolled { background: rgba(244,241,234,0.7); }
[data-theme="light"] footer { background: rgba(255,255,255,0.55); }
[data-theme="light"] .siderail { background: rgba(255,255,255,0.55); border-color: rgba(23,20,15,0.10); }
[data-theme="light"] .btn-dark, [data-theme="light"] .btn-ghost, [data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,0.6); border-color: rgba(23,20,15,0.12); color: var(--ink);
}
[data-theme="light"] .arrow-circle { background: #17140F; color: #fff; }
[data-theme="light"] .field input, [data-theme="light"] .field textarea, [data-theme="light"] .field select,
[data-theme="light"] .search, [data-theme="light"] .pill { background: rgba(255,255,255,0.7); border-color: rgba(23,20,15,0.12); color: var(--ink); }
[data-theme="light"] .pill.active { background: var(--amber); color: #fff; }
[data-theme="light"] .socials a { background: rgba(255,255,255,0.6); border-color: rgba(23,20,15,0.12); }
[data-theme="light"] .badge { background: rgba(255,255,255,0.6); }
[data-theme="light"] .photo-card { border-color: rgba(23,20,15,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 40px 110px rgba(255,90,0,0.22), 0 10px 40px rgba(23,20,15,0.18); }

/* ---- Client logos ---- */
.clients { align-items: center; }
.clogo {
  height: 44px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.7) contrast(0.85); opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.clogo:hover { filter: none; opacity: 1; transform: translateY(-4px); }
[data-theme="light"] .clogo { filter: grayscale(1) opacity(0.75); }
[data-theme="light"] .clogo:hover { filter: none; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid:empty::after {
  content: "Gallery is warming up — add 1.jpg, 2.jpg… to assets/gallery.";
  color: var(--ink-dim); font-size: 0.9rem; grid-column: 1/-1;
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px; text-align: center;
}
.gitem {
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative;
  border: 1px solid rgba(255,255,255,0.09); aspect-ratio: 4/3; background: rgba(255,255,255,0.03);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.gitem:hover { transform: translateY(-6px) scale(1.015); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gitem:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,0.88); backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center; cursor: zoom-out; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 16px; box-shadow: 0 40px 120px rgba(0,0,0,0.7); }

/* ---- Custom cursor ---- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; }
  .cursor-dot { width: 7px; height: 7px; background: var(--amber); transform: translate(-50%, -50%); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1.5px solid rgba(255,90,31,0.55);
    transform: translate(-50%, -50%); transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  }
  body.cursor-hot .cursor-ring { width: 56px; height: 56px; border-color: var(--amber); background: rgba(255,90,31,0.08); }
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- Tilt ---- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---- Mouse glow blob ---- */
.mglow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,94,0,0.22) 0%, transparent 65%);
  filter: blur(40px); transform: translate(-50%, -50%); opacity: 0.9;
}
[data-theme="light"] .mglow { background: radial-gradient(circle, rgba(255,94,0,0.14) 0%, transparent 65%); }

/* xp accordion number column wider */
.svc.xp .svc-head { grid-template-columns: 90px 1fr 40px; }
.svc.xp .svc-body-inner { padding-left: 108px; }
@media (max-width: 680px) { .svc.xp .svc-head { grid-template-columns: 64px 1fr 30px; } .svc.xp .svc-body-inner { padding-left: 8px; } }

/* ============ v5: Kinetics spring-physics motion (kinetics.colorion.co) ============ */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);       /* spring(320, 24) — playful overshoot */
  --spring-soft: cubic-bezier(0.18, 1.25, 0.4, 1);   /* softer settle */
  --spring-out: cubic-bezier(0.16, 1, 0.3, 1);       /* critically damped exit */
}

/* springs replace flat easings */
.reveal { transition: opacity 0.7s ease, transform 0.85s var(--spring-out); }
.btn, .btn-dark, .btn-amber, .btn-ghost, .nav-cta { transition: transform 0.45s var(--spring), border-color 0.3s ease, background 0.3s ease; }
.btn:hover, .btn-dark:hover { transform: translateY(-4px) scale(1.03); }
.arrow-circle { transition: background 0.3s ease, transform 0.5s var(--spring); }
.socials a { transition: transform 0.45s var(--spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.socials a:hover { transform: translateY(-5px) scale(1.12); }
.theme-toggle { transition: transform 0.5s var(--spring), border-color 0.3s ease; }
.theme-toggle:hover { transform: rotate(24deg) scale(1.15); }
.siderail a { transition: transform 0.4s var(--spring), background 0.22s ease, color 0.22s ease; }
.siderail a:hover { transform: scale(1.14); }
.pill { transition: transform 0.4s var(--spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.pill:hover { transform: translateY(-2px) scale(1.05); }
.proj, .pcard, .stat, .testi, .proc, .gitem { transition: transform 0.55s var(--spring-soft), border-color 0.3s ease, box-shadow 0.3s ease; }
.svc-body, .faq-a { transition: max-height 0.6s var(--spring-soft); }
.svc-head .plus, .faq-q .plus { transition: transform 0.5s var(--spring); }
.copy-btn { transition: transform 0.45s var(--spring); }
.copy-btn:hover { transform: translateY(-2px) scale(1.06); }
.clogo { transition: filter 0.3s ease, opacity 0.3s ease, transform 0.5s var(--spring); }
.gitem:hover { transform: translateY(-7px) scale(1.02); }
.lightbox img { animation: lb-pop 0.55s var(--spring); }
@keyframes lb-pop { from { transform: scale(0.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* stat numbers bump in with spring overshoot when revealed */
.stats.in .stat b { animation: stat-pop 0.7s var(--spring) backwards; }
.stats.in .stat:nth-child(2) b { animation-delay: 0.08s; }
.stats.in .stat:nth-child(3) b { animation-delay: 0.16s; }
.stats.in .stat:nth-child(4) b { animation-delay: 0.24s; }
@keyframes stat-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* magnetic elements glide, not snap (Kinetics magnet pattern) */
.magnetic { transition: transform 0.15s ease-out; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .stats.in .stat b, .lightbox img { animation: none; }
}

/* ============ v6: process icons, logo fixes, light-mode name ============ */
[data-theme="light"] .script-name { color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,0.55); }

/* client logo special cases */
.clogo-cnnba { height: 34px; }
.clogo-imi { height: 30px; }
[data-theme="light"] .clogo-cnnba { filter: grayscale(1) invert(1) opacity(0.75); }
[data-theme="light"] .clogo-cnnba:hover { filter: invert(1); }

/* ---- Animated process icons ---- */
.proc-ic {
  width: 46px; height: 46px; display: block; margin: 18px 0 2px;
  fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.proc-ic * { transition: transform 0.55s var(--spring), opacity 0.4s ease; transform-origin: center; transform-box: fill-box; }
/* 01 Brief — top page lifts & tilts, lines draw */
.proc:hover .ic-brief .pg-front { transform: translate(-2.5px, -3px) rotate(-7deg); }
.proc:hover .ic-brief .pg-back { transform: translate(2.5px, 2px) rotate(5deg); }
.ic-brief .pg-lines { stroke-dasharray: 8; stroke-dashoffset: 0; }
.proc:hover .ic-brief .pg-lines { animation: draw 0.9s var(--spring-out); }
@keyframes draw { from { stroke-dashoffset: 16; opacity: 0.2; } to { stroke-dashoffset: 0; opacity: 1; } }
/* 02 Pipeline — nodes pulse in sequence, wires draw */
.proc:hover .ic-pipe .n1 { animation: node-pop 0.6s var(--spring); }
.proc:hover .ic-pipe .n2 { animation: node-pop 0.6s var(--spring) 0.12s; }
.proc:hover .ic-pipe .n3 { animation: node-pop 0.6s var(--spring) 0.24s; }
.proc:hover .ic-pipe .wire { stroke-dasharray: 30; animation: draw 0.8s var(--spring-out); }
@keyframes node-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* 03 AI Production — star spins & sparkles twinkle */
.proc:hover .ic-spark .big-star { animation: spin-pop 0.9s var(--spring); }
.proc:hover .ic-spark .m1 { animation: twinkle 0.9s ease 0.1s; }
.proc:hover .ic-spark .m2 { animation: twinkle 0.9s ease 0.3s; }
@keyframes spin-pop { 0% { transform: rotate(0) scale(1); } 55% { transform: rotate(160deg) scale(1.25); } 100% { transform: rotate(180deg) scale(1); } }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.15; transform: scale(0.4); } }
/* 04 Delivery — plane takes off, trail draws */
.proc:hover .ic-send .plane { transform: translate(5px, -5px) rotate(8deg); }
.proc:hover .ic-send .trail { stroke-dasharray: 10; animation: draw 0.7s var(--spring-out) 0.1s; }
@media (prefers-reduced-motion: reduce) { .proc-ic *, .proc:hover .proc-ic * { animation: none !important; transform: none !important; } }

/* multi-prompt pages */
.prompt-sub { margin: 42px 0 6px; font-size: 1.15rem; }

/* ============ v7: shimmer name, likes, nav search ============ */

/* (shimmer effect removed by request — name is plain white, light mode keeps white) */

/* ---- Gallery like button ---- */
.gitem { display: flex; flex-direction: column; aspect-ratio: auto; }
.gitem .gimg { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.gitem .gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gitem:hover .gimg img { transform: scale(1.06); }
.gbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 0.82rem; color: var(--ink-dim); }
.gbar .cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.like-btn {
  background: none; border: none; display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-dim); font-size: 0.85rem; cursor: pointer; position: relative; padding: 4px 6px;
}
.heart { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.like-btn.pop .heart { transform: scale(1.35); }
.like-btn.liked .heart { fill: #FF8A00; stroke: #FF8A00; }
.like-btn.liked { color: #FF8A00; }
.particle {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: #FF8A00; pointer-events: none;
  animation: fly 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fly { to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }

/* ---- Expanding nav search ---- */
.nav-search {
  width: 56px; height: 40px; overflow: hidden; display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px); cursor: pointer; padding: 0 0 0 18px; gap: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
  margin-left: auto; margin-right: 12px;
}
.nav-search:hover, .nav-search:focus-within { width: 230px; border-color: var(--amber); }
.nav-search svg { width: 16px; height: 16px; stroke: var(--ink-dim); fill: none; stroke-width: 2; flex-shrink: 0; }
.nav-search input {
  background: none; border: none; outline: none; color: var(--ink); font-family: inherit;
  font-size: 0.88rem; width: 160px;
}
.nav-search input::placeholder { color: var(--ink-dim); }
[data-theme="light"] .nav-search { background: rgba(255,255,255,0.6); border-color: rgba(23,20,15,0.12); }
@media (max-width: 680px) { .nav-search { display: none; } }
@media (min-width: 681px) { .nav-search { margin-left: 18px; margin-right: 0; order: 3; } .theme-toggle { order: 4; } }
