/* ==========================================================================
   DK Studio portfolio
   Tokens, reset, layout, components. BEM-ish naming, single-class selectors
   to keep specificity flat and predictable.
   ========================================================================== */

@font-face {
  font-family: 'K2D';
  src: url('font/K2D-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'K2D';
  src: url('font/K2D-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'K2D';
  src: url('font/K2D-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'K2D';
  src: url('font/K2D-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'K2D';
  src: url('font/K2D-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'K2D';
  src: url('font/K2D-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --void: #060606;
  --charcoal: #141414;
  --surface: #131313;
  --surface-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --ink: #f5f4f1;
  --ink-dim: #b3b3b0;
  --steel: #85858a;

  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.14);
  --accent-2: #9a9a9a;
  --accent-2-dim: rgba(154, 154, 154, 0.14);

  --glow-rgb: 255, 255, 255;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --font-sans: 'K2D', 'Segoe UI', sans-serif;
  --font-mono: 'K2D', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 88px;
}

[data-theme="light"] {
  color-scheme: light;

  --void: #ffffff;
  --charcoal: #f1f1ef;
  --surface: #f6f5f3;
  --surface-hover: #ececea;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.22);

  --ink: #0a0a0a;
  --ink-dim: #4a4a4a;
  --steel: #6e6e6e;

  --accent: #0a0a0a;
  --accent-dim: rgba(10, 10, 10, 0.1);
  --accent-2: #4a4a4a;
  --accent-2-dim: rgba(74, 74, 74, 0.12);

  --glow-rgb: 10, 10, 10;
}

[data-theme="light"] .nav__brand img,
[data-theme="light"] .footer__logo {
  filter: invert(1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--void);
}

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

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--void);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-s);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- layout helpers ---------- */

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

section[id] {
  scroll-margin-top: var(--nav-h);
  position: relative;
  z-index: 0;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
}

.section-head {
  max-width: 640px;
}

.section-head__text {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--r-s);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--void);
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px -10px rgba(255, 255, 255, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- background decor ---------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--void);
}

.bg-decor__canvas {
  position: absolute;
  inset: 0;
  display: block;
}


/* ---------- nav ---------- */

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

.nav.is-scrolled {
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  position: relative;
  height: var(--nav-h);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__brand img {
  height: 50px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  right: 0;
}

.nav__link--cta {
  color: var(--void);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover,
.nav__link--cta.is-active {
  color: var(--void);
  opacity: 0.85;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-s);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-s);
  align-items: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px clamp(24px, 5vw, 80px) 20px;
  background: rgba(6, 6, 6, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav__mobile[hidden] {
  display: none;
}

.nav__mobile-link {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-dim);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.nav__mobile-link:last-child {
  border-bottom: none;
}

.nav__mobile-link--cta {
  color: var(--accent);
}

@media (min-width: 900px) {
  .nav__inner {
    justify-content: center;
  }

  .nav__brand {
    position: absolute;
    left: clamp(24px, 5vw, 80px);
    top: 50%;
    transform: translateY(-50%);
  }

  .nav__links {
    display: flex;
  }

  .theme-toggle {
    position: absolute;
    right: clamp(24px, 5vw, 80px);
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .nav__toggle {
    display: none;
  }
  .nav__mobile {
    display: none !important;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel);
}

.hero__dot--1 {
  background: #5a5a5a;
}
.hero__dot--2 {
  background: var(--accent);
}
.hero__dot--3 {
  background: #d4d4d4;
}

.hero__subhead {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 480px;
  margin: 28px 0 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scroll-hint 1.8s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- about ---------- */

.about,
.services,
.portfolio,
.testimonials,
.contact {
  padding-block: clamp(80px, 10vw, 140px);
}

.about,
.contact {
  overflow: hidden;
}

.about__grid {
  display: grid;
  gap: 56px;
}

.about__text {
  color: var(--ink-dim);
  margin-bottom: 16px;
  max-width: 540px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 360px;
}

.stat-row__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 20px 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.stat-row__item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.stat-row__number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.01em;
  color: var(--accent);
}

.stat-row__label {
  display: block;
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.about__card {
  display: flex;
  flex-direction: column;
}

.about__card-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about__process {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.about__process-item {
  position: relative;
  display: flex;
  gap: 18px;
}

.about__process-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -26px;
  width: 1px;
  background: var(--border-strong);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 70ms + 180ms);
}

.about__process-item.is-visible:not(:last-child)::after {
  transform: scaleY(1);
}

.about__process-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
}

.about__process-title {
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 4px;
}

.about__process-desc {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 420px;
}

@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .about__card {
    padding-top: 10px;
    padding-left: 48px;
    border-left: 1px solid var(--border);
  }
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 32px;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.25s var(--ease), transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -24px rgba(var(--glow-rgb), 0.3);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow-rgb), 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__index {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
}

.service-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 24px;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover .service-card__icon {
  color: var(--accent);
  transform: translateY(-2px);
}

.service-card__title {
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.service-card__features li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-dim);
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 1px;
  background: var(--accent-2);
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.service-card__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.service-card__cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--void);
  transform: translateX(2px);
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card__title {
    font-size: 19px;
  }
}

/* ---------- portfolio ---------- */

.work-carousel {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #fff 40px, #fff calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #fff 40px, #fff calc(100% - 40px), transparent 100%);
}

.work-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
}

.work-carousel.is-animated .work-carousel__track {
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}

.work-carousel.is-animated:hover .work-carousel__track,
.work-carousel.is-animated:focus-within .work-carousel__track,
.work-carousel.is-animated.is-touch-paused .work-carousel__track {
  animation-play-state: paused;
}

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

.work-card {
  flex: 0 0 min(340px, 82vw);
  width: min(340px, 82vw);
}

.work-card[hidden] {
  display: none;
}

.work-card[data-clone] {
  pointer-events: none;
}

.work-card[data-clone] .work-card__preview--photo img {
  pointer-events: auto;
}

.work-card__window {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.work-card__window:hover {
  border-color: var(--border-strong);
  box-shadow: 0 28px 52px -26px rgba(var(--glow-rgb), 0.3);
}

.work-card__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.work-card__url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__carousel {
  position: relative;
}

.work-card__track {
  display: flex;
  transition: transform 0.4s var(--ease);
}

.work-card__preview {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  padding: 11% 13%;
}

.work-card__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 6, 6, 0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-card__nav:hover {
  opacity: 1;
  background: rgba(6, 6, 6, 0.75);
  transform: translateY(-1px);
}

.work-card__nav--prev {
  left: 10px;
}

.work-card__nav--next {
  right: 10px;
}

.work-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.work-card__dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-card__dots button.is-active {
  background: #fff;
  transform: scale(1.35);
}

.work-card__preview--photo {
  padding: 0;
  overflow: hidden;
}

.work-card__preview--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease);
}

.work-card__preview--photo img:hover {
  transform: scale(1.03);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--r-s);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: clamp(20px, 5vw, 60px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lightbox__close:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lightbox__nav:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__nav--prev {
  left: clamp(12px, 4vw, 40px);
}

.lightbox__nav--next {
  right: clamp(12px, 4vw, 40px);
}

.lightbox__nav[hidden] {
  display: none;
}

.work-card__body {
  padding: 20px 4px 0;
}

.work-card__title {
  font-weight: 700;
  font-size: 18px;
}

.work-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.work-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--steel);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.work-card__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.work-card__badge--live {
  color: var(--ink);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.work-card__badge--live::before {
  background: #4ad17a;
  opacity: 1;
}

.work-card__desc {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-card__tags li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.work-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-card__cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--void);
  transform: translateX(2px);
}

/* ---------- testimonials ---------- */

.testimonial-carousel {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: clamp(28px, 5vw, 56px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card__quote {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card__name {
  font-weight: 600;
}

.testimonial-card__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.testimonial-dots button.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- contact ---------- */

.contact__grid {
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact__info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
}

.crop {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
}

.crop--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.crop--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.crop--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.crop--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.contact__text {
  color: var(--ink-dim);
  max-width: 440px;
  margin-bottom: 32px;
}

.availability {
  width: 100%;
  max-width: 440px;
  text-align: left;
  margin-bottom: 32px;
}

.availability__days {
  display: flex;
  gap: 6px;
  list-style: none;
  margin-bottom: 18px;
}

.availability__day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--r-s);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.availability__day:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.availability__day[data-level="high"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--void);
  font-weight: 600;
}

.availability__legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.availability__legend-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.availability__legend-item dt {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 80px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.availability__legend-item dd {
  font-size: 13.5px;
  color: var(--ink-dim);
}

.availability__swatch {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
}

.availability__swatch[data-level="high"] {
  background: var(--accent);
  border-color: var(--accent);
}

.contact__email {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 20px 32px;
  margin-bottom: 36px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact__email-label {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.contact__email:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
}

.footer__logo {
  height: 26px;
  margin-bottom: 14px;
}

.footer__tagline {
  color: var(--steel);
  font-size: 13.5px;
  max-width: 240px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
}

.footer__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s var(--ease);
}

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

.footer__links a:hover::after {
  right: 0;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px clamp(24px, 5vw, 80px) 32px;
  text-align: center;
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-hint span {
    animation: none;
  }

  .lightbox,
  .work-card__preview--photo img {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about__process-item:not(:last-child)::after {
    transform: scaleY(1);
    transition: none;
  }

  .work-carousel {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .work-carousel__track {
    flex-wrap: wrap;
    width: auto;
    animation: none !important;
  }

  .work-card {
    flex: 1 1 280px;
    width: auto;
  }

  .service-card::before {
    display: none;
  }

  .btn:hover {
    transform: none;
  }

  .service-card,
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
}
