/* ==========================================================================
   Judesk Tech — Global Design System v2
   Concept: dark, glowing, glassmorphic agency aesthetic. Ambient gradient
   orbs (compositor-only transforms), glass panels, staggered reveals.
   ========================================================================== */

:root {
  /* Color tokens */
  --bg: #0A0E1A;
  --bg-alt: #0D1220;
  --surface: rgba(255,255,255,0.045);
  --surface-solid: #10152A;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.22);
  --text: #E7E9F5;
  --muted: #8D95B3;
  --blue: #5B7CFF;
  --orange: #FAB82C;
  --yellow-light: #FFF3D6;
  --success: #2FE0A6;
  --white: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --gap: clamp(1rem, 2vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; position: relative; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tech { background: var(--bg-alt); background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 26px 26px; }
.section__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 0.7rem; }
.section__head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

.tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 0.6em;
}
.tag::before { content: ""; width: 16px; height: 1.5px; background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* ---- Ambient glow orbs — compositor-only (transform), decorative, aria-hidden ---- */
.glow-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.glow-orb--blue { width: 420px; height: 420px; background: var(--blue); top: -120px; left: -80px; animation: drift1 22s ease-in-out infinite; }
.glow-orb--orange { width: 360px; height: 360px; background: var(--orange); bottom: -100px; right: -60px; animation: drift2 26s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,50px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-35px,-40px); } }
@media (prefers-reduced-motion: reduce) { .glow-orb { animation: none; } }
@media (max-width: 640px) { .glow-orb { filter: blur(50px); opacity: 0.35; } }

/* ---- Glass surface ---- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Only the sticky header and the single CTA band keep a heavier blur —
   trimmed everywhere else (service cards, plates, hero chips) to cap
   simultaneous backdrop-filter compositing cost and protect scroll INP. */
.service-card, .plate, .hero__chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
@media (max-width: 640px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,14,26,0.94); }
}

/* ---- Light section — the single deliberate contrast break ---- */
.section--light {
  --white: #0F1729;
  --text: #2B3350;
  --muted: #6B5E42;
  --border: rgba(15,23,41,0.12);
  --border-strong: rgba(15,23,41,0.24);
  --surface: rgba(15,23,41,0.035);
  --surface-solid: #FFFFFF;
  --section-bg: #FAFAFA;
  background: var(--section-bg);
}
.section--light .tag { color: #8A5A00; }
.section--light .tag::before { background: #8A5A00; box-shadow: none; }
.why-us__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-us__art { width: 100%; height: auto; }
@media (max-width: 860px) { .why-us__grid { grid-template-columns: 1fr; } .why-us__art { max-width: 320px; margin-inline: auto; } }

/* ---- Featured project — browser-mockup image + structured case-study breakdown ---- */
.feature__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface-solid);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.feature__chrome { display: flex; gap: 0.4rem; padding: 0.9rem 1.1rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.feature__chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.feature__image { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.feature__image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature__overlay {
  position: absolute; inset: auto 0 0 0; padding: clamp(1.5rem, 4vw, 2.8rem);
  background: linear-gradient(to top, rgba(6,8,15,0.92), rgba(6,8,15,0.15) 70%, transparent);
}
.feature__eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; display: block; }
.feature__overlay h3 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.feature__breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.feature__block { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.feature__block-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--blue); display: block; margin-bottom: 0.7rem; }
.feature__block p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.feature__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.feature-project__tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.feature-project__tags span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.35rem 0.7rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); }
@media (max-width: 900px) { .feature__breakdown { grid-template-columns: 1fr; } .feature__image { aspect-ratio: 4 / 3; } }

/* ---- Gradient text ---- */
.grad-text {
  color: var(--orange);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.7em; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #1A0900; border-color: transparent; box-shadow: 0 8px 26px -8px rgba(250,184,44,0.5); }
.btn--primary:hover { box-shadow: 0 12px 34px -8px rgba(250,184,44,0.8); }
.btn--outline { background: rgba(255,255,255,0.03); color: var(--white); border-color: var(--border-strong); }
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.9rem; transition: padding-block 0.25s ease; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--white); font-size: 1.1rem; }
.brand__mark { width: 34px; height: 34px; display: block; transition: width 0.25s ease, height 0.25s ease; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__list { display: flex; align-items: center; gap: 1.9rem; }
.nav__link { color: #C9CDE0; font-size: 0.95rem; font-weight: 500; position: relative; transition: font-size 0.25s ease, color 0.2s ease; }
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); border-radius: 2px; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(0,0,0,0.4); }
.site-header.is-scrolled .site-header__bar { padding-block: 0.55rem; }
.site-header.is-scrolled .brand__mark { width: 28px; height: 28px; }
.site-header.is-scrolled .nav__link { font-size: 0.88rem; }
.nav__item { position: relative; }
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown { display: block; }
.nav__dropdown {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 0.7rem;
  background: #10152C; border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-width: 240px; padding: 0.4rem; box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.nav__dropdown::before {
  content: ""; position: absolute; top: -0.7rem; left: 0; right: 0; height: 0.7rem;
}
.nav__dropdown a { display: block; padding: 0.65rem 0.8rem; color: #C9CDE0; font-size: 0.9rem; border-radius: 6px; }
.nav__dropdown a:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: var(--white); }
.nav__dropdown a.is-active { color: var(--white); background: rgba(250,184,44,0.08); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 860px) { .header-actions { display: none; } }
.icon-link { color: var(--white); display: inline-flex; padding: 0.3rem; opacity: 0.85; }

/* ---- Vertical social sidebar — fixed, narrow, site-wide ---- */
.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--border); border-right: none;
  border-radius: 12px 0 0 12px; overflow: hidden;
  box-shadow: -10px 0 28px rgba(0,0,0,0.35);
}
.social-rail a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease;
}
.social-rail a:last-child { border-bottom: none; }
.social-rail a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.social-rail svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .social-rail { display: none; } }
.icon-link:hover { opacity: 1; }
.icon-link svg { width: 20px; height: 20px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--white); }

@media (max-width: 860px) {
  .nav {
    display: flex; position: fixed; top: var(--header-h, 64px); right: 0; left: 0;
    height: calc(100vh - var(--header-h, 64px)); height: calc(100dvh - var(--header-h, 64px));
    background: var(--bg); flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem;
    overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
    pointer-events: none;
  }
  .nav::-webkit-scrollbar { width: 6px; }
  .nav::-webkit-scrollbar-track { background: transparent; }
  .nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }
  @media (prefers-reduced-motion: reduce) { .nav { transition: opacity 0.15s ease, visibility 0s linear 0.15s; transform: none; } .nav.is-open { transition: opacity 0.15s ease; } }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav__item { width: 100%; border-bottom: 1px solid var(--border); }
  .nav__item--dropdown { display: flex; flex-wrap: wrap; align-items: center; position: relative; }
  .nav__item--dropdown .nav__link { flex: 1; }
  .nav__link { display: block; padding: 0.9rem 0; }
  .nav__dropdown-toggle { all: unset; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--muted); cursor: pointer; }
  .nav__dropdown-toggle svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
  .nav__item--dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }
  .nav__dropdown {
    width: 100%; position: static; box-shadow: none; border: none; margin: 0 0 0.5rem 0.5rem; background: transparent;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav__item--dropdown.is-open .nav__dropdown { max-height: 260px; opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .nav__dropdown { transition: none; } }
  .nav-toggle { display: inline-flex; }
  .nav__mobile-cta { display: flex; justify-content: center; width: 100%; margin-top: 1.5rem; }
  .nav__mobile-login { display: block; }
}
@media (min-width: 861px) {
  .nav__mobile-cta, .nav__mobile-login, .nav__dropdown-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem); overflow: clip;
  background: radial-gradient(110% 120% at 18% 30%, rgba(91,124,255,0.30), transparent 58%),
              radial-gradient(110% 120% at 82% 70%, rgba(250,184,44,0.30), transparent 58%),
              var(--bg);
}
.hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.reveal-line { overflow: hidden; display: block; }
.reveal-line span { display: block; transform: translateY(110%); transition: transform 0.8s cubic-bezier(.16,.84,.44,1); }
.js-ready .hero.is-visible .reveal-line span { transform: translateY(0); }
.hero.is-visible .reveal-line:nth-child(1) span { transition-delay: 0.05s; }
.hero.is-visible .reveal-line:nth-child(2) span { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) { .reveal-line span { transform: none; transition: none; } }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); max-width: 16ch; }
.hero__lede { margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }

.hero__visual { position: relative; height: clamp(340px, 40vw, 460px); }
.hero__chip {
  position: absolute; padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.7rem;
  min-width: 200px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  animation: floaty 7s ease-in-out infinite;
}
.hero__chip svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
.hero__chip span { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.hero__chip--1 { top: 4%; left: 4%; animation-delay: 0s; border-radius: 26px 26px 26px 6px; }
.hero__chip--2 { top: 34%; right: 0%; animation-delay: 1.4s; border-radius: 26px 6px 26px 26px; }
.hero__chip--3 { bottom: 18%; left: 10%; animation-delay: 2.6s; border-radius: 6px 26px 26px 26px; }
.hero__chip--4 { bottom: 0%; right: 12%; animation-delay: 0.8s; border-radius: 26px 26px 6px 26px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero__chip { animation: none; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { height: 300px; margin-top: 1rem; } }
@media (max-width: 520px) { .hero__chip { min-width: 160px; padding: 0.7rem 0.9rem; } .hero__chip span { font-size: 0.82rem; } }

/* ==========================================================================
   Marquee trust strip — pure CSS loop, real text duplicated for seamless scroll
   ========================================================================== */
.marquee { position: relative; overflow-x: hidden; margin-top: clamp(2rem, 5vw, 3.5rem); background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,0.10); border-bottom: 1px solid rgba(255,255,255,0.10); }
.marquee__track { display: flex; width: max-content; animation: scrollx 28s linear infinite; }
.marquee__set { display: flex; gap: 3.5rem; padding-block: 1.1rem; padding-right: 3.5rem; }
.marquee__set span { font-family: var(--font-mono); font-size: 0.88rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; }
.marquee__set span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   Services — glass tilt cards
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-card {
  padding: clamp(1.7rem, 3vw, 2.3rem); display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  transform: perspective(800px) rotateX(0) rotateY(0);
}
.service-card:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.07); }
.service-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-card__icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0; background: rgba(91,124,255,0.14); border: 1px solid var(--border); }
.service-card__icon svg { width: 24px; height: 24px; color: var(--white); }
.service-card__index { font-family: var(--font-mono); font-size: 1.4rem; color: var(--border-strong); font-weight: 700; }
.service-card h3 { font-size: 1.3rem; }
.service-card h3 a { color: var(--white); }
.service-card h3 a:hover { color: var(--orange); text-decoration: none; }
.service-card p { color: var(--muted); font-size: 0.98rem; }
.service-card__link { margin-top: auto; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--orange); }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Spec list — why us
   ========================================================================== */
.spec-list { border-top: 1px solid var(--border); }
.spec-row { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--border); align-items: baseline; }
.spec-row__label { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.spec-row__value { color: var(--text); font-size: 1.03rem; }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ==========================================================================
   Process — glowing progress line
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.process::before { content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 2px; background: var(--border); }
.process::after {
  content: ""; position: absolute; top: 17px; left: 0; height: 2px; background: var(--orange);
  width: 0%; transition: width 1.4s cubic-bezier(.16,.84,.44,1); box-shadow: 0 0 12px var(--orange);
}
.process.is-visible::after { width: 100%; }
@media (prefers-reduced-motion: reduce) { .process::after { transition: none; } }
.process-step { position: relative; }
.process-step__tick {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--white);
  position: relative; z-index: 1; margin-bottom: 1.2rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; color: var(--white); }
.process-step p { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 820px) { .process { grid-template-columns: 1fr; gap: 1.75rem; } .process::before, .process::after { display: none; } }

/* ==========================================================================
   Portfolio — glass plates
   ========================================================================== */
.plate-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.plate { overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
.plate:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plate__frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: rgba(91,124,255,0.08);
}
.plate__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: rgba(10,14,26,0.72); color: #fff; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
}
.plate__caption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.15rem; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.plate__caption strong { color: var(--white); font-family: var(--font-sans); font-size: 0.92rem; display: block; margin-bottom: 0.15rem; }
@media (max-width: 900px) { .plate-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plate-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials — honest empty state, glass style
   ========================================================================== */
/* ==========================================================================
   Client feedback — featured spotlight + two supporting quotes.
   One restrained accent color throughout, no cycling "funky" colors,
   generous whitespace — reads as considered rather than decorative.
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: stretch; }
.testi-featured {
  padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-solid); display: flex; flex-direction: column; gap: 1.5rem; position: relative;
}
.testi-featured__mark { font-family: Georgia, serif; font-size: 3.5rem; line-height: 1; color: var(--orange); opacity: 0.5; }
.testi-featured__quote { font-family: Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--white); font-weight: 400; }
.testi-featured__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.testi-featured__who strong { display: block; color: var(--white); font-size: 1rem; }
.testi-featured__who span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 0.2rem; }
.testi-featured__rating { display: flex; gap: 0.2rem; color: var(--orange); flex-shrink: 0; }
.testi-featured__rating svg { width: 15px; height: 15px; }

.testi-side { display: flex; flex-direction: column; gap: 1.25rem; }
.testi-card {
  padding: 1.5rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-solid); flex: 1; display: flex; flex-direction: column; gap: 1rem;
}
.testi-card__quote { color: var(--text); font-size: 0.96rem; line-height: 1.6; flex-grow: 1; }
.testi-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.testi-card__foot strong { color: var(--white); font-family: var(--font-sans); font-size: 0.9rem; display: block; }
.testi-card__rating { display: flex; gap: 0.15rem; color: var(--orange); flex-shrink: 0; }
.testi-card__rating svg { width: 12px; height: 12px; }

@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ — master-detail layout instead of a stacked accordion
   ========================================================================== */
.faq-master { display: grid; grid-template-columns: 0.95fr 1.3fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.faq-master__list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-master__item {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 0.75rem; border-bottom: 1px solid var(--border); position: relative;
  color: var(--muted); transition: color 0.2s ease, padding-left 0.2s ease;
}
.faq-master__item:hover { color: var(--white); padding-left: 0.4rem; }
.faq-master__item::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--orange);
  transform: scaleY(0); transform-origin: center; transition: transform 0.25s ease;
}
.faq-master__item.is-active { color: var(--white); padding-left: 0.4rem; }
.faq-master__item.is-active::before { transform: scaleY(1); }
.faq-master__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--border-strong); flex-shrink: 0; width: 26px; }
.faq-master__item.is-active .faq-master__num { color: var(--orange); }
.faq-master__item span:last-child { font-size: 1.02rem; font-weight: 500; }

.faq-master__panel {
  position: sticky; top: 90px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); min-height: 220px; overflow: hidden;
}
.faq-master__panel::before {
  content: "?"; position: absolute; top: -0.4em; right: 0.3em; font-family: Georgia, serif; font-size: 9rem;
  color: var(--orange); opacity: 0.06; line-height: 1; pointer-events: none;
}
.faq-master__answer { display: none; position: relative; z-index: 1; }
.faq-master__answer.is-active { display: block; animation: faqFade 0.35s ease; }
.faq-master__answer h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.9rem; }
.faq-master__answer p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 56ch; }
@keyframes faqFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-master__answer.is-active { animation: none; } }

@media (max-width: 780px) {
  .faq-master { grid-template-columns: 1fr; }
  .faq-master__item::before { display: none; }
  .faq-master__item.is-active { background: rgba(255,255,255,0.04); }
  .faq-master__panel { position: static; order: -1; margin-bottom: 1.25rem; }
}

/* ==========================================================================
   Recent work — browser-mockup cards with a colored shape peeking behind
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.work-card__blob {
  position: absolute; z-index: 0; top: -12%; left: -12%; width: 65%; height: 65%;
  border-radius: 48% 24% 48% 24% / 32% 48% 32% 48%; opacity: 0.9;
}
.work-card:nth-child(odd) .work-card__blob { background: var(--blue); }
.work-card:nth-child(even) .work-card__blob { background: var(--orange); }
.work-card__chrome { position: relative; z-index: 1; display: flex; gap: 0.4rem; padding: 0.7rem 1rem; }
.work-card__chrome span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.work-card__frame {
  position: relative; z-index: 1; margin: 0 0.9rem; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-alt); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.55);
}
.work-card__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card--empty .work-card__frame {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  background: rgba(255,255,255,0.02); border: 1px dashed var(--border-strong);
  color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem;
}
.work-card__caption { position: relative; z-index: 1; padding: 0.9rem 1.1rem 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.work-card__caption strong { display: block; color: var(--white); font-family: var(--font-sans); font-size: 0.95rem; margin-bottom: 0.15rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid; grid-template-columns: 60px 1fr 54px; align-items: center; gap: 1.5rem;
  padding: 1.9rem 1rem; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  transition: padding-left 0.3s ease;
}
.service-row::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(250,184,44,0.10);
  opacity: 0; transition: opacity 0.3s ease; z-index: 0;
}
.service-row:hover, .service-row:focus-visible { padding-left: 1.6rem; text-decoration: none; }
.service-row:hover::before, .service-row:focus-visible::before { opacity: 1; }
.service-row__num { font-family: var(--font-mono); font-size: 1.05rem; color: var(--border-strong); font-weight: 700; position: relative; z-index: 1; }
.service-row__main { position: relative; z-index: 1; min-width: 0; }
.service-row__main h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.service-row__desc {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  color: var(--muted); font-size: 0.98rem; max-width: 56ch;
}
.service-row:hover .service-row__desc, .service-row:focus-visible .service-row__desc { max-height: 90px; opacity: 1; margin-top: 0.6rem; }
.service-row__icon {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; position: relative; z-index: 1;
  transform: scale(0.82); opacity: 0.55; flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-row__icon svg { width: 24px; height: 24px; color: var(--white); }
.service-row:hover .service-row__icon, .service-row:focus-visible .service-row__icon {
  transform: scale(1); opacity: 1; background: var(--orange); border-color: transparent;
}
@media (hover: none) {
  .service-row__desc { max-height: none; opacity: 1; margin-top: 0.6rem; }
  .service-row__icon { transform: scale(1); opacity: 1; }
}
@media (max-width: 640px) {
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row__icon { display: none; }
}

/* ==========================================================================
   Why-us — icon cards instead of plain label/value rows
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.why-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 22px 22px 22px 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.why-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 16px 32px -20px rgba(15,23,41,0.25); }
.why-card__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(91,124,255,0.12); border: 1px solid var(--border); }
.why-card__icon svg { width: 20px; height: 20px; color: var(--white); }
.why-card h3 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: #8A5A00; font-weight: 600; }
.why-card p { font-size: 0.94rem; color: var(--text); line-height: 1.55; }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Portfolio — bento layout with hover reveal
   ========================================================================== */
.plate-strip { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "a b" "a c"; gap: var(--gap); }
.plate-strip .plate:nth-child(1) { grid-area: a; display: flex; flex-direction: column; }
.plate-strip .plate:nth-child(1) .plate__frame { flex: 1; aspect-ratio: auto; min-height: 260px; }
.plate-strip .plate:nth-child(2) { grid-area: b; }
.plate-strip .plate:nth-child(3) { grid-area: c; }
.plate__frame img { transition: transform 0.5s ease; }
.plate:hover .plate__frame img { transform: scale(1.06); }
.plate__view {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10,14,26,0.78); border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center; opacity: 0; transform: scale(0.7) rotate(-16deg); z-index: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.plate:hover .plate__view, .plate:focus-within .plate__view { opacity: 1; transform: scale(1) rotate(0); }
.plate__view svg { width: 16px; height: 16px; color: #fff; }
.plate__caption { align-items: center; }
.plate__caption strong { font-size: 1rem; }
@media (max-width: 860px) {
  .plate-strip { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
  .plate-strip .plate:nth-child(1) .plate__frame { min-height: 220px; }
}

/* ==========================================================================
   Final CTA — full-bleed gradient billboard
   ========================================================================== */
.section--cta { position: relative; overflow: clip; border-bottom: 1px solid var(--border);
  background: radial-gradient(110% 120% at 18% 55%, rgba(91,124,255,0.30), transparent 58%),
              radial-gradient(110% 120% at 82% 60%, rgba(250,184,44,0.30), transparent 58%),
              var(--bg-alt);
}
.cta-band { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.7rem; }
.cta-band h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); max-width: 18ch; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); color: var(--muted); padding-block: clamp(2.5rem, 5vw, 4rem) 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.92rem; max-width: 32ch; }
.footer-col__title { color: var(--white); font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 1rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; display: block; padding-block: 0.35rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.82rem; font-family: var(--font-mono); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; text-align: center; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-col a { text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Line divider — thin hairline with one smooth raised plateau, matching ref
   ========================================================================== */
.line-divider { position: absolute; left: 0; width: 100%; height: 40px; line-height: 0; z-index: 2; pointer-events: none; }
.line-divider--top { top: -1px; }
.line-divider--bottom { bottom: -1px; }
.line-divider svg { width: 100%; height: 100%; display: block; }
.fill-bg { fill: var(--bg); }
.fill-bg-alt { fill: var(--bg-alt); }
.fill-yellow { fill: var(--yellow-light); }
.fill-blue { fill: var(--blue); }
.fill-section-bg { fill: #FAFAFA; }

/* Corner stamp badge — anchored to a section corner, not sitting on the divider */
.corner-stamp {
  position: absolute; top: -22px; right: clamp(1rem, 5vw, 4rem);
  z-index: 3; width: 108px; height: 108px; border-radius: 50%;
  background: var(--orange); color: #1A0900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  text-align: center; transform: rotate(-8deg);
  box-shadow: 0 18px 36px -14px rgba(250,184,44,0.6), 0 0 0 5px var(--yellow-light);
  transition: transform 0.3s ease;
}
.corner-stamp:hover { transform: rotate(0deg) scale(1.04); }
.corner-stamp svg { width: 22px; height: 22px; }
.corner-stamp span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.25; max-width: 74px; }
@media (max-width: 700px) { .corner-stamp { width: 84px; height: 84px; top: -16px; right: 1rem; } .corner-stamp svg { width: 18px; height: 18px; } .corner-stamp span { font-size: 0.52rem; max-width: 56px; } }
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
.js-ready .stagger.is-visible > * { animation: none; }
.js-ready .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.js-ready .stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.js-ready .stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.js-ready .stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.js-ready .stagger.is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal, .js-ready .stagger > * { opacity: 1; transform: none; transition: none; }
}
