/* ==========================================================
   Cloud Nine Digital — styles
   Sky blue, deep navy and white. Mobile-first.
   ========================================================== */

:root {
  --sky: #38B6FF;
  --sky-2: #8BD3FF;
  --sky-soft: #E8F5FF;
  --blue: #1E6FE0;
  --navy: #0A1F44;
  --navy-2: #163A78;
  --white: #FFFFFF;
  --text: #0A1F44;
  --muted: #4B5E80;
  --bg-top: #F5FAFF;
  --bg-bottom: #E2F0FF;

  --glass: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.08), 0 2px 6px rgba(10, 31, 68, 0.04);
  --glow: 0 18px 44px rgba(30, 111, 224, 0.18), 0 0 0 1px rgba(56, 182, 255, 0.35), 0 0 32px rgba(56, 182, 255, 0.22);
  --radius: 22px;

  --font-head: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --pad: 20px;
  --max: 1160px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, #EEF7FF 40%, var(--bg-bottom) 100%);
  background-color: var(--bg-top);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
h3 small { font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--blue); background: var(--sky-soft); padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.grad {
  background: linear-gradient(100deg, var(--sky) 0%, var(--blue) 55%, var(--navy-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-family: var(--font-head); font-weight: 500; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .86rem; letter-spacing: .04em;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 60%, var(--navy-2) 100%);
  box-shadow: 0 8px 22px rgba(30, 111, 224, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none !important; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30, 111, 224, .38), 0 0 24px rgba(56, 182, 255, .35); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(56, 182, 255, .6); outline-offset: 2px;
}
.btn-ghost {
  color: var(--navy); background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1.5px rgba(30, 111, 224, .35), 0 6px 18px rgba(10, 31, 68, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sky), 0 10px 26px rgba(30, 111, 224, .18); }
.btn-sm { padding: 10px 18px; font-size: .76rem; min-height: 40px; }
.btn-block { width: 100%; }

/* ---------- Background clouds ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.puff {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7;
  background: radial-gradient(circle at 40% 40%, #fff 0%, rgba(255,255,255,.6) 40%, rgba(255,255,255,0) 70%);
  will-change: transform;
}
.puff.blue { background: radial-gradient(circle, rgba(139, 211, 255, .55) 0%, rgba(139, 211, 255, 0) 70%); }
.p1 { width: 520px; height: 300px; top: 4%;  left: -12%; animation: drift 70s linear infinite; }
.p2 { width: 420px; height: 260px; top: 30%; right: -14%; animation: drift 85s linear infinite reverse;
      background: radial-gradient(circle, rgba(139, 211, 255, .55) 0%, rgba(139, 211, 255, 0) 70%); }
.p3 { width: 600px; height: 340px; top: 58%; left: -20%; animation: drift 95s linear infinite; }
.p4 { width: 380px; height: 240px; top: 80%; right: -8%; animation: drift 75s linear infinite reverse;
      background: radial-gradient(circle, rgba(56, 182, 255, .28) 0%, rgba(56, 182, 255, 0) 70%); }
.p5 { width: 340px; height: 220px; top: 14%; right: 18%; animation: drift 110s linear infinite;
      background: radial-gradient(circle, rgba(139, 211, 255, .4) 0%, rgba(139, 211, 255, 0) 70%); }
.p6 { width: 460px; height: 260px; top: 44%; left: 30%; animation: drift 120s linear infinite reverse; opacity: .5; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(14vw, -3vh, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 250, 255, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(30, 111, 224, .08);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; }
.brand img { width: 44px; height: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.brand b { color: var(--blue); font-weight: 800; }

.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad) 20px;
  background: rgba(245, 250, 255, .96); border-bottom: 1px solid rgba(30, 111, 224, .1);
  box-shadow: 0 14px 30px rgba(10, 31, 68, .08);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu.open { opacity: 1; transform: none; visibility: visible; }
.menu a:not(.btn) { color: var(--navy); font-weight: 500; padding: 12px 4px; }
.menu .btn { margin-top: 8px; }

/* ---------- Layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad); position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sub { color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) 40px;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 4px;
  min-height: calc(100svh - 64px);
}
.hero-visual { position: relative; order: -1; width: 100%; aspect-ratio: 1 / .82; max-height: 46svh; margin: 0 auto; }
.hero-fallback, #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback img { width: 100%; height: 100%; object-fit: contain; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(30, 111, 224, .25)); }
#hero-canvas { opacity: 0; transition: opacity 1.2s var(--ease); touch-action: pan-y; }
.hero-visual.is-3d #hero-canvas { opacity: 1; }
.hero-visual.is-3d .hero-fallback { opacity: 0; transition: opacity .8s var(--ease); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-copy { text-align: center; }
.hero-copy .lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 1.6em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Glass cards ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.card, .price, .step {
  padding: 24px; position: relative; z-index: 1;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover, .price:hover, .step:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(139, 211, 255, .9); }
.card p, .price p, .step p { color: var(--muted); margin: 0; font-size: .97rem; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(140deg, var(--sky-2), var(--blue));
  box-shadow: 0 6px 16px rgba(30, 111, 224, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Services flow lines ---------- */
.flow-wrap { position: relative; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-lines .base { fill: none; stroke: url(#flowGrad); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(56, 182, 255, .7)); }
.flow-lines .pulse { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 26; opacity: 0; transition: opacity 1s var(--ease); animation: flow 2.8s linear infinite; filter: drop-shadow(0 0 3px rgba(56, 182, 255, .9)); }
.flow-lines .pulse.on { opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.hub {
  position: relative; z-index: 2; width: 96px; margin: 0 auto 34px;
  filter: drop-shadow(0 10px 24px rgba(30, 111, 224, .35));
  animation: float 6s ease-in-out infinite;
}

/* ---------- Pricing ---------- */
.price { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 30px 24px; }
.price .amount { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 6px 0 0; line-height: 1.1; }
.price .dash { color: var(--sky); margin: 0 2px; }
.price .per { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 8px; }
.price .btn { margin-top: auto; }
.price > p:not(.amount):not(.per) { margin-bottom: 14px; }
.price.featured { background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(232,245,255,.7)); border-color: rgba(139, 211, 255, .9); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: inline-grid; gap: 8px; justify-self: center; align-self: center; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(140deg, var(--sky), var(--blue));
}
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.note { text-align: center; color: var(--navy); font-weight: 500; margin: 34px auto 0; max-width: 620px; }

/* ---------- Why ---------- */
.why-item { padding: 6px 4px; text-align: center; }
.why-item p { color: var(--muted); margin: 0; }
.why-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 14px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--sky) 45%, var(--blue));
  box-shadow: 0 0 0 6px rgba(56, 182, 255, .14), 0 0 18px rgba(56, 182, 255, .5);
}

/* ---------- How it works: rising path ---------- */
.climb { position: relative; }
.climb-path { display: none; }
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; display: flex; flex-direction: column-reverse; gap: 22px; position: relative; }
/* mobile: vertical glowing path rising to the top */
.steps::before {
  content: ""; position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px;
  background: linear-gradient(0deg, rgba(30, 111, 224, .2), var(--sky));
  box-shadow: 0 0 10px rgba(56, 182, 255, .6);
}
.step .num {
  position: absolute; left: -34px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--sky), var(--blue)); box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 16px rgba(56,182,255,.6);
}
.step.s3 { background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(222,241,255,.82)); border-color: rgba(139,211,255,.95); box-shadow: var(--shadow), 0 0 40px rgba(56,182,255,.25); }
/* soft cloud glow behind the top step */
.step.s3::after {
  content: ""; position: absolute; inset: -40px -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.95) 0%, rgba(139,211,255,.35) 45%, rgba(139,211,255,0) 72%);
  filter: blur(12px); pointer-events: none;
}
.step-tag {
  font-family: var(--font-head); font-weight: 800; font-size: .82rem !important; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue) !important; margin-bottom: 6px !important; display: flex; align-items: center; gap: 8px;
}
.step-tag::before {
  content: ""; width: 38px; height: 26px; flex: none;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
}

/* ---------- Work ---------- */
.work-card.empty { text-align: center; }
.slot {
  height: 140px; border-radius: 14px; margin-bottom: 16px;
  border: 1.5px dashed rgba(30, 111, 224, .28);
  background: linear-gradient(135deg, rgba(232,245,255,.7), rgba(255,255,255,.4));
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
.contact-copy { text-align: center; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: center; gap: 10px; }
.contact-list span { font-weight: 600; color: var(--navy); min-width: 52px; text-align: right; }
.form { padding: 24px; display: grid; gap: 14px; }
.form .row { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(30, 111, 224, .2);
  background: rgba(255, 255, 255, .85); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56, 182, 255, .18); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--pad) 48px; border-top: 1px solid rgba(30, 111, 224, .1); background: rgba(255, 255, 255, .45); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-logo { width: 160px; }
.footer-info p { margin: 4px 0; color: var(--muted); font-size: .92rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Privacy / simple pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px var(--pad) 72px; }
.page .glass { padding: 28px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.page h2 { font-size: 1.15rem; margin-top: 1.6em; }
.page p, .page li { color: var(--muted); }

/* ==========================================================
   Tablet and up
   ========================================================== */
@media (min-width: 640px) {
  :root { --pad: 28px; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu {
    position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .menu a:not(.btn) { padding: 6px 0; font-size: .95rem; }
  .menu .btn { margin: 0; }

  .section { padding: 100px var(--pad); }
  .hero { grid-template-columns: 1.08fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 48px; min-height: 0; }
  .hero-visual { order: 0; max-height: none; aspect-ratio: 1 / .92; }
  .hero-copy { text-align: left; }
  .hero-copy .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }

  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .hub { margin-bottom: 70px; }

  /* rising path, step 3 at the top right */
  .climb { height: 520px; }
  .climb-path { display: block; position: absolute; inset: 40px 4% 60px; width: 92%; height: calc(100% - 100px); }
  .climb-path path { fill: none; stroke: url(#climbGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(56,182,255,.6)); stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease); }
  .climb.in .climb-path path { stroke-dashoffset: 0; }
  .steps { display: block; padding: 0; height: 100%; }
  .steps::before { display: none; }
  .step { position: absolute; width: 300px; padding-top: 30px; }
  .step .num { left: 24px; top: -14px; width: 32px; height: 32px; font-size: .85rem; }
  .step.s1 { left: 0; bottom: 0; }
  .step.s2 { left: calc(50% - 150px); top: 38%; }
  .step.s3 { right: 0; top: 0; }

  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .contact-copy { text-align: left; }
  .contact-list li { justify-content: flex-start; }
  .contact-list span { text-align: left; }

  .footer-inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: 32px; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .step { width: 260px; }
  .step.s2 { left: calc(50% - 130px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .climb-path path { stroke-dashoffset: 0 !important; }
}

/* phones: leave room on the left for the glowing "spine" line */
@media (max-width: 639px) {
  .flow-wrap .grid { padding-left: 20px; }
}

/* keep the step-3 glow from widening the page on phones */
.how { overflow-x: clip; }

/* ---------- Hero headline (bigger, bolder) and tighter spacing ---------- */
.hero { min-height: 0; padding-top: 8px; padding-bottom: 36px; }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw + 1rem, 5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: .4em;
}
.hero-copy .lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); font-weight: 500; text-wrap: balance; }
@media (min-width: 900px) {
  .hero { padding-top: 36px; padding-bottom: 48px; }
}

/* ==========================================================
   Bebas Neue typography (headings, labels, buttons)
   Body text stays Inter so paragraphs and forms stay easy to read.
   ========================================================== */
:root { --font-head: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif; }
h1, h2, h3, .eyebrow, .btn, .brand span, .brand b, .price .amount, .step-tag, .step .num {
  font-family: var(--font-head); font-weight: 400;
}
h1, h2, h3 { letter-spacing: .015em; line-height: 1; }
h2 { font-size: clamp(2.3rem, 6vw, 3.7rem); }
h3 { font-size: 1.45rem; letter-spacing: .03em; margin-bottom: .35em; }
.eyebrow { font-size: 1.05rem; letter-spacing: .2em; }
.btn { font-size: 1.2rem; letter-spacing: .07em; padding-top: 13px; padding-bottom: 12px; }
.btn-sm { font-size: 1.05rem; }
.brand span { font-size: 1.45rem; letter-spacing: .08em; }
.price .amount { font-size: 3.3rem; letter-spacing: .02em; }
.step-tag { font-size: 1.1rem !important; letter-spacing: .18em; }
.step .num { font-size: 1.05rem; }
.hero h1 {
  font-size: clamp(3.6rem, 7.5vw + 1rem, 7.4rem);
  line-height: .9; letter-spacing: .01em; margin-bottom: .3em;
}

/* ==========================================================
   Hero phone (HTML + CSS, no images)
   ========================================================== */
.phone-visual { aspect-ratio: auto; max-height: none; display: grid; place-items: center; padding: 10px 0 24px; }
.phone-stage { position: relative; perspective: 1400px; display: grid; place-items: center; }
.phone-glow {
  position: absolute; width: 150%; height: 75%; top: 12%; left: -25%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139,211,255,.55) 0%, rgba(139,211,255,.18) 45%, rgba(139,211,255,0) 70%);
  filter: blur(20px); pointer-events: none;
}
.phone-float { animation: phoneFloat 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.phone {
  --rx: 5deg; --ry: -14deg; --gx: 30%;
  position: relative;
  width: clamp(150px, min(44vw, 18svh), 300px);
  aspect-ratio: 9 / 19.3;
  border-radius: 15% / 7%;
  padding: 2.6%;                                   /* thin bezel */
  background: linear-gradient(145deg, #2A3D63 0%, #0A1F44 45%, #06142E 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.18),
    inset 0 0 0 4px #0A1A38,
    0 2px 0 rgba(255,255,255,.4),
    0 40px 70px -20px rgba(10,31,68,.45),
    0 18px 30px -12px rgba(30,111,224,.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}
.btn-side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #31476F, #0A1F44); }
.btn-side.b1 { left: -3px; top: 18%; height: 6%; }
.btn-side.b2 { left: -3px; top: 27%; height: 10%; }
.btn-side.b3 { right: -3px; top: 24%; height: 14%; }

.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 13.5% / 6.2%;
  background:
    radial-gradient(120% 60% at 20% 0%, #CDEBFF 0%, rgba(205,235,255,0) 60%),
    linear-gradient(180deg, #F2F9FF 0%, #E2F1FF 100%);
  font-family: var(--font-body); color: var(--navy);
  display: flex; flex-direction: column;
  container-type: inline-size;
}
.island {
  position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 3.4%; border-radius: 99px; background: #050B18; z-index: 3;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4.6% 9% 0; font-size: 5cqw; font-weight: 600; height: 9%;
}
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons svg { height: 4.2cqw; width: auto; fill: currentColor; }
.app-head { display: flex; align-items: center; gap: 4cqw; padding: 5cqw 7cqw 4cqw; }
.app-head img { width: 13cqw; height: auto; filter: drop-shadow(0 3px 6px rgba(30,111,224,.3)); }
.app-kicker { margin: 0; font-size: 4.2cqw; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.app-title { margin: 0; font-family: var(--font-head); font-size: 9cqw; line-height: 1; letter-spacing: .02em; }

.feed { list-style: none; margin: 0; padding: 0 5cqw; display: flex; flex-direction: column; gap: 3.2cqw; flex: 1; overflow: hidden; }
.pnote {
  display: grid; grid-template-columns: auto 1fr auto; gap: 3.2cqw; align-items: start;
  padding: 3.6cqw; border-radius: 5.5cqw;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 14px rgba(10,31,68,.08);
}
.pnote b { display: block; font-size: 4.4cqw; line-height: 1.25; }
.pnote p { margin: .6cqw 0 0; font-size: 3.7cqw; line-height: 1.35; color: var(--muted); }
.pnote time { font-size: 3.3cqw; color: #8193B2; }
.n-ic {
  width: 9.5cqw; height: 9.5cqw; border-radius: 2.8cqw; display: block; position: relative;
  background: linear-gradient(140deg, var(--sky), var(--blue));
  box-shadow: 0 3px 8px rgba(30,111,224,.3);
}
.n-ic::after { content: ""; position: absolute; inset: 22%; background: #fff; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.i-call { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.i-cal { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zm12 7H5v10h14zm-8.5 8.2-3.2-3.2 1.4-1.4 1.8 1.8 4.3-4.3 1.4 1.4z'/%3E%3C/svg%3E"); }
.i-bell { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.4-2h-4.8A2.5 2.5 0 0 0 12 22zm7-6V11a7 7 0 0 0-5.5-6.8V3a1.5 1.5 0 0 0-3 0v1.2A7 7 0 0 0 5 11v5l-2 2v1h18v-1z'/%3E%3C/svg%3E"); }
.i-star { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.5 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z'/%3E%3C/svg%3E"); }
.i-web { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.5 1.1-2.8 1.9-4zM4.3 14a8 8 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4zm7.7 6c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.5-1.1 2.8-1.9 4zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm2 0a16.5 16.5 0 0 0 0-4h3.4a8 8 0 0 1 0 4z'/%3E%3C/svg%3E"); }

/* new message slides in from the top; oldest fades away */
.pnote.enter { animation: noteIn .7s var(--ease) both; }
.pnote.leave { animation: noteOut .5s var(--ease) both; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes noteOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

.home-bar { width: 36%; height: 1.4cqw; min-height: 4px; border-radius: 99px; background: rgba(10,31,68,.55); margin: 3cqw auto 3.5cqw; }

.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) calc(var(--gx) - 20%), rgba(255,255,255,.22) var(--gx), rgba(255,255,255,0) calc(var(--gx) + 22%));
}
.phone-shadow {
  width: 70%; height: 22px; margin-top: 18px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10,31,68,.28) 0%, rgba(10,31,68,0) 70%);
  filter: blur(4px); animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }

@media (min-width: 900px) {
  .phone-visual { padding: 20px 0 10px; }
  .phone { width: clamp(240px, 22vw, 300px); }
}

/* ---------- Work: real project card (matches the glass cards) ---------- */
.work-card.project { display: flex; flex-direction: column; }
.work-card .shot { display: block; overflow: hidden; border-radius: 14px; margin-bottom: 16px; aspect-ratio: 16 / 10; box-shadow: 0 6px 18px rgba(10, 31, 68, .12); }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card.project:hover .shot img { transform: scale(1.04); }
.work-tag {
  align-self: flex-start; margin: 0 0 8px !important; padding: 3px 10px; border-radius: 99px;
  font-size: .74rem !important; font-weight: 600; color: var(--blue) !important; background: var(--sky-soft);
}
.work-card.project > p:not(.work-tag) { margin-bottom: 18px; }
.work-btn { align-self: flex-start; margin-top: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.work-card .slot { height: auto; aspect-ratio: 16 / 10; }
