/* Layout: white pages with full-bleed dark "night" bands; a 1200px sheet; orange-red brand glow as the one bold move.
   Single committed look (light pages, dark bands) in every viewer theme. */
:root {
  --brand: #F2541B;        /* orange pushed toward the red of the cap */
  --brand-deep: #C7341A;
  --brand-soft: #FFF1EA;
  --ink: #16110F;
  --muted: #6E615B;
  --line: #EFE2DA;
  --paper: #FFFFFF;
  --sand: #FBF6F3;
  --night: #120D0B;
  --night-2: #1E1613;
  --night-line: #3A2B25;
  --night-muted: #B8A79F;
  --on-brand: #FFFFFF;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --radius: 18px;
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 2.2vw, 1.6rem);
  --step-3: clamp(1.9rem, 3.6vw, 2.75rem);
  --step-4: clamp(2.4rem, 5.6vw, 4.25rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tight { padding-block: clamp(48px, 6vw, 72px); }
.sand { background: var(--sand); }
.night { background: var(--night); color: #F6EEEA; position: relative; overflow: hidden; }
.night .muted { color: var(--night-muted); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: var(--step-3); }
.head p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.night .head p { color: var(--night-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px rgba(242,84,27,.7); }
.btn-brand:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.night .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { border-color: #F6EEEA; color: #F6EEEA; }
.night .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: #F6EEEA; color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 6px 16px -6px rgba(242,84,27,.8); }
.logo .dot { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav a[aria-current="page"] { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 12px 18px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 0; top: calc(env(safe-area-inset-top, 0px) + 72px); background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
         padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .nav[hidden] { display: none !important; }
  .nav a { font-size: 1.25rem; font-family: var(--font-display); padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .header-cta .btn-brand span.long { display: none; }
}
@media (min-width: 981px) { .nav[hidden] { display: flex !important; } }
@media (max-width: 560px) {
  .header-cta .btn-brand { padding: 0; width: 44px; height: 44px; }
  .header-cta .btn-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-header .wrap { gap: 10px; }
  .logo { font-size: 1.02rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #F6EEEA; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,84,27,.55) 0%, rgba(242,84,27,.12) 40%, transparent 68%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: end; padding-top: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero-copy { display: grid; gap: 22px; padding-bottom: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lede { font-size: var(--step-1); color: var(--night-muted); max-width: 46ch; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 8px; }
.hero-proof div { display: grid; }
.hero-proof b { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.hero-proof span { font-size: .82rem; color: var(--night-muted); }
.hero-visual { position: relative; display: flex; justify-content: center; align-self: end; min-height: 360px; }
.hero-visual .ring { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 70%); box-shadow: 0 0 120px rgba(242,84,27,.45); }
.hero-visual .ring::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.25); animation: spin 40s linear infinite; }
.hero-visual img { position: relative; width: min(330px, 70%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); display: flex; gap: 10px; align-items: center; font-size: .85rem; line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-display); font-size: 1rem; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card.a { left: 0; top: 18%; }
.float-card.b { right: 0; top: 46%; animation-delay: -2s; }
.float-card.c { left: 4%; bottom: 10%; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .float-card { font-size: .75rem; padding: 9px 10px; } .float-card .ic { display: none; } .float-card.c { display: none; } }

/* Marquee */
.marquee { background: var(--brand); color: var(--on-brand); overflow: hidden; padding-block: 14px; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: "✦"; font-size: .8rem; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px; counter-reset: step; position: relative; }
.step { text-align: center; display: grid; justify-items: center; gap: 12px; position: relative; }
.step-icon { width: 92px; height: 92px; border-radius: 50%; border: 1.5px dashed var(--brand); display: grid; place-items: center; position: relative; background: var(--paper); }
.step-icon svg { width: 34px; height: 34px; color: var(--brand); }
.step-icon::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -4px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 .72rem/30px var(--font-display); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); font-size: .95rem; max-width: 30ch; }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.portrait { position: relative; border-radius: 28px; background: linear-gradient(170deg, var(--brand-soft) 0%, #FFD9C7 100%); aspect-ratio: 4/4.4; max-width: 100%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait img { height: 94%; width: auto; max-width: 80%; object-fit: contain; object-position: bottom; }
.portrait .badge { position: absolute; left: 20px; bottom: 20px; background: var(--brand); color: var(--on-brand); border-radius: 16px; padding: 16px 18px; max-width: 200px; box-shadow: 0 16px 36px -14px rgba(199,52,26,.8); }
.portrait .badge b { font-family: var(--font-display); font-size: 2rem; display: block; line-height: 1; }
.portrait .badge span { font-size: .82rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.stack { display: grid; gap: 22px; }

/* Services: fanned cards */
.services-fan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; position: relative; z-index: 1; }
.svc {
  background: linear-gradient(170deg, var(--night-2), #261A15); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.svc:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: 0 24px 50px -24px rgba(242,84,27,.6); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(242,84,27,.14); color: var(--brand); display: grid; place-items: center; }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--night-muted); font-size: .95rem; }
.svc .more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 1100px) {
  .services-fan.fan { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; padding-top: 40px; }
  .services-fan.fan .svc { padding: 22px 18px; }
  .services-fan.fan .svc:nth-child(1) { transform: rotate(-6deg) translateY(36px); }
  .services-fan.fan .svc:nth-child(2) { transform: rotate(-3deg) translateY(12px); }
  .services-fan.fan .svc:nth-child(3) { transform: translateY(0); }
  .services-fan.fan .svc:nth-child(4) { transform: translateY(0); }
  .services-fan.fan .svc:nth-child(5) { transform: rotate(3deg) translateY(12px); }
  .services-fan.fan .svc:nth-child(6) { transform: rotate(6deg) translateY(36px); }
  .services-fan.fan .svc:hover { transform: rotate(0) translateY(-10px); }
}
.glow-floor { position: absolute; left: 50%; bottom: -380px; transform: translateX(-50%); width: 1100px; height: 600px; border-radius: 50%; background: radial-gradient(ellipse, rgba(242,84,27,.5), transparent 65%); pointer-events: none; }

/* Rocket */
.rocket-band { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--night) 40%, var(--brand-deep) 100%); color: #fff; overflow: hidden; }
.rocket-band .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(56px, 8vw, 96px) clamp(80px, 10vw, 120px); position: relative; z-index: 1; }
.rocket { width: 92px; height: auto; animation: hover 3.2s ease-in-out infinite; }
.rocket .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flicker .18s ease-in-out infinite alternate; }
@keyframes hover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes flicker { from { transform: scaleY(1); } to { transform: scaleY(1.25); } }
.rocket-band .clouds { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; color: var(--paper); }
.rocket-band h2 { font-size: var(--step-3); max-width: 18ch; }
.rocket-band p { color: rgba(255,255,255,.82); max-width: 52ch; font-size: var(--step-1); }
.rocket-band .btn-brand { background: #fff; color: var(--brand-deep); box-shadow: none; }
.rocket-band .btn-brand:hover { background: var(--night); color: #fff; }

/* Why timeline (zigzag) */
.zig { position: relative; display: grid; gap: 22px; }
.zig::before { content: ""; position: absolute; top: 0; bottom: 0; left: 23px; width: 2px; background: repeating-linear-gradient(var(--brand) 0 8px, transparent 8px 16px); }
.zig-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.zig-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--brand-soft); z-index: 1; }
.zig-dot svg { width: 22px; height: 22px; }
.zig-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.zig-card h3 { font-size: var(--step-1); }
.zig-card p { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .zig::before { left: 50%; transform: translateX(-1px); }
  .zig-item { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
  .zig-item .zig-dot { grid-column: 2; grid-row: 1; }
  .zig-item .zig-card { grid-column: 1; grid-row: 1; text-align: right; }
  .zig-item:nth-child(even) .zig-card { grid-column: 3; text-align: left; }
}

.zig.compact::before { left: 23px; transform: none; }
.zig.compact .zig-item { grid-template-columns: 48px minmax(0, 1fr); }
.zig.compact .zig-item .zig-dot { grid-column: 1; }
.zig.compact .zig-item .zig-card, .zig.compact .zig-item:nth-child(even) .zig-card { grid-column: 2; text-align: left; }

/* Results */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.result { border-radius: var(--radius); padding: 26px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; }
.result b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--brand); line-height: 1; letter-spacing: -0.04em; }
.result p { color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(22,17,15,.45); }
.project-cover { aspect-ratio: 16/10; max-width: 100%; position: relative; overflow: hidden; background: var(--night); }
.project-cover svg { width: 100%; height: 100%; display: block; }
.project-cover .chip { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: var(--step-1); }
.project-body p { color: var(--muted); font-size: .95rem; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.stars { color: var(--brand); letter-spacing: 2px; font-size: .9rem; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 600 .9rem var(--font-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; position: relative; z-index: 1; }
.counter { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--night-line); }
.counter b { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.counter b .suf { color: var(--brand); }
.counter > span { color: var(--night-muted); font-size: .95rem; max-width: 24ch; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1rem var(--font-display); flex: none; text-transform: uppercase; }
.review footer b { display: block; font-size: .95rem; }
.review footer span { font-size: .82rem; color: var(--muted); }
.rating-panel { background: var(--night); color: #fff; border-radius: 24px; padding: 30px; display: grid; gap: 14px; align-content: start; }
.rating-panel .big { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 800; }
.rating-panel p { color: var(--night-muted); }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 960px) { .review-layout { grid-template-columns: 320px minmax(0, 1fr); } }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--night); color: #fff; }
.video-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #000; }
.video-card .cap { padding: 14px 18px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .9rem; }
.video-card .cap span { color: var(--night-muted); font-size: .82rem; }
.note { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.help-card { background: var(--brand-soft); border-radius: 18px; padding: 22px; display: grid; gap: 12px; }
.help-card a { font-weight: 600; text-decoration: none; display: flex; gap: 10px; align-items: center; }
.help-card a svg { width: 20px; height: 20px; color: var(--brand); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; background: var(--paper); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(22,17,15,.45); }
.post-cover { aspect-ratio: 16/9; max-width: 100%; background: var(--night); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.post-cover::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; top: -80px; background: radial-gradient(circle, rgba(242,84,27,.75), transparent 70%); }
.post-cover .cat { position: relative; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.post-cover .glyph { position: absolute; right: 18px; bottom: 14px; color: rgba(255,255,255,.9); }
.post-cover .glyph svg { width: 54px; height: 54px; }
.post-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.post-body .date { font-size: .82rem; color: var(--muted); }
.post-body h3 { font-size: var(--step-1); }
.post-body p { color: var(--muted); font-size: .95rem; }

/* Page hero */
.page-hero { background: var(--night); color: #F6EEEA; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(242,84,27,.5), transparent 65%); }
.page-hero .wrap { position: relative; padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 16px; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; font-weight: 800; letter-spacing: -0.04em; }
.page-hero p { color: var(--night-muted); font-size: var(--step-1); max-width: 56ch; }
.crumbs { font-size: .85rem; color: var(--night-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: #fff; }
.crumbs a:hover { color: var(--brand); }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); scroll-margin-top: 100px; }
@media (min-width: 860px) { .svc-detail { grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.svc-detail .svc-icon { background: var(--brand-soft); width: 64px; height: 64px; }
.svc-detail h2 { font-size: var(--step-2); margin-bottom: 10px; }
.svc-detail p { color: var(--muted); }

/* Case study */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .case-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.case-facts { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; align-content: start; align-self: start; background: var(--sand); }
@media (min-width: 960px) { .case-facts { position: sticky; top: 100px; } }
.case-facts dl { margin: 0; display: grid; gap: 12px; }
.case-facts dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.case-facts dd { margin: 0; font-weight: 600; }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 16px; }
.prose p, .prose li { color: #3E3430; font-size: 1.05rem; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--brand); }
.pull { border-left: 4px solid var(--brand); padding: 6px 0 6px 20px; font-size: 1.15rem; font-family: var(--font-display); line-height: 1.5; color: var(--ink); }
.pull cite { display: block; margin-top: 10px; font: 500 .9rem var(--font-body); color: var(--muted); font-style: normal; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--paper); }
.contact-card.primary { background: var(--night); color: #fff; border-color: var(--night); }
.contact-card.primary p { color: var(--night-muted); }
.contact-card h2 { font-size: var(--step-2); }
.contact-card .value { font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--paper); color: var(--ink); transition: border-color .2s, color .2s; }
.social:hover { border-color: var(--brand); color: var(--brand); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -220px; border: 60px solid rgba(255,255,255,.12); }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; } }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 10px; }
.cta-band .btn-brand { background: #fff; color: var(--brand-deep); box-shadow: none; position: relative; z-index: 1; }
.cta-band .btn-brand:hover { background: var(--night); color: #fff; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; position: relative; z-index: 1; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--brand-deep); }

/* Footer */
.site-footer { background: var(--night); color: #EDE3DE; padding-top: clamp(56px, 8vw, 88px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.site-footer h4 { font-size: 1rem; margin-bottom: 14px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--night-muted); transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.site-footer .logo { color: #fff; }
.site-footer .blurb { color: var(--night-muted); margin-top: 14px; max-width: 34ch; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--night-line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: var(--night-muted); }

/* WhatsApp float */
.wa-float { position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal (content is visible at rest; motion only adds polish) */
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
.js .reveal-scroll { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal-scroll.pending { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal-scroll.pending { transform: none; }
}

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; z-index: 70; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   MOTION & INTERACTION (paired with motion.js)
   ===================================================================== */
.scroll-progress { position: fixed; z-index: 80; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; background: linear-gradient(90deg, var(--brand), #FF9A5C); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.to-top { position: fixed; z-index: 40; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; background: var(--night); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top .track { fill: none; stroke: var(--night-line); stroke-width: 3; }
.to-top .prog { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.to-top .arr { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 24px 24px; }

/* custom cursor */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brand); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-ring span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand); display: grid; place-items: center; font: 700 .72rem var(--font-body); color: #fff; letter-spacing: .04em; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s; }
.cursor-ring.hover span { transform: scale(1.6); background: rgba(242,84,27,.12); }
.cursor-ring.label span { transform: scale(2.1); background: var(--brand); border-color: var(--brand); font-size: .5rem; }
.cursor-ring.down span { transform: scale(.8); }
html.has-cursor.cursor-on, html.has-cursor.cursor-on * { cursor: none !important; }
html.has-cursor.cursor-on input, html.has-cursor.cursor-on textarea { cursor: text !important; }

/* word-by-word headline reveal */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
html.motion [data-split].will .w > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--i) * 55ms); }
html.motion [data-split].in .w > span { transform: none; }

/* block reveal */
html.motion .will.reveal-up, html.motion .will.reveal-scroll { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.2,1); }
html.motion .will.in.reveal-up, html.motion .will.in.reveal-scroll { opacity: 1; transform: none; }
html.motion .stagger > .will:nth-child(2) { transition-delay: .1s; }
html.motion .stagger > .will:nth-child(3) { transition-delay: .2s; }
html.motion .stagger > .will:nth-child(4) { transition-delay: .3s; }
html.motion .stagger > .will:nth-child(5) { transition-delay: .4s; }
html.motion .stagger > .will:nth-child(6) { transition-delay: .5s; }

/* scroll-lit statement */
.statement { background: var(--night); color: #fff; }
.statement .wrap { padding-block: clamp(72px, 10vw, 140px); display: grid; gap: 28px; }
.fill-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.22; letter-spacing: -0.03em; max-width: 24ch; margin: 0; }
.fill-text .fw { color: rgba(255,255,255,.2); transition: color .4s ease; }
.fill-text .fw.lit { color: #fff; }
.fill-text .fw.lit:nth-last-child(-n+4) { color: var(--brand); }

/* huge outline text that slides with scroll */
.mega { overflow: hidden; padding-block: 8px; pointer-events: none; user-select: none; }
.mega-line { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 13vw, 11rem); line-height: 1; letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1.5px var(--line); will-change: transform; }
.mega-line b { color: var(--brand); -webkit-text-stroke: 0; font-weight: 800; }
.night .mega-line, .statement .mega-line { -webkit-text-stroke-color: var(--night-line); }

/* hero network + depth */
.hero canvas[data-network] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { z-index: 1; }
.hero h1 em { background: linear-gradient(90deg, var(--brand), #FF9A5C, var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
[data-depth] { transition: translate .25s ease-out; }
.hero-visual .ring { animation: pulse-glow 4s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 90px rgba(242,84,27,.35); } 50% { box-shadow: 0 0 150px rgba(242,84,27,.6); } }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--night-muted); letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint i { width: 22px; height: 34px; border: 1.5px solid var(--night-muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* tilt cards with glare */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; transform-style: preserve-3d; position: relative; }
.tilt.tilting { transition: transform .08s linear, border-color .3s, box-shadow .3s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%); }
.tilt.tilting::after { opacity: 1; }

/* services: three big fanned cards */
.services-fan.fan3 { grid-template-columns: minmax(0, 1fr); gap: 22px; perspective: 1200px; }
@media (min-width: 900px) {
  .services-fan.fan3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding-top: 30px; }
  .services-fan.fan3 > :nth-child(1) { rotate: -4deg; translate: 0 26px; }
  .services-fan.fan3 > :nth-child(3) { rotate: 4deg; translate: 0 26px; }
  .services-fan.fan3 > :hover { rotate: 0deg; translate: 0 -8px; }
}
.services-fan.fan3 > * { transition: rotate .5s cubic-bezier(.2,.7,.2,1), translate .5s cubic-bezier(.2,.7,.2,1); }
.svc.big { padding: 32px 28px 26px; min-height: 380px; gap: 16px; overflow: hidden; }
.svc.big h3 { font-size: var(--step-2); }
.svc.big ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #E9DED9; font-size: .92rem; }
.svc.big li { display: flex; gap: 10px; align-items: center; }
.svc.big li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.svc.big .num { position: absolute; right: 18px; bottom: -18px; font-family: var(--font-display); font-weight: 800; font-size: 7rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--night-line); transition: -webkit-text-stroke-color .3s, color .3s; }
.svc.big:hover .num { -webkit-text-stroke-color: var(--brand); }
.svc.big .svc-icon { width: 60px; height: 60px; transition: transform .5s cubic-bezier(.2,.7,.2,1), background .3s, color .3s; }
.svc.big:hover .svc-icon { transform: rotate(-10deg) scale(1.08); background: var(--brand); color: #fff; }

/* process: line draws as you scroll past */
.steps { isolation: isolate; }
@media (min-width: 900px) {
  .steps.line::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand)) 0 0 / var(--draw, 0%) 100% no-repeat, repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); transition: background-size 1.6s cubic-bezier(.2,.7,.2,1); }
  html.motion .steps.line.in::before, html:not(.motion) .steps.line::before { --draw: 100%; }
}
.step-icon { transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s; }
.step:hover .step-icon { transform: translateY(-6px) rotate(8deg); background: var(--brand-soft); }

/* reviews marquee */
.review-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 8px; }
.review-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.review-marquee:hover .review-track, .review-marquee:focus-within .review-track { animation-play-state: paused; }
.review-track .review { width: min(380px, 80vw); flex: none; }
html.motion .review-track .review.will { opacity: 1; transform: none; }

/* project & post cards: zoom + "View" cursor */
.project-cover svg, .post-cover::before { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-cover svg { transform: scale(1.06); }
.post-card:hover .post-cover::before { transform: scale(1.4) translate(-20px, 20px); }

/* footer "let's talk" */
.lets-talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--night-line); }
.lets-talk a.big { text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 10vw, 8.5rem); line-height: 1; letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1.5px #F6EEEA; background: linear-gradient(90deg, var(--brand) 0 50%, transparent 50% 100%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-position .7s cubic-bezier(.2,.7,.2,1), -webkit-text-stroke-color .4s; }
.lets-talk a.big:hover, .lets-talk a.big:focus-visible { background-position: 0 0; -webkit-text-stroke-color: var(--brand); }
.lets-talk a.big span { display: inline-block; transition: transform .5s; color: var(--brand); -webkit-text-stroke: 0; }
.lets-talk a.big:hover span { transform: translate(10px, -10px) rotate(-12deg); }
.lets-talk p { color: var(--night-muted); max-width: 32ch; }

/* reduced motion: everything visible and still */
html.motion-off [data-split] .w > span, html.motion-off .will { transform: none !important; opacity: 1 !important; }

.svc.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* =====================================================================
   ANIMATED PAGE HEADERS (inner pages)
   ===================================================================== */
.page-hero { isolation: isolate; }
.page-hero canvas[data-network] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.page-hero.has-photo { background: linear-gradient(90deg, rgba(18,13,11,.94) 0%, rgba(18,13,11,.78) 50%, rgba(18,13,11,.55) 100%), var(--hero-img) center / cover no-repeat, var(--night); }
.page-hero .wrap.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 110px); }
@media (min-width: 960px) { .page-hero .wrap.ph-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.ph-copy { display: grid; gap: 18px; align-content: center; position: relative; z-index: 1; }
.ph-visual { position: relative; min-height: 360px; display: grid; place-items: center; z-index: 1; }
.page-hero .mega { position: absolute; left: 0; right: 0; bottom: -0.18em; z-index: -1; padding: 0; }
.page-hero .mega-line { -webkit-text-stroke: 1.5px rgba(255,255,255,.08); font-size: clamp(5rem, 16vw, 14rem); }
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-stats span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); font-size: .85rem; color: #EDE3DE; }
.ph-stats b { color: var(--brand); font-family: var(--font-display); }

/* about: photo with badges */
.pv-about { min-height: 420px; width: 100%; align-self: end; margin-bottom: calc(-1 * clamp(64px, 9vw, 110px)); }
.page-hero .wrap.ph-grid:has(.pv-about) { align-items: end; }
.pv-about img { width: min(260px, 60%); }
.pv-about .ring { width: min(360px, 86%); }
@media (max-width: 959px) { .pv-about { min-height: 380px; } }

/* services: orbit */
.orbit { --size: min(420px, 82vw); position: relative; width: var(--size); height: var(--size); }
.orbit-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(242,84,27,.55), transparent 70%); animation: pulse-glow 4s ease-in-out infinite; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18); animation: spin 36s linear infinite; }
.orbit-ring.r2 { inset: 22%; border-style: solid; border-color: rgba(242,84,27,.35); animation-duration: 20s; animation-direction: reverse; }
.sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(calc(var(--size) / 2)); }
.sat-in { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); transform: rotate(calc(-1 * var(--a))); animation: counter 36s linear infinite; }
.sat-in svg { width: 26px; height: 26px; }
.sat-in em { position: absolute; top: 100%; margin-top: 6px; font: 600 .7rem var(--font-body); font-style: normal; color: #EDE3DE; white-space: nowrap; }
@keyframes counter { from { rotate: 0deg; } to { rotate: -360deg; } }
.orbit-core { position: absolute; inset: 31%; border-radius: 50%; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; color: #fff; box-shadow: 0 0 80px rgba(242,84,27,.55); }
.orbit-core .logo-mark { background: #fff; color: var(--brand); width: 38px; height: 38px; margin-bottom: 6px; box-shadow: none; }
.orbit-core b { font-family: var(--font-display); font-size: 1rem; }
.orbit-core small { font-size: .75rem; opacity: .85; }
@media (max-width: 520px) { .sat-in { width: 48px; height: 48px; left: -24px; top: -24px; border-radius: 14px; } .sat-in svg { width: 20px; height: 20px; } .sat-in em { display: none; } }

/* portfolio + blog: fanned stack of cards */
.stack-cards { position: relative; width: min(460px, 100%); height: 360px; }
.stack-card { position: absolute; left: 50%; top: 50%; width: 72%; background: #fff; border-radius: 16px; padding: 8px 8px 12px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); color: var(--ink);
  transform: translate(-50%, -50%) translateX(calc((var(--k) - 1) * 26%)) translateY(calc((var(--k) - 1) * -6%)) rotate(calc((var(--k) - 1) * 8deg)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stack-card:nth-child(2) { z-index: 2; }
.stack-card .project-cover, .stack-card .post-cover { border-radius: 10px; aspect-ratio: 16/10; }
.stack-card > span { display: block; padding: 10px 6px 0; font: 600 .82rem var(--font-display); }
.stack-cards:hover .stack-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 1) * 40%)) translateY(calc((var(--k) - 1) * -2%)) rotate(calc((var(--k) - 1) * 12deg)); }
.stack-cards .float-card.b { right: -4%; top: auto; bottom: 0; z-index: 3; }
.posts-stack .post-cover { padding: 12px; }
.posts-stack .post-cover::before { width: 160px; height: 160px; }

/* reviews: score + floating quotes */
.pv-reviews { position: relative; width: min(460px, 100%); height: 380px; }
.score-card { position: absolute; left: 0; top: 50%; margin-top: -95px; width: 190px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; align-content: center; text-align: center; color: #fff; box-shadow: 0 0 90px rgba(242,84,27,.5); }
.score-card b { font-family: var(--font-display); font-size: 4rem; line-height: 1; }
.score-card .stars { color: #fff; }
.score-card small { font-size: .78rem; max-width: 14ch; opacity: .9; margin-top: 4px; }
.bubble { position: absolute; max-width: 220px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: .8rem; line-height: 1.4; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); animation: bob 6s ease-in-out infinite; display: grid; gap: 4px; }
.bubble .stars { font-size: .7rem; }
.bubble small { color: var(--muted); font-weight: 600; }
.bubble { width: 52%; max-width: none; }
.bubble p { color: var(--ink); margin: 0; font-size: inherit; }
.bubble.b0 { right: 0; top: 0; }
.bubble.b1 { right: 4%; top: 36%; animation-delay: -2s; }
.bubble.b2 { right: 0; bottom: 0; animation-delay: -4s; }
@media (max-width: 520px) { .bubble { width: 56%; font-size: .72rem; } .score-card { width: 140px; margin-top: -70px; } .score-card b { font-size: 2.6rem; } .score-card small { font-size: .65rem; } }

/* contact: chat mock */
.chat-mock { width: min(400px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.8); animation: bob 8s ease-in-out infinite; }
.chat-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-family: var(--font-display); }
.chat-head small { color: #1FA855; font-size: .78rem; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.45; animation: pop .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d); }
.msg.in { background: var(--sand); border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* real images in cards */
.project-cover img, .post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-cover img, .post-card:hover .post-cover img { transform: scale(1.06); }
.post-cover.has-img::before { display: none; }
.post-cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,13,11,.6)); }
.post-cover .cat { z-index: 1; }

/* case study screenshot gallery */
.gallery { display: grid; gap: 22px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(22,17,15,.5); }
.gallery img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: .9rem; color: var(--muted); }
.project-cover img { object-position: center top; }

.post-figure { margin: 0 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(22,17,15,.5); }
.post-figure img { width: 100%; height: auto; }

.live-pill { font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #E7F7EE; color: #1A7F45; }

/* home: recent projects slide in from the right, screenshots wipe in */
html.motion .projects.slide-in > .will { opacity: 0; transform: translateX(90px) rotate(1.5deg); transition-property: opacity, transform; transition-duration: .9s, 1.1s; transition-timing-function: ease, cubic-bezier(.2,.75,.2,1); }
html.motion .projects.slide-in > .will.in { opacity: 1; transform: none; }
html.motion .projects.slide-in > .will:nth-child(2) { transition-delay: .18s; }
html.motion .projects.slide-in > .will:nth-child(3) { transition-delay: .36s; }
html.motion .projects.slide-in > .will .project-cover img { clip-path: inset(0 100% 0 0); scale: 1.12; transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), scale 1.6s cubic-bezier(.2,.75,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.motion .projects.slide-in > .will.in .project-cover img { clip-path: inset(0 0 0 0); scale: 1; }
html.motion .projects.slide-in > .will:nth-child(1) .project-cover img { transition-delay: .35s, .35s, 0s; }
html.motion .projects.slide-in > .will:nth-child(2) .project-cover img { transition-delay: .53s, .53s, 0s; }
html.motion .projects.slide-in > .will:nth-child(3) .project-cover img { transition-delay: .71s, .71s, 0s; }

/* About header: world map + live workflow */
.pv-map { position: relative; width: 100%; max-width: 680px; padding-bottom: 170px; }
.map-wrap { position: relative; width: 100%; aspect-ratio: 1000 / 400; }
.map-dots, .map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines .arc { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(242,84,27,.7)); animation: arc-draw 9s cubic-bezier(.6,0,.2,1) infinite; animation-delay: calc(var(--k) * .55s); }
@keyframes arc-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 18% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.map-lines .pin circle { fill: #fff; }
.map-lines .pin .pulse, .map-lines .home-pulse { fill: none; stroke: var(--brand); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; animation-delay: calc(var(--k, 0) * .55s + .9s); }
.map-lines .home { fill: var(--brand); }
.map-lines .home-pulse { animation-delay: 0s; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.map-label { position: absolute; transform: translate(-50%, -150%); white-space: nowrap; font: 600 .72rem var(--font-body); color: #fff; background: rgba(30,22,19,.85); border: 1px solid var(--night-line); padding: 4px 9px; border-radius: 999px; }
.map-label.home-label { background: var(--brand); border-color: var(--brand); transform: translate(-50%, 70%); }
@media (max-width: 520px) { .map-label { font-size: .6rem; padding: 3px 6px; } .map-label:not(.home-label) { display: none; } }

.flow-card { position: absolute; left: 12%; bottom: 0; width: min(320px, 78%); background: rgba(255,255,255,.97); color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.8); }
.flow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .85rem; }
.flow-head b { font-family: var(--font-display); }
.flow-head small { margin-left: auto; color: var(--muted); font-size: .72rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #23A35A; box-shadow: 0 0 0 0 rgba(35,163,90,.5); animation: ping-g 1.8s infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(35,163,90,.5); } 100% { box-shadow: 0 0 0 8px rgba(35,163,90,0); } }
.flow-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.flow-step { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); font-size: .8rem; font-weight: 600; position: relative; z-index: 1; animation: step-lit 4s infinite; animation-delay: calc(var(--k) * 1s); }
.flow-step svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
@keyframes step-lit { 0%, 22% { background: var(--brand); color: #fff; border-color: var(--brand); } 0%, 22% { box-shadow: 0 8px 18px -8px rgba(242,84,27,.8); } 32%, 100% { background: var(--sand); color: var(--ink); border-color: var(--line); box-shadow: none; } }
.flow-step:nth-child(1) svg, .flow-step:nth-child(2) svg, .flow-step:nth-child(3) svg, .flow-step:nth-child(4) svg { transition: color .2s; }
.flow-grid::before { content: ""; position: absolute; inset: 18px 25%; border: 1.5px dashed rgba(242,84,27,.45); border-radius: 10px; }
.flow-dot { position: absolute; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(242,84,27,.25), 0 0 14px rgba(242,84,27,.9); left: 25%; top: 25%; animation: dot-run 4s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes dot-run { 0%, 10% { left: 25%; top: 25%; } 25%, 35% { left: 75%; top: 25%; } 50%, 60% { left: 75%; top: 75%; } 75%, 85% { left: 25%; top: 75%; } 100% { left: 25%; top: 25%; } }
@media (max-width: 959px) { .pv-map { padding-bottom: 0; display: grid; gap: 18px; justify-items: center; } .flow-card { position: relative; width: min(320px, 100%); } }

/* =====================================================================
   HOME INTRO / PRELOADER (plays once per visit)
   ===================================================================== */
#preloader { position: fixed; inset: 0; z-index: 10000; background: var(--night); color: #fff; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
  animation: pl-failsafe 0s 6s forwards; }
@keyframes pl-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
#preloader::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(242,84,27,.35), transparent 62%); animation: pl-breathe 2.4s ease-in-out infinite; }
@keyframes pl-breathe { 50% { transform: scale(1.12); opacity: .8; } }
.pl-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%); }
.pl-center { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; transition: transform .6s cubic-bezier(.7,0,.3,1), opacity .4s; }
.pl-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; animation: pl-pop .7s cubic-bezier(.2,.9,.3,1.3) both; }
.pl-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; }
.pl-ring { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(242,84,27,.8)); }
.pl-mark span { width: 70px; height: 70px; border-radius: 20px; background: var(--brand); display: grid; place-items: center; font: 800 2.2rem var(--font-display); box-shadow: 0 0 50px rgba(242,84,27,.6); }
@keyframes pl-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-word { display: flex; font: 800 clamp(1.8rem, 6vw, 3.2rem) var(--font-display); letter-spacing: -0.03em; overflow: hidden; padding-bottom: .1em; }
.pl-word span, .pl-word b { display: inline-block; animation: pl-letter .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.25s + var(--i) * 35ms); }
.pl-word b { color: var(--brand); }
@keyframes pl-letter { from { transform: translateY(110%); } to { transform: none; } }
.pl-tag { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--night-muted); animation: pl-fade .8s .9s both; }
@keyframes pl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pl-count { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); font: 800 clamp(3rem, 10vw, 7rem) var(--font-display); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.pl-count small { font-size: .4em; -webkit-text-stroke: 0; color: var(--brand); margin-left: 4px; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); height: 3px; background: rgba(255,255,255,.08); }
.pl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #FF9A5C); transform-origin: 0 50%; transform: scaleX(0); }
.pl-panel { position: absolute; inset: 0; background: var(--brand); transform: translateY(100%); }
#preloader.pl-out .pl-center { transform: translateY(-40px); opacity: 0; }
#preloader.pl-out .pl-count, #preloader.pl-out .pl-bar { opacity: 0; transition: opacity .3s; }
#preloader.pl-out .pl-panel { animation: pl-sweep 1.1s cubic-bezier(.75,0,.2,1) forwards; }
#preloader.pl-out { animation: pl-lift .8s .6s cubic-bezier(.75,0,.2,1) forwards; }
#preloader.pl-out::before, #preloader.pl-out .pl-grid { opacity: 0; transition: opacity .3s; }
@keyframes pl-sweep { 0% { transform: translateY(100%); } 55%, 100% { transform: translateY(0); } }
@keyframes pl-lift { to { transform: translateY(-100%); } }
/* hold the hero's own entrance until the intro lifts */
html.is-loading [data-split] .w > span { transform: translateY(105%) !important; }
html.is-loading .hero .reveal, html.is-loading .hero .float-card { animation-play-state: paused; }
html.is-loading body { overflow: hidden; }
