/* --------------------------------------------------------------------------
   Minimal portfolio — Apple-adjacent: space, type, restraint
   Font: DM Sans (Product Sans–like geometric sans)
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbfb;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent: #1d1d1f;
  --radius: 12px;
  --radius-sm: 8px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max-width: 1120px;
  --header-h: 56px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
  overflow: hidden;
}

body.is-modal-open main,
body.is-modal-open header,
body.is-modal-open footer {
  filter: blur(6px);
}

body.is-modal-open .lightbox {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  body.is-modal-open main,
  body.is-modal-open header,
  body.is-modal-open footer {
    filter: none;
  }
}

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

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

a:hover {
  opacity: 0.7;
}

.site-header a:hover {
  opacity: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header — frosted bar (Craft-inspired) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo--wordmark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: #000;
}

.logo--wordmark:hover {
  opacity: 0.75;
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav__link--primary {
  color: var(--text-secondary);
  transition: color var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.nav__link--primary:hover {
  color: var(--text);
}

.nav__list:hover > li > .nav__link--primary {
  opacity: 0.38;
}

.nav__list > li:hover > .nav__link--primary,
.nav__list > li:focus-within > .nav__link--primary {
  opacity: 1;
  color: var(--text);
}

.nav__item--dropdown {
  position: relative;
}

.nav__item--dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s;
  z-index: 120;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .nav__dropdown {
    transition-duration: 0.01ms;
  }
}

.nav__dropdown-panel {
  min-width: 240px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(200%) blur(22px);
  -webkit-backdrop-filter: saturate(200%) blur(22px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__dropdown-list li {
  margin: 0;
}

.nav__dropdown-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  transition: background var(--transition), opacity var(--transition), color var(--transition);
}

.nav__dropdown-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav__dropdown-list:hover .nav__dropdown-link {
  opacity: 0.42;
}

.nav__dropdown-list .nav__dropdown-link:hover {
  opacity: 1;
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

.mobile-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(200%) blur(22px);
  -webkit-backdrop-filter: saturate(200%) blur(22px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 400;
}

.mobile-nav__list a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text);
}

.mobile-nav__label {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mobile-nav__sub {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0 0 0 var(--space-sm);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav__sub a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}

.mobile-nav__sub a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero__eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.hero__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Section shared */
.section-head {
  max-width: var(--max-width);
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.section-head__title {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-head__subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* Gallery */
.gallery {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.gallery__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.gallery__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  outline-offset: 2px;
}

.gallery__link:focus-visible {
  outline: 2px solid var(--text);
}

.gallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile-bg, linear-gradient(145deg, #e8e8ed 0%, #d2d2d7 100%));
  transition: transform var(--transition);
}

.gallery__link:hover .gallery__media {
  transform: scale(1.01);
}

.gallery__media--1 {
  background: linear-gradient(160deg, #e4e4e8 0%, #c7c7cc 100%);
}

.gallery__media--2 {
  background: linear-gradient(145deg, #d1d1d6 0%, #aeaeb2 100%);
}

.gallery__media--3 {
  background: linear-gradient(155deg, #f5f5f7 0%, #d8d8dc 100%);
}

.gallery__media--4 {
  background: linear-gradient(135deg, #c4c4c8 0%, #8e8e93 100%);
}

.gallery__media--5 {
  background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
}

.gallery__media--6 {
  background: linear-gradient(145deg, #ececf0 0%, #b8b8bd 100%);
}

.gallery__media--7 {
  background: linear-gradient(155deg, #e7e7eb 0%, #cfcfd6 100%);
}

.gallery__media--8 {
  background: linear-gradient(150deg, #dadadd 0%, #bdbdc4 100%);
}

.gallery__media--9 {
  background: linear-gradient(165deg, #f0f0f2 0%, #cfcfd4 100%);
}

.gallery__media--10 {
  background: linear-gradient(140deg, #d9d9dd 0%, #a9a9b0 100%);
}

.gallery__media--11 {
  background: linear-gradient(150deg, #ededf1 0%, #c6c6cc 100%);
}

.gallery__media--12 {
  background: linear-gradient(160deg, #d0d0d5 0%, #b0b0b7 100%);
}

/* Make all Selected Work tiles same tone */
.gallery__media--2,
.gallery__media--3,
.gallery__media--4,
.gallery__media--5,
.gallery__media--6,
.gallery__media--7,
.gallery__media--8,
.gallery__media--9,
.gallery__media--10,
.gallery__media--11,
.gallery__media--12 {
  background: linear-gradient(160deg, #e4e4e8 0%, #c7c7cc 100%);
}

.gallery__label {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

/* Keep label color consistent across tiles */
.gallery__media--5 .gallery__label {
  color: #1d1d1f;
}

/* Services */
.services {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}

.services__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-card__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-card__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.nav__link--primary[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Customers — infinite marquee (clipped to same grid as section-head) */
.customers {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.customers-marquee {
  position: relative;
  width: 100%;
}

.customers-marquee__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

.customers-marquee__viewport {
  overflow: hidden;
  padding: var(--space-md) 0;
  width: 100%;
}

.customers-marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  animation: customers-marquee-scroll 45s linear infinite;
  will-change: transform;
}

.customers-marquee:hover .customers-marquee__track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .customers-marquee__track {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
}

.customers-marquee__row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: 0;
  padding-inline-start: 0;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
}

.customers-marquee__item {
  flex: 0 0 auto;
  cursor: default;
}

.customers-marquee__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.28s ease;
}

.customers-marquee__item:hover .customers-marquee__logo {
  filter: grayscale(0);
}

.customers-tooltip {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  pointer-events: none;
  padding: 0.28rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, 6px);
  white-space: nowrap;
}

/* About page */
.about-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-2xl);
}

.about-page__header {
  margin-bottom: var(--space-lg);
}

.about-page__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.about-page__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}

.about-page__body {
  max-width: 40rem;
}

.about-page__body p {
  margin: 0 0 var(--space-md);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
}

.about-page__body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-page__body a:hover {
  opacity: 0.7;
}

/* Contact */
.contact {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}

.contact__layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}

.contact__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact__lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 22rem;
  line-height: 1.55;
}

.contact__details {
  margin: calc(var(--space-xl) + 1.25rem) 0 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 22rem;
  line-height: 1.55;
}

.contact__details a {
  color: var(--text);
}

.contact__details a:hover {
  opacity: 0.7;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.field {
  margin-bottom: var(--space-md);
}

.field__label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.field__input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.field__input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.12);
}

.field__input::placeholder,
.field__input--area::placeholder {
  opacity: 1;
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

.field__input--area {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  background: var(--accent);
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.site-footer__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
  flex: 1 1 auto;
  min-width: 0;
  z-index: 1;
}

.site-footer__copy strong {
  font-weight: 600;
}

.site-footer__social {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  z-index: 2;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--transition), opacity var(--transition);
}

.site-footer__social-link:hover {
  color: var(--text);
  opacity: 1;
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.site-footer__social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer__social-link--pending {
  cursor: default;
  opacity: 0.85;
}

.site-footer__social-link--pending:hover {
  color: var(--text-secondary);
  opacity: 0.85;
}

.site-footer__top {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  flex: 1 1 auto;
  text-align: right;
  min-width: 0;
  z-index: 1;
}

@media (max-width: 720px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
  }

  .site-footer__social {
    position: static;
    transform: none;
    order: 2;
    width: 100%;
  }

  .site-footer__copy {
    order: 1;
    text-align: center;
  }

  .site-footer__top {
    order: 3;
    text-align: center;
  }
}

/* Category pages */
.category {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.category__layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: var(--space-lg);
}

.category__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.category__text {
  margin: 0;
  max-width: 26rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.category-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--tile-bg, linear-gradient(145deg, #e8e8ed 0%, #d2d2d7 100%));
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card:hover {
  transform: translateY(-1px);
  transition: transform var(--transition);
}

.category-card__label {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-md);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.lightbox__panel {
  position: relative;
  width: min(960px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
}

.lightbox__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  opacity: 0.85;
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Tablet+ */
@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--wide .gallery__media {
    aspect-ratio: 21 / 9;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .service-card {
    padding: var(--space-md);
  }

  .contact__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .category__layout {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }

  .category__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 3;
  }

  .gallery__item--wide .gallery__media {
    aspect-ratio: 21 / 8;
  }
}
