/* ============================================================
   Anxhel Koja Portfolio — Fourmula-inspired editorial product site
   ============================================================ */

:root {
  --bg: #f7f5f1;
  --bg-soft: #efece6;
  --ink: #0e0e0c;
  --ink-soft: #3a3834;
  --mute: #6b6660;
  --line: rgba(14, 14, 12, 0.1);
  --white: #ffffff;
  --dark: #111110;
  --dark-soft: #1a1a18;
  --accent: #2b3fe4;
  --accent-soft: #e8ebff;
  --green: #1f6b4a;
  --green-soft: #e6f4ee;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --max: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 600;
}
.display.sm {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
}

/* ---------- Buttons (liquid glass) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    transform 0.45s var(--ease),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease),
    backdrop-filter 0.35s ease;
}
/* Specular glass highlight (soft-light so label stays readable) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 36%,
    transparent 60%
  );
  mix-blend-mode: soft-light;
  opacity: 1;
}
.btn svg,
.btn img {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.98) translateY(0);
}

.btn-primary {
  color: #f7f5f1;
  background: linear-gradient(
    145deg,
    rgba(40, 38, 34, 0.92) 0%,
    rgba(14, 14, 12, 0.88) 48%,
    rgba(24, 22, 18, 0.94) 100%
  );
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 28px -12px rgba(14, 14, 12, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(55, 72, 240, 0.95) 0%,
    rgba(43, 63, 228, 0.92) 50%,
    rgba(35, 50, 200, 0.95) 100%
  );
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 16px 36px -12px rgba(43, 63, 228, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(247, 245, 241, 0.35) 100%
  );
  border-color: rgba(14, 14, 12, 0.12);
  box-shadow:
    0 8px 24px -14px rgba(14, 14, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(14, 14, 12, 0.04);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.btn-ghost:hover {
  border-color: rgba(43, 63, 228, 0.35);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(232, 235, 255, 0.45) 55%,
    rgba(255, 255, 255, 0.35) 100%
  );
  box-shadow:
    0 12px 28px -14px rgba(43, 63, 228, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--accent);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
  box-shadow:
    0 14px 36px -12px rgba(14, 14, 12, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.btn-lg:hover {
  box-shadow:
    0 20px 44px -12px rgba(43, 63, 228, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.text-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Header (liquid glass) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(247, 245, 241, 0.28) 45%,
    rgba(255, 255, 255, 0.38) 100%
  );
  backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
  border-bottom-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 40px -18px rgba(24, 20, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.site-header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
    radial-gradient(80% 100% at 90% 100%, rgba(43, 63, 228, 0.06) 0%, transparent 45%);
  opacity: 1;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled {
    background: rgba(247, 245, 241, 0.94);
  }
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions .btn {
  display: none;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: rgba(247, 245, 241, 0.98);
  backdrop-filter: blur(12px);
  padding: 2rem 1.5rem;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 400px;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu .btn {
  margin-top: 1rem;
  width: fit-content;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .header-actions .btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ---------- Hero (above-the-fold, balanced) ---------- */
.hero {
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: calc(var(--header-h) + 1.1rem) 1.5rem 1.5rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  align-content: center;
}

.hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  margin-bottom: 0.85rem;
}

.hero .display {
  font-size: clamp(2.25rem, 5.5vw, 4.15rem);
  margin-bottom: 1rem;
  line-height: 1.06;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.hero-cta .btn {
  padding: 0.85rem 1.45rem;
  font-size: 0.95rem;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a3dff;
  padding: 0.45rem 0.85rem 0.45rem 0.2rem;
  border-radius: 999px;
  animation: bob 2s ease-in-out infinite;
  transition: color 0.25s, transform 0.25s;
}
.scroll-hint svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
  color: #1a3dff;
  filter: drop-shadow(0 2px 8px rgba(26, 61, 255, 0.35));
}
.scroll-hint:hover {
  color: #0f28c9;
}
.scroll-hint:hover svg {
  color: #0f28c9;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.6rem;
  height: min(44vh, 360px);
  min-height: 220px;
  max-height: 400px;
}

.hero-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.35);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hero-card:hover img {
  transform: scale(1.05);
}
.hero-card-fit {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-fit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
}
.hero-card-fit:hover img {
  transform: scale(1.03);
}

.hero-card.h1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.hero-card.h2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.hero-card.h3 {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}
.hero-card.h4 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.hero-card.h5 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
.hero-card.h6 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}
.hero-card.h7 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}
.hero-card.h8 {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(var(--header-h) + 1rem) 1.5rem 1.25rem;
    gap: 2rem;
    align-items: center;
    align-content: center;
  }
  .hero .display {
    font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  }
  .hero-grid {
    height: min(calc(100dvh - var(--header-h) - 3.5rem), 520px);
    max-height: calc(100dvh - var(--header-h) - 3rem);
    min-height: 320px;
    align-self: center;
  }
}

/* Mid-height laptops: keep readable, still on one screen */
@media (min-width: 1000px) and (max-height: 800px) {
  .hero {
    padding: calc(var(--header-h) + 0.75rem) 1.5rem 1rem;
    gap: 1.5rem;
  }
  .hero .display {
    font-size: clamp(2.15rem, 3.6vw, 3.4rem);
    margin-bottom: 0.85rem;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.1rem;
  }
  .hero-cta {
    margin-bottom: 1rem;
  }
  .hero-grid {
    min-height: 260px;
    height: min(calc(100dvh - var(--header-h) - 2.5rem), 420px);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  padding: 1.1rem 0;
  margin-bottom: 2rem;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.marquee-track span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee-track span::after {
  content: "·";
  color: var(--mute);
  font-weight: 400;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Work section industry scroll under title */
.work-head {
  max-width: none;
}
.work-head .display {
  margin-bottom: 1.25rem;
}
.work-industries-marquee {
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.work-industries-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.work-industries-marquee:hover .work-industries-track {
  animation-play-state: paused;
}
.work-industries-track span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-head {
  margin-bottom: 3rem;
  max-width: 720px;
}
.section-head .display {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}
.section-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 1.05rem;
}

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.35);
}
.cap-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cap-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.cap-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 120px;
}
.cap-visual img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg-soft);
}
.cap-visual.brand-vis img {
  object-fit: contain;
  background: var(--bg-soft);
  padding: 0.5rem;
}
.cap-visual-ui {
  background: #0e0e0c;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cap-visual-ui img {
  height: 140px;
  object-fit: cover;
  object-position: center top;
  background: #0e0e0c;
}
.cap-visual-ui img:first-child {
  object-fit: contain;
  padding: 0.35rem;
}
.cap-visual-single {
  grid-template-columns: 1fr;
}
.cap-visual-single img,
.cap-visual-single img:first-child {
  height: 180px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.cap-card:last-child .cap-visual {
  grid-template-columns: 1fr 1fr;
}

/* ---------- Projects ---------- */
.work {
  padding-top: 2rem;
}

.project {
  margin-bottom: 4rem;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  border: 1px solid var(--line);
}
.project#vosyn {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.35rem;
}
.project#vosyn .project-meta {
  margin-bottom: 1rem;
}
.project#vosyn .project-body {
  gap: 1.25rem;
}
.project#vosyn .project-copy .display {
  margin-bottom: 0.55rem;
}
.project#vosyn .project-copy .lede {
  margin-bottom: 0.75rem;
}
.project#vosyn .tags {
  margin-bottom: 0.75rem;
}
.project#vosyn .project-copy > p {
  margin-bottom: 0.65rem;
}
.project-gallery-single {
  grid-template-columns: 1fr;
}
.project-gallery-single .shot.main {
  aspect-ratio: 16 / 10;
  max-height: 360px;
}
.project-gallery-single .shot.main img {
  object-fit: cover;
}
.project-dark {
  background: var(--dark);
  color: #f3f1ec;
  border-color: transparent;
}
.project-dark .lede {
  color: rgba(243, 241, 236, 0.92);
}
.project-dark p {
  color: rgba(243, 241, 236, 0.95);
}
.project-dark .project-copy > p {
  color: rgba(243, 241, 236, 0.96);
  opacity: 1;
}
.project-dark .tags li {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 241, 236, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}
.project-dark .year,
.project-dark .role {
  color: rgba(243, 241, 236, 0.55);
}
.project-dark .text-link {
  color: #9eb0ff;
}

/* Alternating rhythm: dark → light → dark → light… */
.project-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.project-light .lede,
.project-light .project-copy > p {
  color: var(--ink-soft);
}
.project-light .year,
.project-light .role {
  color: var(--mute);
}
.project-light .text-link {
  color: var(--accent);
}

/* Century 21 accents on light card (keeps gold without breaking rhythm) */
.project-c21.project-light {
  border-color: rgba(197, 164, 110, 0.35);
  background: linear-gradient(165deg, #ffffff 0%, #faf7f1 100%);
}
.project-c21.project-light .year,
.project-c21.project-light .role {
  color: #9a7b3c;
}
.project-c21.project-light .tags li {
  background: rgba(197, 164, 110, 0.12);
  color: #7a6230;
  border-color: rgba(197, 164, 110, 0.35);
}
.project-c21.project-light .text-link {
  color: #a8842e;
}
.project-c21 .project-gallery {
  grid-template-columns: 1fr 1fr;
}
.project-c21 .project-gallery .shot.main {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .project-c21 .project-gallery {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .project-c21 .project-gallery .shot.main {
    grid-column: 1 / -1;
  }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.project-body {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .project-body {
    grid-template-columns: 0.9fr 1.2fr;
    align-items: start;
  }
}

.project-copy .display {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
}
.project-copy .lede {
  margin-bottom: 1rem;
}
.project-copy > p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 42ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.project-gallery .shot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.project-gallery .shot.main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-gallery .shot:hover img {
  transform: scale(1.03);
}
.project-gallery .shot-fit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.project-gallery .shot-fit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.project#mentor-me .project-gallery {
  grid-template-columns: 1fr 1fr;
}
.project#mentor-me .project-gallery .shot.main {
  grid-column: 1 / -1;
}
.project#mentor-me .project-gallery .shot:not(.main) {
  min-height: 200px;
}

/* More work mosaic */
.more-work {
  margin-top: 2rem;
}
.more-work .display {
  margin-bottom: 1.5rem;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 700px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mosaic figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}
.mosaic figure:hover {
  transform: translateY(-3px);
}
.mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.mosaic figcaption {
  padding: 0.75rem 0.85rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Tools section (Framer-smooth) ---------- */
.tools-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background: #0b0b0f;
  color: #f3f1ec;
  isolation: isolate;
}

.tools-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tools-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.55;
}
.tools-blob.b1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: #2b3fe4;
  top: -12%;
  left: -8%;
  animation: blob-float 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.tools-blob.b2 {
  width: min(48vw, 440px);
  height: min(48vw, 440px);
  background: #a259ff;
  top: 35%;
  right: -10%;
  animation: blob-float 18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate-reverse;
  animation-delay: -4s;
}
.tools-blob.b3 {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  background: #ff3366;
  bottom: -8%;
  left: 30%;
  opacity: 0.35;
  animation: blob-float 16s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  animation-delay: -2s;
}
@keyframes blob-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(36px, 48px, 0) scale(1.15); }
}
.tools-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.tools-section .eyebrow {
  color: rgba(243, 241, 236, 0.55);
}
.tools-section .section-sub {
  color: rgba(243, 241, 236, 0.72);
  margin-left: auto;
  margin-right: auto;
}
.tools-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.tools-intro .display {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
}

.tools-label {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto 0.85rem;
  padding: 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.45);
}

/* Marquees — cards fade + blur at screen edges */
.tools-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-bottom: 1.35rem;
  /* Soft dissolve toward edges */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}
.tools-marquee-blur::before,
.tools-marquee-blur::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: min(200px, 22vw);
  z-index: 4;
  pointer-events: none;
}
.tools-marquee-blur::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 11, 15, 0.88) 0%,
    rgba(11, 11, 15, 0.45) 45%,
    transparent 100%
  );
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 20%, transparent 100%);
}
.tools-marquee-blur::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(11, 11, 15, 0.88) 0%,
    rgba(11, 11, 15, 0.45) 45%,
    transparent 100%
  );
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 20%, transparent 100%);
}

.tools-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  padding: 0.5rem 1rem 0.85rem;
  animation: tools-marquee 48s linear infinite;
  will-change: transform;
}
.tools-marquee.reverse .tools-track {
  animation-name: tools-marquee-rev;
  animation-duration: 52s;
}
.tools-marquee:hover .tools-track {
  animation-play-state: paused;
}
@keyframes tools-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes tools-marquee-rev {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.tool-card {
  --edge-blur: 0px;
  --edge-opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-radius: 20px;
  min-width: 210px;
  /* Liquid glass */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px) saturate(170%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(1.08);
  opacity: var(--edge-opacity);
  filter: blur(var(--edge-blur));
  will-change: filter, opacity, transform;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s linear,
    opacity 0.18s linear;
}
.tool-card:hover {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(43, 63, 228, 0.18);
}
.tool-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tool-card div > span {
  display: block;
  font-size: 0.75rem;
  color: rgba(243, 241, 236, 0.55);
  margin-top: 0.15rem;
}

.tool-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tool-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.tool-icon-pad img {
  width: 24px;
  height: 24px;
}

/* Floating chips layer */
.tools-float-stage {
  position: relative;
  z-index: 1;
  height: 120px;
  max-width: 900px;
  margin: 0.5rem auto 1.5rem;
  pointer-events: none;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  will-change: transform, filter;
  filter: blur(0.2px);
}
.float-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.float-chip.fc1 {
  left: 8%;
  top: 20%;
  animation: float-y 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.float-chip.fc2 {
  left: 28%;
  top: 55%;
  animation: float-y 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate-reverse;
  animation-delay: -1s;
}
.float-chip.fc3 {
  left: 48%;
  top: 15%;
  animation: float-y 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  animation-delay: -2s;
}
.float-chip.fc4 {
  left: 65%;
  top: 50%;
  animation: float-y 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate-reverse;
  animation-delay: -0.5s;
}
.float-chip.fc5 {
  left: 82%;
  top: 25%;
  animation: float-y 7.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  animation-delay: -1.5s;
}
@keyframes float-y {
  0% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
    filter: blur(0px);
  }
  100% {
    transform: translate3d(8px, -18px, 0) rotate(2deg);
    filter: blur(0.3px);
  }
}
@media (max-width: 700px) {
  .tools-float-stage {
    display: none;
  }
}

/* Category cards */
.tools-categories {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) + 2rem);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .tools-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tools-cat {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  /* Liquid glass panels */
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(30px) saturate(165%) brightness(1.06);
  -webkit-backdrop-filter: blur(30px) saturate(165%) brightness(1.06);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.5s ease;
}
.tools-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 12% 0%,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 52%
  );
  opacity: 0.85;
}
.tools-cat > * {
  position: relative;
  z-index: 1;
}
.tools-cat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 40px rgba(124, 92, 255, 0.12);
}
.tools-cat h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.tools-cat p {
  font-size: 0.9rem;
  color: rgba(243, 241, 236, 0.68);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.tools-cat-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.tools-cat-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.tools-cat:hover .tools-cat-icons img {
  transform: translateY(-2px);
}
.tools-cat-icons img:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08) !important;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.step:hover {
  border-color: rgba(43, 63, 228, 0.35);
  transform: translateY(-3px);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.step-code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}
.step-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}
.about-photo {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy .display {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}
.about-copy .lede {
  margin-bottom: 1rem;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 48ch;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-portfolio {
  margin-top: 3rem;
  padding: 2.75rem 1.5rem;
  border-top: none;
  border-radius: calc(var(--radius) + 8px);
  background: var(--dark);
  color: #f3f1ec;
  text-align: center;
}
.about-portfolio-inner {
  max-width: 560px;
  margin: 0 auto;
}
.about-portfolio .display {
  margin-bottom: 0.75rem;
  color: #f3f1ec;
}
.about-portfolio p {
  color: rgba(243, 241, 236, 0.78);
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 42ch;
  line-height: 1.55;
}
.about-portfolio .eyebrow {
  margin-bottom: 0.65rem;
  color: rgba(243, 241, 236, 0.5);
}
.about-portfolio .btn-primary {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(243, 241, 236, 0.75) 50%,
    rgba(255, 255, 255, 0.65) 100%
  );
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 12px 32px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.about-portfolio .btn-primary:hover {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    #fff 0%,
    rgba(255, 255, 255, 0.88) 55%,
    rgba(243, 241, 236, 0.8) 100%
  );
  box-shadow:
    0 16px 40px -12px rgba(255, 255, 255, 0.25),
    0 12px 32px -14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 #fff;
}

/* ---------- Recommendations ---------- */
.recommendations {
  text-align: center;
}
.recs-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.recs-head .display {
  margin-left: auto;
  margin-right: auto;
}
.recs-grid {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .recs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.rec-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 14px 40px -28px rgba(24, 20, 16, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -24px rgba(24, 20, 16, 0.4);
}
.rec-quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.35;
  font-weight: 700;
  margin-bottom: -0.5rem;
}
.rec-body {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
}
.rec-author {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.rec-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent);
}
.rec-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.rec-author span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.rec-author .rec-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--mute);
  font-weight: 500;
}
.recs-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-linkedin {
  gap: 0.65rem;
}
.btn-linkedin-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- CTA ---------- */
.cta-band {
  margin: 1rem 1.5rem 4rem;
  background: var(--dark);
  color: #f3f1ec;
  border-radius: calc(var(--radius) + 12px);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-band .display {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(243, 241, 236, 0.75);
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
}
.cta-band .btn-primary {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(247, 245, 241, 0.72) 48%,
    rgba(255, 255, 255, 0.6) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 16px 40px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}
.cta-band .btn-primary:hover {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    #fff 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(247, 245, 241, 0.82) 100%
  );
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 48px -12px rgba(255, 255, 255, 0.28),
    0 14px 36px -14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 #fff;
  transform: translateY(-3px);
}
.cta-band .btn-lg {
  padding: 1.15rem 2.15rem;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 2rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-top nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-top a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.footer-top a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--mute);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* ============================================================
   RESPONSIVE — tablet + mobile
   ============================================================ */

/* Base overflow guards */
html {
  overflow-x: clip;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* ----- Tablet (≤ 900px) ----- */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-head .display {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
  }

  .hero {
    padding: calc(var(--header-h) + 1rem) 1.25rem 1.5rem;
    gap: 1.5rem;
    height: auto;
    max-height: none;
  }

  .hero .display {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }

  .hero-grid {
    height: min(42vw, 280px);
    min-height: 200px;
    max-height: 300px;
  }

  .project {
    padding: 1.5rem 1.15rem;
    margin-bottom: 2.5rem;
    border-radius: 18px;
  }

  .project-copy .display {
    font-size: clamp(1.75rem, 5.5vw, 2.4rem);
  }

  .project-gallery .shot.main {
    aspect-ratio: 16 / 11;
  }

  .project#vosyn,
  .project#ablemind {
    padding: 1.25rem 1rem;
  }

  .tools-section {
    padding: 3.5rem 0 3rem;
  }

  .tools-intro .display {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta-band {
    margin: 1rem 1rem 3rem;
    padding: 2.75rem 1.25rem;
    border-radius: 22px;
  }

  .cta-band .display {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-top nav,
  .footer-social {
    gap: 1rem 1.25rem;
  }

  .about-photo {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 4 / 4.5;
  }

  .work-industries-track span {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }
}

/* ----- Mobile (≤ 640px) ----- */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --radius: 16px;
    --radius-sm: 10px;
  }

  body {
    font-size: 15px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .header-inner {
    padding: 0 0.85rem;
    gap: 0.75rem;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .logo span {
    font-size: 0.9rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    /* Larger tap target */
    margin-right: -4px;
  }

  .mobile-menu {
    padding: 1.5rem 1.15rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu a {
    font-size: 1.45rem;
    padding: 0.35rem 0;
  }

  .mobile-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
    min-height: 48px;
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-h) + 0.85rem) 1rem 1.25rem;
    gap: 1.15rem;
    align-content: start;
  }

  .hero .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
  }

  .hero .display {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
  }

  .scroll-hint {
    font-size: 0.72rem;
    align-self: flex-start;
  }

  .hero-grid {
    height: 210px;
    min-height: 190px;
    max-height: 230px;
    gap: 0.4rem;
  }

  .hero-card {
    border-radius: 10px;
  }

  /* Marquee */
  .marquee {
    padding: 0.9rem 0;
    margin-bottom: 1rem;
  }

  .marquee-track {
    font-size: 0.85rem;
    gap: 1.75rem;
  }

  /* Sections */
  .section {
    padding: 2.75rem 1rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .section-head .display {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .section-sub {
    font-size: 0.95rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  /* Capabilities */
  .cap-card {
    padding: 1.2rem;
  }

  .cap-card h3 {
    font-size: 1.15rem;
  }

  .cap-visual img,
  .cap-visual-ui img {
    height: 100px;
  }

  /* Work / projects */
  .work-head .display {
    margin-bottom: 1rem;
  }

  .work-industries-marquee {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .project {
    padding: 1.2rem 0.95rem;
    margin-bottom: 1.75rem;
    border-radius: 16px;
  }

  .project-meta {
    font-size: 0.72rem;
    gap: 0.45rem 0.85rem;
    margin-bottom: 1rem;
  }

  .project-body {
    gap: 1.25rem;
  }

  .project-copy .display {
    font-size: clamp(1.6rem, 7.5vw, 2rem);
  }

  .project-copy > p,
  .project-copy .lede {
    max-width: none;
    font-size: 0.95rem;
  }

  .tags {
    gap: 0.35rem;
  }

  .tags li {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
  }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .project-gallery .shot {
    aspect-ratio: 1;
    border-radius: 10px;
  }

  .project-gallery .shot.main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 11;
    max-height: none;
  }

  .project-gallery-single .shot.main {
    max-height: 240px;
  }

  .project-c21 .project-gallery {
    grid-template-columns: 1fr 1fr;
  }

  /* More work mosaic — already 2-col below 700 */
  .mosaic {
    gap: 0.6rem;
  }

  .mosaic figcaption {
    font-size: 0.7rem;
    padding: 0.55rem 0.65rem 0.7rem;
  }

  /* Tools */
  .tools-section {
    padding: 2.75rem 0 2.5rem;
  }

  .tools-intro {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .tools-label {
    padding: 0 1rem;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
  }

  .tool-card {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    gap: 0.65rem;
  }

  .tool-card strong {
    font-size: 0.88rem;
  }

  .tool-card div > span {
    font-size: 0.7rem;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .tool-icon img {
    width: 22px;
    height: 22px;
  }

  .tools-marquee-blur::before,
  .tools-marquee-blur::after {
    width: min(72px, 16vw);
  }

  .tools-categories {
    padding: 0 1rem;
    margin-top: 0.75rem;
  }

  .tools-cat {
    padding: 1.15rem 1.1rem;
    border-radius: 18px;
  }

  .tools-cat h3 {
    font-size: 1.05rem;
  }

  .tools-cat p {
    font-size: 0.85rem;
  }

  /* Process */
  .step {
    padding: 1.2rem;
  }

  .step-num {
    font-size: 2rem;
  }

  /* About */
  .about-grid {
    gap: 1.5rem;
  }

  .about-copy .display {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .about-links .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .about-portfolio {
    margin-top: 2rem;
    padding: 2rem 1.15rem;
    border-radius: 18px;
  }

  .about-portfolio .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* Recommendations */
  .rec-card {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .rec-body {
    font-size: 0.92rem;
  }

  .recs-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* CTA */
  .cta-band {
    margin: 0.75rem 0.75rem 2.5rem;
    padding: 2.25rem 1.15rem;
    border-radius: 18px;
  }

  .cta-band .display {
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
  }

  .cta-band p {
    font-size: 0.95rem;
  }

  .btn-lg {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 1rem 1.75rem;
  }

  .footer-top nav,
  .footer-social {
    width: 100%;
  }

  .footer-top a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
  }

}

/* ----- Small phones (≤ 380px) ----- */
@media (max-width: 380px) {
  .hero .display {
    font-size: 1.7rem;
  }

  .hero-grid {
    height: 170px;
    min-height: 160px;
  }

  .logo span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery .shot.main {
    aspect-ratio: 4 / 3;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }
}

/* Landscape phones: keep hero usable */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-h) + 0.5rem);
    gap: 1rem;
  }

  .hero-grid {
    height: 140px;
    min-height: 120px;
  }

  .hero .display {
    font-size: 1.65rem;
  }

  .hero-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track,
  .work-industries-track,
  .tools-track,
  .tools-blob,
  .float-chip,
  .scroll-hint {
    animation: none !important;
  }
  .float-chip {
    filter: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
