/* ==========================================================================
   Faisal Web Studio — Theme stylesheet
   Dark portfolio theme (Cal Sans + Manrope)
   ========================================================================== */

:root {
  --bg: #080807;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #222222;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #8a8a8a;
  --muted-2: #5c5c5c;
  --accent: #7109d4;          /* logo purple — buttons, badges, fills */
  --accent-ink: #ffffff;      /* text placed on the purple */
  --accent-text: #a463ff;     /* lighter logo purple for text & icons on black (AA contrast) */
  --accent-hover: #5a07aa;
  --brand: #7109d4;           /* logo purple */
  --violet: #7b5df8;          /* decorative asterisk */
  --star: #ffa800;

  --ff-head: "Cal Sans", "Manrope", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--text);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(70px, 10vw, 140px); position: relative; }
.section-sm { padding-block: clamp(50px, 7vw, 90px); }
.text-white { color: var(--text); }
.text-accent { color: var(--accent-text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 99px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Buttons, pills, labels
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-size: 17px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label svg { width: 14px; height: 14px; color: var(--accent-text); }

.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-available {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--ff-head);
  font-size: clamp(14px, 1.4vw, 20px);
  padding: 8px 18px;
  border-radius: 999px;
  transform: rotate(10deg);
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.2;
}

.circle-link {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-content: center; text-align: center;
  color: var(--text);
  font-family: var(--ff-head);
  font-size: 18px; line-height: 1.15;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
  flex-shrink: 0;
}
.circle-link svg { width: 18px; height: 18px; margin: 8px auto 0; color: var(--accent-text); transition: transform .4s var(--ease); }
.circle-link:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.circle-link:hover svg { color: var(--accent-ink); transform: rotate(45deg); }

.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.section-title { font-size: clamp(40px, 6vw, 84px); margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 640px; }

/* --------------------------------------------------------------------------
   Header & off-canvas menu
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 7, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 92px; }
.site-header.is-scrolled .header-inner { height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { font-family: var(--ff-head); font-size: 21px; line-height: .95; letter-spacing: -0.01em; }
.brand-name small { display: block; font-size: 21px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--ff-head); color: var(--text); font-size: 16px;
  padding: 10px 16px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  display: grid; place-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle:hover { border-color: var(--accent); color: var(--accent-text); }

.offcanvas {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
.offcanvas-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .45s var(--ease);
}
.offcanvas-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(520px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: calc(28px + env(safe-area-inset-top, 0px)) 36px calc(36px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.offcanvas.is-open { visibility: visible; pointer-events: auto; }
.offcanvas.is-open .offcanvas-backdrop { opacity: 1; }
.offcanvas.is-open .offcanvas-panel { transform: none; }
.offcanvas-top { display: flex; justify-content: space-between; align-items: center; }
.offcanvas-close {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font-size: 20px;
}
.offcanvas-close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.offcanvas-nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-head); color: var(--text);
  font-size: clamp(30px, 5vw, 42px); line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.offcanvas-nav a span { font-family: var(--ff-body); font-size: 13px; color: var(--muted-2); letter-spacing: .1em; }
.offcanvas-nav a:hover, .offcanvas-nav a[aria-current="page"] { color: var(--accent-text); }
.offcanvas-contact h3 { font-size: 26px; margin-bottom: 8px; }
.offcanvas-contact p { margin-bottom: 18px; }
.offcanvas-contact dl { display: grid; gap: 14px; margin: 0 0 22px; }
.offcanvas-contact dt { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.offcanvas-contact dd { margin: 0; color: var(--text); font-family: var(--ff-head); font-size: 20px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--surface-3); color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--accent); color: var(--accent-ink); }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Home hero — large portrait on the right, fading into the black
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-block: 120px 70px;
  overflow: hidden;
  --mx: 0; --my: 0;
}
.hero-media {
  position: absolute; top: -50px; bottom: 50px;   /* raised 50px */
  width: min(76vw, 1320px);
  right: calc(min(76vw, 1320px) * -0.2);   /* shifted 20% further right */
  z-index: 0;
  /* one soft oval around head & shoulders — no straight edges anywhere */
  -webkit-mask-image: radial-gradient(ellipse 48% 78% at 52% 50%, #000 46%, rgba(0,0,0,.8) 62%, rgba(0,0,0,.35) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 78% at 52% 50%, #000 46%, rgba(0,0,0,.8) 62%, rgba(0,0,0,.35) 82%, transparent 100%);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 6%;
  filter: grayscale(1) contrast(1.22) brightness(1.05);
  transform: scale(1.08) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px));
  transition: transform 1.6s var(--ease), opacity 1.6s var(--ease);
  opacity: 0;
}
.hero.ready .hero-media img { opacity: .7; transform: scale(1.02) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
/* darken the office background around the subject so it melts into the page */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    /* lighter over the face, darker toward the edges: the portrait pops, the room stays black */
    radial-gradient(34% 46% at 52% 46%, rgba(8,8,7,.5) 0%, rgba(8,8,7,.68) 60%, rgba(8,8,7,.85) 100%),
    linear-gradient(to bottom, rgba(8,8,7,.3), transparent 14%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 640px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-status .live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-text); animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(164,99,255,.7); }
.hero-name {
  font-size: clamp(76px, 11.5vw, 196px);
  line-height: .86; letter-spacing: -0.045em;
  margin: 0 0 22px;
  white-space: nowrap;
}
.hero-name .dot { color: var(--accent-text); }
.hero-name .thin { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-meta { margin: 0 0 18px; color: var(--text); font-family: var(--ff-head); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.hero-meta span { color: var(--accent-text); }
.hero-intro { color: #b8b8b8; font-size: 16px; max-width: 470px; margin-bottom: 30px; }
.hero-intro strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-tech { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 40px; }
.hero-tech .icons { display: flex; }
.hero-tech .icons img { width: 38px; height: 38px; padding: 7px; border-radius: 50%; background: #fff; object-fit: contain; margin-left: -10px; border: 3px solid var(--bg); }
.hero-tech .icons img:first-child { margin-left: 0; }
.hero-tech span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.hero-tech span b { color: var(--text); font-weight: 700; }

/* glass stat cards floating over the portrait */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(17, 17, 17, .55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  color: var(--text);
  animation: bob 6s ease-in-out infinite;
  translate: calc(var(--mx) * var(--d, 14px)) calc(var(--my) * var(--d, 14px));
  transition: translate .4s var(--ease);
  white-space: nowrap;
}
.float-card strong { font-family: var(--ff-head); font-weight: 400; font-size: 32px; line-height: 1; }
.float-card strong sup { color: var(--accent-text); font-size: .55em; }
.float-card strong span { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
.float-card > span { font-size: 12px; line-height: 1.25; color: #c4c4c4; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fc-1 { right: 37%; top: 27%; --d: -18px; }
.fc-2 { right: 30%; bottom: 16%; --d: 16px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(164,99,255,0); } 100% { box-shadow: 0 0 0 0 rgba(164,99,255,0); } }

.hero-scroll { position: absolute; z-index: 3; right: var(--gutter); bottom: 40px; }

@media (max-width: 991px) {
  .hero { align-items: flex-end; padding-top: 0; }
  .hero-media { width: 100%; right: 0; top: 0; height: 72vh; bottom: auto;
    -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 34%, #000 40%, rgba(0,0,0,.6) 68%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 62% at 50% 34%, #000 40%, rgba(0,0,0,.6) 68%, transparent 100%); }
  .hero-media img { object-position: 50% 12%; }
  .hero-inner { padding-top: 48vh; }
  .hero-scroll, .fc-2 { display: none; }
  .fc-1 { right: var(--gutter); top: 18vh; }
}
@media (max-width: 767px) {
  .hero { min-height: auto; padding-bottom: 50px; }
  .hero-media { height: 560px; }
  .hero-inner { padding-top: 330px; }
  .hero-name { font-size: 20vw; white-space: normal; }
  .fc-1 { top: 120px; padding: 9px 12px; }
  .float-card strong { font-size: 24px; }
  .float-card > span { font-size: 10px; }
}

/* --------------------------------------------------------------------------
   Ribbon marquee
   -------------------------------------------------------------------------- */
.ribbons { position: relative; height: clamp(170px, 20vw, 260px); overflow: hidden; margin-block: 30px; }
.ribbon {
  position: absolute; left: -5%; width: 110%;
  display: flex; overflow: hidden;
  padding-block: 10px;
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  white-space: nowrap;
}
.ribbon-1 { top: 22%; background: #fff; color: var(--bg); transform: rotate(4deg); }
.ribbon-2 { top: 30%; background: var(--accent); color: #fff; transform: rotate(-3deg); }
.ribbon-track { display: flex; flex-shrink: 0; gap: 48px; padding-right: 48px; animation: marquee 60s linear infinite; }
.ribbon-1 .ribbon-track { animation-direction: reverse; }
.ribbon-track .outline { color: transparent; -webkit-text-stroke: 1.2px currentColor; }
.ribbon-1 .ribbon-track .outline { -webkit-text-stroke-color: var(--bg); }
.ribbon-2 .ribbon-track .outline { -webkit-text-stroke-color: #fff; }

@keyframes marquee { to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   About (home)
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 80px); }
.reveal-text {
  font-family: var(--ff-head);
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.2;
  margin: 0 0 30px;
}
.reveal-text .w { color: #2b2b2b; transition: color .4s var(--ease); }
.reveal-text .w.on { color: var(--text); }
.reveal-text .w.hl.on { color: var(--accent-text); }
.about-sub { color: var(--text); font-family: var(--ff-head); font-size: 17px; text-transform: uppercase; line-height: 1.2; max-width: 220px; }

.about-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 80px); margin-top: 50px; align-items: start; }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--brand) 0%, #2a0a52 55%, #120a1c 100%);
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.about-photo img { width: 92%; }
.about-photo .deco { position: absolute; width: 70px; top: 18px; right: 18px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.about-copy p { color: #a5a5a5; }
.dotted { height: 1px; border: 0; margin: 32px 0; background-image: radial-gradient(circle, var(--muted-2) 1px, transparent 1.4px); background-size: 6px 2px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding-inline: 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--ff-head); color: var(--text); font-size: clamp(46px, 5.5vw, 80px); line-height: 1; display: flex; align-items: flex-start; }
.stat-num sup { font-size: .45em; color: var(--accent-text); top: 0; margin-left: 2px; line-height: 1.2; }
.stat-label { color: var(--text); text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .06em; line-height: 1.3; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Hand-drawn process infographic (home about): idea → sketch → wireframe → website
   -------------------------------------------------------------------------- */
.sketch-flow-wrap { margin: 0; width: 100%; max-width: 470px; justify-self: end; position: relative; }
.sketch-flow { width: 100%; height: auto; display: block; overflow: visible; }
.sketch-flow .t { font-family: "Caveat", cursive; font-weight: 700; }

/* strokes draw themselves stage by stage, top → bottom */
.js .sketch-flow .d { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.8s cubic-bezier(.5, 0, .2, 1); }
.js .sketch-flow .h { stroke-dasharray: 6000; stroke-dashoffset: 6000; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .2, 1); }
.js .sketch-flow .f, .js .sketch-flow .t { opacity: 0; transition: opacity .8s var(--ease); }
.js .sketch-flow-wrap.in .d, .js .sketch-flow-wrap.in .h { stroke-dashoffset: 0; }
.js .sketch-flow-wrap.in .f { opacity: 1; }
.js .sketch-flow-wrap.in .t { opacity: 1; }
.js .sketch-flow .st1 * { transition-delay: .1s; }
.js .sketch-flow .st1b * { transition-delay: .9s; }
.js .sketch-flow .st2 * { transition-delay: 1.3s; }
.js .sketch-flow .st2b * { transition-delay: 2.3s; }
.js .sketch-flow .st3 * { transition-delay: 2.7s; }
.js .sketch-flow .st3b * { transition-delay: 3.7s; }
.js .sketch-flow .st4 * { transition-delay: 4.1s; }
.js .sketch-flow .st4 .f { transition-delay: 5s; }
.js .sketch-flow .st5 * { transition-delay: 5.4s; }
@media (max-width: 991px) { .sketch-flow-wrap { justify-self: center; } }

/* --------------------------------------------------------------------------
   Showcase banner (angled screenshots)
   -------------------------------------------------------------------------- */
.showcase {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #1a0d2e, #0f0f0f 55%, #1a1f02);
  border: 1px solid var(--line);
}
.showcase-stack { position: absolute; inset: 0; display: flex; gap: 2.4%; align-items: center; justify-content: center; transform: rotate(-8deg) scale(1.25); }
.showcase-col { display: flex; flex-direction: column; gap: 14px; width: 26%; }
.showcase-col:nth-child(2) { transform: translateY(-12%); }
.showcase-col:nth-child(3) { transform: translateY(8%); }
.showcase-col img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.showcase-badge {
  position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px);
  background: rgba(8,8,7,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 22px; max-width: 360px;
}
.showcase-badge strong { display: block; color: var(--text); font-family: var(--ff-head); font-size: 22px; font-weight: 400; line-height: 1.15; margin-bottom: 4px; }
.showcase-badge span { font-size: 14px; }

/* --------------------------------------------------------------------------
   Services list (home + services page)
   -------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .5fr) minmax(0, 1fr);
  gap: 30px;
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.service-row:first-child { padding-top: 0; }
.service-main { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.service-main h3 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 18px; }
.service-main h3 a:hover { color: var(--accent-text); }
.service-main p { max-width: 460px; }
.service-num {
  align-self: end; justify-self: end;
  font-family: var(--ff-head);
  font-size: clamp(70px, 10vw, 140px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px #333;
}
.service-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface); align-self: start; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-row:hover .service-media img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */
.projects-masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.projects-masonry .col { display: grid; gap: 24px; }
.projects-masonry .col:nth-child(2) { margin-top: 90px; }

.project-card { display: block; position: relative; }
.project-card .thumb { border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; }
.project-card .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.project-card.tall .thumb img { aspect-ratio: 4 / 5; }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,7,.65), transparent 50%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.project-card:hover .thumb::after { opacity: 1; }
.project-card .go {
  position: absolute; right: 18px; top: 18px; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-content: center;
  transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease);
}
.project-card .go svg { width: 20px; height: 20px; }
.project-card:hover .go { transform: scale(1) rotate(0); }
.project-info {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 10px;
}
.project-info h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 6px; }
.project-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.project-meta .cat { color: var(--accent-text); }
.project-meta .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 30px; }
.projects-grid .project-card .project-info { background: transparent; padding: 18px 0 0; margin: 0; }
.projects-grid .project-card .project-info h3 { margin-bottom: 12px; }
.projects-grid .project-card.is-hidden { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-bar button {
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 22px; border-radius: 999px; font-family: var(--ff-head); font-size: 15px;
  transition: all .3s var(--ease);
}
.filter-bar button:hover { border-color: var(--accent); color: var(--accent-text); }
.filter-bar button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-bar button sup { font-size: 11px; margin-left: 3px; opacity: .7; }

/* --------------------------------------------------------------------------
   Stats marquee
   -------------------------------------------------------------------------- */
.ticker { overflow: hidden; padding-block: 8px; }
.ticker-row { display: flex; white-space: nowrap; }
.ticker-track { display: flex; align-items: center; gap: 40px; padding-right: 40px; flex-shrink: 0; animation: marquee 40s linear infinite; }
.ticker-row.rev .ticker-track { animation-direction: reverse; }
.ticker-item { display: inline-flex; align-items: center; gap: 40px; font-family: var(--ff-head); font-size: clamp(30px, 4vw, 56px); color: var(--text); }
.ticker-item.outline { color: transparent; -webkit-text-stroke: 1px #7a7a7a; }
.ticker-item img { width: clamp(30px, 3.2vw, 46px); }
.ticker-item b { font-weight: 400; color: var(--accent-text); }

/* --------------------------------------------------------------------------
   Clients strip
   -------------------------------------------------------------------------- */
.clients { border-block: 1px solid var(--line); overflow: hidden; }
.clients-track { display: flex; flex-shrink: 0; animation: marquee 45s linear infinite; }
.clients-row { display: flex; }
.client {
  flex: 0 0 auto; min-width: 220px; height: 110px;
  display: grid; place-content: center; padding-inline: 30px;
  border-right: 1px solid var(--line);
  font-family: var(--ff-head); font-size: 22px; color: #5d5d5d;
  transition: color .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.client small { display: block; font-family: var(--ff-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #3d3d3d; text-align: center; margin-top: 2px; }
.client:hover { color: var(--text); background: var(--surface); }

/* --------------------------------------------------------------------------
   Resume, skills, tools
   -------------------------------------------------------------------------- */
.resume-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.resume-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.resume-card > h3 { font-size: 30px; display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.resume-card > h3 .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-content: center; }
.resume-card > h3 .ico svg { width: 22px; height: 22px; }
.timeline-item { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.timeline-item .when { font-size: 13px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: .05em; padding-top: 4px; }
.timeline-item h4 { font-size: 21px; line-height: 1.25; margin: 0 0 4px; }
.timeline-item p { margin: 0; font-size: 15px; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.skill:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 14px; }
.skill .pct { font-family: var(--ff-head); color: var(--text); font-size: 34px; line-height: 1; }
.skill .name { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.skill .bar { height: 4px; background: var(--surface-3); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.skill .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-text)); border-radius: 4px; transition: width 1.4s var(--ease); }

.tools { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.tool img { width: 100%; max-width: 76px; border-radius: 14px; margin: 0 auto 10px; }
.tool span { font-size: 13px; color: var(--text); font-weight: 600; }
.tool:hover { transform: translateY(-4px); border-color: var(--line-2); }

/* --------------------------------------------------------------------------
   Feature cards / why
   -------------------------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
  position: relative;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .num { font-family: var(--ff-head); color: var(--accent-text); font-size: 18px; margin-bottom: 40px; display: block; }
.card h3 { font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
.card p { margin: 0; font-size: 15px; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); color: var(--accent-text); display: grid; place-content: center; margin-bottom: 28px; }
.card .ico svg { width: 26px; height: 26px; }
.card-accent { background: var(--accent); border-color: var(--accent); }
.card-accent h3, .card-accent p, .card-accent .num { color: var(--accent-ink); }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.step + .step::before { left: 28px; }
.step .k { font-family: var(--ff-head); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #3a3a3a; display: block; margin: 10px 0 20px; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { font-size: 15px; }

/* --------------------------------------------------------------------------
   Big CTA / review-style blocks
   -------------------------------------------------------------------------- */
.cta-band {
  border-radius: calc(var(--radius) + 8px);
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--accent-ink); font-size: clamp(40px, 6vw, 88px); margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 17px; }
.cta-band .btn-dark { background: #fff; color: var(--accent); }
.cta-band .btn-dark:hover { background: var(--bg); color: #fff; }
.cta-band .deco { position: absolute; width: 180px; right: -40px; top: -40px; opacity: .22; animation: spin 18s linear infinite; filter: brightness(0) invert(1); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; transition: border-color .3s var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; color: var(--text); font-family: var(--ff-head); font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--accent-text);
  display: grid; place-content: center; font-family: var(--ff-body); font-size: 22px; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq details p { padding-bottom: 22px; margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; position: relative; }
.plan.featured { background: linear-gradient(160deg, #1d0b36 0%, var(--surface) 60%); border-color: var(--brand); }
.plan .badge { position: absolute; top: -16px; right: 24px; }
.plan h3 { font-size: 28px; margin-bottom: 8px; }
.plan .desc { font-size: 15px; min-height: 50px; }
.plan .price { font-family: var(--ff-head); color: var(--text); font-size: 60px; line-height: 1; margin: 22px 0 6px; }
.plan .price small { font-size: 18px; color: var(--muted); }
.plan .from { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.plan ul { display: grid; gap: 12px; margin: 26px 0 32px; padding-top: 26px; border-top: 1px solid var(--line); flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15px; color: #c9c9c9; }
.plan li svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; margin-top: 3px; }
.plan .btn { justify-content: center; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { font-family: var(--ff-head); font-weight: 400; color: var(--text); font-size: 18px; background: var(--surface); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text); }
.compare .yes { color: var(--accent-text); font-weight: 700; }
.compare .no { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(150px, 18vw, 220px); padding-bottom: clamp(50px, 7vw, 90px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -320px;
  background: radial-gradient(closest-side, rgba(113, 9, 212, .38), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 26px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb .sep { color: var(--muted-2); }
.breadcrumb [aria-current] { color: var(--accent-text); }
.page-title { font-size: clamp(56px, 11vw, 170px); line-height: .9; margin: 0; letter-spacing: -0.035em; position: relative; display: inline-block; }
.page-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.page-title .tag-available { position: absolute; right: -30px; top: -14px; font-size: clamp(12px, 1.3vw, 18px); }
.page-hero .lead { margin-top: 26px; }
.page-hero .deco { position: absolute; right: var(--gutter); bottom: 0; width: clamp(70px, 10vw, 140px); animation: spin 16s linear infinite; }

/* --------------------------------------------------------------------------
   About page bits
   -------------------------------------------------------------------------- */
.intro-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.intro-split .about-photo { justify-self: start; max-width: 480px; }
.signature { font-family: var(--ff-head); font-size: 34px; color: var(--text); margin-top: 26px; }
.signature small { display: block; font-family: var(--ff-body); font-size: 14px; color: var(--muted); }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 30px; margin: 30px 0; padding: 26px 0; border-block: 1px solid var(--line); }
.info-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.info-list dd { margin: 4px 0 0; color: var(--text); font-weight: 600; word-break: break-word; }

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */
.project-cover { border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); }
.project-cover img { width: 100%; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 30px; }
.project-facts div { padding: 24px; border-left: 1px solid var(--line); }
.project-facts div:first-child { border-left: 0; }
.project-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 6px; }
.project-facts dd { margin: 0; color: var(--text); font-family: var(--ff-head); font-size: 20px; word-break: break-word; }
.project-facts dd a:hover { color: var(--accent-text); }
.content-split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 80px); }
.content-split h2 { font-size: clamp(32px, 3.6vw, 48px); }
.prose p { font-size: 17px; color: #b3b3b3; }
.prose h3 { font-size: 28px; margin-top: 40px; }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.4em; }
.prose li { display: block; position: relative; padding-left: 22px; color: #c9c9c9; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose blockquote { margin: 36px 0; padding: 30px 34px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--ff-head); color: var(--text); font-size: 26px; line-height: 1.3; }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery-2 img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: top; }
.next-project { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 50px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.next-project a.big { font-family: var(--ff-head); font-size: clamp(40px, 7vw, 100px); color: var(--text); line-height: 1; }
.next-project a.big:hover { color: var(--accent-text); }
.next-project small { display: block; font-size: 13px; font-family: var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post-card .thumb { border-radius: var(--radius); overflow: hidden; display: block; position: relative; }
.post-card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .pill { position: absolute; left: 16px; top: 16px; background: rgba(8,8,7,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; margin: 20px 0 10px; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.post-card h3 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.post-card h3 a:hover { color: var(--accent-text); }
.post-card p { font-size: 15px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--ff-head); font-size: 16px; }
.read-more svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .3s var(--ease); }
.read-more:hover { color: var(--accent-text); }
.read-more:hover svg { transform: translateX(4px) rotate(-45deg); }

.post-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: 70px; }
.post-featured .thumb img { aspect-ratio: 16 / 10; }
.post-featured h3 { font-size: clamp(32px, 3.6vw, 50px); }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 70px; }
.pagination a, .pagination span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-content: center; border: 1px solid var(--line-2); color: var(--text); font-family: var(--ff-head); }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); color: var(--accent-text); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--line); }
.article-cover img { width: 100%; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 30px; margin-top: 40px; border-top: 1px solid var(--line); align-items: center; }
.author-box { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 40px; }
.author-box .av { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; background: var(--brand); flex-shrink: 0; }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author-box h4 { font-size: 22px; margin-bottom: 4px; }
.author-box p { margin: 0 0 10px; font-size: 15px; }

.sidebar { display: grid; gap: 24px; position: sticky; top: 100px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.widget h4 { font-size: 22px; margin-bottom: 18px; }
.widget-search { display: flex; gap: 8px; }
.widget-search input { flex: 1; min-width: 0; }
.widget-cats li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: #c9c9c9; font-size: 15px; }
.widget-cats li:last-child a { border-bottom: 0; }
.widget-cats li a:hover { color: var(--accent-text); }
.mini-post { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.mini-post img { width: 76px; height: 60px; object-fit: cover; object-position: top; border-radius: 10px; flex-shrink: 0; }
.mini-post a { color: var(--text); font-family: var(--ff-head); font-size: 16px; line-height: 1.25; }
.mini-post a:hover { color: var(--accent-text); }
.mini-post small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.widget-cta { background: var(--accent); border-color: var(--accent); }
.widget-cta h4, .widget-cta p { color: var(--accent-ink); }
.widget-cta .btn { background: #fff; color: var(--accent); }

/* --------------------------------------------------------------------------
   Forms & contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .3s var(--ease); }
.contact-card:hover { border-color: var(--accent); }
.contact-card .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-3); color: var(--accent-text); display: grid; place-content: center; flex-shrink: 0; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.contact-card strong { display: block; color: var(--text); font-family: var(--ff-head); font-weight: 400; font-size: 21px; word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 48px); }
.form h2 { font-size: clamp(32px, 4vw, 52px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.input, .field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 14px; cursor: pointer; transition: all .25s var(--ease); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--accent-text); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; filter: grayscale(1) invert(.92) contrast(.9); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface); margin-top: clamp(60px, 8vw, 120px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr .55fr; border-bottom: 1px solid var(--line); }
.footer-top > div { padding: clamp(30px, 4vw, 56px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.footer-top > div:first-child { border-left: 0; padding-left: 0; }
.footer-pitch p { color: var(--text); font-family: var(--ff-head); font-size: 21px; line-height: 1.3; margin-bottom: 26px; }
.footer-person { display: flex; align-items: center; gap: 14px; }
.footer-person .av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--brand); flex-shrink: 0; }
.footer-person .av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.footer-person strong { display: block; color: var(--text); font-family: var(--ff-head); font-weight: 400; font-size: 19px; }
.footer-person span { font-size: 14px; }
.footer-contact small { display: block; font-size: 14px; margin-bottom: 4px; }
.footer-contact a.mail { display: inline-block; color: var(--text); font-family: var(--ff-head); font-size: clamp(20px, 1.75vw, 26px); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; margin-bottom: 30px; overflow-wrap: anywhere; }
.footer-contact a.tel { color: var(--text); font-family: var(--ff-head); font-size: clamp(22px, 2vw, 28px); }
.footer-contact a:hover { color: var(--accent-text); }
.footer-links h4, .footer-social h4 { font-family: var(--ff-body); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.footer-links li a { display: block; color: var(--text); font-family: var(--ff-head); font-size: 17px; padding: 3px 0; }
.footer-links li a:hover { color: var(--accent-text); }
.footer-social .socials { display: grid; grid-template-columns: repeat(2, 42px); }

.footer-mega { padding-block: clamp(40px, 6vw, 80px) 20px; }
.footer-mega .big {
  display: flex; align-items: center; justify-content: space-between; gap: 2vw;
  font-family: var(--ff-head); color: var(--text);
  font-size: clamp(42px, 10.5vw, 168px); line-height: .9; letter-spacing: -0.035em;
  position: relative; white-space: nowrap;
}
.footer-mega .big img { width: .9em; height: .9em; object-fit: contain; }
.footer-mega .big .tag-available { position: absolute; right: 6%; top: -18%; font-size: clamp(12px, 1.4vw, 20px); }
.footer-bottom { display: flex; align-items: center; gap: 20px; padding-block: 26px; font-size: 14px; color: var(--text); flex-wrap: wrap; }
.footer-bottom .line { flex: 1; height: 1px; min-width: 30px; background: var(--line); }
.footer-bottom a:hover { color: var(--accent-text); }

.to-top {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-content: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 60px; position: relative; overflow: hidden; }
.error-code { font-family: var(--ff-head); font-size: clamp(140px, 30vw, 420px); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--text); margin: 0; position: relative; display: inline-block; }
.error-code img { position: absolute; width: 32%; left: 34%; top: 18%; animation: spin 10s linear infinite; }
.error-page h1 { font-size: clamp(30px, 4vw, 56px); margin-top: 30px; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .sketch-flow .d, .js .sketch-flow .h { stroke-dashoffset: 0; }
  .js .sketch-flow .f, .js .sketch-flow .t { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .main-nav { display: none; }
  .tools { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-top > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .about-grid, .about-row, .intro-split, .content-split, .contact-grid, .article-layout, .post-featured { grid-template-columns: 1fr; }
  .about-photo { justify-self: start; }
  .service-row { grid-template-columns: 1fr; }
  .service-num { display: none; }
  .service-media { order: -1; aspect-ratio: 16 / 9; }
  .resume-grid, .cards-3, .pricing { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(3) { border-left: 0; }
  .project-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 767px) {
  .header-inner { height: 76px; }
  .header-actions .btn { display: none; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .projects-masonry, .projects-grid, .blog-grid, .gallery-2 { grid-template-columns: 1fr; }
  .projects-masonry .col:nth-child(2) { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding-inline: 12px; }
  .stat-label { font-size: 11px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .form-grid, .info-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div { border-left: 0 !important; padding-left: 0 !important; padding-right: 0; border-top: 1px solid var(--line); }
  .footer-top > div:first-child { border-top: 0; }
  .footer-social .socials { grid-template-columns: repeat(5, 42px); }
  .footer-mega .big { white-space: normal; flex-wrap: wrap; }
  .footer-mega .big .tag-available { position: static; transform: rotate(-4deg); }
  .footer-bottom .line { display: none; }
  .tools { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tool { padding: 10px; }
  .tool span { font-size: 11px; }
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step::before { left: 0; }
  .page-title .tag-available { position: static; display: inline-block; margin-left: 10px; vertical-align: top; }
  .map { aspect-ratio: 4 / 3; }
  .showcase { aspect-ratio: 4 / 3; }
  .ribbons { height: 160px; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .page-hero .deco { top: -54px; bottom: auto; width: 54px; }
  .cta-band .deco { width: 90px; right: -30px; top: -30px; }
  .contact-card strong { font-size: 17px; }
}

@media (max-width: 479px) {
  .cards-4 { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .project-facts div:first-child { border-top: 0; }
  .circle-link { width: 100px; height: 100px; font-size: 16px; }
  .stat-num { font-size: 40px; }
}

/* About: wide hand-drawn flow layered behind the text (desktop), tall version on mobile */
.about-stack { display: grid; }
.about-stack > * { grid-area: 1 / 1; }
.about-layer { position: relative; z-index: 1; }
.sketch-flow-wrap.wide { max-width: none; justify-self: stretch; align-self: start; pointer-events: none; z-index: 0; margin-top: -26px; }
.sketch-flow-wrap.tall { display: none; }
@media (max-width: 991px) {
  .sketch-flow-wrap.wide, .about-spacer { display: none; }
  .sketch-flow-wrap.tall { display: block; margin: 50px auto 0; justify-self: center; }
}

/* About page: bare purple pencil sketch — no card, border or paper */
.about-photo.sketch {
  aspect-ratio: 3 / 4;
  background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible;
}
.about-photo.sketch img { width: 100%; height: 100%; object-fit: contain; }
.about-photo.sketch picture { display: block; width: 100%; height: 100%; }
/* About page sketch: 30% larger and lifted 30% of its height, pinned to the top of its column */
.intro-split { align-items: start; }
.intro-split .about-photo.sketch {
  width: 130%; max-width: none;
  margin-left: -15%;
  margin-top: -52%;            /* margin % uses column width: 30% of (1.3 × 4/3) ≈ 52% */
  position: relative; z-index: 0; pointer-events: none;
}
@media (max-width: 991px) {
  .intro-split .about-photo.sketch { width: 100%; margin: -40px auto 0; max-width: 520px; }
}
/* Service rows: hand-drawn sketch illustrations instead of website screenshots */
.service-media.sketch { background: none; border-radius: 0; overflow: visible; aspect-ratio: 5 / 4; max-width: none; justify-self: stretch; }
.service-media.sketch .sketch-flow { width: 100%; height: 100%; }
.js .svc .st2 * { transition-delay: .7s; }
.js .svc .st3 * { transition-delay: 1.4s; }
.js .svc .st3 .f { transition-delay: 2s; }

/* Hero: soft custom cursor + ripple trail (fine pointers only, see main.js) */
.hero-ripples { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-smoke { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; filter: blur(1.2px); }

.hero-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.hero.cursor-on .hero-cursor { opacity: 1; }
.hero-cursor .dot, .hero-cursor .ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.hero-cursor .dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent-text); box-shadow: 0 0 12px rgba(164, 99, 255, .9); }
.hero-cursor .ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(164, 99, 255, .55);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.hero.cursor-link .hero-cursor .ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(113, 9, 212, .16); border-color: rgba(164, 99, 255, .8); }
.hero.cursor-on, .hero.cursor-on a, .hero.cursor-on button { cursor: none; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .hero-cursor, .hero-ripples { display: none; } }

/* Long-form articles */
.article-title { font-size: clamp(36px, 5.2vw, 76px) !important; line-height: 1.02 !important; max-width: 1100px; display: block; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px; }
.toc strong { display: block; color: var(--text); font-family: var(--ff-head); font-weight: 400; font-size: 20px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc li { display: list-item !important; color: var(--muted); font-size: 15px; }
.toc li::before { display: none !important; }
.toc a { color: #cfcfcf; } .toc a:hover { color: var(--accent-text); }
.li-note { display: flex; gap: 12px; align-items: flex-start; font-size: 14px !important; background: rgba(113, 9, 212, .1); border: 1px solid rgba(164, 99, 255, .3); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; }
.li-note svg { width: 20px; height: 20px; color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 56px; scroll-margin-top: 100px; }
.prose h3 { scroll-margin-top: 100px; }
.prose ol { display: grid; gap: 10px; margin: 0 0 1.4em; padding-left: 22px; color: #c9c9c9; }
.prose ol li { display: list-item; } .prose ol li::before { display: none; }
.prose code { background: var(--surface-3); color: #e3d4ff; padding: 2px 7px; border-radius: 6px; font-size: .9em; }

.article-layout > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.prose em { color: #e9e9e9; }
/* Article "term — explanation" tables: very light grey, aligned rows */
.kv-wrap { margin: 8px 0 28px; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 16px; line-height: 1.55; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }
.kv-table th { width: 34%; color: #ffffff; font-weight: 700; background: rgba(255,255,255,.055); border-right: 1px solid rgba(255,255,255,.12); }
.kv-table td { color: #d0d0d0; }
.kv-table tr:hover th, .kv-table tr:hover td { background-color: rgba(255,255,255,.07); }
@media (max-width: 600px) {
  .kv-table, .kv-table tbody, .kv-table tr, .kv-table th, .kv-table td { display: block; width: 100%; }
  .kv-table th { border-right: 0; border-bottom: 0; padding-bottom: 4px; }
  .kv-table td { padding-top: 0; background: rgba(255,255,255,.055); }
  .kv-table th { background: rgba(255,255,255,.055); }
}

/* Article: one light-bordered card for the text, a separate framed card for the cover image */
:root { --card-line: rgba(255, 255, 255, .16); --card-bg: rgba(255, 255, 255, .035); --card-inner: rgba(255, 255, 255, .055); }
.article-cover { margin: 0 0 26px; padding: 12px; border: 1px solid var(--card-line); background: var(--card-bg); border-radius: calc(var(--radius) + 4px); overflow: visible; }
.article-cover img { width: 100%; border-radius: var(--radius-sm); display: block; }
.article-card { border: 1px solid var(--card-line); background: var(--card-bg); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 48px); }
.article-card > :first-child { margin-top: 0; }
.article-card > h2:first-child { margin-top: 0; }
/* inner blocks: same light style, no competing heavy borders */
.article-card .li-note { background: var(--card-inner); border: 1px solid var(--card-line); border-radius: 14px; }
.article-card .toc { background: var(--card-inner); border: 1px solid var(--card-line); margin-bottom: 40px; }
.article-card .kv-wrap { background: var(--card-inner); border-color: var(--card-line); }
.article-card .author-box { background: var(--card-inner); border: 1px solid var(--card-line); margin-top: 32px; }
.article-card .article-tags { border-top-color: var(--card-line); }
.article-card blockquote { background: var(--card-inner); }
/* sidebar boxes match */
.article-layout .widget:not(.widget-cta) { border-color: var(--card-line); background: var(--card-bg); }
@media (max-width: 600px) {
  .article-card { padding: 20px 16px; border-radius: var(--radius); }
  .article-cover { padding: 8px; border-radius: var(--radius); }
}

/* --------------------------------------------------------------------------
   Digital twin genie (bottom-right, every page)
   -------------------------------------------------------------------------- */
.to-top { right: 164px; }
.hero-scroll { right: calc(var(--gutter) + 150px); }
.twin { position: fixed; right: 18px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 150; }
.twin-genie {
  position: relative; display: block;
  width: 132px; height: 194px; padding: 0; border: 0; background: none;
  cursor: pointer; animation: genieFloat 4.2s ease-in-out infinite;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
}
.twin-genie:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 20px; }
.genie-svg { width: 100%; height: 100%; overflow: visible; }
.g-tail { transform-origin: 70px 128px; animation: genieTail 3.2s ease-in-out infinite; }
.g-glow { animation: genieGlow 4.2s ease-in-out infinite; }
.g-spark { animation: genieSpark 2.4s ease-in-out infinite; transform-origin: 70px 60px; }
.twin-genie:hover { animation-play-state: paused; }
.twin-genie:hover .genie-svg { transform: scale(1.06) rotate(-2deg); }
.genie-svg { transition: transform .4s var(--ease); }
.twin-dot { position: absolute; right: 22px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulseGreen 2s infinite; }
@keyframes genieFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes genieTail { 0%, 100% { transform: skewX(0deg) rotate(0deg); } 50% { transform: skewX(-8deg) rotate(3deg); } }
@keyframes genieGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes genieSpark { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes pulseGreen { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.twin-bubble {
  position: absolute; right: 122px; bottom: 132px; width: 230px;
  background: #fff; color: #1d1530; border-radius: 18px 18px 4px 18px;
  padding: 14px 34px 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  font-size: 13.5px; line-height: 1.45; animation: bubbleIn .5s var(--ease);
}
.twin-bubble strong { display: block; font-family: var(--ff-head); font-weight: 400; font-size: 16px; color: #1d1530; margin-bottom: 2px; }
.twin-bubble-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #efe8ff; color: #5a07aa; font-size: 11px; line-height: 1; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }

.twin-panel {
  position: absolute; right: 0; bottom: 200px;
  width: min(370px, calc(100vw - 36px)); height: min(540px, calc(100vh - 220px));
  display: flex; flex-direction: column;
  background: #111015; border: 1px solid rgba(164, 99, 255, .35); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(113, 9, 212, .25);
  animation: bubbleIn .35s var(--ease);
}
.twin-panel[hidden] { display: none !important; }
.twin-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #7109d4, #3d0a7a); }
.twin-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #1d0b36; border: 2px solid rgba(255,255,255,.5); flex-shrink: 0; }
.twin-av { background: #2a0f52; }
.twin-av { position: relative; }
.twin-av img { position: absolute; width: 200%; max-width: none; height: auto; left: -50%; top: -22%; }
.twin-head strong { display: block; color: #fff; font-family: var(--ff-head); font-weight: 400; font-size: 17px; line-height: 1.1; }
.twin-head small { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); font-size: 12px; }
.twin-head .on { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.twin-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.twin-close:hover { background: rgba(255,255,255,.15); }
.twin-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.tw-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tw-msg.bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e6e6e6; border-bottom-left-radius: 4px; }
.tw-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.tw-msg a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.tw-msg.bot strong { color: #fff; }
.tw-msg ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.tw-typing { display: inline-flex; gap: 4px; }
.tw-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b78bff; animation: twType 1s infinite; }
.tw-typing i:nth-child(2) { animation-delay: .15s; } .tw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes twType { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.twin-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.twin-chips::-webkit-scrollbar { display: none; }
.twin-chips button { flex-shrink: 0; border: 1px solid rgba(164,99,255,.45); background: rgba(113,9,212,.12); color: #e3d4ff; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; }
.twin-chips button:hover { background: var(--accent); color: #fff; }
.twin-form { display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); }
.twin-input { flex: 1; min-width: 0; background: #0b0a0e; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 11px 16px; color: #fff; font: inherit; font-size: 14px; }
.twin-input:focus { outline: none; border-color: var(--accent-text); }
.twin-send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; }
.twin-send svg { width: 18px; height: 18px; }
.twin-send:hover { background: var(--accent-hover); }

@media (max-width: 600px) {
  .twin { right: 8px; }
  .twin-genie { width: 96px; height: 141px; }
  .to-top { right: 100px; }
  .twin-bubble { right: 76px; bottom: 84px; width: 200px; }
  .twin-panel { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(78vh, 600px); }
}
@media (prefers-reduced-motion: reduce) {
  .twin-genie, .g-tail, .g-glow, .g-spark, .twin-dot { animation: none !important; }
}

/* Article refinements: stronger image frames + uniform 20px spacing between boxes */
.article-cover { border: 1.3px solid rgba(255, 255, 255, .21); margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(164, 99, 255, .08); }
.article-cover img { outline: 1px solid rgba(255, 255, 255, .21); outline-offset: -1px; }
.article-card .li-note,
.article-card .toc,
.article-card .kv-wrap,
.article-card blockquote,
.article-card .author-box { margin-top: 20px; margin-bottom: 20px; }
.article-card > .li-note:first-child { margin-top: 0; }
.article-card .article-tags { margin-top: 20px; padding-top: 20px; }
.article-card > :last-child { margin-bottom: 0; }
.article-layout .sidebar { gap: 20px; }
.article-layout + section .blog-grid, .article-layout ~ * .blog-grid { gap: 40px 20px; }
.post-card .thumb { border: 1.3px solid rgba(255, 255, 255, .21); }

/* AI robot assistant (replaces genie) */
.twin-genie { width: 120px; height: 146px; }
.robot-svg .r-glow { animation: genieGlow 4.2s ease-in-out infinite; }
.robot-svg .r-antenna { animation: robotBlinkLight 1.6s ease-in-out infinite; }
.robot-svg .r-eyes { transform-origin: 70px 56px; animation: robotBlink 4.5s infinite; }
.robot-svg .r-wave { transform-origin: 102px 106px; animation: robotWave 2.8s ease-in-out infinite; }
.robot-svg .r-spark { transform-origin: 70px 70px; animation: genieSpark 2.4s ease-in-out infinite; }
.robot-svg .r-shadow { transform-origin: 70px 162px; animation: robotShadow 4.2s ease-in-out infinite; }
@keyframes robotBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes robotBlinkLight { 0%, 100% { fill: #a463ff; } 50% { fill: #ffe14d; } }
@keyframes robotWave { 0%, 55%, 100% { transform: rotate(0deg); } 65% { transform: rotate(-14deg); } 75% { transform: rotate(8deg); } 85% { transform: rotate(-10deg); } }
@keyframes robotShadow { 0%, 100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.8); opacity: .22; } }
.twin-dot { right: 18px; top: 22px; }
.twin-label {
  position: absolute; right: 108px; top: 44px; white-space: nowrap;
  background: var(--accent); color: #fff; font-family: var(--ff-head); font-size: 14px; line-height: 1;
  padding: 9px 14px; border-radius: 999px 999px 4px 999px; box-shadow: 0 10px 24px rgba(113, 9, 212, .45);
  pointer-events: none;
}
.twin-genie[aria-expanded="true"] .twin-label { display: none; }
.twin-bubble { bottom: 130px; right: 30px; }
.twin-panel { bottom: 168px; }
.twin-av img { position: absolute; width: 150%; left: -25%; top: -6%; }
@media (max-width: 600px) {
  .twin-genie { width: 92px; height: 112px; }
  .twin-label { right: 82px; top: 30px; font-size: 12px; padding: 7px 11px; }
  .twin-bubble { bottom: 104px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .robot-svg * { animation: none !important; } }
.twin-label { right: 6px; top: auto; bottom: calc(100% + 2px); border-radius: 999px 999px 4px 999px; animation: bubbleIn .5s var(--ease); }
.twin-bubble { display: none !important; }
@media (max-width: 600px) { .twin-label { right: 2px; top: auto; bottom: calc(100% + 2px); } }
@media (max-width: 600px) {
  .twin { right: 4px; bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
  .twin-genie { width: 74px; height: 90px; }
  .twin-label { font-size: 11px; padding: 6px 10px; }
  .to-top { right: 84px; width: 44px; height: 44px; }
}

/* Robot 40% smaller + WhatsApp button in chat header */
.twin { right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.twin-genie { width: 72px; height: 88px; }
.twin-dot { right: 9px; top: 12px; width: 9px; height: 9px; border-width: 1.5px; }
.twin-label { font-size: 12px; padding: 7px 11px; right: 0; }
.twin-panel { bottom: 112px; }
.to-top { right: 100px; }
.hero-scroll { right: calc(var(--gutter) + 90px); }
.twin-close { margin-left: 0; }
.twin-wa {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-content: center; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .4); transition: transform .25s var(--ease), background .25s var(--ease);
}
.twin-wa svg { width: 19px; height: 19px; }
.twin-wa:hover { background: #1ebe5b; transform: scale(1.08); }
@media (max-width: 600px) {
  .twin { right: 6px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .twin-genie { width: 44px; height: 54px; }
  .twin-dot { right: 5px; top: 7px; width: 7px; height: 7px; }
  .twin-label { font-size: 10px; padding: 5px 8px; }
  .to-top { right: 58px; width: 42px; height: 42px; }
}
.hero-scroll { right: calc(var(--gutter) + 140px); }
/* "How Can I Help You?" sits under the robot */
.twin-label { top: calc(100% + 2px); bottom: auto; right: 50%; transform: translateX(50%); border-radius: 999px; }
.twin { bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.twin-panel { bottom: 100px; }
@media (max-width: 600px) {
  .twin-label { top: calc(100% + 1px); bottom: auto; }
  .twin { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}
.twin-label { animation: none; }
.twin-label { right: 0; transform: none; }

/* Showcase: scrolling columns of browser-framed websites */
.showcase { aspect-ratio: auto; height: clamp(560px, 62vw, 820px); background: radial-gradient(90% 70% at 50% 0%, #1d0b36 0%, #0d0c10 60%); }
.sc-stage { position: absolute; inset: -6% -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px);
  transform: perspective(1600px) rotateX(14deg) rotateZ(-5deg); transform-origin: 50% 0; }
.sc-col { overflow: hidden; }
.sc-track { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); animation: scUp 48s linear infinite; }
.sc-col-2 .sc-track { animation-name: scDown; animation-duration: 56s; }
.sc-col-3 .sc-track { animation-duration: 44s; }
.showcase:hover .sc-track { animation-play-state: paused; }
@keyframes scUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - clamp(7px, 1vw, 14px))); } }
@keyframes scDown { from { transform: translateY(calc(-50% - clamp(7px, 1vw, 14px))); } to { transform: translateY(0); } }
.bw { display: block; position: relative; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 50px rgba(0,0,0,.55);
  filter: brightness(.92) saturate(1.05); transition: transform .45s var(--ease), filter .45s var(--ease), box-shadow .45s var(--ease); }
.bw:hover { transform: translateY(-6px) scale(1.03); filter: none; box-shadow: 0 30px 70px rgba(113,9,212,.45); z-index: 2; }
.bw-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #1b1a20; border-bottom: 1px solid rgba(255,255,255,.08); }
.bw-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; flex-shrink: 0; }
.bw-bar i:nth-child(2) { background: #febc2e; } .bw-bar i:nth-child(3) { background: #28c840; }
.bw-url { flex: 1; margin-left: 8px; height: 17px; border-radius: 6px; background: #2a2930; color: #bdbdbd; font-size: 10.5px; line-height: 17px; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bw-url::before { content: "🔒 "; font-size: 8px; }
.bw img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; display: block; }
.bw-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 26px 14px 10px; background: linear-gradient(to top, rgba(8,8,7,.9), transparent); color: #fff; opacity: 0; transition: opacity .35s var(--ease); }
.bw-cap b { font-family: var(--ff-head); font-weight: 400; font-size: 16px; }
.bw-cap small { color: var(--accent-text); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bw:hover .bw-cap { opacity: 1; }
.showcase::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, #0d0c10 0%, transparent 14%, transparent 80%, rgba(13,12,16,.85) 100%); }
.showcase-badge { z-index: 3; }
@media (max-width: 767px) {
  .showcase { height: 520px; }
  .sc-stage { grid-template-columns: repeat(2, 1fr); transform: perspective(1200px) rotateX(10deg) rotateZ(-4deg); }
  .sc-col-3 { display: none; }
  .bw-url { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .sc-track { animation: none; } }
/* back-to-top moves to bottom-left so it never clashes with the robot */
.to-top { right: auto !important; left: 20px; }
.bw { border: 2px solid rgba(113, 9, 212, .9); }
.bw img { opacity: .9; } .bw { background: #0d0c10; } .bw:hover img { opacity: 1; }

/* Home "My profile work": balanced equal grid, full screenshots in browser frames */
.projects-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.projects-masonry .col { gap: 30px; }
.projects-masonry .col:nth-child(2) { margin-top: 0; }
.projects-masonry .project-card.tall .thumb img,
.projects-masonry .project-card .thumb img { aspect-ratio: 3 / 2; object-position: top; }
.projects-masonry .project-card .thumb { border: 2px solid rgba(113, 9, 212, .9); border-radius: 14px; padding-top: 28px; background: #1b1a20; }
.projects-masonry .project-card .thumb::before { content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 14px 0 #febc2e, 28px 0 #28c840; z-index: 2; }
.projects-masonry .project-card .thumb img { border-radius: 0; }
.projects-masonry .project-card .go { top: 44px; }
@media (max-width: 767px) { .projects-masonry { grid-template-columns: 1fr; } }
.why-art { margin: -6px -6px 18px; max-width: none; }
.why-art .sketch-flow { width: 100%; height: auto; }
.cards-3 .card .num { margin-bottom: 14px; }
.why-title { position: relative; display: inline-block; padding-right: 150px; }
.why-arrow { position: absolute; right: 0; bottom: -110px; width: 140px; height: 130px; filter: drop-shadow(0 0 10px rgba(164,99,255,.45)); }
.js .why-arrow .wa-line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
.js .why-arrow .wa-head { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .5s var(--ease) 1.5s; }
.js .why-title.in .why-arrow path { stroke-dashoffset: 0; }
.why-arrow .wa-head { animation: waBob 2s ease-in-out 2.2s infinite; }
@keyframes waBob { 50% { transform: translateY(6px); } }
@media (max-width: 767px) { .why-title { padding-right: 90px; } .why-arrow { width: 80px; height: 76px; bottom: -60px; } }
.why-arrow { z-index: 5; bottom: -86px; } .why-title { z-index: 5; }
#main .section-head h2 .text-accent { display: inline-block; font-size: .62em; line-height: 1.1; margin-top: 8px; }
#main .section-head h2 .text-accent { font-size: 1em; display: inline; margin-top: 0; }
/* Matrix rain: very dim, faded under the title area, softly visible behind the photo */
.hero-matrix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .14;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 40%, #000 70%), linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 40%, #000 70%), linear-gradient(to bottom, #000 70%, transparent);
  mask-composite: intersect; }
.hero-media { z-index: 1; }
.hero-inner, .float-card, .hero-scroll { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .hero-matrix { display: none; } }
.hero-matrix { opacity: .3; }
/* keep binary rain away from the face and the title */
.hero-matrix {
  -webkit-mask-image:
    radial-gradient(ellipse 20% 42% at 79% 42%, transparent 0%, transparent 60%, #000 100%),
    radial-gradient(ellipse 30% 36% at 20% 48%, transparent 0%, transparent 55%, #000 100%),
    linear-gradient(to bottom, #000 72%, transparent);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(ellipse 20% 42% at 79% 42%, transparent 0%, transparent 60%, #000 100%),
    radial-gradient(ellipse 30% 36% at 20% 48%, transparent 0%, transparent 55%, #000 100%),
    linear-gradient(to bottom, #000 72%, transparent);
  mask-composite: intersect;
}
@media (max-width: 991px) {
  .hero-matrix {
    -webkit-mask-image: radial-gradient(ellipse 45% 30% at 50% 28%, transparent 55%, #000 100%), linear-gradient(to bottom, #000 40%, transparent 60%);
    mask-image: radial-gradient(ellipse 45% 30% at 50% 28%, transparent 55%, #000 100%), linear-gradient(to bottom, #000 40%, transparent 60%);
  }
}
/* AI advantage section */
.ai-adv { background: radial-gradient(60% 50% at 80% 0%, rgba(113,9,212,.18), transparent 70%); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-grid .card .ico { background: rgba(113,9,212,.18); color: var(--accent-text); }
@media (max-width: 991px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-plan-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: end; }
.ai-plan-cta { background: rgba(255,255,255,.04); border: 1px solid rgba(164,99,255,.35); border-radius: 18px; padding: 22px; }
.plan ul.ai-plan-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; margin: 30px 0 0; }
.ai-plan-list li { align-items: flex-start; }
@media (max-width: 991px) { .ai-plan-head { grid-template-columns: 1fr; } .plan ul.ai-plan-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan ul.ai-plan-list { grid-template-columns: 1fr; } }

/* The Crew page */
.crew-fig { max-width: none; margin: 0; }
.crew-fig .sketch-flow { width: 100%; height: auto; }
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.crew-card { position: relative; }
.crew-card .ico { background: rgba(113,9,212,.18); color: var(--accent-text); font-size: 28px; font-family: var(--ff-head); }
.crew-tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); border: 1px solid rgba(164,99,255,.4); border-radius: 999px; padding: 4px 10px; }
.crew-more { border-style: dashed; border-color: rgba(164,99,255,.45); }
@media (max-width: 1199px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .crew-grid { grid-template-columns: 1fr; } }
/* Scale Up page */
.scale-kicker { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 22px; }
.tool-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tool-cloud span { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(164,99,255,.3); background: rgba(113,9,212,.08); color: #e3d4ff; font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.tool-cloud span:hover { background: var(--accent); color: #fff; }
.cards-4 .card .ico, .task .ico { background: rgba(113,9,212,.18); color: var(--accent-text); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.task { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .3s; }
.task:hover { border-color: rgba(164,99,255,.5); }
.task .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center; flex-shrink: 0; }
.task .ico svg { width: 24px; height: 24px; }
.task h3 { font-size: 21px; margin-bottom: 6px; }
.task p { margin: 0; font-size: 15px; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step3 { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; }
.step3 .n { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-content: center; background: var(--accent); color: #fff; font-family: var(--ff-head); font-size: 28px; box-shadow: 0 0 0 8px rgba(113,9,212,.18); }
.step3 h3 { font-size: 24px; }
.step3 p { margin: 0; }
.plans-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 991px) { .task-grid { grid-template-columns: 1fr 1fr; } .steps-3, .plans-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .task-grid, .cards-3[style] { grid-template-columns: 1fr !important; } }
.scale-hero .page-title { display: block; } .scale-hero .label { display: inline-flex; }
.hero-intro { max-width: 540px; }
.hero-ai { margin-top: 14px; } .hero-ai .icons img { padding: 0; object-fit: cover; }
.hero-tech .icons img.ai { padding: 0; object-fit: cover; }

/* Portfolio deck (home "My profile work") */
.deck { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.dk-panel { position: relative; }
.dk-info { animation: dkIn .5s var(--ease); }
.dk-info h3 { font-size: clamp(36px, 4vw, 60px); margin: 18px 0 12px; }
.dk-info p { margin: 18px 0 26px; max-width: 440px; }
@keyframes dkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dk-nav { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.dk-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 18px; }
.dk-nav button:hover { background: var(--accent); border-color: var(--accent); }
.dk-count { font-family: var(--ff-head); color: var(--muted); font-size: 18px; }
.dk-count b { color: #fff; font-weight: 400; font-size: 26px; }

.dk-stage { position: relative; height: clamp(380px, 38vw, 520px); }
.dk-card {
  --d: 0; --ad: 0;
  position: absolute; left: 50%; top: 50%;
  width: clamp(230px, 24vw, 340px); aspect-ratio: 1 / 1.15;
  margin: 0; padding: 0; border: 2px solid rgba(113, 9, 212, .9); border-radius: 18px; overflow: hidden;
  background: #1b1a20; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--d) * 46px)) translateY(calc(var(--ad) * 12px)) rotate(calc(var(--d) * 7deg)) scale(calc(1 - var(--ad) * .06));
  transform-origin: 50% 120%;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  filter: brightness(calc(1 - var(--ad) * .12));
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s, box-shadow .5s, border-color .5s;
}
.dk-card .dk-bar { display: flex; gap: 6px; height: 26px; align-items: center; padding: 0 10px; background: #141318; }
.dk-card .dk-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.dk-card .dk-bar i:nth-child(2) { background: #febc2e; }
.dk-card .dk-bar i:nth-child(3) { background: #28c840; }
.dk-card img { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; display: block; }
.dk-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(to top, rgba(8,8,7,.92), transparent); color: #fff; font-family: var(--ff-head); font-size: 18px; text-align: left; }
.dk-card.is-active { border-color: var(--accent-text); box-shadow: 0 30px 80px rgba(113, 9, 212, .45); }
.dk-stage:hover .dk-card { transform: translate(-50%, -50%) translateX(calc(var(--d) * 78px)) translateY(calc(var(--ad) * 18px)) rotate(calc(var(--d) * 12deg)) scale(calc(1 - var(--ad) * .05)); }
.dk-stage:hover .dk-card:hover:not(.is-active) { filter: brightness(1); border-color: var(--accent-text); transform: translate(-50%, -50%) translateX(calc(var(--d) * 78px)) translateY(calc(var(--ad) * 18px - 26px)) rotate(calc(var(--d) * 12deg)) scale(calc(1.02 - var(--ad) * .05)); }
.dk-card:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
@media (max-width: 991px) {
  .deck { grid-template-columns: 1fr; }
  .dk-stage { order: -1; height: 400px; }
}
@media (max-width: 600px) {
  .dk-stage { height: 330px; }
  .dk-card { width: 200px; transform: translate(-50%, -50%) translateX(calc(var(--d) * 26px)) translateY(calc(var(--ad) * 10px)) rotate(calc(var(--d) * 6deg)) scale(calc(1 - var(--ad) * .06)); }
  .dk-stage:hover .dk-card, .dk-stage:hover .dk-card:hover:not(.is-active) { transform: translate(-50%, -50%) translateX(calc(var(--d) * 34px)) translateY(calc(var(--ad) * 12px)) rotate(calc(var(--d) * 8deg)) scale(calc(1 - var(--ad) * .05)); }
}
@media (prefers-reduced-motion: reduce) { .dk-card { transition: none; } }
#work { overflow-x: clip; } .dk-panel { z-index: 120; } .dk-info p { position: relative; }
/* Deck v2: wide landscape cards showing the full website screenshot */
.deck { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
.dk-stage { height: clamp(420px, 40vw, 560px); }
.dk-card { width: clamp(340px, 40vw, 600px); aspect-ratio: auto; transform-origin: 50% 160%; }
.dk-card img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; object-position: top; background: #fff; }
.dk-card { transform: translate(-50%, -50%) translateX(calc(var(--d) * 30px)) translateY(calc(var(--ad) * 10px)) rotate(calc(var(--d) * 5deg)) scale(calc(1 - var(--ad) * .06)); }
.dk-stage:hover .dk-card { transform: translate(-50%, -50%) translateX(calc(var(--d) * 52px)) translateY(calc(var(--ad) * 14px)) rotate(calc(var(--d) * 8deg)) scale(calc(1 - var(--ad) * .05)); }
.dk-stage:hover .dk-card:hover:not(.is-active) { transform: translate(-50%, -50%) translateX(calc(var(--d) * 52px)) translateY(calc(var(--ad) * 14px - 22px)) rotate(calc(var(--d) * 8deg)) scale(calc(1.02 - var(--ad) * .05)); }
@media (max-width: 991px) { .deck { grid-template-columns: 1fr; } .dk-card { width: min(560px, 82vw); } .dk-stage { height: clamp(300px, 62vw, 460px); } }
@media (max-width: 600px) {
  .dk-card { width: 84vw; transform: translate(-50%, -50%) translateX(calc(var(--d) * 14px)) translateY(calc(var(--ad) * 8px)) rotate(calc(var(--d) * 4deg)) scale(calc(1 - var(--ad) * .06)); }
  .dk-stage:hover .dk-card, .dk-stage:hover .dk-card:hover:not(.is-active) { transform: translate(-50%, -50%) translateX(calc(var(--d) * 18px)) translateY(calc(var(--ad) * 9px)) rotate(calc(var(--d) * 5deg)) scale(calc(1 - var(--ad) * .05)); }
  .dk-stage { height: 300px; }
}

/* Deck v3: laptop + tablet + phone mockups with thumbnail strip */
.dk-right { min-width: 0; }
.devices { position: relative; height: clamp(340px, 34vw, 470px); }
.dv-screen { position: absolute; overflow: hidden; background: #fff; }
.dv-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity .25s ease, transform .6s var(--ease); }
.dv-img.swap { opacity: 0; transform: scale(1.02); }
.dv-laptop { position: absolute; left: 4%; top: 0; width: 76%; aspect-ratio: 16 / 10.4; }
.dv-laptop::before { content: ""; position: absolute; inset: 0; border-radius: 16px 16px 4px 4px; background: #1c1b22; border: 2px solid rgba(113,9,212,.9); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px rgba(113,9,212,.25); }
.dv-laptop .dv-screen { inset: 4% 3% 6% 3%; border-radius: 4px; }
.dv-base { position: absolute; left: -7%; right: -7%; bottom: -5.5%; height: 6%; border-radius: 0 0 18px 18px; background: linear-gradient(#2a2832, #141318); border: 1px solid rgba(113,9,212,.6); }
.dv-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 40%; border-radius: 0 0 8px 8px; background: #0d0c10; }
.dv-tablet { position: absolute; right: 9%; bottom: 0; width: 25%; aspect-ratio: 3 / 4; border-radius: 18px; background: #1c1b22; border: 2px solid rgba(113,9,212,.9); box-shadow: 0 24px 60px rgba(0,0,0,.65); }
.dv-tablet .dv-screen { inset: 5% 5%; border-radius: 8px; }
.dv-phone { position: absolute; right: 0; bottom: 4%; width: 13%; aspect-ratio: 9 / 19; border-radius: 15% / 7.1%; background: #1c1b22; border: 2px solid rgba(113,9,212,.9); box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.dv-phone .dv-screen { inset: 4% 6%; border-radius: 11% / 5%; }
.dv-phone::before { content: ""; position: absolute; left: 38%; right: 38%; top: 2.2%; height: 1.6%; border-radius: 99px; background: #0d0c10; z-index: 2; }
/* thumbnail strip (re-uses the deck cards) */
.dk-strip { position: static; height: auto; display: flex; gap: 10px; margin-top: 46px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.dk-strip .dk-card, .dk-stage.dk-strip:hover .dk-card, .dk-stage.dk-strip:hover .dk-card:hover:not(.is-active) {
  position: relative; left: auto; top: auto; transform: none; flex: 0 0 auto; width: 120px; aspect-ratio: auto; border-radius: 10px; filter: brightness(.6); box-shadow: none; border-width: 2px; }
.dk-strip .dk-card .dk-bar { height: 12px; gap: 3px; padding: 0 5px; }
.dk-strip .dk-card .dk-bar i { width: 4px; height: 4px; }
.dk-strip .dk-card img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; background: none; }
.dk-strip .dk-name { display: none; }
.dk-strip .dk-card:hover { filter: brightness(.9); }
.dk-strip .dk-card.is-active { filter: none; border-color: var(--accent-text); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(113,9,212,.45); }
@media (max-width: 991px) { .devices { height: clamp(260px, 60vw, 440px); } }
@media (max-width: 600px) { .dk-strip .dk-card, .dk-stage.dk-strip:hover .dk-card { width: 92px; } .devices { height: 62vw; } }
@media (max-width: 991px) { .dk-right { order: -1; } .dk-strip { margin-top: 24px; } }
.dv-tablet { right: 16%; } .dv-laptop { left: 0; width: 74%; } .dv-phone { right: 0; }
.dv-tablet .dv-screen { background: #0f0e13; } .dv-tablet .dv-img { width: 100%; height: auto; object-fit: contain; } .dv-phone .dv-img { object-position: left top; }
.dv-tablet { width: 36%; aspect-ratio: 4 / 3.05; right: 15%; bottom: 2%; } .dv-tablet .dv-screen { inset: 6% 4.5%; } .dv-tablet .dv-img { height: 100%; object-fit: cover; object-position: top; }
/* real tablet/phone screenshots: show from the top, full width */
.dv-tablet .dv-img, .dv-phone .dv-img { object-fit: cover; object-position: top center; height: 100%; }
/* remove the scrolling thumbnail strip */
.dk-strip { display: none !important; }
@media (min-width: 992px) { .intro-split > div:last-child { align-self: start; margin-top: -8vw; position: relative; z-index: 2; } }
/* About: name, title & signature below the portrait */
.about-photo.sketch { overflow: visible; }
.sig-block { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); text-align: center; width: max-content; z-index: 2; }
.sig-block img { width: clamp(170px, 16vw, 240px); height: auto; margin: 0 auto 10px; opacity: .92; }
.sig-block strong { display: block; font-family: var(--ff-head); font-weight: 400; color: #fff; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.sig-block span { display: block; margin-top: 6px; color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 991px) { .sig-block { position: static; transform: none; margin: 10px auto 30px; } }
@media (max-width: 991px) { .about-photo.sketch { flex-direction: column; align-items: center; aspect-ratio: auto; height: auto; } .about-photo.sketch picture { width: 100%; } .sig-block { width: auto; } }
.about-photo.sketch .sig-block img { width: clamp(170px, 16vw, 240px); height: auto; object-fit: contain; }
.about-photo.sketch .sig-block img { width: clamp(90px, 8vw, 120px); } .sig-block { top: calc(100% - 390px); } @media (max-width: 991px) { .sig-block { margin-top: -120px; } }
.sig-block { top: calc(100% - 310px); } .about-photo.sketch .sig-block img { filter: brightness(.62); opacity: 1; }
.sig-block { top: calc(100% - 250px); }
.sig-block { top: calc(100% - 230px); }
.sig-block { top: calc(100% - 210px); }
.scout-fig { margin: 40px 0 0; max-width: 460px; } .scout-fig .sketch-flow { width: 100%; height: auto; }
.head-art { flex-wrap: nowrap; align-items: center; }
.head-art > div { flex: 1 1 55%; }
.head-fig { flex: 0 1 380px; margin: 0; max-width: 380px; }
.head-fig .sketch-flow { width: 100%; height: auto; }
@media (max-width: 767px) { .head-art { flex-wrap: wrap; } .head-fig { max-width: 300px; } }
.dv-img { transition: opacity .45s ease, transform .9s cubic-bezier(.2,.8,.2,1); } .dv-img.swap { opacity: 0; transform: scale(1.03); } .dk-info { animation-duration: .7s; }

/* Journey roadmap (home about) */
.roadmap { list-style: none; margin: 4px 0 6px; padding: 0 0 0 4px; position: relative; display: grid; gap: 18px; }
.roadmap::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent-text), var(--accent) 70%, rgba(164,99,255,.15)); }
.rm { position: relative; padding-left: 40px; }
.rm-dot { position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-text); }
.rm.done .rm-dot { background: var(--accent); }
.rm.now .rm-dot { background: var(--accent-text); box-shadow: 0 0 0 0 rgba(164,99,255,.7); animation: pulse 2s infinite; }
.rm.next .rm-dot { border-style: dashed; }
.rm-year { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-right: 10px; }
.rm strong { color: #fff; font-family: var(--ff-head); font-weight: 400; font-size: 20px; }
.rm p { margin: 4px 0 0; font-size: 14.5px; color: #a5a5a5; }
.rm.next strong { color: transparent; -webkit-text-stroke: 1px #fff; }
.journey { margin-top: clamp(40px, 6vw, 80px); padding-top: 36px; border-top: 1px solid var(--line); }
.roadmap-h { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 34px; padding: 0; }
.roadmap-h::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; background: linear-gradient(to right, var(--accent), var(--accent-text) 70%, rgba(164,99,255,.15)); }
.roadmap-h .rm { padding: 36px 0 0; }
.roadmap-h .rm-dot { left: 0; top: 0; }
.roadmap-h .rm-year { display: block; margin-bottom: 6px; }
@media (max-width: 991px) {
  .roadmap-h { grid-template-columns: 1fr; gap: 18px; padding-left: 4px; }
  .roadmap-h::before { left: 11px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(to bottom, var(--accent), var(--accent-text) 70%, rgba(164,99,255,.15)); }
  .roadmap-h .rm { padding: 0 0 0 40px; } .roadmap-h .rm-dot { left: 3px; top: 4px; } .roadmap-h .rm-year { display: inline-block; }
}
.page-hero .lead { max-width: 860px; }
.page-hero:has(+ .section .about-photo) { border-bottom: 0; } .about-photo.sketch { z-index: 1; }
.about-photo.sketch picture img { -webkit-mask-image: radial-gradient(ellipse 48% 52% at 50% 48%, #000 55%, rgba(0,0,0,.6) 72%, transparent 92%); mask-image: radial-gradient(ellipse 48% 52% at 50% 48%, #000 55%, rgba(0,0,0,.6) 72%, transparent 92%); }

.pricing { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1199px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .pricing { grid-template-columns: 1fr; } }
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pricing .plan .price[style] { font-size: 34px !important; line-height: 1.1; } @media (max-width: 1199px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 767px) { .pricing { grid-template-columns: 1fr; } }
.pricing .plan:nth-child(4) .price[style] { font-size: 60px !important; line-height: 1; } @media (max-width: 1300px) { .pricing .plan:nth-child(4) .price[style] { font-size: 52px !important; } }

/* AI page */
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-stat { background: var(--surface); border: 1px solid rgba(164,99,255,.3); border-radius: var(--radius); padding: 26px; }
.ai-stat strong { display: block; font-family: var(--ff-head); font-weight: 400; color: #fff; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.ai-stat span { display: block; margin-top: 10px; font-size: 14px; }
.ai-cat { border-top: 1px solid var(--line); padding: 34px 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: 30px; }
.ai-cat-head { display: flex; gap: 18px; align-items: flex-start; }
.ai-cat-head .ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(113,9,212,.18); color: var(--accent-text); display: grid; place-content: center; flex-shrink: 0; }
.ai-cat-head .ico svg { width: 26px; height: 26px; }
.ai-cat-head .num { font-family: var(--ff-head); color: var(--accent-text); font-size: 16px; }
.ai-cat-head h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 4px 0 0; }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .3s, transform .3s; }
.ai-card:hover { border-color: rgba(164,99,255,.5); transform: translateY(-3px); }
.ai-card h4 { font-size: 19px; margin-bottom: 8px; }
.ai-card p { margin: 0; font-size: 14.5px; }
.ai-fig { max-width: none; margin: 0; }
.ai-fig .sketch-flow { width: 100%; height: auto; }
.ai-quote { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 30px; align-items: center; }
.quote-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote-steps li { display: flex; gap: 12px; align-items: center; color: #e2e2e2; font-size: 15px; }
.quote-steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; font-size: 13px; flex-shrink: 0; }
@media (max-width: 991px) { .ai-stats { grid-template-columns: 1fr 1fr; } .ai-cat, .ai-quote { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ai-stats { grid-template-columns: 1fr; } }

/* AI page: infographic stat cards */
.info-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.info-stat { background: var(--surface); border: 1px solid rgba(164,99,255,.3); border-radius: var(--radius); padding: 24px; }
.is-top { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.is-ico { width: 58px; height: 58px; border-radius: 16px; background: rgba(113,9,212,.2); color: var(--accent-text); display: grid; place-content: center; flex-shrink: 0; }
.is-ico svg { width: 32px; height: 32px; }
.is-top strong { display: block; font-family: var(--ff-head); font-weight: 400; color: #fff; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; }
.is-lbl { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; }
.is-bars { display: grid; gap: 10px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.12); }
.is-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.is-row > span { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.is-row em { font-style: normal; color: #ddd; font-size: 12px; white-space: nowrap; }
.is-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.is-track i { display: block; height: 100%; border-radius: 8px; }
.is-track .before { background: #4a4552; }
.is-track .after { background: linear-gradient(90deg, var(--accent), var(--accent-text)); box-shadow: 0 0 10px rgba(164,99,255,.6); }
@media (max-width: 1199px) { .info-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .info-stats { grid-template-columns: 1fr; } }
/* Requirement wizard */
.tw-opts { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
.tw-opts button { border: 1px solid rgba(164,99,255,.5); background: rgba(113,9,212,.14); color: #e3d4ff; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; }
.tw-opts button:hover, .tw-opts button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.rq-doc { margin: 10px 0; background: #0b0a0e; border: 1px solid rgba(164,99,255,.35); border-radius: 12px; overflow: hidden; }
.rq-id { padding: 8px 12px; background: rgba(113,9,212,.25); color: #fff; font-size: 12.5px; }
.rq-doc table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rq-doc th, .rq-doc td { text-align: left; vertical-align: top; padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.07); }
.rq-doc th { color: var(--accent-text); width: 38%; font-weight: 700; }
.rq-doc td { color: #e6e6e6; overflow-wrap: anywhere; }
.rq-send { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.rq-send a, .rq-send button { border-radius: 999px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; text-decoration: none !important; border: 0; }
.rq-wa { background: #25D366; color: #fff !important; }
.rq-mail { background: var(--accent); color: #fff !important; }
.rq-dl { background: rgba(255,255,255,.1); color: #fff; }
.twin-chips .rq-chip { background: var(--accent); color: #fff; border-color: var(--accent); }
.rq-pop { position: absolute; right: 0; bottom: 130px; width: 270px; background: #fff; color: #1d1530; border-radius: 18px 18px 4px 18px; padding: 16px 16px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: bubbleIn .5s var(--ease); }
.rq-pop strong { display: block; font-family: var(--ff-head); font-weight: 400; font-size: 17px; margin-bottom: 6px; padding-right: 18px; }
.rq-pop span { display: block; font-size: 13px; line-height: 1.45; color: #4b4560; margin-bottom: 12px; }
.rq-go { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13px; }
.rq-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #efe8ff; color: #5a07aa; font-size: 11px; }
@media (max-width: 600px) { .rq-pop { bottom: 90px; width: 240px; } }

/* Requirement drafting window (30% wider than the chat panel) */
.rd { position: fixed; inset: 0; z-index: 300; }
.rd[hidden] { display: none !important; }
.rd-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.rd-panel { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(480px, calc(100vw - 24px)); max-height: min(760px, calc(100vh - 36px));
  display: flex; flex-direction: column; background: #111015; border: 1px solid rgba(164,99,255,.4); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 60px rgba(113,9,212,.3); animation: bubbleIn .35s var(--ease); }
.rd-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #7109d4, #3d0a7a); }
.rd-head strong { display: block; color: #fff; font-family: var(--ff-head); font-weight: 400; font-size: 19px; }
.rd-head small { color: rgba(255,255,255,.8); font-size: 12.5px; }
.rd-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.rd-steps { display: flex; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rd-steps li { flex: 1; text-align: center; padding: 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.rd-steps li.on { color: #fff; border-bottom-color: var(--accent-text); }
.rd-steps li.past { color: var(--accent-text); }
.rd-body { overflow-y: auto; padding: 18px; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-grid label:last-child { grid-column: 1 / -1; }
.rd label { display: block; color: #e6e6e6; font-size: 12.5px; font-weight: 700; }
.rd input, .rd textarea { width: 100%; margin-top: 6px; background: #0b0a0e; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; color: #fff; font: inherit; font-size: 14px; resize: vertical; }
.rd input:focus, .rd textarea:focus { outline: none; border-color: var(--accent-text); }
.rd-full { margin-top: 12px; }
.rd-err { color: #ff8fa3; font-size: 13px; margin: 10px 0 0; }
.rd-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.rd-actions.wrap { flex-wrap: wrap; justify-content: flex-start; }
.rd-btn { border: 1px solid rgba(164,99,255,.5); background: transparent; color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.rd-btn.primary { background: var(--accent); border-color: var(--accent); }
.rd-btn.primary:hover { background: var(--accent-hover); }
.rd-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.rd-btn.mail { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.rd-btn:disabled { opacity: .6; }
.rd-id { display: inline-block; background: rgba(113,9,212,.25); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.rd-hint { font-size: 13px; margin: 10px 0 6px; }
.rd-sec { margin-top: 12px; color: var(--accent-text) !important; }
.rd-ok { display: inline-block; background: rgba(37,211,102,.15); color: #4ade80; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.rd-final { margin-top: 10px; }
.rd-link { background: none; border: 0; color: var(--accent-text); text-decoration: underline; margin-top: 12px; font-size: 13px; }
body.rd-lock { overflow: hidden; }
@media (max-width: 600px) { .rd-panel { right: 12px; left: 12px; width: auto; bottom: 12px; } .rd-grid { grid-template-columns: 1fr; } }

/* App Development (services page): highlighted main features + custom quote */
.svc-features { list-style: none; margin: 4px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.svc-features li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .3s var(--ease); }
.svc-features li:hover { border-color: rgba(164, 99, 255, .5); }
.svc-features .ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-content: center; background: rgba(113, 9, 212, .18); color: var(--accent-text); }
.svc-features .ico svg { width: 19px; height: 19px; }
.svc-features strong { display: block; color: var(--text); font-size: 15px; line-height: 1.3; }
.svc-features div span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.svc-quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; max-width: 560px; margin: 0 0 22px; padding: 16px 20px; border: 1px solid rgba(164, 99, 255, .45); border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(113, 9, 212, .25), rgba(113, 9, 212, .05)); }
.svc-quote-k { color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.svc-quote b { font-family: var(--ff-head); font-weight: 400; font-size: 28px; line-height: 1; color: var(--text); }
.svc-quote-txt { flex: 1 1 220px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-width: 0; }
.svc-quote small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.svc-quote .btn { flex: none; }
@media (max-width: 600px) { .svc-features { grid-template-columns: 1fr; } }

/* Article pages: keep the content close to the title so the page never looks empty */
.article-hero { padding-bottom: clamp(30px, 3.2vw, 46px); }
.article-hero .lead { margin-bottom: 0; }
.article-section { padding-top: clamp(28px, 3.4vw, 48px); }
@media (min-width: 768px) {
  .article-hero .lead { max-width: min(860px, calc(100% - 150px)); }
  .article-hero .deco { width: clamp(64px, 6vw, 100px); }
}

/* Author photo (articles + footer): the hero portrait as a black-and-white avatar with a thin purple ring */
.author-box .av, .footer-person .av { box-shadow: 0 0 0 2px var(--accent); }
.author-box .av img, .footer-person .av img { object-position: center; }

/* "Read the article" cue under the article intro: tells readers the content continues below */
.read-cue { display: inline-flex; align-items: center; gap: 15px; margin-top: 24px; color: var(--accent-text); font-weight: 700; font-size: 19.5px; text-decoration: none; }
.read-cue-arrow { width: 47px; height: 47px; border-radius: 50%; border: 1px solid rgba(164, 99, 255, .55); display: grid; place-content: center; transition: background .3s var(--ease), border-color .3s var(--ease); }
.read-cue-arrow svg { width: 21px; height: 21px; animation: cue-bob 1.8s ease-in-out infinite; }
.read-cue:hover { color: #fff; }
.read-cue:hover .read-cue-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .read-cue-arrow svg { animation: none; } }
#article-start { scroll-margin-top: 110px; }

/* Post meta (category, date, read time, author): wrap whole items on small screens instead of squeezing them */
.article-hero .post-meta { flex-wrap: wrap; row-gap: 8px; }
.article-hero .post-meta > * { white-space: nowrap; }

/* Article pages on wide screens: a wider reading column and a slimmer sidebar (about 15% each way) */
@media (min-width: 992px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(24px, 3vw, 44px); }
  .article-card { padding: clamp(22px, 3vw, 36px); }
}

/* Article cover: a third shorter on tablets and desktops (2:1 instead of 4:3). The whole drawing stays visible,
   centred on the covers' own background colour so the extra space blends in */
@media (min-width: 768px) {
  .article-cover img { aspect-ratio: 2 / 1; height: auto; object-fit: contain; background: #0d0c10; }
}

/* Sidebar Services list (desktop): compact and scrollable with a slim, grey, slightly embossed scrollbar near the top.
   While more links are hidden below, the bottom edge fades (the scrollbar strip stays fully visible) */
@media (min-width: 992px) {
  .widget-scroll { max-height: 210px; overflow-y: auto; padding-right: 12px; margin-right: -12px; }
  @supports (-moz-appearance: none) { .widget-scroll { scrollbar-width: thin; scrollbar-color: #808088 rgba(255, 255, 255, .08); } }
  .widget-scroll::-webkit-scrollbar { width: 8px; }
  .widget-scroll::-webkit-scrollbar-track { margin: 6px 0 98px; background: rgba(255, 255, 255, .07); border-radius: 99px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .04); }
  .widget-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #a1a1a8, #75757c 55%, #5d5d64); border-radius: 99px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .4), inset -1px -1px 0 rgba(0, 0, 0, .45); }
  .widget-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #babac1, #8e8e95 55%, #74747b); }
  .widget-scroll:not(.at-end) {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent), linear-gradient(#000, #000);
    -webkit-mask-size: calc(100% - 12px) 100%, 12px 100%; -webkit-mask-position: left top, right top; -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 46px), transparent), linear-gradient(#000, #000);
    mask-size: calc(100% - 12px) 100%, 12px 100%; mask-position: left top, right top; mask-repeat: no-repeat;
  }
}
