/* ==========================================================================
   GentleITSol — Homepage
   Light editorial × product aesthetic. Signal red accent.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --bg-band: #F8F9FB;
  --surface: #FFFFFF;
  --surface-deep: #F3F4F7;
  --surface-card: #FFFFFF;
  --ink: #101016;
  --ink-bright: #0A0A10;
  --ink-soft: #3F3F4A;
  --muted: #5C5C68;
  --muted-2: #6E6E7A;
  --muted-3: #9A9AA4;
  --nav-link: #4A4A56;
  --red: #F5001E;
  --red-hover: #D40019;
  --line: rgba(16, 16, 26, 0.08);
  --line-soft: rgba(16, 16, 26, 0.06);
  --line-strong: rgba(16, 16, 26, 0.14);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product mockups stay dark on the light page — deliberate contrast device.
   Re-scoping the tokens here keeps every var() inside them legible. */
.mock-window,
.mock-phone,
.svc-code,
.sp-terminal,
.sp-phone {
  --surface: #101014;
  --surface-deep: #0C0C10;
  --ink: #F4F4F6;
  --ink-bright: #F6F6F8;
  --ink-soft: #DADAE0;
  --muted: #9C9CA6;
  --muted-2: #8C8C96;
  --muted-3: #6C6C76;
  --nav-link: #B7B7C0;
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

img, svg { display: block; }

@supports (scrollbar-color: auto) {
  html { scrollbar-color: #C9C9D2 var(--bg); }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  transform: translateY(-64px);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible { transform: translateY(0); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- shared layout ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

section[id], header[id] { scroll-margin-top: 90px; }

/* ---- keyframes ---- */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes floaty {
  0%, 100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(-16px); }
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  padding: 17px 30px;
  box-shadow: 0 12px 40px rgba(245, 0, 30, 0.28);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(245, 0, 30, 0.38);
}

.btn:active,
.nav-cta:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  color: var(--ink);
  font-size: 1.05rem;
  padding: 17px 26px;
  border: 1px solid rgba(16, 16, 26, 0.18);
}

.btn-ghost:hover {
  border-color: rgba(16, 16, 26, 0.42);
  background: rgba(16, 16, 26, 0.04);
}

.btn-ghost .arrow { color: var(--red); }

/* ---- section headers ---- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.eyebrow .index { color: rgba(245, 0, 30, 0.5); }

.eyebrow .tick {
  width: 22px;
  height: 1px;
  background: rgba(245, 0, 30, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.section-lede {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(16, 16, 26, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo { height: 30px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-link);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: color 0.2s ease, background-size 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background-size: 100% 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(245, 0, 30, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(245, 0, 30, 0.42);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 16, 26, 0.08);
    padding: 8px 0 12px;
  }

  .nav.is-open .nav-links { display: flex; }

  .nav-links a {
    padding: 14px 24px;
    font-size: 1.05rem;
    background: none;
  }
}

/* ==========================================================================
   Hero — editorial headline × live product mock
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56% 62% at 86% 20%, rgba(245, 0, 30, 0.08), transparent 60%),
    #FBFBFD;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(440px circle at 82% 26%, rgba(245, 0, 30, 0.1), transparent 70%);
  transition: background 0.12s ease;
  pointer-events: none;
}

.hero-rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(16, 16, 26, 0.05) 1px, transparent 1px);
  background-size: 100% 92px;
  pointer-events: none;
  /* Fade out before the marquee so a gridline never doubles up with its border-top. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 220px), transparent calc(100% - 90px));
  mask-image: linear-gradient(#000 calc(100% - 220px), transparent calc(100% - 90px));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 40px 0;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 0 0 48%; max-width: 600px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-kicker .rule { height: 1px; width: 56px; background: var(--red); }

.hero-kicker .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-title span { display: block; color: var(--ink-bright); }

.hero-title .shimmer {
  background: linear-gradient(100deg, #0A0A10 30%, #F5001E 50%, #0A0A10 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.hero-sub {
  margin-top: 30px;
  max-width: 440px;
  font-size: 1.16rem;
  line-height: 1.6;
  color: #5C5C68;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-rating .stars {
  color: var(--red);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.hero-rating .note { font-size: 0.92rem; color: var(--muted-2); }

/* -- product mock -- */

.hero-mock-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  min-width: 0;
  padding: 20px 0 70px;
}

.mock-stage {
  position: relative;
  width: min(520px, 100%);
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
}

.mock-window {
  background: #111116;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(16, 16, 26, 0.32);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #0D0D11;
}

.mock-titlebar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a42;
}

.mock-titlebar .dot.red { background: var(--red); }

.mock-titlebar .url {
  margin-left: 12px;
  font-size: 0.78rem;
  color: #7C7C86;
}

.mock-body { display: flex; }

.mock-sidebar {
  width: 120px;
  background: var(--surface-deep);
  border-right: 1px solid var(--line-soft);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-sidebar .row {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-sidebar .row.active { background: rgba(245, 0, 30, 0.55); }

.mock-main { flex: 1; padding: 22px; }

.mock-kpis { display: flex; gap: 12px; margin-bottom: 20px; }

.mock-kpi {
  flex: 1;
  background: #16161C;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 14px;
}

.mock-kpi .label {
  font-size: 0.68rem;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.mock-kpi .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.mock-kpi .delta {
  font-size: 0.66rem;
  color: var(--red);
  margin-top: 3px;
}

.mock-chart {
  background: #16161C;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 16px;
}

.mock-chart .label {
  font-size: 0.68rem;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.mock-chart svg { width: 100%; }

.mock-chart .spark {
  animation: dashDraw 1.8s 0.6s ease forwards;
}

.mock-bars {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 46px;
  margin-top: 14px;
}

.mock-bars .bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transform-origin: bottom;
  animation: barGrow 0.6s both;
}

.mock-bars .bar:nth-child(1) { height: 60%; animation-delay: 0.7s; }
.mock-bars .bar:nth-child(2) { height: 85%; animation-delay: 0.8s; }
.mock-bars .bar:nth-child(3) { height: 45%; animation-delay: 0.9s; }
.mock-bars .bar:nth-child(4) { height: 95%; animation-delay: 1s; background: var(--red); }
.mock-bars .bar:nth-child(5) { height: 70%; animation-delay: 1.1s; }
.mock-bars .bar:nth-child(6) { height: 55%; animation-delay: 1.2s; }

/* -- floating phone -- */

.mock-phone {
  position: absolute;
  right: -32px;
  bottom: -48px;
  width: 150px;
  height: 308px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(16, 16, 26, 0.32);
  transform: translateZ(60px);
  animation: floaty 5s ease-in-out infinite;
}

.mock-phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #141419, var(--surface-deep));
  display: flex;
  flex-direction: column;
}

.mock-phone-notch {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-phone-notch span {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.mock-phone-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mock-phone-body .logo {
  height: 22px;
  width: auto;
  align-self: flex-start;
  color: var(--red);
}

.mock-phone-body .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.mock-phone-body .line.w80 { width: 80%; }
.mock-phone-body .line.w60 { width: 60%; }

.mock-phone-card {
  margin-top: 6px;
  background: rgba(245, 0, 30, 0.14);
  border: 1px solid rgba(245, 0, 30, 0.4);
  border-radius: 12px;
  padding: 12px;
}

.mock-phone-card .accent {
  height: 8px;
  width: 50%;
  border-radius: 4px;
  background: rgba(245, 0, 30, 0.7);
  margin-bottom: 8px;
}

.mock-phone-card .line { height: 7px; width: 80%; }

.mock-phone-btn {
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-phone-btn span {
  height: 7px;
  width: 44%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 980px) {
  .hero-split { flex-direction: column; }
  .hero-copy { flex: 1 1 auto; max-width: none; }
  .hero-mock-wrap { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-cta { padding: 10px 14px; font-size: 0.86rem; }
  .hero-inner { padding: 120px 20px 0; }
  .hero-sub { max-width: 100%; }
  .mock-phone { right: -6px; width: 128px; height: 262px; }
  .svc-card { padding: 26px; }
  .svc-featured-inner { padding: 28px 24px; }
}

/* -- marquee -- */

.marquee {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border-top: 1px solid rgba(16, 16, 26, 0.08);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 72s linear infinite;
}

.marquee-set { display: flex; }

.marquee-set .item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #A6A6B0;
  padding: 0 34px;
}

.marquee-set .dot { color: var(--red); align-self: center; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 90% at 85% 0%, rgba(245, 0, 30, 0.07), transparent 60%),
    #FBFBFD;
  padding: 170px 0 70px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 16, 26, 0.05) 1px, transparent 1px);
  background-size: 100% 92px;
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-bright);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 22px;
  max-width: 560px;
  font-size: 1.14rem;
  line-height: 1.6;
  color: #5C5C68;
}

/* ==========================================================================
   Service detail rows (services.php)
   ========================================================================== */

.svc-detail-list { display: flex; flex-direction: column; gap: 20px; }

.svc-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  scroll-margin-top: 100px;
}

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

.svc-detail .svc-icon { margin-bottom: 20px; }

.svc-detail h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.svc-detail h2 .svc-num-inline {
  color: rgba(16, 16, 26, 0.2);
  font-size: 0.95rem;
  margin-left: 8px;
}

.svc-detail > div > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 520px;
}

.svc-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.svc-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.svc-points .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 0, 30, 0.14);
  color: var(--red);
  margin-top: 1px;
}

.svc-detail .svc-tags { margin-top: 22px; }

/* ==========================================================================
   Portfolio grid (portfolio.php)
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-grid .case-figure { height: 210px; }

/* ==========================================================================
   About (about.php)
   ========================================================================== */

.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.mission-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(16, 16, 26, 0.14);
}

.mission-media img { width: 100%; height: auto; }

.mission-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.mission-copy p + p { margin-top: 16px; }

/* ==========================================================================
   Contact (contact.php)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

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

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
}

.contact-channel {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.contact-channel:hover {
  border-color: rgba(245, 0, 30, 0.5);
  transform: translateY(-2px);
}

.contact-channel .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 0, 30, 0.12);
  color: var(--red);
}

.contact-channel .label {
  font-size: 0.82rem;
  color: var(--muted-2);
}

.contact-channel .value {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  margin-top: 2px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface-deep);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-3); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(245, 0, 30, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 0, 30, 0.15);
}

.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted-2);
}

.form-alert {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

.form-alert.success {
  background: rgba(46, 160, 67, 0.1);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #1B7F3D;
}

.form-alert.error {
  background: rgba(245, 0, 30, 0.07);
  border: 1px solid rgba(245, 0, 30, 0.4);
  color: #C00016;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ==========================================================================
   Legal pages (privacy.php / terms.php)
   ========================================================================== */

.legal { max-width: 760px; }

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal ul { padding-left: 22px; margin-top: 10px; }

.legal .updated {
  font-size: 0.88rem;
  color: var(--muted-3);
  margin-bottom: 8px;
}

/* generic content section */

.page-section { padding: 90px 0; }
.page-section.tint {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================================================
   Client logos
   ========================================================================== */

.clients {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-band);
}

.clients .container { padding-top: 44px; padding-bottom: 44px; }

.clients-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 26px;
}

.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 40px) clamp(30px, 4.5vw, 64px);
  flex-wrap: wrap;
}

/* Each logo sits in a fixed optical box so wildly different source
   proportions read at a consistent visual weight. */
.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.client-logo img {
  max-height: 100%;
  max-width: 138px;
  width: auto;
  object-fit: contain;
  /* Flatten every brand mark to a single ink silhouette; full color on hover. */
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), filter 0.3s ease;
}

.client-logo:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .client-logo { height: 26px; }
}

/* ==========================================================================
   Services — bento grid
   ========================================================================== */

.services { padding: 120px 0; }

.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.services-head > div { max-width: 640px; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-featured { grid-column: span 2; }
  .svc-wide { grid-column: span 3; }
}

.svc-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 0, 30, 0.55);
}

.svc-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(245, 0, 30, 0.16),
    transparent 60%
  );
}

.svc-card:hover .svc-glow { opacity: 1; }

.svc-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(16, 16, 26, 0.2);
  letter-spacing: 0.06em;
}

.svc-content { position: relative; }

.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 0, 30, 0.12);
  color: var(--red);
  margin-bottom: 22px;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.svc-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.svc-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
  transform: translateX(-6px);
}

.svc-card:hover .svc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* featured card */

.svc-featured { padding: 0; }

.svc-featured-inner {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 38px;
  flex-wrap: wrap;
}

.svc-featured-copy { flex: 1; min-width: 240px; }

.svc-featured .svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(245, 0, 30, 0.14);
}

.svc-featured h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 12px; }

.svc-featured-copy > p {
  font-size: 1.02rem;
  max-width: 420px;
}

.svc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.svc-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nav-link);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
}

.svc-featured .svc-arrow { margin-top: 24px; font-size: 0.95rem; }

.svc-code-wrap {
  flex: 0 0 220px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-code {
  width: 100%;
  background: var(--surface-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(16, 16, 26, 0.28);
}

.svc-code-dots { display: flex; gap: 6px; margin-bottom: 14px; }

.svc-code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.svc-code-dots span:first-child { background: var(--red); }

.svc-code pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--muted-3);
  white-space: pre;
}

.svc-code .kw { color: var(--red); }
.svc-code .op { color: #7C7C86; }
.svc-code .fn { color: var(--nav-link); }
.svc-code .str { color: #8fae8f; }

/* wide support card */

.svc-wide-inner {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.svc-wide-copy {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1;
  min-width: 260px;
}

.svc-wide-copy .svc-icon { flex-shrink: 0; margin-bottom: 0; }

.svc-wide h3 { margin-bottom: 6px; }

.svc-wide h3 .svc-num-inline {
  color: rgba(16, 16, 26, 0.2);
  font-size: 0.9rem;
  margin-left: 6px;
}

.svc-wide p { max-width: 520px; }

.svc-wide-stats { display: flex; gap: 32px; flex-shrink: 0; }

.svc-wide-stats .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
}

.svc-wide-stats .label {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-top: 2px;
}

/* ==========================================================================
   Why us
   ========================================================================== */

.why {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: start;
}

.why-intro { position: sticky; top: 100px; }

.why-intro .section-lede { max-width: 440px; line-height: 1.62; }

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.why-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 0, 30, 0.12);
  color: var(--red);
  margin-bottom: 18px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.why-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* stats band */

.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(16, 16, 26, 0.08);
  padding-top: 52px;
}

.stat { text-align: center; }

.stat .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--red);
}

.stat .label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process { padding: 120px 0; }

.process-head { max-width: 640px; margin-bottom: 60px; }

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

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

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

.proc-track {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}

.proc-progress {
  position: absolute;
  top: 7px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  box-shadow: 0 0 12px rgba(245, 0, 30, 0.7);
  transition: width 1.6s var(--ease-out);
}

/* Without JS the line never animates — show it fully drawn. */
html:not(.js) .proc-progress { width: 100%; }

.proc-step { position: relative; padding-top: 36px; }

.proc-step .node {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(16, 16, 26, 0.22);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.proc-step.is-active .node {
  background: var(--red);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(245, 0, 30, 0.15);
}

.proc-step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(16, 16, 26, 0.08);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.proc-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.proc-step p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Work / case studies
   ========================================================================== */

.work {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.work-head > div { max-width: 640px; }

.work-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 0, 30, 0.6);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.work-link:hover { border-color: var(--red); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-auto-rows: 1fr;
  }
  .case-featured { grid-row: span 2; }
}

.case-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.case-card:hover { border-color: rgba(245, 0, 30, 0.5); }

.case-figure {
  position: relative;
  overflow: hidden;
  height: 170px;
}

.case-featured .case-figure { flex: 1; min-height: 300px; height: auto; }

img.case-media {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(150deg, #ECEEF2, #E2E4EA);
  transition: transform 0.55s var(--ease-out);
}

.case-featured .case-figure img.case-media { position: absolute; inset: 0; }

.case-card:hover .case-media { transform: scale(1.05); }

.case-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
}

.case-figure .badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 6px 12px;
  border-radius: 100px;
}

.case-figure .badge.glass {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.case-figure > .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.case-body { padding: 24px; }

.case-featured .case-body { padding: 32px; }

.case-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.case-featured .case-body h3 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.case-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.case-featured .case-body p {
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 440px;
}

.case-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.case-metrics .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
}

.case-metrics .label {
  font-size: 0.82rem;
  color: var(--muted-2);
}

.case-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.case-result .hit { color: var(--red); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { padding: 120px 0; }

.testimonials-head { max-width: 640px; margin-bottom: 52px; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.quote.featured {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF4F5, #FFFFFF);
  border-color: rgba(245, 0, 30, 0.25);
  padding: 36px;
}

.quote.featured .quote-mark {
  position: absolute;
  top: 8px;
  right: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8rem;
  line-height: 1;
  color: rgba(245, 0, 30, 0.14);
  pointer-events: none;
}

.quote .stars {
  position: relative;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.quote blockquote {
  position: relative;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-soft);
  flex: 1;
  border: none;
}

.quote.featured blockquote {
  font-size: 1.24rem;
  line-height: 1.55;
  color: #1A1A22;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.quote-author {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #8a0011);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.quote.featured .quote-avatar { width: 46px; height: 46px; }

.quote-author .name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}

.quote-author .role {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta { padding: 40px 0 120px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 26, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(85% 130% at 50% 0%, rgba(245, 0, 30, 0.1), transparent 62%),
    linear-gradient(rgba(16, 16, 26, 0.04) 1px, transparent 1px) 0 0 / 100% 92px,
    #F8F8FB;
  padding: clamp(48px, 7vw, 88px) 32px;
  text-align: center;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink-bright);
  max-width: 18ch;
  margin: 0 auto;
}

.cta-panel > p {
  margin: 22px auto 0;
  max-width: 520px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #5C5C68;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.cta-actions .btn-primary {
  font-size: 1.02rem;
  padding: 16px 30px;
  border-radius: 11px;
  box-shadow: 0 10px 34px rgba(245, 0, 30, 0.26);
}

.cta-actions .btn-primary:hover {
  box-shadow: 0 16px 46px rgba(245, 0, 30, 0.36);
}

.cta-actions .btn-ghost {
  font-size: 1.02rem;
  padding: 16px 26px;
  border-radius: 11px;
}

.cta-alt {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--muted-2);
}

.cta-alt a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 0, 30, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-band);
}

.footer .container { padding-top: 64px; padding-bottom: 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-about { max-width: 320px; }

.footer-about .brand { margin-bottom: 18px; }

.footer-about .brand-logo { height: 26px; }

.footer-about p {
  color: var(--muted-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-social { display: flex; gap: 10px; margin-top: 22px; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-link);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--red);
  color: var(--ink);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a,
.footer-col span {
  color: var(--muted-2);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-bottom .copyright {
  color: var(--muted-3);
  font-size: 0.86rem;
}

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
  color: var(--muted-3);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--nav-link); }

/* ==========================================================================
   Scroll reveal + reduced motion
   ========================================================================== */

/* Hidden-until-revealed only when JS is running, so content stays visible without it. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .mock-chart .spark { stroke-dashoffset: 0; }
  .proc-progress { width: 100% !important; }
}

/* ==========================================================================
   Service pages (web-development / mobile-development / it-consulting /
   product-design) — split hero with a discipline artifact per page.
   ========================================================================== */

.sp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46% 85% at 82% 4%, rgba(245, 0, 30, 0.07), transparent 62%),
    #FBFBFD;
  padding: 165px 0 90px;
  border-bottom: 1px solid var(--line-soft);
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 16, 26, 0.05) 1px, transparent 1px);
  background-size: 100% 92px;
  pointer-events: none;
}

.sp-hero .container { position: relative; }

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

@media (max-width: 960px) {
  .sp-hero { padding-top: 140px; }
  .sp-hero-grid { grid-template-columns: 1fr; }
}

.sp-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-3);
  margin-bottom: 22px;
}

.sp-crumb a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-crumb a:hover { color: var(--ink); }

.sp-crumb .sep { color: var(--muted-3); }
.sp-crumb .here { color: var(--red); }

.sp-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-bright);
}

.sp-hero h1 span { display: block; }

.sp-hero h1 .shimmer {
  background: linear-gradient(100deg, #0A0A10 30%, #F5001E 50%, #0A0A10 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.sp-hero .lede {
  margin-top: 24px;
  max-width: 520px;
  font-size: 1.14rem;
  line-height: 1.62;
  color: #5C5C68;
}

.sp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.sp-proof .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink-bright);
}

.sp-proof .value em {
  font-style: normal;
  color: var(--red);
}

.sp-proof .label {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ---- hero artifact frame ---- */

.sp-artifact { position: relative; }

/* ---- artifact: deploy terminal (web development) ---- */

.sp-terminal {
  background: var(--surface-deep);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(16, 16, 26, 0.32);
  overflow: hidden;
}

.sp-terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.sp-terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d2d34;
}

.sp-terminal-bar .dot.red { background: var(--red); }

.sp-terminal-bar .title {
  margin-left: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--muted-3);
}

.sp-terminal-body {
  padding: 22px 24px 28px;
  min-height: 268px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 2.15;
}

.sp-terminal .line {
  opacity: 0;
  transition: opacity 0.25s ease;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-terminal .line.is-on { opacity: 1; }

.sp-terminal .prompt { color: var(--red); margin-right: 8px; }
.sp-terminal .line.out { color: var(--muted-2); }
.sp-terminal .line.ok { color: #7FC98B; }

.sp-terminal .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--red);
  animation: spCaret 0.9s steps(1) infinite;
}

.sp-terminal .line.done .caret,
.sp-terminal.is-done .caret { display: none; }

@keyframes spCaret { 50% { opacity: 0; } }

.sp-terminal .line.live {
  color: var(--ink-bright);
  font-weight: 600;
}

.sp-terminal .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  margin-right: 9px;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .sp-terminal.is-done .live-dot { animation: spPulse 2s ease infinite; }
}

@keyframes spPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.95); }
}

/* ---- artifact: twin phones + platform toggle (mobile) ---- */

.sp-phone-stage {
  position: relative;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .sp-phone-stage { height: 430px; }
}

.sp-phone {
  position: absolute;
  width: 208px;
  height: 420px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1b1b21, #101014);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px;
  box-shadow: 0 40px 80px rgba(16, 16, 26, 0.32);
  transition: transform 0.65s var(--ease-out), filter 0.65s ease, z-index 0s 0.3s;
}

.sp-phone .screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(170deg, #131318, #0A0A0D);
  display: flex;
  flex-direction: column;
  padding: 34px 18px 20px;
  position: relative;
}

.sp-phone .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 16px;
  border-radius: 100px;
  background: #050506;
}

.sp-phone .os-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin: 14px 0 16px;
}

.sp-phone .bar {
  height: 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.09);
  margin-bottom: 10px;
}

.sp-phone .bar.w80 { width: 80%; }
.sp-phone .bar.w55 { width: 55%; }

.sp-phone .app-card {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.sp-phone .app-card .accent {
  width: 34px;
  height: 5px;
  border-radius: 100px;
  background: var(--red);
  margin-bottom: 12px;
}

.sp-phone .app-card .bar { margin-bottom: 8px; }

.sp-phone .fab {
  margin-top: auto;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 10px 28px rgba(245, 0, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.sp-phone-a {
  z-index: 2;
  transform: translateX(-52px) rotate(-6deg);
}

.sp-phone-b {
  z-index: 1;
  transform: translateX(74px) translateY(14px) rotate(7deg) scale(0.94);
  filter: brightness(0.55);
}

.sp-phone-stage.show-b .sp-phone-a {
  z-index: 1;
  transform: translateX(-74px) translateY(14px) rotate(-7deg) scale(0.94);
  filter: brightness(0.55);
}

.sp-phone-stage.show-b .sp-phone-b {
  z-index: 2;
  transform: translateX(52px) rotate(6deg);
  filter: none;
}

.sp-platform-toggle {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sp-platform-toggle button {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 100px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.sp-platform-toggle button[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}

/* ---- artifact: architecture whiteboard (consulting) ---- */

.sp-map {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px 30px;
  box-shadow: 0 40px 90px rgba(16, 16, 26, 0.12);
}

.sp-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.sp-map-head .name {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--muted-2);
}

.sp-map-head .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(245, 0, 30, 0.4);
  border-radius: 100px;
  padding: 4px 11px;
}

.sp-map svg { width: 100%; height: auto; }

.sp-map .map-box {
  fill: var(--surface-deep);
  stroke: rgba(16, 16, 26, 0.25);
  stroke-width: 1;
}

.sp-map .map-box.hot { stroke: var(--red); }
.sp-map .map-box.dim { stroke: rgba(16, 16, 26, 0.14); stroke-dasharray: 4 4; }

.sp-map text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--ink-soft);
}

.sp-map text.small { font-size: 9.5px; font-weight: 500; fill: var(--muted-2); }
.sp-map text.dim-label { fill: var(--muted-3); }

.sp-map .map-link {
  fill: none;
  stroke: rgba(16, 16, 26, 0.3);
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.sp-map .map-link.hot { stroke: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  html.js .sp-map .map-link {
    stroke-dashoffset: 240;
    transition: stroke-dashoffset 1.6s var(--ease-out);
  }
  .reveal.is-visible .sp-map .map-link,
  .sp-map.reveal.is-visible .map-link { stroke-dashoffset: 0; }
}

.sp-map-note {
  position: absolute;
  right: 18px;
  bottom: -26px;
  max-width: 270px;
  background: linear-gradient(160deg, #FFF2F3, #FFEAED);
  border: 1px solid rgba(245, 0, 30, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 24px 60px rgba(16, 16, 26, 0.16);
}

.sp-map-note .k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.sp-map-note p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---- artifact: wireframe → UI morph (product design) ---- */

.sp-morph-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 34px;
}

.sp-morph {
  position: relative;
  width: min(370px, 100%);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface-deep);
  box-shadow: 0 40px 90px rgba(16, 16, 26, 0.14);
  overflow: hidden;
}

.sp-morph .layer { padding: 26px 24px 30px; }

.sp-morph .layer-final {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sp-morph .layer-wire { animation: spWire 7s ease-in-out infinite; }
  .sp-morph .layer-final { animation: spFinal 7s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-morph .layer-final { opacity: 1; }
  .sp-morph .layer-wire { opacity: 0; }
}

@keyframes spWire {
  0%, 38% { opacity: 1; }
  52%, 88% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes spFinal {
  0%, 38% { opacity: 0; }
  52%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

.sp-morph .wf {
  border: 1.5px dashed rgba(16, 16, 26, 0.28);
  border-radius: 10px;
  background: rgba(16, 16, 26, 0.03);
}

.sp-morph .wf.title { height: 26px; width: 62%; margin-bottom: 14px; }
.sp-morph .wf.text { height: 12px; width: 88%; margin-bottom: 10px; border-radius: 100px; }
.sp-morph .wf.text.short { width: 54%; margin-bottom: 20px; }
.sp-morph .wf.img { height: 110px; margin-bottom: 20px; position: relative; }

.sp-morph .wf.img::before,
.sp-morph .wf.img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.75px), rgba(16, 16, 26, 0.22) 50%,
      transparent calc(50% + 0.75px));
}

.sp-morph .wf.img::after {
  background:
    linear-gradient(to bottom right,
      transparent calc(50% - 0.75px), rgba(16, 16, 26, 0.22) 50%,
      transparent calc(50% + 0.75px));
}

.sp-morph .wf.btn { height: 40px; width: 44%; border-radius: 100px; }

.sp-morph .fin-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.sp-morph .fin-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink-bright);
  margin-bottom: 8px;
}

.sp-morph .fin-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
}

.sp-morph .fin-img {
  height: 110px;
  border-radius: 12px;
  margin-bottom: 20px;
  background:
    radial-gradient(80% 120% at 20% 0%, rgba(245, 0, 30, 0.35), transparent 55%),
    linear-gradient(140deg, #FFE1E4, #F4F4F8);
  border: 1px solid rgba(245, 0, 30, 0.3);
  position: relative;
  overflow: hidden;
}

.sp-morph .fin-img .spark-line { position: absolute; inset: auto 12px 12px; }

.sp-morph .fin-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 100px;
  padding: 12px 26px;
  box-shadow: 0 10px 30px rgba(245, 0, 30, 0.45);
}

.sp-morph-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.sp-cursor {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
}

.sp-cursor svg { color: var(--red); }

.sp-cursor.blue svg { color: #5B8DEF; }

.sp-cursor .chip {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

.sp-cursor.blue .chip { background: #5B8DEF; }

.sp-cursor.c1 { top: 12%; right: 4%; }
.sp-cursor.c2 { bottom: 22%; left: 2%; }

@media (prefers-reduced-motion: no-preference) {
  .sp-cursor.c1 { animation: spDrift1 9s ease-in-out infinite; }
  .sp-cursor.c2 { animation: spDrift2 11s ease-in-out infinite; }
}

@keyframes spDrift1 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-26px, 30px); }
  70% { transform: translate(-8px, 56px); }
}

@keyframes spDrift2 {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(34px, -22px); }
  70% { transform: translate(12px, -46px); }
}

/* ---- shared page sections ---- */

.sp-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sp-stack-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.sp-stack-band span {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 18px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.sp-stack-band span:hover { border-color: rgba(245, 0, 30, 0.6); color: var(--ink-bright); }

.sp-deliver {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.sp-deliver li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 20px 22px;
}

.sp-deliver .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.sp-deliver p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* ---- FAQ ---- */

.sp-faq { max-width: 780px; }

.sp-faq details { border-bottom: 1px solid var(--line); }

.sp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.sp-faq summary::-webkit-details-marker { display: none; }

.sp-faq summary:hover { color: var(--ink-bright); }

.sp-faq summary .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out), background 0.2s ease;
}

.sp-faq details[open] summary .plus {
  transform: rotate(45deg);
  background: rgba(245, 0, 30, 0.12);
}

.sp-faq details p {
  padding: 0 46px 24px 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 64ch;
}

/* ---- services.php explore links ---- */

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.svc-more span { transition: transform 0.25s var(--ease-out); }
.svc-more:hover span { transform: translateX(4px); }

/* ==========================================================================
   Contact + Booking pages
   ========================================================================== */

/* --- response promise pills (contact + booking hero) --- */
.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.promise .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(245, 0, 30, 0.16);
}

.promise svg { color: var(--red); }

/* --- FAQ accordion --- */
.faq { max-width: 800px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-q:hover { color: var(--ink-bright); }

.faq-sign {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 2px;
}

.faq-sign::before { width: 14px; height: 2px; }
.faq-sign::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease-out); }
.faq-item.open .faq-sign::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.38s var(--ease-out);
}

.faq-a p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
  padding: 4px 44px 26px 4px;
  max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}

/* --- Booking layout --- */
.book-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

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

.book-aside .section-lede { max-width: 42ch; }

.book-expect {
  list-style: none;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-expect li {
  display: flex;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.book-expect .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 0, 30, 0.12);
  color: var(--red);
}

.book-quote {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}

.book-quote blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.book-quote figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted-2);
}

.book-quote figcaption b { color: var(--ink); font-weight: 600; }

/* --- Scheduling console (booking signature element) --- */
.console {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(16, 16, 26, 0.25);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-deep);
}

.console-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #D5D5DC;
}

.console-bar .dot.red { background: var(--red); }

.console-bar .url {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.console-body { padding: clamp(22px, 3vw, 34px); }

.field-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 30px 0 14px;
}

.field-legend:first-of-type { margin-top: 0; }
.field-legend .step-n { color: var(--red); }

/* call-type radio cards */
.calltype-grid { display: grid; gap: 12px; }

.calltype {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-deep);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calltype:hover { border-color: rgba(245, 0, 30, 0.4); }
.calltype input { position: absolute; opacity: 0; pointer-events: none; }

.calltype:has(input:checked) {
  border-color: var(--red);
  background: rgba(245, 0, 30, 0.06);
}

.calltype .tick-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.calltype:has(input:checked) .tick-box { border-color: var(--red); }

.calltype .tick-box::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}

.calltype:has(input:checked) .tick-box::after { transform: scale(1); }

.calltype .ct-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.calltype .ct-dur { font-size: 0.82rem; color: var(--red); font-weight: 600; }
.calltype .ct-desc { margin-top: 4px; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* day + time slot pickers */
.slot-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.slot-days::-webkit-scrollbar { display: none; }

.slot-day {
  flex-shrink: 0;
  min-width: 72px;
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-deep);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.slot-day .dow { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.slot-day .dnum { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-top: 2px; }

.slot-day:hover { border-color: rgba(245, 0, 30, 0.4); }
.slot-day[aria-pressed="true"] {
  border-color: var(--red);
  background: rgba(245, 0, 30, 0.08);
  color: var(--ink);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.slot {
  padding: 11px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-deep);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.slot:hover { border-color: rgba(245, 0, 30, 0.4); }
.slot[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

/* live booking summary */
.book-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 4px;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-deep);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.book-summary.ready {
  border-style: solid;
  border-color: rgba(245, 0, 30, 0.45);
  color: var(--ink);
}

.book-summary svg { flex-shrink: 0; color: var(--red); }
.book-summary b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Project detail
   ========================================================================== */

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.project-links .btn svg { margin-right: 8px; vertical-align: -2px; }

.project-figure {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 56px;
  background: linear-gradient(150deg, #ECEEF2, #E2E4EA);
}

.project-figure img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .project-layout { grid-template-columns: 1.7fr 1fr; align-items: start; }
}

.project-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}

.project-body h2:first-child { margin-top: 0; }

.project-body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 68ch;
}

.project-body ul {
  list-style: none;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.project-body li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.project-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 14px;
  height: 2px;
  background: var(--red);
}

.project-aside { position: sticky; top: 96px; }

.project-meta {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.project-meta-row { display: grid; gap: 4px; }

.project-meta-row .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.project-meta-row .value {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.project-meta-row .value.link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-meta-row .value.link:hover { color: var(--red); }

.project-back { margin-top: 18px; }
