/* Namu-inspired dark portfolio — raonoman.com */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ffc107;
  --accent-soft: rgba(255, 193, 7, 0.14);
  --accent-glow: rgba(255, 193, 7, 0.42);
  --body-muted: #adb5bd;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body.namu-dark {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Jost", system-ui, sans-serif;
}

/* In-content text links — one accent color site-wide (no browser blue/purple) */
body.namu-dark :is(
    .content-block,
    .seo-article,
    .inner-page article,
    .contact-namu__extra,
    .faq-panel-inner
  )
  :is(p, li, dd)
  a:where(:not([class*="btn"]):not(.service-page-cta__back)),
body.namu-dark main section:is(#home, #about, #services, #faq, #contact) :is(p, li) a:where(:not([class*="btn"])) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.namu-dark :is(
    .content-block,
    .seo-article,
    .inner-page article,
    .contact-namu__extra,
    .faq-panel-inner
  )
  :is(p, li, dd)
  a:where(:not([class*="btn"]):not(.service-page-cta__back)):is(:link, :visited),
body.namu-dark
  main
  section:is(#home, #about, #services, #faq, #contact)
  :is(p, li)
  a:where(:not([class*="btn"])):is(:link, :visited) {
  color: var(--accent);
}

body.namu-dark :is(
    .content-block,
    .seo-article,
    .inner-page article,
    .contact-namu__extra,
    .faq-panel-inner
  )
  :is(p, li, dd)
  a:where(:not([class*="btn"]):not(.service-page-cta__back)):hover,
body.namu-dark
  main
  section:is(#home, #about, #services, #faq, #contact)
  :is(p, li)
  a:where(:not([class*="btn"])):hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

body.namu-dark :is(
    .content-block,
    .seo-article,
    .inner-page article,
    .contact-namu__extra,
    .faq-panel-inner
  )
  :is(p, li, dd)
  a:where(:not([class*="btn"]):not(.service-page-cta__back)):focus-visible,
body.namu-dark
  main
  section:is(#home, #about, #services, #faq, #contact)
  :is(p, li)
  a:where(:not([class*="btn"])):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Beats Tailwind text-namu-accent (#ffc107) — follows color switcher */
.text-namu-accent {
  color: var(--accent) !important;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Side nav */
:root {
  --side-nav-width: 64px;
}

.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  display: none;
  height: 100vh;
  width: var(--side-nav-width);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .side-nav {
    display: flex;
  }
  .page-wrap {
    margin-left: var(--side-nav-width);
  }
}

.side-nav svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.side-nav a {
  position: relative;
  display: flex;
  height: 2.1rem;
  width: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.side-nav a::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  white-space: nowrap;
  border-radius: 6px;
  background: var(--bg-elevated);
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}

.side-nav a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Color switcher in side column (above contact) */
.side-nav__colors {
  position: relative;
}

.side-nav__color-trigger {
  display: flex;
  height: 2.1rem;
  width: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.side-nav__color-trigger:hover,
.side-nav.is-colors-open .side-nav__color-trigger {
  color: var(--accent);
  background: var(--accent-soft);
}

.side-nav__color-trigger::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  white-space: nowrap;
  border-radius: 6px;
  background: var(--bg-elevated);
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}

.side-nav__color-trigger:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.side-nav__color-panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translate(8px, -50%);
  width: 188px;
  padding: 0.85rem 0.95rem 1rem;
  background: #1a1a1d;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.35s;
}

.side-nav.is-colors-open .side-nav__color-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.side-nav__color-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.side-nav__color-divider {
  margin: 0.5rem 0 0.7rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav__color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.side-nav__color-grid .color-dot {
  width: 26px;
  height: 26px;
}

.mobile-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.35rem 0 0.5rem;
}

.mobile-color-grid .color-dot {
  width: 32px;
  height: 32px;
}

.mobile-menu__colors {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu__colors .mobile-menu__subhead {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.mobile-menu__bottom {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
}

/* Header — Namu primary-menu style (index-dark.html) */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  overflow: visible;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1rem;
  min-height: 4rem;
  box-sizing: border-box;
}

/* Mobile: logo left, menu right — same on home + all inner/service pages */
@media (max-width: 767.98px) {
  .site-header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw;
  }

  .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header__nav,
  .site-header__bar .btn-hire {
    display: none !important;
  }

  .site-header__logo-mobile {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
  }

  .site-header__mobile-actions {
    display: flex !important;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    justify-self: auto;
  }
}

.site-header__nav {
  display: none;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header__nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Namu dark: white links, accent on hover/active */
.site-header__nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__nav > a:hover,
.site-header__nav > a:focus-visible,
.site-header__nav > a.is-active,
.site-header__nav .nav-dropdown__trigger:hover,
.site-header__nav .nav-dropdown__trigger:focus-visible,
.site-header__nav .nav-dropdown__trigger.is-active {
  color: var(--accent);
}

/* Header dropdown — Services & Projects */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  align-self: stretch;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.85em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nav-dropdown__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  flex-shrink: 0;
  transition: border-top-color 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown:focus-within .nav-dropdown__trigger,
.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown__trigger.is-active {
  color: var(--accent);
}

.nav-dropdown.is-open .nav-dropdown__trigger::after,
.nav-dropdown:hover .nav-dropdown__trigger::after {
  border-top-color: var(--accent);
}

/* No gap: padding-top is invisible bridge (same box, cursor stays on menu) */
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 14.5rem;
  max-height: none;
  overflow: visible;
  padding: 0.65rem 1rem;
  margin: 0;
  list-style: none;
  background: #212529;
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.45rem 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  text-decoration: none;
  color: #f8f9fa;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  color: var(--accent);
  background: transparent;
}

.nav-dropdown__menu a.is-active {
  color: var(--accent);
  background: rgba(255, 193, 7, 0.08);
}

.nav-dropdown__menu a:active {
  color: #fff;
  background: rgba(255, 193, 7, 0.18);
}

.site-header__bar .site-logo,
.site-header__logo-mobile {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-header__bar .btn-hire {
  justify-self: end;
  flex-shrink: 0;
}

.site-header__mobile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  justify-self: end;
}

.site-header__bar .nav-toggle {
  justify-self: center;
}

.header-color-wrap {
  position: relative;
}

.header-color-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.header-color-btn:hover,
.header-color-btn.is-open {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.header-color-btn.is-hint-pulse {
  animation: color-hint-pulse 1.1s ease-in-out 4;
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes color-hint-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.header-color-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 120;
  width: min(17.5rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem 1rem;
  background: #121214;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.header-color-panel[hidden] {
  display: none !important;
}

.header-color-panel__title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-color-panel__grid {
  justify-content: center;
}

.mobile-menu__head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mobile-menu__color-btn {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .site-header__bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    min-height: 70px;
    padding: 0 2.5rem;
  }

  .site-header__mobile-actions,
  .header-color-panel {
    display: none !important;
  }

  .site-header__logo-mobile {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
  }

  .site-header__nav {
    display: flex !important;
    flex: 1;
    align-items: stretch;
    justify-content: center;
    max-width: 100%;
  }

  .site-header__nav > a,
  .site-header__nav .nav-dropdown {
    min-height: 70px;
  }

  .site-header__bar .btn-hire {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}

.btn-hire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-hire:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width: 640px) {
  .btn-hire {
    padding: 0.5rem 1.25rem;
    font-size: 0.72rem;
  }
}

/* Namu-style hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 1.35rem;
}

.nav-toggle__line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, width 0.3s, opacity 0.3s;
}

.nav-toggle__line--top {
  width: 1.1rem;
}

.nav-toggle__line--mid {
  width: 1.35rem;
}

.nav-toggle__line--bot {
  width: 0.85rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--top {
  width: 1.25rem;
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--mid {
  opacity: 0;
  width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--bot {
  width: 1.25rem;
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.scrolled {
  background: #111418;
  border-bottom-color: #111418;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .site-header {
    left: var(--side-nav-width);
    right: 0;
    width: auto;
  }
}

/* Hero — Namu intro (centered name + circle portrait) */
.namu-intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  overflow: hidden;
}

.namu-intro__inner {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.namu-intro__container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

.namu-intro__content {
  text-align: center;
}

.typed-strings {
  display: none !important;
}

.namu-intro__hello {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--body-muted);
}

.namu-intro__hello .typed {
  color: var(--body-muted);
}

.namu-intro__hello .typed-cursor {
  color: var(--accent);
  opacity: 1;
}

.namu-intro__title-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  padding: 0.5rem 0 1rem;
}

.namu-intro__name {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(3.5rem, 14vw, 16.25rem);
  letter-spacing: -0.02em;
  user-select: none;
}

.namu-intro__scene {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.namu-intro__scene-layer {
  will-change: transform;
  transition: transform 0.12s ease-out;
}

.namu-intro__avatar {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: #111;
  box-shadow:
    0 1.25rem 2.5rem rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 0 0 6px var(--accent-soft);
  transition: box-shadow 0.35s ease;
  filter: contrast(1.04) saturate(1.06);
}

@media (min-width: 576px) {
  .namu-intro__avatar {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 768px) {
  .namu-intro__avatar {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 992px) {
  .namu-intro__avatar {
    width: 260px;
    height: 260px;
  }
}

.namu-intro__location {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  color: var(--body-muted);
}

@media (max-width: 767px) {
  .namu-intro {
    min-height: auto;
    min-height: 100svh;
    padding-top: 4.5rem;
    align-items: stretch;
  }

  .namu-intro__inner {
    min-height: calc(100svh - 4.5rem);
    justify-content: center;
  }

  .namu-intro__container {
    padding: 1rem 1.15rem 4.5rem;
  }

  .namu-intro__hello {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .namu-intro__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding: 0;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .namu-intro__scene {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 1;
    pointer-events: auto;
  }

  .namu-intro__name {
    order: 2;
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    max-width: 100%;
  }

  .namu-intro__avatar {
    width: clamp(7.5rem, 34vw, 9.5rem);
    height: clamp(7.5rem, 34vw, 9.5rem);
    box-shadow:
      0 1rem 2rem rgba(0, 0, 0, 0.75),
      0 0 0 3px rgba(255, 255, 255, 0.1),
      0 0 0 5px var(--accent-soft);
  }

  .namu-intro__location {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    margin-top: 1rem;
    line-height: 1.5;
    color: #c8c8d0;
  }

  .scroll-down-arrow {
    bottom: 12px;
  }

  #projects.section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .projects-section__head {
    gap: 1.25rem !important;
  }

  .projects-section__filters {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem !important;
    width: 100%;
  }

  .projects-section__filters .filter-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
  }

  .projects-section__filters .filter-btn.is-active {
    background: var(--accent-soft);
    color: #fff;
    border-color: var(--accent);
  }

  #projects-grid.projects-grid,
  #projects-grid {
    margin-top: 1.75rem !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .project-card--shot {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .project-card--shot .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 50%);
  }

  .project-card--shot h5 {
    font-size: 0.95rem;
  }
}

/* Scroll down — Namu */
.scroll-down-arrow {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 46px;
  color: rgba(250, 250, 250, 0.5);
  text-decoration: none;
}

.scroll-down-arrow__icon {
  display: block;
  position: relative;
  animation: namu-fade-in-down 1.5s infinite;
}

.vr-line {
  display: block;
  width: 1px;
  height: 46px;
  margin: 0 auto;
  background: rgba(250, 250, 250, 0.35);
}

.scroll-down-arrow__icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(250, 250, 250, 0.5);
  border-right: 1px solid rgba(250, 250, 250, 0.5);
  transform: translate(-50%, -50%) rotate(135deg);
}

@keyframes namu-fade-in-down {
  0% {
    top: -25px;
    opacity: 0;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

/* Section */
.section-pad {
  padding: 5rem 0;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 1rem;
}

/* Stats */
.stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.stat-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-4px);
}

.stat-card h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* Service cards — 9-item grid (3×3 on desktop, Namu-style) */
.services-grid {
  display: grid;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid .service-card:nth-child(9) {
    grid-column: auto;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid .service-card:nth-child(9) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
    width: 100%;
  }
}

/* Service cards */
.service-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  background: var(--bg-elevated);
  transition: border-color 0.35s, transform 0.35s var(--ease);
  height: 100%;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-6px);
}

.service-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

/* Projects */
.filter-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card--shot {
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

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

.project-card--shot img,
.project-card--preview img {
  object-fit: cover;
  object-position: top center;
}

.project-card--shot img.project-shot--light {
  object-fit: contain;
  object-position: center;
  background: #f1f3f4;
}

.project-card--shot img.project-shot--gsc {
  object-fit: contain;
  object-position: center top;
  background: #f8f9fa;
}

/* Web / PageSpeed project shots */
.project-card--web {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0c0c0e;
}

.project-card--web img.project-shot--psi {
  object-fit: cover;
  object-position: top center;
  background: #f4f4f5;
}

.project-card--web img.project-shot--web {
  object-fit: cover;
  object-position: top center;
  background: #f4f4f5;
}

.project-card--preview {
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 10;
}

.project-card--preview .project-overlay {
  opacity: 0;
}

.project-card--preview:hover .project-overlay {
  opacity: 1;
}

/* Project / FAQ image lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  border: 0;
  cursor: zoom-out;
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(96vw, 1200px);
  max-height: 92vh;
}

.image-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92vh - 4rem);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #fff;
}

.image-lightbox__caption {
  margin: 0;
  max-width: 100%;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.image-lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.65);
}

.faq-proof img {
  cursor: zoom-in;
}

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

a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card--doc {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1a1a1f 0%, #121216 100%);
}

.project-doc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
}

.project-doc__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.project-doc__title {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.project-doc__meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.project-overlay--visible {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 40%);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-tags span:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Testimonials — Namu centered slider */
.namu-divider--testimonial {
  max-width: 1px;
  height: 2.5rem;
  margin: 1.25rem auto 0;
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.testimonial-slider {
  position: relative;
  margin-top: 2.5rem;
  padding: 0 2.75rem;
}

.testimonial-slider__stage {
  position: relative;
  min-height: 18rem;
}

.testimonial-slide {
  display: none;
  text-align: center;
  animation: testimonial-fade 0.45s ease;
}

.testimonial-slide.is-active {
  display: block;
}

@keyframes testimonial-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-slide__avatar-wrap {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: #1a1a1c;
}

.testimonial-slide__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.testimonial-slide__name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-slide__role {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.testimonial-slide__quote {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--body-muted);
}

#testimonials .testimonial-slider__arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

#testimonials:hover .testimonial-slider__arrow,
#testimonials:focus-within .testimonial-slider__arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#testimonials:hover .testimonial-slider__arrow--next,
#testimonials:focus-within .testimonial-slider__arrow--next {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-slider__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.testimonial-slider__arrow:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

.testimonial-slider__arrow--prev {
  left: 0;
}

.testimonial-slider__arrow--next {
  right: 0;
}

.testimonial-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.testimonial-slider__dot {
  width: 2rem;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}

.testimonial-slider__dot.is-active {
  width: 2.75rem;
  background: var(--accent);
}

@media (max-width: 640px) {
  .testimonial-slider {
    padding: 0 2rem;
  }

  .testimonial-slider__arrow {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.25rem;
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s, background 0.2s;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-item.is-open .faq-panel {
  max-height: 400px;
}

.faq-panel-inner {
  padding-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-panel-inner p {
  margin: 0 0 0.85rem;
}

.faq-panel-inner p:last-child {
  margin-bottom: 0;
}

.faq-proof {
  margin: 1rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.faq-proof img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.faq-proof figcaption {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.service-detail-card ul {
  margin: 0.85rem 0 0 1.1rem;
  list-style: disc;
}

.service-detail-card li {
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.service-detail-card .service-detail-card__lead {
  margin-bottom: 0;
}

/* About — Namu-style layout */
.about-namu__intro-grid {
  display: grid;
  gap: 2.5rem 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .about-namu__intro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-namu__headline {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--body-muted);
}

.about-namu__name {
  color: var(--accent);
}

.about-namu__quote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

.about-namu__body {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--body-muted);
}

.about-namu__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-namu__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.about-namu__stat {
  border: none;
  background: transparent;
  padding: 1rem 0.5rem;
  text-align: center;
}

.about-namu__stat h4 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.about-namu__stat p {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--muted);
  line-height: 1.35;
}

.about-namu__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.about-namu__btn {
  min-width: 11rem;
  justify-content: center;
}

.about-namu__col--delay-1.reveal.is-visible {
  transition-delay: 0.05s;
}

.about-namu__col--delay-2.reveal.is-visible {
  transition-delay: 0.15s;
}

.about-namu__col--delay-3.reveal.is-visible {
  transition-delay: 0.25s;
}

.about-namu__col--delay-4.reveal.is-visible {
  transition-delay: 0.35s;
}

.about-namu--page {
  margin-bottom: 2rem;
}

.about-namu--page .about-namu__headline {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Mobile menu — Namu full-screen primary nav */
.mobile-menu,
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.mobile-menu.is-open,
.mobile-drawer.is-open {
  pointer-events: auto;
}

.mobile-menu__backdrop,
.mobile-drawer::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop,
.mobile-drawer.is-open::before {
  opacity: 1;
}

.mobile-menu__panel,
.mobile-drawer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  background: #0a0a0b;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.mobile-menu.is-open .mobile-menu__panel,
.mobile-drawer.is-open .mobile-drawer-panel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.mobile-menu__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.mobile-menu__link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  color: #fff;
  padding-left: 0.35rem;
}

.mobile-menu__link.is-active {
  color: var(--accent);
}

.mobile-menu__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  text-decoration: none !important;
}

.mobile-menu__subhead {
  margin: 1.25rem 0 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-menu__sublink {
  display: block;
  padding: 0.45rem 0 0.45rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--body-muted);
  transition: color 0.2s;
}

.mobile-menu__sublink:hover,
.mobile-menu__sublink:focus-visible {
  color: var(--accent);
  padding-left: 0.85rem;
}

.mobile-menu__sublink:active {
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent-glow);
}

.site-logo {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, color 0.25s;
}

.site-logo:hover {
  opacity: 0.9;
  color: var(--accent);
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--dot);
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.color-dot:hover {
  transform: scale(1.08);
}

.color-dot.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--dot), 0 0 14px var(--dot);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  transition: border-color 0.25s, color 0.25s, background 0.2s;
}

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

/* Client logo marquee */
.client-marquee-section {
  padding: 2.75rem 0 2.25rem;
  overflow: hidden;
  background: #080809;
}

.client-marquee {
  overflow: hidden;
}

.client-marquee--namu {
  margin-top: 2.75rem;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.client-marquee--wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.5rem 0 0.25rem;
}

.client-marquee--stagger {
  --client-box-w: 15.5rem;
  --client-gap: 0.85rem;
}

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

.client-marquee--stagger .client-marquee__rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.client-marquee--stagger .client-marquee__list {
  gap: var(--client-gap);
}

.client-marquee--namu .client-marquee__viewport,
.client-marquee--stagger .client-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.client-marquee--stagger .client-marquee__viewport--offset {
  padding-left: calc(var(--client-box-w) / 2 + var(--client-gap) / 2);
}

.client-marquee--namu .client-marquee__box,
.client-marquee--stagger .client-marquee__box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: var(--client-box-w);
  min-height: 7.75rem;
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 10px;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.client-marquee--stagger .client-marquee__box:hover {
  background: #222228;
  border-color: rgba(255, 255, 255, 0.16);
  transform: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.client-marquee--stagger .client-marquee__box img {
  max-height: 2.35rem;
  max-width: 85%;
  opacity: 0.88;
  filter: grayscale(1) brightness(1.55) contrast(0.9);
  transition: opacity 0.25s;
}

.client-marquee--stagger .client-marquee__box:hover img {
  opacity: 1;
}

.client-marquee__brand {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f4f4f5;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.client-marquee__site {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.2;
}

.client-marquee__track--alt {
  animation: client-marquee-scroll-alt 48s linear infinite;
}

.client-marquee__track--alt:hover {
  animation-play-state: paused;
}

@keyframes client-marquee-scroll-alt {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.client-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.client-marquee__track {
  display: flex;
  width: max-content;
  animation: client-marquee-scroll 52s linear infinite;
}

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

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

.client-marquee__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0 0.65rem;
  list-style: none;
}

.client-marquee__box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.client-marquee__track:hover .client-marquee__box {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.client-marquee__box img {
  display: block;
  max-width: 100%;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.25s;
}

.client-marquee__box:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee__track,
  .client-marquee__track--alt {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .client-marquee--stagger .client-marquee__viewport--offset {
    padding-left: 0;
  }

  .client-marquee__list[aria-hidden="true"] {
    display: none;
  }
}

/* Contact CTA — Namu */
.namu-cta {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.04) 0%, transparent 42%);
}

.namu-divider {
  width: 100%;
  max-width: 120px;
  margin: 0 auto 1.75rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.namu-divider--footer {
  max-width: 100%;
  margin: 0 0 1.5rem;
}

.namu-cta__block {
  text-align: center;
  padding-bottom: 2.5rem;
}

/* Avatar + online status dot (CTA & contact) */
.avatar-with-status {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.namu-cta__avatar-wrap {
  margin: 0 auto 1.35rem;
}

.avatar-with-status__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0a0a0b;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.namu-cta__avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

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

.namu-cta__heading {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  font-family: "Jost", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-muted);
}

.namu-cta__btn {
  margin-top: 0.25rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }

  .contact-card--email {
    grid-column: span 1;
    min-width: 220px;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.15rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.contact-card--email {
  min-width: min(100%, 260px);
}

.contact-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card--web .contact-card__value {
  color: var(--accent);
}

/* Footer — full-width band on all pages */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #050506;
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5.75rem;
}

.namu-divider--footer {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-social a {
  color: #e8e8ea;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social__sep {
  display: none;
}

.footer-copy {
  margin: 0 0 0.55rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-copy__name {
  color: var(--accent);
  font-weight: 600;
}

.footer-credit {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.footer-credit__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit__link:hover {
  text-decoration: underline;
}

.footer-domain {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-domain a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-domain a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

/* Back to top — Namu */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 11, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-top__icon {
  display: block;
}

@media (min-width: 1024px) {
  .back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.page-wrap > .inner-page,
.page-wrap > article.inner-page {
  padding-top: 5.75rem;
}
