/* ==========================================================================
   arifkhan.online — style.css
   Art direction: "Ivory & Gold"
   Warm ivory base, deep navy ink, rich gold signature accent. Premium
   editorial feel — luxury real-estate energy. Paper grain, soft warm
   shadows, gold gradient details.
   Display type: Space Grotesk. Body: Inter.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg-0: #faf6ef;            /* warm ivory page base           */
  --bg-1: #f4edde;            /* deeper ivory (gradient top)    */
  --bg-panel: #fffdf8;        /* hero framed panel              */
  --bg-elev: #ffffff;         /* white cards                    */
  --bg-glass: rgba(255, 255, 255, 0.65);

  /* Ink */
  --text: #1a2238;            /* deep navy                      */
  --text-mute: #4d5670;
  --text-dim: #8a90a5;

  /* Signature accents */
  --navy: #1a2238;
  --navy-soft: #263252;
  --gold: #b8860b;
  --gold-bright: #d4a537;
  --gold-deep: #8a6516;
  --grad-brand: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);

  /* Lines & shadows */
  --border: rgba(26, 34, 56, 0.12);
  --border-strong: rgba(26, 34, 56, 0.22);
  --shadow-soft: 0 24px 55px -24px rgba(26, 34, 56, 0.22);
  --shadow-lift: 0 32px 70px -24px rgba(26, 34, 56, 0.30);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.2s;
  --slow: 0.6s;

  /* Type stacks */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 640px at 85% -8%, rgba(212, 165, 55, 0.14), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(26, 34, 56, 0.045), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%);
  background-color: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* beats .btn etc. so empty contact links never show */
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: rgba(212, 165, 55, 0.35); color: var(--navy); }

/* Thin scrollbar with a clearly visible gold thumb */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg-1); }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Paper grain ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Ambient warm glow ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora .blob {
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  will-change: transform;
}
.aurora .b1 {
  top: -18%; left: -10%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora .b2 {
  top: 4%; right: -16%;
  background: radial-gradient(circle at 60% 40%, #e8d5a8, transparent 65%);
  opacity: 0.16;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora .b3 {
  bottom: -30%; left: 28%;
  background: radial-gradient(circle at 50% 55%, #b9c4e0, transparent 62%);
  opacity: 0.10;
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 8vh, 0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-7vw, 10vh, 0) scale(0.95); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5vw, -8vh, 0) scale(1.2); } }

.topbar, .site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 100%;
  z-index: 200;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-brand);
  pointer-events: none;
}

/* ---------- Utilities ---------- */
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  transition: top var(--fast) ease;
}
.skip-link:focus { top: 14px; }

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

/* Signature gold gradient text */
.grad-text {
  background: var(--grad-brand);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 7s ease-in-out infinite alternate;
}
@keyframes grad-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow 0.35s var(--ease),
              border-color var(--fast) ease, background-color var(--fast) ease, color var(--fast) ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--navy);
  color: #faf6ef;
  box-shadow: 0 12px 30px -10px rgba(26, 34, 56, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--navy-soft);
  box-shadow: 0 18px 40px -10px rgba(26, 34, 56, 0.5), 0 0 0 1px rgba(212, 165, 55, 0.55);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 12px 30px -14px rgba(184, 134, 11, 0.4);
}

.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 16.5px; }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px;
  color: var(--navy);
}
.btn-arrow svg { transition: transform 0.3s var(--ease); }
.btn-arrow:hover { color: var(--gold-deep); }
.btn-arrow:hover svg { transform: translateX(6px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(250, 246, 239, 0.75);
  font-size: 12.5px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 42px;
}
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  color: rgba(250, 246, 239, 0.7);
  transition: color var(--fast) ease, background-color var(--fast) ease, transform var(--fast) ease;
}
.topbar-social a:hover { color: var(--gold-bright); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.topbar-meta { display: flex; align-items: center; gap: 22px; }
.topbar-meta span, .topbar-meta a {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.topbar-meta a:hover { color: #faf6ef; }
.topbar-meta svg { color: var(--gold-bright); flex-shrink: 0; }
.topbar-meta .tb-loc { display: none; }
@media (min-width: 720px) { .topbar-meta .tb-loc { display: inline-flex; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(26, 34, 56, 0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.01em;
  box-shadow: 0 8px 22px -8px rgba(26, 34, 56, 0.5);
}
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }

.nav { display: none; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-mute);
  padding-block: 6px;
  transition: color var(--fast) ease;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  padding: 12px 10px;
}
.nav-toggle-bar {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform var(--fast) ease, opacity var(--fast) ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(250, 246, 239, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 18px 24px 26px;
}
.mobile-menu-list { display: grid; gap: 4px; margin-bottom: 16px; }
.mobile-link {
  display: block;
  padding: 13px 10px;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  border-radius: 10px;
  transition: background-color var(--fast) ease, color var(--fast) ease, padding-left var(--fast) ease;
}
.mobile-link:hover { background: rgba(26, 34, 56, 0.05); color: var(--gold-deep); padding-left: 16px; }
.mobile-cta { width: 100%; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero (framed panel + photo) ---------- */
.hero {
  position: relative;
  padding-block: 40px 84px;
}
.hero-spotlight {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 40%),
              rgba(212, 165, 55, 0.10), transparent 65%);
}
.hero-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(212, 165, 55, 0.12), transparent 65%),
    var(--bg-panel);
  overflow: hidden;
  padding: 48px 26px 0;
  box-shadow: var(--shadow-soft);
}
.hero-panel::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
}
.hero-grid { display: grid; gap: 40px; align-items: end; }

.hero-copy { padding-bottom: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-mute);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 26px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}
.hero-name strong { color: var(--navy); font-weight: 700; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 12px 0 22px;
  max-width: 17ch;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 17.5px);
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }

/* Photo column — cutout on a warm glow stage, subtle 3D tilt */
.hero-photo {
  position: relative;
  justify-self: center;
  width: min(400px, 88%);
  perspective: 900px;
}
.photo-main {
  position: relative;
  aspect-ratio: 4 / 4.6;
  transform-style: preserve-3d;
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.photo-main::before {
  content: "";
  position: absolute;
  left: 50%; top: 56%;
  width: 92%; aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(-60px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, rgba(212, 165, 55, 0.5), rgba(232, 213, 168, 0.35) 55%, transparent 72%);
  filter: blur(6px);
}
.photo-main::after {
  content: "";
  position: absolute;
  left: 50%; top: 56%;
  width: 99%; aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(-40px);
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, 0.45);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 88%);
}
.photo-main .photo-img {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  transform: translateZ(30px);
  filter: drop-shadow(0 30px 40px rgba(26, 34, 56, 0.35));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.photo-img.is-missing { display: none; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim);
  text-align: center;
}
.photo-img.is-missing + .photo-placeholder { display: flex; }
.photo-placeholder svg { opacity: 0.5; }
.photo-placeholder strong {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; color: var(--text-mute);
}
.photo-placeholder small { font-size: 12px; }

/* Rotating skill badge */
.badge-spin {
  position: absolute;
  right: -26px; top: 34%;
  width: 116px; height: 116px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(212, 165, 55, 0.4);
  box-shadow: 0 18px 44px -12px rgba(26, 34, 56, 0.45);
  z-index: 2;
}
.badge-spin::before {
  content: "";
  position: absolute; inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 165, 55, 0.55);
}
.badge-spin .badge-text {
  position: absolute; inset: 0;
  animation: spin 16s linear infinite;
}
.badge-spin .badge-text text {
  fill: rgba(250, 246, 239, 0.85);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.badge-spin .badge-star { color: var(--gold-bright); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Decorative shapes */
.deco { position: absolute; pointer-events: none; }
.deco-dots {
  left: -18px; bottom: 12%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background-image: radial-gradient(rgba(184, 134, 11, 0.7) 1.4px, transparent 1.5px);
  background-size: 11px 11px;
  opacity: 0.6;
  animation: bob 7s ease-in-out infinite alternate;
}
.deco-ring {
  top: 34px; right: 8%;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(26, 34, 56, 0.12);
}
.deco-spark {
  top: 18%; right: 24%;
  color: var(--gold);
  animation: bob 5s ease-in-out infinite alternate;
}
.deco-spark2 {
  left: 44%; bottom: 20%;
  color: var(--navy-soft);
  width: 14px;
  opacity: 0.5;
  animation: bob 6s 1s ease-in-out infinite alternate;
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* Stats strip under the panel */
.stats-card {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px 26px;
  padding: 22px 30px;
  margin-top: 26px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.stats-card::before {
  content: "";
  position: absolute; top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
}
.stat { display: grid; gap: 4px; align-content: start; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 900px) {
  .stats-card { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 24px 8px; }
  .stat { padding: 0 24px; }
  .stat + .stat { border-left: 1px solid var(--border); }
}
.stat-num.grad-text { animation: none; }
.stat-label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.stat-divider { width: 1px; align-self: stretch; background: var(--border); }

@media (min-width: 900px) {
  .hero { padding-block: 48px 100px; }
  .hero-panel { padding: 64px 56px 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
  .hero-copy { padding-bottom: 64px; }
  .hero-photo { justify-self: end; width: min(420px, 100%); }
  .stats-card { max-width: 900px; }
}
@media (max-width: 899px) {
  .badge-spin { right: -8px; width: 96px; height: 96px; }
  .deco-ring, .deco-spark { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 96px; }
@media (min-width: 900px) { .section { padding-block: 120px; } }

.section-index {
  position: absolute;
  top: 44px; right: 2%;
  font-family: var(--font-display);
  font-size: clamp(110px, 16vw, 210px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 34, 56, 0.08);
  pointer-events: none;
  user-select: none;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.section-kicker::before {
  content: "";
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-head.center .section-kicker::after {
  content: "";
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lead { color: var(--text-mute); font-size: 17px; }
.section-head.center .section-lead { max-width: 52ch; margin-inline: auto; }

/* ---------- Projects ---------- */
.projects { border-top: 1px solid var(--border); }
.project-grid { display: grid; gap: 26px; }
@media (min-width: 720px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

.project-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 14px 34px -20px rgba(26, 34, 56, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s ease;
}
.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: var(--shadow-lift);
}
.project-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,165,55,0.6), transparent 35%, transparent 65%, rgba(184,134,11,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.project-card:hover::before { opacity: 1; }

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.4;
  background:
    linear-gradient(135deg, rgba(212, 165, 55, 0.08), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(26,34,56,0.03) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(26,34,56,0.03) 23px 24px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-img { transform: scale(1.045); }
.project-img.is-missing { display: none; }
.project-placeholder {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px; color: var(--text-mute);
}
.project-placeholder small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--text-dim); }
.project-img.is-missing + .project-placeholder { display: flex; }

.project-num {
  position: absolute; top: 14px; left: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-bright);
  background: var(--navy);
  border: 1px solid rgba(212, 165, 55, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
}

.project-body { display: flex; flex-direction: column; gap: 13px; padding: 24px 26px 28px; }
.project-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.project-title {
  font-family: var(--font-display);
  font-size: 22.5px; font-weight: 700; letter-spacing: -0.01em;
}
.project-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600;
  color: var(--gold-deep);
  transition: color var(--fast) ease, gap var(--fast) ease;
}
.project-link:hover { color: var(--navy); gap: 8px; }
.project-desc { color: var(--text-mute); font-size: 15px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li {
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-mute);
  border: 1px solid var(--border-strong);
  background: rgba(26, 34, 56, 0.03);
  transition: border-color var(--fast) ease, color var(--fast) ease;
}
.project-card:hover .tags li { border-color: rgba(184, 134, 11, 0.5); color: var(--navy); }

/* Flagship project: full-width, image beside the copy on desktop */
.project-featured { grid-column: 1 / -1; }
.project-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.project-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.project-featured .project-title { font-size: clamp(26px, 3vw, 34px); }
.project-featured .project-desc { font-size: 16px; }
@media (min-width: 900px) {
  .project-featured { flex-direction: row; }
  .project-featured .project-media {
    flex: 1.35; aspect-ratio: auto; min-height: 380px;
    border-bottom: 0; border-right: 1px solid var(--border);
  }
  .project-featured .project-img { object-position: left top; }
  .project-featured .project-body { flex: 1; justify-content: center; gap: 16px; padding: 40px 40px 42px; }
}

/* ---------- Services (centered cards) ---------- */
.services { border-top: 1px solid var(--border); }
.service-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.service-card {
  position: relative;
  padding: 38px 28px 36px;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 14px 34px -20px rgba(26, 34, 56, 0.15);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: var(--shadow-lift);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  color: var(--gold-deep);
  background: linear-gradient(135deg, rgba(212, 165, 55, 0.18), rgba(184, 134, 11, 0.10));
  border: 1px solid rgba(184, 134, 11, 0.35);
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-divider {
  width: 30px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  margin: 0 auto 16px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.service-desc { color: var(--text-mute); font-size: 15px; }
a.service-card { display: flex; flex-direction: column; align-items: center; color: inherit; }
.service-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 18px;
  font-size: 14px; font-weight: 600;
  color: var(--gold-deep);
  transition: gap var(--fast) ease, color var(--fast) ease;
}
.service-card:hover .service-more { gap: 10px; color: var(--navy); }
.service-card:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

/* ---------- Nav: Services dropdown ---------- */
.nav-item.has-drop { position: relative; }
.nav-item.has-drop > .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-chevron { transition: transform 0.3s var(--ease); }
.nav-drop {
  position: absolute; top: 100%; left: 50%;
  padding-top: 16px;              /* hover bridge between link and panel */
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.3s var(--ease), visibility 0.22s;
  z-index: 120;
}
.has-drop:hover .nav-drop,
.has-drop:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop:hover .nav-chevron,
.has-drop:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-drop-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: 560px;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -24px rgba(26, 34, 56, 0.35);
}
.nav-drop-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background-color var(--fast) ease;
}
.nav-drop-link:hover, .nav-drop-link:focus-visible { background: rgba(212, 165, 55, 0.1); outline: none; }
.nav-drop-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: var(--gold-deep);
  background: linear-gradient(135deg, rgba(212, 165, 55, 0.18), rgba(184, 134, 11, 0.10));
  border: 1px solid rgba(184, 134, 11, 0.3);
  transition: background var(--fast) ease, color var(--fast) ease;
}
.nav-drop-link:hover .nav-drop-icon { background: var(--navy); color: var(--gold-bright); }
.nav-drop-text { display: grid; gap: 2px; }
.nav-drop-text strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--navy); }
.nav-drop-text small { font-size: 12.5px; color: var(--text-mute); line-height: 1.4; }

/* mobile: services listed under the Services link */
.mobile-menu { max-height: calc(100vh - 70px); overflow-y: auto; }
.mobile-sub { display: grid; gap: 2px; margin: 0 0 6px 10px; padding-left: 12px; border-left: 2px solid rgba(184, 134, 11, 0.35); }
.mobile-sublink {
  display: block;
  padding: 8px 10px;
  font-size: 15px; font-weight: 500; color: var(--text-mute);
  border-radius: 8px;
  transition: background-color var(--fast) ease, color var(--fast) ease;
}
.mobile-sublink:hover { background: rgba(26, 34, 56, 0.05); color: var(--gold-deep); }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--border); }
.about-inner { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
}
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    linear-gradient(150deg, rgba(212,165,55,0.8), rgba(26,34,56,0.12) 45%, rgba(184,134,11,0.7)) border-box;
  border: 1px solid transparent;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
/* warm glow behind the cutout inside the frame */
.photo-frame::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -18%;
  width: 115%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(212, 165, 55, 0.4), rgba(232, 213, 168, 0.25) 55%, transparent 74%);
  filter: blur(8px);
  pointer-events: none;
}
.photo-frame .photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 22px 30px rgba(26, 34, 56, 0.3));
}
.photo-frame .photo-placeholder { position: static; display: none; }
.photo-frame .photo-img.is-missing + .photo-placeholder { display: flex; }

.about-copy p { color: var(--text-mute); margin-bottom: 16px; max-width: 60ch; }
.about-copy .section-title { margin-bottom: 20px; }
.about-points { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 620px) { .about-points { grid-template-columns: 1fr 1fr; } }
.about-points li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px; font-weight: 500;
  color: var(--text);
}
.about-points li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,165,55,0.3), rgba(184,134,11,0.18));
  border: 1px solid rgba(184, 134, 11, 0.6);
}
.about-points li::after {
  content: "";
  position: absolute; left: 5px; top: 9px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--border); }
.contact-box {
  position: relative;
  text-align: center;
  padding: 72px 28px;
  border-radius: 24px;
  border: 1px solid rgba(212, 165, 55, 0.35);
  background:
    radial-gradient(720px 420px at 50% -30%, rgba(212, 165, 55, 0.16), transparent 70%),
    var(--navy);
  overflow: hidden;
  color: #faf6ef;
  box-shadow: var(--shadow-lift);
}
.contact-box::after {
  content: "";
  position: absolute; top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
}
.contact-box > * { position: relative; }
.contact-box .section-kicker { justify-content: center; color: var(--gold-bright); }
.contact-box .section-kicker::after {
  content: "";
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.contact-box .section-title { color: #faf6ef; }
.contact-box .section-lead { max-width: 46ch; margin-inline: auto; color: rgba(250, 246, 239, 0.75); }
.contact-box .grad-text {
  background: linear-gradient(100deg, #e8c56a, var(--gold-bright) 55%, #caa23f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.contact-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: 38px;
}
/* invert buttons inside the navy box */
.contact-box .btn-primary {
  background: var(--grad-brand);
  color: var(--navy);
  box-shadow: 0 14px 34px -10px rgba(212, 165, 55, 0.5);
}
.contact-box .btn-primary:hover { background: var(--gold-bright); }
.contact-box .btn-ghost {
  border-color: rgba(250, 246, 239, 0.35);
  color: #faf6ef;
  background: rgba(255, 255, 255, 0.05);
}
.contact-box .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); box-shadow: none; }
.contact-alt { margin-top: 26px; color: rgba(250, 246, 239, 0.6); font-size: 14.5px; }
.text-link {
  color: var(--gold-bright);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 165, 55, 0.5);
  transition: color var(--fast) ease, border-color var(--fast) ease;
}
.text-link:hover { color: #e8c56a; border-color: #e8c56a; }

/* ---------- About: tools strip ---------- */
.tools {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: grid; gap: 12px;
}
.tools-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.about-copy .tools-label { margin-bottom: 4px; color: var(--gold-deep); }
.tools-row { display: grid; gap: 6px; align-items: baseline; }
@media (min-width: 620px) { .tools-row { grid-template-columns: 104px 1fr; gap: 14px; } }
.tools-group { font-size: 13px; font-weight: 600; color: var(--text); }
.tools-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tools-list li {
  font-size: 12.5px; font-weight: 500;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--text-mute);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding-top: 72px;
  color: rgba(250, 246, 239, 0.72);
  background:
    radial-gradient(800px 360px at 85% 0%, rgba(212, 165, 55, 0.12), transparent 70%),
    var(--navy);
  font-size: 14.5px;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
}
.footer-grid { display: grid; gap: 44px 32px; padding-bottom: 56px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 0.9fr 1.1fr; gap: 48px; } }

.footer-logo .logo-text { color: #faf6ef; }
.footer-logo .logo-mark { border: 1px solid rgba(212, 165, 55, 0.5); }
.footer-about { margin: 18px 0 16px; max-width: 34ch; line-height: 1.7; }
.footer-status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: #faf6ef;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 246, 239, 0.14);
}
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social:not(:has(a:not([hidden]))) { display: none; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: rgba(250, 246, 239, 0.8);
  border: 1px solid rgba(250, 246, 239, 0.2);
  transition: color var(--fast) ease, border-color var(--fast) ease, background-color var(--fast) ease, transform 0.3s var(--ease);
}
.footer-social a:hover { color: var(--navy); background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }

.footer-heading {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { transition: color var(--fast) ease; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-contact a, .footer-meta { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer-contact svg { flex-shrink: 0; color: var(--gold-bright); }
.footer-cta { margin-top: 24px; }
.site-footer .btn-primary { background: var(--grad-brand); color: var(--navy); box-shadow: none; }
.site-footer .btn-primary:hover { background: var(--gold-bright); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  font-size: 13.5px;
  color: rgba(250, 246, 239, 0.55);
}
.footer-note { font-style: italic; }
.footer-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: rgba(250, 246, 239, 0.8);
  transition: color var(--fast) ease, gap var(--fast) ease;
}
.footer-top:hover { color: var(--gold-bright); gap: 9px; }
.site-footer a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Project card: "View case study" cue ---------- */
.project-card .project-media { cursor: pointer; }
.project-cta { white-space: nowrap; }

/* ---------- Case study page (project.html) ---------- */
.cs-hero { padding-top: 40px; padding-bottom: 64px; }
.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-mute);
  margin-bottom: 34px;
  transition: color var(--fast) ease, gap var(--fast) ease;
}
.cs-back:hover { color: var(--gold-deep); gap: 12px; }

.cs-head { display: grid; gap: 22px; align-items: end; margin-bottom: 30px; }
@media (min-width: 900px) { .cs-head { grid-template-columns: 1fr auto; gap: 40px; } }
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cs-tagline { font-size: clamp(17px, 2vw, 19.5px); color: var(--text-mute); max-width: 58ch; }
.cs-head-cta .btn { gap: 8px; }

.cs-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}
.cs-meta > div { background: var(--bg-glass); padding: 16px 20px; backdrop-filter: blur(8px); }
.cs-meta dt {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 4px;
}
.cs-meta dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }

/* browser-framed hero screenshot */
.cs-shot {
  display: block; width: 100%;
  padding: 0; text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(26, 34, 56, 0.25);
  box-shadow: var(--shadow-lift);
  cursor: zoom-in;
}
.cs-shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: var(--navy);
}
.cs-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(250, 246, 239, 0.22); }
.cs-shot-bar i:first-child { background: var(--gold-bright); }
.cs-shot-bar span {
  margin-left: 12px; padding: 3px 14px;
  border-radius: 999px;
  font-size: 12px; color: rgba(250, 246, 239, 0.7);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-shot img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.cs-shot:hover img { transform: scale(1.015); }

/* story: problem + solution */
.cs-story { border-top: 1px solid var(--border); padding-block: 96px; }
.cs-story-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .cs-story-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.cs-step {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold-bright);
  background: var(--navy);
  border: 1px solid rgba(212, 165, 55, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.cs-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 20px;
}
.cs-lead { color: var(--text-mute); font-size: 16.5px; line-height: 1.7; margin-bottom: 28px; max-width: 64ch; }
.cs-pain { display: grid; gap: 12px; }
.cs-pain li {
  position: relative;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 15px; color: var(--text);
}
.cs-pain li::before {
  content: "";
  position: absolute; left: 17px; top: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: #c0563b;
}

.cs-solution { display: grid; gap: 16px; }
@media (min-width: 640px) { .cs-solution { grid-template-columns: 1fr 1fr; } }
.cs-sol {
  padding: 24px 24px 22px;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px -24px rgba(26, 34, 56, 0.2);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}
.cs-sol:hover { border-color: rgba(184, 134, 11, 0.45); transform: translateY(-3px); }
.cs-sol h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
}
.cs-sol p { color: var(--text-mute); font-size: 14.5px; line-height: 1.6; }

/* results */
.cs-results { padding-bottom: 96px; }
.cs-results-box {
  padding: 40px 28px;
  border-radius: 22px;
  border: 1px solid rgba(184, 134, 11, 0.35);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(212, 165, 55, 0.14), transparent 70%),
    var(--bg-panel);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 720px) { .cs-results-box { padding: 48px 52px; } }
.cs-wins { display: grid; gap: 16px; margin: 28px 0 36px; }
@media (min-width: 720px) { .cs-wins { grid-template-columns: 1fr 1fr; gap: 18px 40px; } }
.cs-wins li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; line-height: 1.55; }
.cs-wins svg {
  flex-shrink: 0;
  width: 28px; height: 28px; padding: 5px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--grad-brand);
}

/* gallery */
.cs-gallery-sec { border-top: 1px solid var(--border); padding-block: 96px; }
.cs-gallery-sec .section-head { margin-bottom: 40px; }
.cs-gallery { display: grid; gap: 26px; }
@media (min-width: 760px) { .cs-gallery { grid-template-columns: 1fr 1fr; gap: 30px; } }
.cs-fig figcaption { margin-top: 12px; font-size: 14.5px; color: var(--text-mute); }
.cs-thumb {
  display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 14px 34px -20px rgba(26, 34, 56, 0.2);
  cursor: zoom-in;
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.cs-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.7s var(--ease);
}
.cs-thumb:hover { border-color: rgba(184, 134, 11, 0.45); box-shadow: var(--shadow-lift); }
.cs-thumb:hover img { transform: scale(1.04); }
.cs-shot:focus-visible, .cs-thumb:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

/* end CTA + next project */
.cs-end { padding-bottom: 96px; }
.cs-end .contact-actions .btn { gap: 8px; }
.cs-next {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}
.cs-next:hover { border-color: rgba(184, 134, 11, 0.45); transform: translateY(-3px); }
.cs-next-label {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
}
.cs-next-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em;
}
.cs-next-name svg { transition: transform 0.3s var(--ease); }
.cs-next:hover .cs-next-name svg { transform: translateX(6px); }

/* feature-group lists inside "What I built" */
.cs-flist { display: grid; gap: 7px; margin-top: 4px; }
.cs-flist li {
  position: relative; padding-left: 16px;
  font-size: 14.5px; color: var(--text-mute); line-height: 1.5;
}
.cs-flist li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* deep dives */
.cs-dives { border-top: 1px solid var(--border); padding-block: 96px; }
.cs-dives .section-head { margin-bottom: 40px; }
.cs-dive {
  display: grid; gap: 32px; align-items: center;
  padding: 34px 28px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px -22px rgba(26, 34, 56, 0.2);
}
@media (min-width: 720px) { .cs-dive { padding: 44px 48px; } }
@media (min-width: 980px) { .cs-dive.has-img { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
.cs-dive-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.cs-dive-kicker span {
  letter-spacing: 0.12em;
  color: var(--gold-bright); background: var(--navy);
  border: 1px solid rgba(212, 165, 55, 0.45);
  border-radius: 999px; padding: 3px 10px;
}
.cs-dive-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 12px;
}
.cs-dive-problem { color: var(--text-mute); font-size: 16px; line-height: 1.7; margin-bottom: 26px; max-width: 70ch; }
.cs-dive-did { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 900px) { .cs-dive:not(.has-img) .cs-dive-did { grid-template-columns: 1fr 1fr; gap: 12px 32px; } }
.cs-dive-did li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.cs-dive-did svg {
  flex-shrink: 0; margin-top: 1px;
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(212, 165, 55, 0.35), rgba(184, 134, 11, 0.22));
}
.cs-dive-result {
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 165, 55, 0.12), rgba(212, 165, 55, 0.03));
  font-size: 15px; font-weight: 500;
}
.cs-dive-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 2px;
}
.cs-dive-img img {
  width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.cs-dive-img figcaption { margin-top: 10px; font-size: 14px; color: var(--text-mute); }

/* stats + stack inside results */
.cs-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
@media (min-width: 820px) { .cs-stats { grid-template-columns: repeat(4, 1fr); } }
.cs-stat {
  display: grid; gap: 4px; align-content: start;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.cs-stat-v {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.cs-stat-l { font-size: 13.5px; color: var(--text-mute); line-height: 1.45; }
.cs-stack-label {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px; padding-top: 28px; border-top: 1px solid var(--border);
}

/* ---------- Service page (service.html) ---------- */
.sv-head { max-width: 820px; }
.sv-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin-bottom: 24px;
  color: var(--gold-bright);
  background: var(--navy);
  border: 1px solid rgba(212, 165, 55, 0.45);
  box-shadow: 0 18px 40px -18px rgba(26, 34, 56, 0.45);
}
.sv-intro { color: var(--text-mute); font-size: 16.5px; line-height: 1.75; max-width: 68ch; margin: 18px 0 32px; }
.sv-hero .cs-tagline { color: var(--text); font-weight: 500; }

.sv-process { display: grid; gap: 16px; margin: 28px 0 36px; padding: 0; list-style: none; }
@media (min-width: 720px) { .sv-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sv-process { grid-template-columns: repeat(4, 1fr); } }
.sv-process li {
  padding: 22px 20px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.sv-process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-bottom: 14px;
}
.sv-process h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sv-process p { font-size: 14.5px; color: var(--text-mute); line-height: 1.6; }

.sv-faq { display: grid; gap: 12px; max-width: 820px; }
.sv-faq details {
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color var(--fast) ease;
}
.sv-faq details[open] { border-color: rgba(184, 134, 11, 0.45); }
.sv-faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 500; color: var(--gold-deep);
  transition: transform 0.3s var(--ease);
}
.sv-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sv-faq details p { padding: 0 22px 22px; color: var(--text-mute); font-size: 15.5px; line-height: 1.7; max-width: 68ch; }

.sv-others { margin-top: 28px; }
.sv-others .cs-next-label { display: block; margin-bottom: 14px; }
.sv-others ul { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-others a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color var(--fast) ease, color var(--fast) ease, transform 0.3s var(--ease);
}
.sv-others a svg { color: var(--gold-deep); }
.sv-others a:hover { border-color: rgba(184, 134, 11, 0.5); color: var(--gold-deep); transform: translateY(-2px); }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(14, 19, 33, 0.9); backdrop-filter: blur(4px); }
.lb-figure { min-width: 0; display: grid; justify-items: center; gap: 14px; padding: 56px 8px 24px; }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 140px);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.lb-figure figcaption { color: rgba(250, 246, 239, 0.85); font-size: 14.5px; text-align: center; }
.lb-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 10px;
  border-radius: 50%;
  color: #faf6ef;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(250, 246, 239, 0.25);
  transition: background var(--fast) ease, color var(--fast) ease;
}
.lb-btn:hover { background: var(--gold-bright); color: var(--navy); }
.lb-close { position: absolute; top: 14px; right: 6px; }
@media (max-width: 640px) {
  .lb-btn { width: 40px; height: 40px; margin: 0 4px; }
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
html.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .aurora .blob, .grad-text, .eyebrow-dot,
  .badge-spin .badge-text, .deco-dots, .deco-spark, .deco-spark2 { animation: none; }
  .btn, .project-card, .service-card, .project-img { transition: none; }
}
