/* ==========================================================================
   Home page (index.html) — builds on base.css. All classes prefixed home-.
   ========================================================================== */

.home main { overflow-x: clip; }
.home .section { padding: clamp(80px, 11vw, 150px) 0; }
.home code {
  font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stroke); color: var(--text);
}
.home-hl { color: var(--text); font-weight: 600; }
.home :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ?static screenshots: skip reveal transitions */
.static [data-reveal] { transition: none; }

/* Section heads */
.home-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.home-head .h2 { margin-top: 18px; }
.home-head-lead { margin: 22px 0 0; max-width: 620px; }

/* Shared tag list */
.home-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--text-2);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.home-hero {
  position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: 120px 0 96px; overflow: hidden; isolation: isolate;
}
.home-aurora { position: absolute; inset: -20% -10% 0; z-index: -2; pointer-events: none; }
.home-aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.75; will-change: transform; }
.home-aurora-a { width: 58vw; height: 58vw; max-width: 820px; max-height: 820px; left: -14%; top: -6%; background: radial-gradient(circle, #0a84ff 0%, transparent 65%); animation: home-drift-a 22s ease-in-out infinite alternate; }
.home-aurora-b { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -8%; top: 4%; background: radial-gradient(circle, #bf5af2 0%, transparent 65%); animation: home-drift-b 26s ease-in-out infinite alternate; }
.home-aurora-c { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 38%; top: 46%; background: radial-gradient(circle, #f51a2e 0%, transparent 65%); opacity: 0.35 !important; animation: home-drift-c 30s ease-in-out infinite alternate; }
@keyframes home-drift-a { to { transform: translate(12%, 10%) scale(1.12); } }
@keyframes home-drift-b { to { transform: translate(-14%, 16%) scale(0.92); } }
@keyframes home-drift-c { to { transform: translate(-20%, -18%) scale(1.2); } }

.home-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 75%);
}
.home-hero::after { /* fade into page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}

.home-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.home-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-2);
}
.home-hero-title { font-size: clamp(46px, 6.6vw, 96px); max-width: 11ch; }
.home-hero-title .serif { padding-right: 0.08em; }
.home-hero-lead { margin: 28px 0 0; max-width: 540px; }
.home-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.home-hero-chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-hero-chips .chip { font-family: var(--mono); font-size: 12px; }

/* Phone stage */
.home-hero-stage { position: relative; perspective: 1600px; height: clamp(560px, 50vw, 680px); }
.home-stage-inner {
  --rx: 0deg; --ry: 0deg;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease);
}
.home-stage-glow { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; transform: translateZ(-120px); }
.home-stage-glow--hirely { width: 70%; height: 60%; left: -2%; top: 24%; background: radial-gradient(circle, rgba(245, 26, 46, 0.95), rgba(255, 107, 61, 0.4) 45%, transparent 72%); }
.home-stage-glow--solace { width: 70%; height: 60%; right: -10%; top: 2%; background: radial-gradient(circle, rgba(167, 139, 250, 0.95), rgba(94, 234, 212, 0.45) 45%, transparent 72%); }

.home-phone { position: absolute; margin: 0; transform-style: preserve-3d; }
.home-phone .iphone { --w: clamp(220px, 19vw, 280px); }
.home-phone--hirely { left: 2%; bottom: 0; transform: translate3d(var(--px, 0), var(--py, 0), 60px) rotateY(16deg) rotateZ(-5deg); animation: home-float 7s ease-in-out infinite; }
.home-phone--solace { right: -2%; top: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotateY(-14deg) rotateZ(6deg); animation: home-float 8s ease-in-out -3s infinite; }
.home-phone--solace .iphone { --w: clamp(200px, 17.5vw, 260px); }
.home-phone .iphone { animation: none; }
@keyframes home-float { 50% { translate: 0 -14px; } }

.home-phone-tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(20, 20, 26, 0.7); border: 1px solid var(--stroke-2); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); white-space: nowrap;
}
.home-phone-tag img { border-radius: 6px; }
.home-phone--hirely .home-phone-tag { left: -44px; top: 34%; transform: translateZ(40px); }
.home-phone--solace .home-phone-tag { right: -18px; bottom: 16%; transform: translateZ(40px); }

.home-scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px;
  border: 1.5px solid var(--stroke-2); border-radius: 14px;
}
.home-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: home-cue 1.8s var(--ease) infinite; }
@keyframes home-cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.home-marquee {
  position: relative; border-block: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.015);
  overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.home-marquee-track { display: flex; width: max-content; animation: home-marquee 48s linear infinite; }
.home-marquee:hover .home-marquee-track { animation-play-state: paused; }
.home-marquee-list { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; }
.home-marquee-list li {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; color: var(--text-2);
  white-space: nowrap; transition: color 0.2s;
}
.home-marquee-list li:hover { color: var(--text); }
.home-marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0.8; }
@keyframes home-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   WORK
   ========================================================================== */
.home-project {
  --accent: #fff; --p: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  min-height: 680px; padding: clamp(32px, 5vw, 72px);
  border-radius: 36px; border: 1px solid var(--stroke);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.home-project::before { /* hairline */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 35%, transparent 70%, color-mix(in srgb, var(--accent) 50%, transparent));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.home-project-bg { position: absolute; inset: 0; z-index: -1; }

.home-project--hirely { --accent: var(--hirely); }
.home-project--hirely .home-project-bg {
  background:
    radial-gradient(60% 70% at 85% 55%, rgba(245, 26, 46, 0.42), transparent 70%),
    radial-gradient(40% 50% at 70% 100%, rgba(255, 107, 61, 0.22), transparent 70%),
    linear-gradient(180deg, #120507 0%, #070405 100%);
}
.home-project--hirely .home-project-bg::after { /* cinematic letterbox + scanline sheen */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
.home-project--solace { --accent: var(--solace); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-project--solace .home-project-copy { order: 2; }
.home-project--solace .home-fan { order: 1; }
.home-project--solace .home-project-bg {
  background:
    radial-gradient(55% 60% at 18% 30%, rgba(167, 139, 250, 0.45), transparent 70%),
    radial-gradient(50% 55% at 30% 90%, rgba(94, 234, 212, 0.28), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(10, 132, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #0b0a1a 0%, #070812 100%);
  background-size: 140% 140%;
  animation: home-aurora-shift 18s ease-in-out infinite alternate;
}
@keyframes home-aurora-shift { to { background-position: 30% 20%; } }

.home-project-copy { position: relative; z-index: 1; max-width: 500px; }
.home-project-id { display: flex; align-items: center; gap: 16px; }
.home-project-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 0 0 1px rgba(255,255,255,.1); }
.home-project-kind { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.home-project-pitch { margin: 28px 0 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; }
.home-project-pitch .serif { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.home-project--solace .home-project-pitch .serif { background: linear-gradient(90deg, var(--solace), var(--solace-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.home-project-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.home-project-points li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.home-project-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.home-project--solace .home-project-points li::before { background: linear-gradient(135deg, var(--solace), var(--solace-2)); }
.home-project-points strong { color: var(--text); font-weight: 600; }
.home-project .home-tags { margin-top: 26px; }
.home-project-cta { margin-top: 32px; }
.home-project--hirely .home-project-cta:hover { box-shadow: 0 12px 40px -10px rgba(245, 26, 46, 0.8); }
.home-project--solace .home-project-cta:hover { box-shadow: 0 12px 40px -10px rgba(167, 139, 250, 0.8); }

/* Fanned trio — --p (0→1) is driven by scroll in home.js */
.home-fan { position: relative; height: 580px; perspective: 1400px; }
.home-fan-phone { position: absolute; left: 50%; top: 50%; --w: 240px; transition: transform 0.2s linear; }
.home-fan-phone--c {
  --w: 262px; z-index: 3;
  transform: translate(-50%, -50%) translateY(calc((1 - var(--p)) * 40px)) scale(calc(0.94 + var(--p) * 0.06));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 3px #050506, 0 60px 120px -30px rgba(0,0,0,.95), 0 0 90px -20px color-mix(in srgb, var(--accent) 60%, transparent);
}
.home-fan-phone--l, .home-fan-phone--r { z-index: 1; filter: brightness(calc(0.55 + var(--p) * 0.25)); }
.home-fan-phone--l { transform: translate(-50%, -50%) translateX(calc(var(--p) * -62%)) translateY(calc(var(--p) * 22px)) rotate(calc(var(--p) * -9deg)) scale(.92); }
.home-fan-phone--r { transform: translate(-50%, -50%) translateX(calc(var(--p) * 62%)) translateY(calc(var(--p) * 22px)) rotate(calc(var(--p) * 9deg)) scale(.92); }
.static .home-project, .home-project.home-fan-done { --p: 1; }

/* Smaller resume projects */
.home-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.home-mini { display: flex; gap: 20px; padding: 28px; transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s; }
.home-mini:hover { transform: translateY(-4px); border-color: var(--stroke-2); background: var(--surface-2); }
.home-mini p { margin: 0; font-size: 15px; }
.home-mini-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.home-mini-icon--wellness { background: linear-gradient(135deg, #34c759, #5eead4); box-shadow: 0 10px 26px -10px rgba(52, 199, 89, .8); }
.home-mini-icon--calorie { background: linear-gradient(135deg, #ff9f0a, #ff375f); box-shadow: 0 10px 26px -10px rgba(255, 55, 95, .8); }
.home-mini-kind { font-family: var(--mono); font-size: 11.5px !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.home-mini-title { font-size: 20px; letter-spacing: -0.02em; margin: 6px 0 8px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.home-about { overflow: hidden; }
.home-about-intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.home-portrait { position: relative; max-width: 420px; }
.home-portrait-ring {
  position: relative; padding: 3px; border-radius: 40px;
  background: conic-gradient(from 200deg, #0a84ff, #7d6bff, #bf5af2, #ff6482, #5eead4, #0a84ff);
  box-shadow: 0 40px 100px -40px rgba(125, 107, 255, 0.8);
}
.home-portrait-ring::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 60px;
  background: inherit; filter: blur(50px); opacity: 0.35;
}
.home-portrait-ring img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 37px; background: var(--bg-2); }
.home-portrait-badge {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); margin: 0;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: rgba(16, 17, 24, 0.82); border: 1px solid var(--stroke-2); backdrop-filter: blur(16px);
}
.home-about-copy .h2 { margin-top: 18px; }
.home-about-copy .lead { margin: 26px 0 0; }
.home-about-p { margin: 18px 0 0; font-size: 16.5px; max-width: 620px; }

.home-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(72px, 9vw, 120px) 0 clamp(20px, 2vw, 24px);
  border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.home-stat { padding: clamp(24px, 3vw, 40px); }
.home-stat + .home-stat { border-left: 1px solid var(--stroke); }
.home-stat-num {
  margin: 0; font-size: clamp(48px, 6vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.home-stat-label { margin: 12px 0 0; color: var(--text-2); font-size: 15px; max-width: 240px; }

.home-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.home-cap { padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.4s var(--ease), border-color 0.3s; }
.home-cap:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.home-cap p { margin: 0; font-size: 15px; }
.home-cap .home-tags { margin-top: auto; padding-top: 10px; }
.home-cap-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px !important;
  background: rgba(10, 132, 255, 0.12); color: #6cb6ff; border: 1px solid rgba(10, 132, 255, 0.25);
}
.home-cap-title { font-size: 20px; letter-spacing: -0.02em; }
.home-cap--ui { grid-column: span 2; background: radial-gradient(80% 120% at 100% 0%, rgba(10, 132, 255, 0.16), transparent 60%), var(--surface); }
.home-cap--qa { grid-column: 1 / -1; background: radial-gradient(80% 120% at 0% 100%, rgba(99, 230, 190, 0.14), transparent 60%), var(--surface); }
.home-cap--qa .home-cap-icon { background: rgba(99, 230, 190, 0.12); color: var(--mint); border-color: rgba(99, 230, 190, 0.28); }
.home-cap--ui .home-cap-icon { background: rgba(191, 90, 242, 0.12); color: #d49bff; border-color: rgba(191, 90, 242, 0.3); }
.home-cap--ui p.muted, .home-cap--qa p.muted { max-width: 560px; }
@media (min-width: 961px) {
  .home-cap--qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto auto 1fr; column-gap: 48px; row-gap: 10px; }
  .home-cap--qa > :not(.home-pipe) { grid-column: 1; }
  .home-cap--qa .home-pipe { grid-column: 2; grid-row: 1 / -1; align-self: center; }
}
.home-pipe { display: flex; align-items: center; gap: 0; padding: 22px; border-radius: 18px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--stroke); }
.home-pipe-step { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13.5px; font-weight: 600; }
.home-pipe-step small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--text-3); letter-spacing: 0.04em; }
.home-pipe-dot { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; display: grid; place-items: center; color: #6cb6ff; background: rgba(10,132,255,.14); border: 1px solid rgba(10,132,255,.4); }
.home-pipe-step--ok .home-pipe-dot { color: var(--mint); background: rgba(99,230,190,.2); border-color: rgba(99,230,190,.55); box-shadow: 0 0 24px rgba(99,230,190,.45); }
.home-pipe-line { flex: 1; min-width: 16px; height: 2px; margin: 0 8px 46px; border-radius: 2px; background: linear-gradient(90deg, rgba(10,132,255,.6) 0 40%, transparent 40% 100%) 0 0 / 14px 2px repeat-x; animation: home-pipe 1s linear infinite; }
@keyframes home-pipe { to { background-position: 14px 0; } }
@media (max-width: 640px) { .home-pipe { padding: 16px 12px; margin-top: 8px; } .home-pipe-step { font-size: 12px; } .home-pipe-step small { display: none; } .home-pipe-dot { width: 32px; height: 32px; } .home-pipe-line { margin-bottom: 30px; margin-inline: 4px; } }

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.home-exp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home-exp-head { position: sticky; top: 120px; margin-bottom: 0; }
.home-exp-head p.muted { margin: 22px 0 0; }
.home-exp-cta { margin-top: 28px; }
.home-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.home-timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--violet) 50%, rgba(255,255,255,.08));
}
.home-tl-item { position: relative; padding: 0 0 52px 48px; }
.home-tl-item:last-child { padding-bottom: 0; }
.home-tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--violet);
}
.home-tl-item--now::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 6px rgba(99, 230, 190, 0.14), 0 0 20px rgba(99, 230, 190, 0.6); }
.home-tl-item--edu::before { border-color: var(--text-3); }
.home-tl-date { margin: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.home-tl-role { margin-top: 10px; font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.025em; line-height: 1.2; }
.home-tl-org { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.home-tl-points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.home-tl-points li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.home-tl-points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--text-3); }
.home-tl-points--plain li strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.home-contact { overflow: hidden; }
.home-contact-glow {
  position: absolute; left: 50%; top: 40%; width: min(1100px, 120vw); height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(125, 107, 255, 0.28), rgba(10, 132, 255, 0.1) 55%, transparent);
  filter: blur(20px); pointer-events: none;
}
.home-contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.home-contact-title { margin-top: 18px; font-size: clamp(40px, 5vw, 70px); }
.home-nowrap { white-space: nowrap; }
.home-contact-copy .lead { margin: 24px 0 0; max-width: 520px; }
.home-contact-links { display: grid; gap: 10px; margin-top: 36px; max-width: 440px; }
.home-contact-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px;
  border: 1px solid var(--stroke); background: var(--surface); font-size: 15.5px; font-weight: 500;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); overflow-wrap: anywhere;
}
.home-contact-link small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }
.home-contact-link:hover { background: var(--surface-2); border-color: var(--stroke-2); transform: translateX(4px); }
.home-contact-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }

.home-form { padding: clamp(24px, 3vw, 36px); background: rgba(14, 15, 22, 0.7); backdrop-filter: blur(20px); }
.home-form-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 22px; }
.home-field { margin-bottom: 16px; }
.home-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.home-field input, .home-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04); font-size: 15.5px; resize: vertical; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.home-field input::placeholder, .home-field textarea::placeholder { color: var(--text-3); }
.home-field input:focus, .home-field textarea:focus { border-color: var(--blue); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2); }
.home-field input[aria-invalid="true"], .home-field textarea[aria-invalid="true"] { border-color: #ff453a; }
.home-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.home-form-submit { width: 100%; margin-top: 6px; }
.home-form-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.home-form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14.5px; color: var(--text-2); text-align: center; }
.home-form-status.ok { color: var(--mint); }
.home-form-status.err { color: #ff8a80; }

/* ==========================================================================
   AI ASSISTANT
   ========================================================================== */
.home-chat { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.home-chat-fab {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: linear-gradient(120deg, rgba(10,132,255,.9), rgba(125,107,255,.9) 50%, rgba(191,90,242,.9));
  color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 16px 40px -12px rgba(125, 107, 255, 0.9), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.home-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(125, 107, 255, 1), inset 0 1px 0 rgba(255,255,255,.25); }
.home-chat-fab[aria-expanded="true"] span { display: none; }
.home-chat-fab[aria-expanded="true"] { padding: 0 16px; }
.home-chat-panel {
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); height: min(540px, calc(100dvh - 120px));
  display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: rgba(18, 19, 27, 0.78); border: 1px solid var(--stroke-2);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.85);
  transform-origin: bottom right; animation: home-pop 0.35s var(--ease);
}
.home-chat-panel[hidden] { display: none; }
@keyframes home-pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.home-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--stroke); }
.home-chat-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); font-weight: 700; font-size: 15px; }
.home-chat-title { margin: 0; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.home-chat-sub { margin: 2px 0 0; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.home-chat-sub .dot-live { width: 6px; height: 6px; }
.home-chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.home-chat-close:hover { color: var(--text); }
.home-chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.home-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-msg--assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 6px; }
.home-msg--user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.home-msg--typing { display: inline-flex; gap: 4px; padding: 14px; }
.home-msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: home-typing 1.2s infinite; }
.home-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.home-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes home-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.home-msg a { color: #6cb6ff; text-decoration: underline; }
.home-chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.home-chat-suggest[hidden] { display: none; }
.home-chat-suggest button { border: 1px solid var(--stroke-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.home-chat-suggest button:hover { color: var(--text); background: var(--surface-2); }
.home-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--stroke); }
.home-chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.05); outline: none; font-size: 16px; }
.home-chat-form input:focus { border-color: var(--blue); }
.home-chat-form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--text); color: #000; cursor: pointer; display: grid; place-items: center; }
.home-chat-form button[disabled] { opacity: 0.5; cursor: progress; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .home-project, .home-project--solace { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-project--solace .home-project-copy { order: 0; }
  .home-project--solace .home-fan { order: 1; }
  .home-project-copy { max-width: 640px; }
  .home-fan { height: 560px; }
}

@media (max-width: 960px) {
  .home-hero { padding-top: 112px; min-height: 0; }
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .home-hero-title { max-width: 12ch; }
  .home-hero-stage { height: 600px; max-width: 560px; width: 100%; margin: 8px auto 0; }
  .home-phone .iphone { --w: 250px; }
  .home-phone--solace .iphone { --w: 230px; }
  .home-about-intro, .home-exp-grid, .home-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .home-portrait { max-width: 360px; }
  .home-exp-head { position: static; }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .home-pill { font-size: 10.5px; letter-spacing: 0.02em; padding: 6px 12px 6px 10px; gap: 8px; }
  .home-scroll-cue { display: none; }
  .home-hero { padding-bottom: 64px; }
  .home-hero-ctas .btn { flex: 1 1 auto; }
  .home-hero-stage { height: 470px; }
  .home-phone .iphone { --w: 198px; }
  .home-phone--solace .iphone { --w: 180px; }
  .home-phone--hirely { left: 0; }
  .home-phone--solace { right: 0; }
  .home-phone--hirely .home-phone-tag { left: -6px; }
  .home-phone--solace .home-phone-tag { right: -4px; }
  .home-project { padding: 28px 22px 0; border-radius: 28px; gap: 8px; }
  .home-fan { height: 440px; margin: 0 -22px; }
  .home-fan-phone { --w: 180px; }
  .home-fan-phone--c { --w: 200px; }
  .home-minis { grid-template-columns: minmax(0, 1fr); }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-cap { padding: 20px; }
  .home-cap p { font-size: 14px; }
  .home-cap-title { font-size: 17px; }
  .home-cap-icon { width: 38px; height: 38px; margin-bottom: 4px !important; }
  .home-cap--ui, .home-cap--qa { grid-column: 1 / -1; }
  .home-mini { flex-direction: column; gap: 16px; padding: 24px; }
  .home-stats { grid-template-columns: minmax(0, 1fr); }
  .home-stat { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
  .home-stat + .home-stat { border-left: 0; border-top: 1px solid var(--stroke); }
  .home-stat-num { font-size: 40px; min-width: 112px; flex-shrink: 0; }
  .home-stat-label { margin: 0; }
  .home-tl-item { padding-left: 36px; }
  .home-chat-fab span { display: none; }
  .home-chat-fab { padding: 0; width: 52px; justify-content: center; }
  .home-chat { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-aurora span, .home-phone, .home-marquee-track, .home-pipe-line, .home-project--solace .home-project-bg { animation: none !important; }
  .home-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .home-marquee-list[aria-hidden="true"] { display: none; }
  .home-marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .home-project { --p: 1; }
}
