@font-face {
  font-family: "Lexend Deca";
  font-display: swap;
  src: url("/assets/shared/useanyfont/8507Lexend-Deca.woff2") format("woff2");
}

@font-face {
  font-family: "BentonSans-Black";
  font-weight: normal;
  font-style: normal;
  font-display: block;
  src: url("assets/fonts/BentonSans-Black.eot?#iefix") format("embedded-opentype"),
       url("assets/fonts/BentonSans-Black.otf") format("opentype"),
       url("assets/fonts/BentonSans-Black.woff") format("woff"),
       url("assets/fonts/BentonSans-Black.ttf") format("truetype"),
       url("assets/fonts/BentonSans-Black.svg#BentonSans-Black") format("svg");
}

:root {
  --ink: #17191d;
  --muted: #66727c;
  --paper: #f6f8f8;
  --panel: #ffffff;
  --line: #d7dee1;
  --sun: #f7ca45;
  --mint: #72ccb5;
  --coral: #7B5EA7;
  --blue: #3467b1;
  --shadow: 0 22px 70px rgba(23, 25, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1440px;
  margin: 0 auto;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lexend Deca", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(215, 222, 225, 0.74);
  background: rgba(246, 248, 248, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(23, 25, 29, 0.08);
}

.brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-header.is-scrolled .brand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.brand img {
  width: min(330px, 58vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2b2e34;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: gap 180ms ease;
}

.site-header.is-scrolled .site-nav {
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 9px 11px;
  border: 1px solid rgba(23, 25, 29, 0.11);
  border-radius: 999px;
  background: rgba(246, 248, 248, 0.34);
  box-shadow: 0 10px 26px rgba(23, 25, 29, 0.035);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled .site-nav a {
  padding: 8px 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 160ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(360px, 1.26fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  min-height: calc(100svh - 76px);
  padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(82px, 9vw, 112px);
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 25, 29, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 29, 0.052) 1px, transparent 1px),
    radial-gradient(circle at var(--mx, 72%) var(--my, 42%), rgba(114, 204, 181, 0.18), transparent 34%),
    radial-gradient(circle at 78% 24%, rgba(52, 103, 177, 0.12), transparent 36%),
    linear-gradient(135deg, #fbfcfc 0%, #eef3f5 58%, #f8fafb 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.hero::before {
  position: absolute;
  inset: clamp(18px, 4vw, 58px);
  border: 1px solid rgba(23, 25, 29, 0.14);
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-card,
.hero-canvas,
.hero-tease {
  position: relative;
  z-index: 1;
}

.hero-card {
  align-self: center;
  max-width: 610px;
}

.hero-card > .eyebrow {
  margin-left: clamp(18px, 3vw, 30px);
}

.canvas-location {
  position: absolute;
  top: clamp(24px, 5vw, 58px);
  left: clamp(24px, 5vw, 58px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(23, 25, 29, 0.18);
  border-radius: 99px;
  background: rgba(246, 248, 248, 0.88);
  box-shadow: 0 4px 16px rgba(23, 25, 29, 0.08);
  color: #2d333b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 9vw, 9.2rem);
}

.hero-logo {
  width: min(100%, 430px);
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(23, 25, 29, 0.22);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 22px 50px rgba(23, 25, 29, 0.18);
  transform: translate3d(calc(var(--tilt-x, 0) * -5px), calc(var(--tilt-y, 0) * -5px), 0);
  transition: transform 160ms ease;
}

.hero-logo img {
  width: 100%;
}

.hero-logo-name {
  display: block;
  font-family: "BentonSans-Black", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 5rem);
  color: #fff;
  text-transform: uppercase;
  line-height: 0.8;
  -webkit-text-stroke: 0.15px #fff;
  text-shadow: 0 0 1px #fff;
}

.hero-card > p:not(.eyebrow) {
  max-width: 460px;
  margin: clamp(16px, 2.5vw, 26px) 0 0;
  color: #343840;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 430px;
  margin-top: clamp(20px, 3.5vw, 32px);
  border-top: 1px solid rgba(23, 25, 29, 0.28);
  border-left: 1px solid rgba(23, 25, 29, 0.28);
}

.hero-meta span {
  min-height: 58px;
  padding: 12px;
  border-right: 1px solid rgba(23, 25, 29, 0.28);
  border-bottom: 1px solid rgba(23, 25, 29, 0.28);
  color: #2d333b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 25, 29, 0.13);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
}

.hero-canvas {
  position: relative;
  min-height: min(66vh, 650px);
  border: 1px solid rgba(23, 25, 29, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--fx, 64%) var(--fy, 42%), rgba(114, 204, 181, 0.18), transparent 30%),
    radial-gradient(circle at 22% 76%, rgba(52, 103, 177, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  transform: perspective(1100px) rotateX(calc(var(--tilt-y, 0) * -2deg)) rotateY(calc(var(--tilt-x, 0) * 2deg));
  transform-style: preserve-3d;
  transition: transform 140ms ease;
}

.flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-plane {
  position: absolute;
  pointer-events: none;
}

.flow-plane {
  border: 1px solid rgba(23, 25, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  transform: translate3d(calc(var(--tilt-x, 0) * 16px), calc(var(--tilt-y, 0) * 16px), 0);
  transition: transform 160ms ease;
}

.plane-one {
  top: 10%;
  right: 8%;
  width: 30%;
  height: 20%;
}

.plane-two {
  bottom: 10%;
  left: 8%;
  width: 24%;
  height: 22%;
}

.canvas-note {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 5;
  display: grid;
  gap: 10px;
  max-width: 360px;
  padding: clamp(16px, 2.5vw, 26px) clamp(18px, 2.8vw, 30px);
  border: 1px solid rgba(23, 25, 29, 0.22);
  border-radius: 8px;
  background: rgba(246, 248, 248, 0.92);
  box-shadow: 0 18px 42px rgba(23, 25, 29, 0.12);
}

.canvas-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.canvas-note strong {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.hero-tease {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 24px;
  left: clamp(20px, 5vw, 72px);
  min-height: 20px;
  border-top: 1px solid rgba(23, 25, 29, 0.26);
}

.section,
.quote-band,
.contact {
  max-width: 1380px;
  margin-inline: auto;
}

.section {
  padding: clamp(60px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
}

#work-title {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.section-heading.wide > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card,
.work-card,
.skills-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(23, 25, 29, 0.08);
}

.case-card {
  overflow: hidden;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.49;
  object-fit: cover;
}

.case-card div {
  padding: 20px;
}

.case-card p {
  margin: 0 0 7px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
}

.case-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.case-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #3b414a;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 240ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  box-shadow: var(--shadow);
}

.case-card,
.work-card {
  color: inherit;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.49;
  object-fit: cover;
  display: block;
  background: #e8e4da;
  transition: transform 360ms ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(23, 25, 29, 0.72) 0%, transparent 60%);
  transform: translateY(100%);
  transition: transform 280ms ease;
}

.work-card:hover .work-card-overlay {
  transform: translateY(0);
}

.work-card-overlay h3 {
  margin: 0;
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.quote-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}

.quote-band blockquote {
  margin: 0;
  padding: clamp(34px, 5vw, 64px);
  background: var(--ink);
  color: var(--paper);
}

.quote-band p {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 2.2rem);
  line-height: 1.2;
}

.quote-band cite {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-style: normal;
  text-transform: uppercase;
}

.collabs {
  background: var(--panel);
}

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-row {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  width: max-content;
  animation: logo-marquee 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.logo-track img {
  height: clamp(80px, 12vw, 160px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 200ms ease;
}

.logo-track img:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.skills {
  background:
    linear-gradient(180deg, rgba(100, 80, 190, 0.10), transparent 38%),
    var(--paper);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skills-grid article {
  padding: 24px;
}

.skills-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  object-fit: contain;
}

.skills-grid h3 {
  font-size: 1.18rem;
}

.skills-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(64px, 10vw, 130px) clamp(20px, 5vw, 72px);
  color: var(--paper);
  background:
    linear-gradient(rgba(23, 25, 29, 0.45), rgba(23, 25, 29, 0.82)),
    url("/assets/uploads/portfolio-bg1.jpg") center / cover no-repeat;
}

.contact .eyebrow {
  color: var(--mint);
}

.contact .button.primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.project-page {
  background:
    linear-gradient(rgba(23, 25, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 29, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 46px 46px;
}

.project-page .site-header {
  background: rgba(246, 248, 248, 0.96);
}

.project-page .brand {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.project-hero {
  padding: clamp(46px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 64px);
}

.project-kicker,
.project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 25, 29, 0.22);
  color: #2c3138;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-kicker a,
.project-pagination a {
  color: var(--blue);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  margin-top: clamp(36px, 7vw, 86px);
}

.project-hero h1 {
  max-width: 12ch;
  overflow-wrap: normal;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  word-break: normal;
}

.project-summary {
  max-width: 760px;
  color: #343840;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.project-summary p {
  margin: 0;
}

.project-summary p + p {
  margin-top: 18px;
}

.project-hero-image {
  margin: clamp(38px, 6vw, 76px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 29, 0.16);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.project-hero-image img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #eef3f5;
}

.project-section {
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px);
}

.project-section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.project-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-media-grid figure,
.project-embed {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(23, 25, 29, 0.08);
}

.project-media-grid img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #eef3f5;
}

.project-embed {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-embed--ceros {
  aspect-ratio: unset;
  height: 1760px;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 560px) {
  .project-embed--ceros {
    height: 2325px;
  }
}

.project-embed + .gallery {
  margin-top: 24px;
}

/* ── Gallery slider ──────────────────────────────────────── */
.gallery {
  position: relative;
}

/* Edge fade overlays — sit above slides, below arrows */
.gallery::before,
.gallery::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 44px; /* clear the dots row */
  width: 13%;
  z-index: 2;
  pointer-events: none;
}

.gallery::before {
  left: 0;
  background: linear-gradient(to right, var(--paper) 20%, transparent);
}

.gallery::after {
  right: 0;
  background: linear-gradient(to left, var(--paper) 20%, transparent);
}

.gs-track {
  overflow: hidden;
}

.gs-slides {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide width set in px by JS; these handle the rest */
.gs-slide {
  flex: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(23, 25, 29, 0.1);
  cursor: zoom-in;
  transition: opacity 0.3s, box-shadow 0.3s, transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gs-slide:not(.is-active) {
  opacity: 0.45;
  cursor: pointer;
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(23, 25, 29, 0.07);
}

.gs-slide img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Arrows */
.gs-prev,
.gs-next {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 22px));
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(23, 25, 29, 0.14);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  line-height: 1;
}

.gs-prev { left: 12px; }
.gs-next { right: 12px; }

.gs-prev:hover,
.gs-next:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(calc(-50% - 22px)) scale(1.08);
}

.gs-prev:disabled,
.gs-next:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Dots */
.gs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.gs-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.gs-dot.is-active {
  background: var(--ink);
  transform: scale(1.4);
}

/* ── Gallery masonry ─────────────────────────────────────── */
.gallery-masonry {
  columns: 3;
  column-gap: 12px;
}

.gallery-masonry figure {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 25, 29, 0.07);
  cursor: zoom-in;
  position: relative;
}

.gallery-masonry figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 29, 0);
  transition: background 0.18s;
  pointer-events: none;
}

.gallery-masonry figure:hover::after {
  background: rgba(23, 25, 29, 0.08);
}

.gallery-masonry img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Gallery lightbox ────────────────────────────────────── */
.gallery-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 19, 23, 0.96);
  align-items: center;
  justify-content: center;
}

.gallery-lb.is-open {
  display: flex;
}

.gallery-lb-img {
  max-width: min(90vw, 1300px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.gallery-lb-prev,
.gallery-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.gallery-lb-close:hover,
.gallery-lb-prev:hover,
.gallery-lb-next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.gallery-lb-prev { left: 14px; }
.gallery-lb-next { right: 14px; }

.gallery-lb-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gallery-lb[data-count="1"] .gallery-lb-prev,
.gallery-lb[data-count="1"] .gallery-lb-next,
.gallery-lb[data-count="1"] .gallery-lb-counter {
  display: none;
}

.gallery-lb-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  max-width: 70ch;
  text-align: center;
  padding-inline: 16px;
}

/* ── /Gallery ────────────────────────────────────────────── */

.project-pagination {
  margin: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(54px, 8vw, 104px);
}

/* ── Project meta bar ─────────────────────────────────── */
.project-meta-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.project-meta-item .eyebrow {
  margin-bottom: 10px;
}

.project-meta-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #343840;
  line-height: 1.55;
}

.project-meta-item p + p {
  margin-top: 4px;
}

/* ── Problem / Goals two-column ───────────────────────── */
.project-content-section {
  background: var(--paper);
}

.project-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-bio {
  columns: 2;
  column-gap: clamp(32px, 6vw, 80px);
  margin-top: 32px;
}

.about-bio p {
  break-inside: avoid;
  margin: 0 0 20px;
}

.about-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 72px);
}

.about-quotes .project-quote {
  margin: 0;
}

.project-content-lead {
  margin: 0 0 14px;
  color: #343840;
  font-size: 1rem;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-list li {
  padding-left: 20px;
  position: relative;
  color: #343840;
  font-size: 0.97rem;
  line-height: 1.6;
}

.project-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* ── Design process steps ─────────────────────────────── */
.project-process {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-process-step {
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.project-process-step:first-child {
  border-top: 1px solid var(--line);
}

.process-step-label {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.process-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
  text-transform: uppercase;
  flex-shrink: 0;
}

.process-step-label strong {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}

/* ── Outcome stats ────────────────────────────────────── */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.project-stat {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  color: #343840;
  line-height: 1.45;
}

.project-quote {
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  border-left: 3px solid var(--coral);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
}

.project-quote p {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.project-quote cite {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1080px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading.wide {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}


@media (min-width: 841px) {
  .hero-card > .eyebrow {
    display: none;
  }
}

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

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero-card > .eyebrow {
    display: block;
  }

  .canvas-location {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 68px);
    padding-top: 42px;
  }

  .hero::before {
    top: auto;
    right: 20px;
    bottom: 86px;
    left: 20px;
    width: auto;
    height: 36vh;
  }

  .hero-card {
    max-width: 720px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }

  .hero-canvas {
    min-height: 420px;
  }

  .case-grid,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    align-items: start;
    flex-direction: column;
  }

  .project-hero-grid,
  .project-media-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    columns: 2;
  }

  .project-hero h1 {
    max-width: 14ch;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-content-grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 56px);
  }

  .about-bio {
    columns: 1;
  }

  .about-quotes {
    grid-template-columns: 1fr;
  }

  .project-process-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand img {
    width: min(245px, 64vw);
  }

  .hero,
  .section,
  .contact,
  .project-hero,
  .project-section {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero {
    padding-bottom: 86px;
  }

  .hero-card > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-logo {
    width: min(100%, 360px);
  }

  .hero-meta {
    display: none;
  }

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

  .hero-canvas {
    margin-top: 8px;
    min-height: 330px;
  }

  .canvas-note {
    bottom: 7%;
    max-width: 260px;
    padding: 14px 16px;
  }

  .hero-tease {
    right: 16px;
    left: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .work-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .filter {
    flex: 1 1 auto;
  }

  .project-kicker,
  .project-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-pagination {
    margin-inline: 16px;
  }

  .gs-slide img {
    height: 260px;
  }

  .gallery-masonry {
    columns: 2;
    column-gap: 8px;
  }

  .gallery-masonry figure {
    margin-bottom: 8px;
  }

  .gallery-lb-prev { left: 8px; }
  .gallery-lb-next { right: 8px; }

  .gallery-lb-img {
    max-width: 96vw;
    max-height: 82vh;
  }
}
