:root {
  --ink: #0B0F19;
  --ink-2: #141A28;
  --ink-3: #1A2238;
  --line-dark: #232B3D;
  --blue: #3355FF;
  --blue-hover: #1F3DD6;
  --blue-light: #7A93FF;
  --slate: #4A5163;
  --mist: #F6F7F9;
  --line: #E3E6EC;
  --muted-dark: #C9CEDA;
  --white: #FFFFFF;
  --amber: #F2A65A;   /* accent: highlights, badges, small callouts */
  --mint: #6FD9A0;    /* success and "ready" states */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.dark { background: var(--ink); color: var(--white); }
.mist { background: var(--mist); }

.logo { font-family: var(--mono); font-weight: 700; letter-spacing: -0.04em; text-decoration: none; color: inherit; white-space: nowrap; }
.logo .br { color: var(--blue); }
.dark .logo .br { color: var(--blue-light); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.nav .logo { font-size: 26px; color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a { padding: 12px 14px; color: var(--muted-dark); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--white); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s ease; }
.btn-primary { background: var(--blue); color: var(--white) !important; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border: 1px solid #3A4150; color: var(--white) !important; }
.btn-ghost:hover { background: #1A2030; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { padding: 96px 0 120px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow-mono { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--blue-light); }
.hero h1 { margin: 0; max-width: 900px; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.hero .lead { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted-dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section heads */
.head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.dark .eyebrow { color: var(--blue-light); }
h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h3 { margin: 0; font-family: var(--display); font-weight: 600; }

/* Services */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--slate); }

/* Work */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.work { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.work-media { height: 380px; display: flex; align-items: flex-end; justify-content: center; background: var(--ink-3); padding-top: 48px; }
.phone { width: 210px; height: 332px; border-radius: 34px 34px 0 0; border: 8px solid #2A3349; border-bottom: none; background: var(--mist); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--white); }
.work-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.work-body h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.work-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-dark); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--line-dark); font-size: 13px; color: var(--muted-dark); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-light) !important; font-weight: 600; font-size: 15px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Process */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { padding: 28px; background: var(--white); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--blue); }
.step h3 { font-size: 22px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate); }

/* About */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 420px; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--slate); }
.code { font-family: var(--mono); color: var(--blue); }

/* CTA */
.cta-wrap { padding: 0 24px 112px; }
.cta { max-width: 1200px; margin: 0 auto; padding: 72px 48px; border-radius: 28px; background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.cta p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-dark); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--slate); }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 20px; color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--slate); }

/* Legal pages */
.legal-header { padding-bottom: 72px; }
.legal-header h1 { margin: 24px 0 0; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.legal-header p { margin: 12px 0 0; color: var(--muted-dark); }
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 112px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--slate); }
.legal ul { padding-left: 22px; }

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 88px; }
  .cta { padding: 48px 24px; }
  .nav-links a:not(.btn):not(.nav-wa):not(.lang-switch) { display: none; }
}

/* App screen mockups (Work section) */
.work-media { height: 440px; }
.phone { width: 236px; height: 392px; border-radius: 38px 38px 0 0; border: 8px solid #2A3349; border-bottom: none; display: block; position: relative; gap: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; font-family: var(--body); text-align: left; }
.scr .status { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 0; font-size: 10px; font-weight: 600; }
.scr .island { width: 62px; height: 18px; border-radius: 10px; background: #000; }
.scr .dots { letter-spacing: 1px; font-size: 9px; }

/* Realately */
.scr-re { background: #F5F4F2; color: #1C1C1C; }
.scr-re .status { background: #fff; }
.re-head { background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px; border-bottom: 1px solid #ECEAE6; }
.re-brand { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; }
.re-icons { display: flex; gap: 9px; }
.re-body { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.re-eyebrow { font-size: 7.5px; font-weight: 700; letter-spacing: 0.14em; color: #D11B22; }
.re-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 2px; }
.re-chips { display: flex; gap: 5px; }
.re-chip { font-size: 8.5px; padding: 5px 9px; border-radius: 999px; border: 1px solid #E2E0DC; background: #fff; }
.re-chip.on { background: #1C1C1C; color: #fff; border-color: #1C1C1C; }
.re-card { margin-top: 6px; border-radius: 14px; overflow: hidden; position: relative; height: 196px; background: #333 center/cover no-repeat; color: #fff; }
.re-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.re-card > * { position: relative; z-index: 1; }
.re-live { position: absolute; top: 9px; left: 9px; font-size: 7px; font-weight: 700; padding: 3px 6px; border-radius: 5px; background: #ED2127; border: 1.5px solid #fff; }
.re-card-body { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.re-kicker { font-size: 7px; font-weight: 700; letter-spacing: 0.16em; }
.re-name { font-size: 14px; font-weight: 700; }
.re-meta { font-size: 8px; opacity: .9; }
.re-attend { margin-top: 5px; align-self: flex-start; font-size: 9px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #ED2127; }

/* It's Time */
.scr-it { background: #FFF7FA; color: #2B1621; font-family: 'Plus Jakarta Sans', var(--body); }
.it-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0; }
.it-due { font-size: 8.5px; font-weight: 600; color: #6E5562; }
.it-hi { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.it-gear { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #F6E4EB; display: flex; align-items: center; justify-content: center; }
.it-mid { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 16px; }
.it-halo { width: 150px; height: 150px; border-radius: 50%; background: #FBD3E2; display: flex; align-items: center; justify-content: center; }
.it-btn { width: 112px; height: 112px; border-radius: 50%; background: #F0317E; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 8px 20px rgba(240,49,126,.35); }
.it-label { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.it-hint { font-size: 8px; color: #6E5562; }
.it-card { margin: 0 14px; background: #fff; border-radius: 14px; padding: 2px 12px; border: 1px solid #F6E4EB; }
.it-row { display: flex; justify-content: space-between; font-size: 8.5px; padding: 9px 0; border-bottom: 1px solid #F6E4EB; }
.it-row span:first-child { color: #5E4653; }
.it-row span:last-child { font-weight: 700; }
.tm { font-size: 0.55em; vertical-align: super; margin-left: 1px; font-weight: 600; }

/* Contact: WhatsApp, call, text */
.btn { gap: 10px; }
.btn-wa { background: #25D366; color: #0B0F19 !important; }
.btn-wa:hover { background: #1EBE5A; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 360px; justify-content: flex-end; }
@media (max-width: 640px) {
  .contact-actions { justify-content: stretch; }
  .contact-actions .btn { flex: 1 1 calc(50% - 6px); }
}
.cta > .contact-actions { flex-direction: row; flex-wrap: wrap; gap: 12px; align-content: center; }

/* Scene photos behind the app phones */
.work-media.bg-villa, .work-media.bg-car { position: relative; overflow: hidden; background-size: cover; }
.work-media.bg-villa { background-image: linear-gradient(180deg, rgba(11,15,25,.05) 0%, rgba(11,15,25,.35) 100%), url('/images/bg-villa.webp'); background-position: center 60%; }
.work-media.bg-car { background-image: linear-gradient(180deg, rgba(11,15,25,.05) 0%, rgba(11,15,25,.35) 100%), url('/images/bg-car.webp'); background-size: cover, 145% auto; background-position: center, 0% 45%; }
.work-media.bg-villa .phone, .work-media.bg-car .phone { box-shadow: 0 30px 60px -10px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }

/* Contact form */
.cta.cta-form { align-items: flex-start; gap: 48px; }
.cta-form .cta-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.quick-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.quick-contact > span { font-size: 14px; color: var(--muted-dark); }
.quick-icons { display: flex; gap: 10px; }
.qi { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3A4150; color: var(--white); transition: background .15s ease, border-color .15s ease; }
.qi:hover { background: #1A2030; border-color: #4A5266; }
.qi-wa { color: #25D366; }
.lead-form { flex: 1 1 520px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.f em { font-style: normal; font-weight: 400; color: #8A92A6; }
.f input, .f select, .f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 400; color: var(--white); background: var(--ink); border: 1px solid #2E3648; border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9CEDA' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input::placeholder, .f textarea::placeholder { color: #6B7388; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(122,147,255,.2); }
.f.f-err input, .f.f-err select, .f.f-err textarea { border-color: #FF6B6B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-submit { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; }
.f-submit:disabled { opacity: .7; cursor: default; }
.f-status { margin: 0; font-size: 14px; color: var(--muted-dark); min-height: 0; }
.f-status:empty { display: none; }
.f-status.err { color: #FF8A8A; }
.f-status a { color: var(--blue-light); }
.f-done { padding: 24px 4px; text-align: center; }
.f-done h3 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; color: var(--white); }
.f-done p { margin: 0; color: var(--muted-dark); line-height: 1.6; }
@media (max-width: 640px) {
  .f-row { grid-template-columns: 1fr; }
  .lead-form { padding: 20px; }
  .cta.cta-form { gap: 32px; }
}

/* Six service cards */
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- homepage sections (from the approved mocks) ---- */
/* ---- mock additions ---- */


/* ---- 1 picker: a dark sheet that overlaps the hero ---- */
.pick-sec { background: var(--white); padding: 96px 0 96px; }
.pick-card { position: relative; z-index: 4; margin-top: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(11,15,25,.55); overflow: hidden; color: var(--white); }
@media (max-width: 900px) { .pick-card { grid-template-columns: 1fr; } }
.pick-left { padding: 40px 32px 32px 40px; }
@media (max-width: 560px) { .pick-left { padding: 28px 20px 8px; } }
.pick-left h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 24px; color: var(--white); }
.pick-list { display: flex; flex-direction: column; gap: 4px; }
.pk { position: relative; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 19px var(--display); letter-spacing: -0.01em; color: #8E97AC; background: none; border: 0; border-radius: 12px; padding: 14px 16px 14px 20px; cursor: pointer; transition: color .15s, background .15s; }
.pk::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--blue-light); transform: scaleY(0); transition: transform .2s; }
.pk::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: all .2s; color: var(--blue-light); }
.pk:hover { color: var(--white); }
.pk[aria-pressed="true"] { color: var(--white); background: rgba(122,147,255,.09); }
.pk[aria-pressed="true"]::before { transform: scaleY(1); }
.pk[aria-pressed="true"]::after, .pk:hover::after { opacity: 1; transform: none; }
.pick-right { background: var(--ink); border-left: 1px solid var(--line-dark); padding: 32px 40px 36px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .pick-right { border-left: 0; border-top: 1px solid var(--line-dark); padding: 24px 20px 28px; } }
.pv { height: 236px; border-radius: 18px; overflow: hidden; margin-bottom: 14px; background: radial-gradient(circle at 1px 1px, #1c2438 1px, transparent 1.5px) 0 0 / 18px 18px, #0E1424; border: 1px solid var(--line-dark); }
.pv svg { width: 100%; height: 100%; display: block; }
.pick-right h3 { font-size: 24px; color: var(--white); }
.pick-right p { margin: 0; color: var(--muted-dark); font-size: 16.5px; line-height: 1.65; max-width: 52ch; min-height: 80px; }
.pick-right .btn { align-self: flex-start; margin-top: 8px; border: 0; cursor: pointer; font-family: inherit; }
.pv .fade { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pv .flow { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pv .err { animation: errfade 4.4s ease-in-out infinite; }
.pv .okk { animation: okfade 4.4s ease-in-out infinite; }
@keyframes errfade { 0%, 40% { opacity: 1; } 55%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes okfade { 0%, 40% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
.pv .bar { transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* ---- 2 work: three states fanned, active one live ---- */
.work-media { height: 500px; padding-top: 0; align-items: flex-end; }
.fan { position: absolute; inset: 0; }
.fp { position: absolute; left: 50%; bottom: 0; margin-left: -118px; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s; outline: none; }
.fp[data-slot="0"] { --x: -136px; --rot: -5deg; z-index: 2; }
.fp[data-slot="1"] { --x: 0px; --rot: 0deg; z-index: 1; }
.fp[data-slot="2"] { --x: 136px; --rot: 5deg; z-index: 2; }
.fp { transform: translateX(var(--x)) rotate(var(--rot)) scale(.84); filter: brightness(.7) saturate(.85); cursor: pointer; }
.fp.active { transform: translateX(var(--x)) rotate(0deg) scale(1) translateY(-4px); filter: none; z-index: 5; cursor: default; }
.fp:not(.active):hover { filter: brightness(.85); }
.fp:not(.active) .scr { pointer-events: none; }
.fp:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; border-radius: 38px 38px 0 0; }
.try { top: 18px; }
.steps-lbl { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 6; text-align: center; font: 600 11px var(--mono); color: rgba(255,255,255,.82); letter-spacing: .06em; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.re-attend, .it-btn, .btn-s { cursor: pointer; }
.re-attend { border: 0; font-family: inherit; }
.it-halo { position: relative; }
.it-halo svg.ring-svg { position: absolute; inset: 0; width: 150px; height: 150px; transform: rotate(-90deg); pointer-events: none; }
.it-halo .ring-svg circle { fill: none; stroke: #F0317E; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 427; stroke-dashoffset: 427; }
.it-halo.holding .ring-svg circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2s linear; }
.it-halo.holding .it-btn { transform: scale(.96); }
.it-btn { touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s; }
/* Realately: event + confirmed */
.re-ev { flex: 1; display: flex; flex-direction: column; }
.re-hero { height: 128px; background: #333 center/cover no-repeat; position: relative; }
.re-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); }
.re-ev-body { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.re-ev-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.re-sub { font-size: 8.5px; color: #6B6B6B; }
.re-host { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px; background: #fff; border: 1px solid #ECEAE6; border-radius: 12px; }
.re-host i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#F2C9A6,#E59A8B); }
.re-host b { display: block; font-size: 9.5px; } .re-host small { font-size: 8px; color: #6B6B6B; }
.re-going { display: flex; align-items: center; gap: 8px; }
.re-going .avs { display: flex; } .re-going .avs i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #F5F4F2; margin-left: -6px; background: #C9D2F2; }
.re-going .avs i:first-child { margin-left: 0; background: #F2C9A6; } .re-going .avs i:nth-child(3) { background: #BFE6D2; }
.re-going small { font-size: 8.5px; color: #555; }
.re-cta { margin-top: auto; margin-bottom: 14px; text-align: center; font-size: 10px; font-weight: 600; padding: 10px; border-radius: 999px; background: #ED2127; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.re-cta.dark { background: #1C1C1C; }
.re-ok { width: 54px; height: 54px; border-radius: 50%; background: #E2F5EA; display: flex; align-items: center; justify-content: center; margin: 20px auto 6px; }
.re-center { text-align: center; padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.re-box { margin: 14px 14px 0; background: #fff; border: 1px solid #ECEAE6; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.re-box b { font-size: 11.5px; } .re-box span { font-size: 8.5px; color: #6B6B6B; }
.re-box .okline { color: #1E8E5A; font-weight: 600; }
/* It's Time: sent + directions */
.it-sent { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 12px; }
.it-ok { width: 104px; height: 104px; border-radius: 50%; background: #D8F3E4; display: flex; align-items: center; justify-content: center; }
.it-sent-t { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.it-pill { margin: 12px 14px 0; text-align: center; font: 700 10px 'Plus Jakarta Sans', var(--body); padding: 11px; border-radius: 999px; background: #F0317E; color: #fff; border: 0; cursor: pointer; }
.it-link { margin: 10px auto 0; display: block; font: 600 9px 'Plus Jakarta Sans', var(--body); color: #6E5562; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.it-map { margin: 12px 14px 0; height: 150px; border-radius: 14px; background: #F3E9EE; position: relative; overflow: hidden; border: 1px solid #F6E4EB; }
.it-map svg { width: 100%; height: 100%; display: block; }

/* ---- 4 diagram ---- */
.sys-wrap { margin-top: 72px; }
.sys { background: var(--ink) radial-gradient(circle at 1px 1px, #1a2236 1px, transparent 1.5px) 0 0 / 20px 20px; border: 1px solid var(--line-dark); border-radius: 28px; padding: 40px; color: var(--white); }
@media (max-width: 640px) { .sys { padding: 24px 16px; } }
.sys-scroll { overflow-x: auto; }
.diagram { min-width: 560px; width: 100%; height: auto; display: block; }
.diagram .node rect { fill: #151C2E; stroke: var(--line-dark); stroke-width: 1.5; transition: stroke .15s, fill .15s; }
.diagram .node.left rect { stroke: #31419b; } .diagram .node.right rect { stroke: #2c5b48; }
.diagram .node.left .ic { stroke: var(--blue-light); } .diagram .node.right .ic { stroke: var(--mint); }
.diagram .ic { fill: none; stroke: var(--muted-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagram .node text.t { fill: var(--white); font-family: var(--display); font-weight: 700; font-size: 16px; }
.diagram .node text.s { fill: var(--muted-dark); font-family: var(--body); font-size: 12.5px; }
.diagram .node { cursor: pointer; outline: none; }
.diagram .node:hover rect, .diagram .node.on rect, .diagram .node:focus-visible rect { stroke: var(--amber); fill: #1A2338; }
.diagram .hub rect { fill: var(--blue); stroke: var(--blue-light); }
.diagram .hub .ic { stroke: #fff; } .diagram .hub text.t, .diagram .hub text.s { fill: #fff; }
.diagram .hub.on rect { stroke: var(--amber); stroke-width: 2.5; }
.diagram .pulse { fill: none; stroke: var(--blue-light); stroke-width: 1.5; opacity: 0; animation: pulse 3s ease-out infinite; transform-origin: 400px 180px; }
@keyframes pulse { 0% { opacity: .55; transform: scale(.86); } 100% { opacity: 0; transform: scale(1.5); } }
.diagram .edge { fill: none; stroke: #2B3550; stroke-width: 2; transition: stroke .2s; }
.diagram .edge.on { stroke: var(--amber); }
.diagram .dot { fill: var(--amber); }
.diagram .cap { fill: #7C86A0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.detail { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(20,26,40,.85); min-height: 96px; }
.detail b { font-family: var(--display); font-size: 18px; color: var(--white); }
.detail p { margin: 6px 0 0; color: var(--muted-dark); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.f-mock { color: var(--mint) !important; }
@media (prefers-reduced-motion: reduce) { .pv *, .wbar i, .diagram .pulse { animation: none !important; } .diagram .dot { display: none; } .fp { transition: none; } }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(11,15,25,.78); border: 1px solid rgba(255,255,255,.2); top: 16px !important; }
.seg button { font: 600 11.5px var(--body); color: rgba(255,255,255,.75); background: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* contact: light-on-blue so it does not repeat the dark diagram block */
#contact .cta { background: linear-gradient(135deg, #3355FF 0%, #5B7BFF 100%); position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(51,85,255,.6); }
#contact .cta::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); pointer-events: none; }
#contact .cta > * { position: relative; }
#contact .cta h2 { color: #fff; }
#contact .cta p, #contact .quick-contact > span { color: rgba(255,255,255,.88); }
#contact .qi { border-color: rgba(255,255,255,.45); color: #fff; }
#contact .qi:hover { background: rgba(255,255,255,.14); border-color: #fff; }
#contact .qi-wa { color: #fff; }
#contact .lead-form { background: #fff; border: 0; box-shadow: 0 30px 60px -30px rgba(11,15,25,.5); }
#contact .f { color: var(--slate, #4A5163); }
#contact .f em { color: #8A92A6; }
#contact .f input, #contact .f select, #contact .f textarea { background-color: #F6F7F9; color: #0B0F19; border-color: #E1E4EB; }
#contact .f input::placeholder, #contact .f textarea::placeholder { color: #8A92A6; }
#contact .f input:focus, #contact .f select:focus, #contact .f textarea:focus { background-color: #fff; border-color: #3355FF; box-shadow: 0 0 0 3px rgba(51,85,255,.18); }
#contact .f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5163' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
#contact .f-status { color: #4A5163; }
#contact .f-status.err { color: #D12B2B; }
#contact .f-status a { color: #3355FF; }
#contact .f-done h3 { color: #0B0F19; }
#contact .f-done p { color: #4A5163; }

.stack { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.stack-l { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7C86A0; }
.stack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack-list li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(20,26,40,.85); color: var(--c); }
.stack-list svg { width: 20px; height: 20px; }
.stack-list span { color: var(--white); font: 600 15px var(--display); }

/* picker: light */
.pick-card { background: #fff; border: 1px solid #E6E9F0; color: var(--ink); box-shadow: 0 30px 70px -40px rgba(11,15,25,.28); }
.pick-left h2 { color: var(--ink); }
.pk { color: #7B8499; }
.pk::before { background: var(--blue); }
.pk::after { color: var(--blue); }
.pk:hover { color: var(--ink); }
.pk[aria-pressed="true"] { color: var(--ink); background: rgba(51,85,255,.07); }
.pick-right { background: #F6F7F9; border-left: 1px solid #E6E9F0; }
@media (max-width: 900px) { .pick-right { border-top: 1px solid #E6E9F0; } }
.pv { background: radial-gradient(circle at 1px 1px, #D9DEE9 1px, transparent 1.5px) 0 0 / 18px 18px, #F9FAFC; border: 1px solid #E6E9F0; }
.pick-right h3 { color: var(--ink); }
.pick-right p { color: #4A5163; }

/* services: illustrated tiles */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E6E9F0; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s; }
.svc:hover { transform: translateY(-4px); border-color: #C9D3FF; box-shadow: 0 30px 50px -30px rgba(51,85,255,.35); }
.svc-media { background: radial-gradient(circle at 1px 1px, #D9DEE9 1px, transparent 1.5px) 0 0 / 18px 18px, #F4F6FB; height: 210px; padding: 12px; box-sizing: border-box; }
.svc-media svg { width: 100%; height: 100%; display: block; }
.svc-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc h3 { font-size: 22px; }
.svc p { margin: 0; color: #4A5163; font-size: 16px; line-height: 1.5; }
.svc-go { margin-top: auto; padding-top: 14px; font: 600 14px var(--body); color: var(--blue); }
.svc-go i { font-style: normal; display: inline-block; transition: transform .2s; }
.svc:hover .svc-go i { transform: translateX(5px); }
.svc.wide { grid-column: span 2; flex-direction: row; }
.svc.wide.rev { flex-direction: row-reverse; grid-column: 1 / -1; }
.svc.wide .svc-media { flex: 0 0 52%; height: auto; min-height: 250px; }
.svc.wide .svc-body { justify-content: center; padding: 32px 36px; }
.svc.wide h3 { font-size: 28px; }
.svc.wide .svc-go { margin-top: 12px; padding-top: 0; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc.wide, .svc.wide.rev { grid-column: 1 / -1; } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc.wide, .svc.wide.rev { flex-direction: column; } .svc.wide .svc-media { flex: none; height: 210px; min-height: 0; } .svc.wide .svc-body { padding: 22px 26px 26px; } }

/* picker: real rows */
.pick-list { gap: 10px; }
.pk { display: flex; align-items: center; gap: 14px; width: 100%; background: #fff; border: 1px solid #E1E4EB; border-radius: 16px; padding: 12px 18px 12px 12px; color: var(--ink); font: 600 17px var(--display); box-shadow: 0 1px 0 rgba(11,15,25,.03); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.pk::before { display: none; }
.pk .pk-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #F1F3F8; color: #5B6479; transition: background .15s, color .15s; }
.pk .pk-t { flex: 1; text-align: left; }
.pk::after { content: "→"; opacity: 1; transform: none; color: #A3ABBD; font-size: 18px; transition: transform .2s, color .15s; }
.pk:hover { color: var(--ink); border-color: #C5CEF5; background: #FAFBFF; transform: none; }
.pk:hover::after { transform: translateX(3px); color: var(--blue); opacity: 1; }
.pk[aria-pressed="true"] { background: #F0F3FF; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,85,255,.10); color: var(--ink); }
.pk[aria-pressed="true"] .pk-ic { background: var(--blue); color: #fff; }
.pk[aria-pressed="true"]::after { color: var(--blue); }
@media (max-width: 560px) { .pk { font-size: 16px; } }

.tick { transform-box: fill-box; transform-origin: center; animation: tickpop 5s ease-in-out infinite both; }
@keyframes tickpop { 0% { opacity: 0; transform: scale(0); } 6% { opacity: 1; transform: scale(1.25); } 10%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.svc-go { align-self: flex-start; margin-top: auto; padding: 9px 16px; border: 1.5px solid #C9D3FF; border-radius: 999px; background: #F5F7FF; color: var(--blue); transition: background .2s, color .2s, border-color .2s; }
.svc:hover .svc-go { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc.wide .svc-go { margin-top: 16px; padding: 9px 16px; }
@media (prefers-reduced-motion: reduce) { .tick { animation: none; } }

/* ---- one section system: full-width bands, 1200px container, 112px rhythm, 24px cards ---- */
.pick-sec { background: var(--white); padding: 112px 0; }
.pick-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; gap: 64px; margin-top: 0; }
.pick-left { padding: 0; }
.pick-left h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 32px; }
.pick-right { background: none; border: 0; padding: 0; }
.pv { background: radial-gradient(circle at 1px 1px, #D3D9E6 1px, transparent 1.5px) 0 0 / 18px 18px, var(--mist); border: 1px solid #E6E9F0; border-radius: 24px; }
@media (max-width: 900px) { .pick-card { gap: 40px; } .pick-right { border-top: 0; padding: 0; } }
#services.mist .svc { background: #fff; }
.sys-band { padding: 112px 0; }
.sys-band .head { margin-bottom: 48px; }
.sys-band .head h2 { color: var(--white); }
.sys-wrap { margin-top: 0; }
.sys { background: none; border: 0; border-radius: 0; padding: 0; }
#contact.cta-wrap { padding: 112px 24px; }
#contact .cta { max-width: 1200px; padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
#contact .cta::before { display: none; }
#contact .cta h2 { color: var(--ink); }
#contact .cta p, #contact .quick-contact > span { color: var(--slate); }
#contact .qi { border-color: #D0D6E3; color: var(--ink); background: #fff; }
#contact .qi:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
#contact .qi-wa { color: #1FAF5A; }
#contact .lead-form { background: none; box-shadow: none; padding: 0; border: 0; border-radius: 0; }
#contact .f input, #contact .f select, #contact .f textarea { background-color: #fff; }
#contact .f input:focus, #contact .f select:focus, #contact .f textarea:focus { background-color: #fff; }


#contact.cta-wrap { padding: 112px 0; }
#contact .cta { padding: 0 24px; }
@media (max-width: 640px) { #contact .cta { padding: 0 24px; } }

/* ---- About + diagram: one dark section ---- */
#about .sys-wrap { margin-top: 64px; }
#about.dark .prose p { color: var(--muted-dark); }
#about.dark .sys { background: none; border: 0; padding: 0; }
#about.dark { border-top: 1px solid var(--line-dark); }
/* 5 hero tech collage */
.hero { position: relative; }
.collage { position: absolute; right: 0; top: 50%; width: 46%; height: 470px; margin-top: -235px; }
.tile { position: absolute; left: var(--l); top: var(--t); width: var(--s); height: var(--s); transform: translate3d(calc(var(--mx, 0) * var(--dp, 0) * 1px), calc(var(--my, 0) * var(--dp, 0) * 1px), 0) rotate(var(--r)); will-change: transform; }
.tile-in { width: 100%; height: 100%; border-radius: calc(var(--s) * .24); background: linear-gradient(160deg, #1D2640 0%, #121828 100%); border: 1px solid #2A3349; box-shadow: 0 24px 44px -14px rgba(0,0,0,.65), 0 0 46px -14px var(--c); color: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; animation: bob 7s ease-in-out infinite; }
.tile:nth-child(2n) .tile-in { animation-duration: 8.5s; animation-delay: -2s; }
.tile:nth-child(3n) .tile-in { animation-duration: 9.5s; animation-delay: -4s; }
.tile:hover .tile-in { transform: scale(1.08); box-shadow: 0 28px 50px -14px rgba(0,0,0,.7), 0 0 64px -8px var(--c); }
.tile svg { width: 46%; height: 46%; }
.tile span { font: 500 clamp(10px, calc(var(--s) * .095), 13px) var(--mono); color: var(--muted-dark); letter-spacing: .02em; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (min-width: 1000px) { .hero h1 { max-width: min(900px, 56%); } .hero .lead { max-width: min(640px, 50%); } }
@media (max-width: 999px) {
  .collage { position: relative; width: 100%; height: auto; margin-top: 0; right: auto; top: auto; display: flex; flex-wrap: wrap; gap: 14px; }
  .tile { position: static; --s: 96px !important; transform: none; }
  .tile-in { border-radius: 23px; }
}
@media (prefers-reduced-motion: reduce) { .tile-in { animation: none; } .tile { transform: rotate(var(--r)); } }
.tile-in { opacity: var(--o, 1); filter: blur(var(--b, 0px)); }
.tile:hover .tile-in { opacity: 1; filter: none; }
/* ===== theme layer: one background for the whole page, hairlines between sections ===== */
.pick-sec, #services, #work, #about, #contact { border-top: 1px solid var(--hl); }
#about.dark { border-top: 1px solid var(--hl); }
#about .sys-wrap { margin-top: 64px; }
#about .sys { background: none; border: 0; padding: 0; }
/* ===== ALL LIGHT ===== */
:root[data-theme="light"] { --hl: #E6E9F0; color-scheme: light; }
:root[data-theme="light"] body { background: #FFFFFF; color: var(--ink); }
:root[data-theme="light"] .dark, :root[data-theme="light"] header.dark, :root[data-theme="light"] #about.dark { background: #FFFFFF; color: var(--ink); }
:root[data-theme="light"] .nav .logo { color: var(--ink); }
:root[data-theme="light"] .dark .logo .br { color: var(--blue); }
:root[data-theme="light"] .nav-links a { color: var(--slate); }
:root[data-theme="light"] .nav-links a:hover { color: var(--ink); }
:root[data-theme="light"] .btn-ghost { border-color: #D0D6E3; color: var(--ink) !important; }
:root[data-theme="light"] .btn-ghost:hover { background: var(--mist); }
:root[data-theme="light"] .hero h1 { color: var(--ink); }
:root[data-theme="light"] .hero .lead { color: var(--slate); }
:root[data-theme="light"] .eyebrow-mono, :root[data-theme="light"] .dark .eyebrow { color: var(--blue); }
:root[data-theme="light"] #services.mist, :root[data-theme="light"] #contact.mist { background: #FFFFFF; }
:root[data-theme="light"] #work .head p { color: var(--slate); }
:root[data-theme="light"] #about .prose p { color: var(--slate); }
:root[data-theme="light"] #contact .cta h2 { color: var(--ink); }

/* collage tiles on white */
:root[data-theme="light"] .tile-in { background: #FFFFFF; border-color: #E1E4EB; box-shadow: 0 18px 36px -16px rgba(11,15,25,.30); }
:root[data-theme="light"] .tile:hover .tile-in { box-shadow: 0 24px 44px -16px rgba(11,15,25,.38); }
:root[data-theme="light"] .tile span { color: var(--slate); }
:root[data-theme="light"] .tile[style*="#FFFFFF"], :root[data-theme="light"] .tile[style*="#E6EAF2"] { --c: #0B0F19 !important; }

/* diagram on white */
:root[data-theme="light"] #about .diagram .node rect { fill: #FFFFFF; stroke: #E1E4EB; }
:root[data-theme="light"] #about .diagram .node.left rect { stroke: #C5CEF5; }
:root[data-theme="light"] #about .diagram .node.right rect { stroke: #BFE6D3; }
:root[data-theme="light"] #about .diagram .node.left .ic { stroke: var(--blue); }
:root[data-theme="light"] #about .diagram .node.right .ic { stroke: #1E9E6A; }
:root[data-theme="light"] #about .diagram .node text.t { fill: var(--ink); }
:root[data-theme="light"] #about .diagram .node text.s { fill: #4A5163; }
:root[data-theme="light"] #about .diagram .cap { fill: #8A92A6; }
:root[data-theme="light"] #about .diagram .edge { stroke: #D5DAE5; }
:root[data-theme="light"] #about .diagram .edge.on { stroke: var(--amber); }
:root[data-theme="light"] #about .diagram .dot { fill: var(--amber); }
:root[data-theme="light"] #about .diagram .node:hover rect, :root[data-theme="light"] #about .diagram .node.on rect, :root[data-theme="light"] #about .diagram .node:focus-visible rect { stroke: var(--amber); fill: #FFF9F0; }
:root[data-theme="light"] #about .diagram .hub rect { fill: var(--blue); stroke: var(--blue); }
:root[data-theme="light"] #about .diagram .hub text.t, :root[data-theme="light"] #about .diagram .hub text.s { fill: #fff; }
:root[data-theme="light"] #about .diagram .hub .ic { stroke: #fff; }
:root[data-theme="light"] #about .diagram .hub.on rect { stroke: var(--amber); stroke-width: 2.5; }
:root[data-theme="light"] #about .diagram .pulse { stroke: var(--blue); }
:root[data-theme="light"] #about .detail { background: var(--mist); border: 1px solid #E6E9F0; border-radius: 16px; }
:root[data-theme="light"] #about .detail b { color: var(--ink); }
:root[data-theme="light"] #about .detail p { color: #4A5163; }

:root[data-theme="light"] #about .diagram .hub.on rect, :root[data-theme="light"] #about .diagram .hub:hover rect, :root[data-theme="light"] #about .diagram .hub:focus-visible rect { fill: var(--blue); stroke: var(--amber); }

/* light grid behind the illustrations and the development studio section */
:root[data-theme="light"] .pv, :root[data-theme="light"] .svc-media { background: radial-gradient(circle at 1px 1px, #CBD2E2 1px, transparent 1.5px) 0 0 / 18px 18px, #F4F6FB; border-color: #E1E5EE; }
:root[data-theme="light"] #about.dark { background: radial-gradient(circle at 1px 1px, #D3D9E7 1px, transparent 1.5px) 0 0 / 20px 20px, #FFFFFF; }
:root[data-theme="light"] #about .detail { background: #FFFFFF; box-shadow: 0 10px 30px -18px rgba(11,15,25,.25); }
:root[data-theme="light"] #about .diagram .node rect { filter: drop-shadow(0 8px 14px rgba(11,15,25,.07)); }

/* selected work cards, light */
:root[data-theme="light"] .work { background: #FFFFFF; border-color: #E1E5EE; color: var(--ink); box-shadow: 0 24px 50px -34px rgba(11,15,25,.30); }
:root[data-theme="light"] .work-media:not(.bg-villa):not(.bg-car) { background: radial-gradient(circle at 1px 1px, #CBD2E2 1px, transparent 1.5px) 0 0 / 18px 18px, #F4F6FB; }
:root[data-theme="light"] .work-body h3 { color: var(--ink); }
:root[data-theme="light"] .work-body p { color: var(--slate); }
:root[data-theme="light"] .tag { background: #EEF1F7; color: #4A5163; }
:root[data-theme="light"] .text-link { color: var(--blue) !important; }
/* ===== ALL DARK ===== */
:root[data-theme="dark"] { --hl: #1C2438; color-scheme: dark; }
:root[data-theme="dark"] body { background: var(--ink); color: var(--white); }
:root[data-theme="dark"] .pick-sec, :root[data-theme="dark"] #services.mist, :root[data-theme="dark"] #contact.mist, :root[data-theme="dark"] #about.dark, :root[data-theme="dark"] #work { background: var(--ink); }
:root[data-theme="dark"] h2 { color: var(--white); }
:root[data-theme="dark"] .pick-left h2 { color: var(--white); }

/* picker rows */
:root[data-theme="dark"] .pk { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); box-shadow: none; }
:root[data-theme="dark"] .pk .pk-ic { background: #1E2740; color: #8FA2FF; }
:root[data-theme="dark"] .pk::after { color: #6B7388; }
:root[data-theme="dark"] .pk:hover { background: #18203A; border-color: #3A4A8C; color: var(--white); }
:root[data-theme="dark"] .pk:hover::after { color: var(--blue-light); }
:root[data-theme="dark"] .pk[aria-pressed="true"] { background: #18203A; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(122,147,255,.14); color: var(--white); }
:root[data-theme="dark"] .pk[aria-pressed="true"] .pk-ic { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .pk[aria-pressed="true"]::after { color: var(--blue-light); }
:root[data-theme="dark"] .pv { border-color: var(--line-dark); }
:root[data-theme="dark"] .pick-right h3 { color: var(--white); }
:root[data-theme="dark"] .pick-right p { color: var(--muted-dark); }

/* service tiles */
:root[data-theme="dark"] #services.mist .svc, :root[data-theme="dark"] .svc { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
:root[data-theme="dark"] .svc:hover { border-color: #3A4A8C; box-shadow: 0 30px 50px -30px rgba(51,85,255,.55); }
:root[data-theme="dark"] .svc h3 { color: var(--white); }
:root[data-theme="dark"] .svc p { color: var(--muted-dark); }
:root[data-theme="dark"] .svc-go { background: rgba(122,147,255,.12); border-color: rgba(122,147,255,.35); color: var(--blue-light); }
:root[data-theme="dark"] .svc:hover .svc-go { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .svc-media { border-bottom: 1px solid var(--line-dark); }

/* contact */
:root[data-theme="dark"] #contact .cta h2 { color: var(--white); }
:root[data-theme="dark"] #contact .cta p, :root[data-theme="dark"] #contact .quick-contact > span { color: var(--muted-dark); }
:root[data-theme="dark"] #contact .qi { background: transparent; border-color: #3A4150; color: var(--white); }
:root[data-theme="dark"] #contact .qi:hover { background: #1A2030; border-color: #4A5266; color: var(--white); }
:root[data-theme="dark"] #contact .qi-wa { color: #25D366; }
:root[data-theme="dark"] #contact .f { color: var(--muted-dark); }
:root[data-theme="dark"] #contact .f em { color: #8A92A6; }
:root[data-theme="dark"] #contact .f input, :root[data-theme="dark"] #contact .f select, :root[data-theme="dark"] #contact .f textarea { background-color: var(--ink-2); border-color: #2E3648; color: var(--white); }
:root[data-theme="dark"] #contact .f input::placeholder, :root[data-theme="dark"] #contact .f textarea::placeholder { color: #6B7388; }
:root[data-theme="dark"] #contact .f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9CEDA' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] #contact .f input:focus, :root[data-theme="dark"] #contact .f select:focus, :root[data-theme="dark"] #contact .f textarea:focus { background-color: var(--ink-2); border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(122,147,255,.2); }
:root[data-theme="dark"] #contact .f-status { color: var(--muted-dark); }
:root[data-theme="dark"] #contact .f-status a { color: var(--blue-light); }
:root[data-theme="dark"] #contact .f-done h3 { color: var(--white); }
:root[data-theme="dark"] #contact .f-done p { color: var(--muted-dark); }

/* footer */
:root[data-theme="dark"] .footer { background: var(--ink); border-top: 1px solid var(--line-dark); }
:root[data-theme="dark"] .footer .logo { color: var(--white); }
:root[data-theme="dark"] .footer .logo .br { color: var(--blue-light); }
:root[data-theme="dark"] .footer-inner, :root[data-theme="dark"] .footer-links a { color: var(--muted-dark); }
:root[data-theme="dark"] .footer-links a:hover { color: var(--white); }

/* dark grid behind the illustrations and the development studio section */
:root[data-theme="dark"] .pv, :root[data-theme="dark"] .svc-media { background: radial-gradient(circle at 1px 1px, #1C2438 1px, transparent 1.5px) 0 0 / 18px 18px, #0E1424; border-color: var(--line-dark); }
:root[data-theme="dark"] #about.dark { background: radial-gradient(circle at 1px 1px, #1A2236 1px, transparent 1.5px) 0 0 / 20px 20px, var(--ink); }

/* ===== theme toggle ===== */
.nav-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.theme-switch { position: relative; flex: none; width: 60px; height: 32px; padding: 0; margin: 0 12px 0 4px; border-radius: 999px; border: 1px solid #3A4150; background: #141A28; cursor: pointer; display: inline-block; vertical-align: middle; transition: background .25s, border-color .25s; }
.theme-switch svg { position: absolute; top: 7px; width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .25s, opacity .25s; }
.theme-switch .i-sun { left: 8px; stroke: #F2A65A; }
.theme-switch .i-moon { right: 8px; stroke: #7A93FF; }
.theme-switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .theme-switch .knob { transform: translateX(28px); background: #E6EAF2; }
:root[data-theme="light"] .theme-switch { background: #F1F3F8; border-color: #D0D6E3; }
:root[data-theme="light"] .theme-switch .i-sun { stroke: #E08A1E; }
:root[data-theme="light"] .theme-switch .i-moon { stroke: #8A92A6; }
:root[data-theme="light"] .theme-switch .knob { background: #fff; border: 1px solid #D0D6E3; }
.theme-switch:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.theme-ready .theme-switch, .theme-ready body, .theme-ready .pk, .theme-ready .svc, .theme-ready .work { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
@media (max-width: 640px) { .nav-links a:not(.btn):not(.nav-wa):not(.lang-switch) { display: none; } .theme-switch { margin-left: 0; } }
.nav-links a.lang-switch { padding: 12px 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
:root[data-theme="light"] .footer { background: #fff; border-top: 1px solid #E6E9F0; }
:root[data-theme="light"] .footer .logo { color: var(--ink); }
:root[data-theme="light"] .footer .logo .br { color: var(--blue); }
:root[data-theme="light"] .footer-inner, :root[data-theme="light"] .footer-links a { color: var(--slate); }
:root[data-theme="light"] .footer-links a:hover { color: var(--ink); }

/* inline contact link */
.quick-contact > span a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.quick-contact > span a:hover { color: var(--blue-hover); }
:root[data-theme="dark"] .quick-contact > span a { color: var(--blue-light); }
:root[data-theme="dark"] .quick-contact > span a:hover { color: #fff; }
