/* =========================================================
   Marian Demian — Portfolio
   Tokens
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #fbf5f8;
  --bg-soft-2: #f6ecf1;
  --ink: #241d27;
  --ink-soft: #5c5560;
  --muted: #948c96;
  --line: #ecdfe6;

  --primary-dark: #7a2c58;
  --primary: #b8488e;
  --primary-soft: #e6accd;

  --dark: #1c1220;
  --dark-soft: #2c1c2a;
  --dark-ink: #f3e9ef;
  --dark-muted: #c9b4c1;

  --grad-brand: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #cf6fa8 100%);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1160px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-card: 0 1px 2px rgba(36, 29, 39, .04), 0 12px 28px -14px rgba(122, 44, 88, .28);
  --ease: cubic-bezier(.22, .85, .4, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
dt {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

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

input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section {
  padding: 6.5rem 0;
}

@media (max-width: 720px) {
  section {
    padding: 4.25rem 0;
  }
}

.section-head {
  max-width: 46ch;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.01em;
}

.section-head p {
  margin-top: .6rem;
  color: var(--ink-soft);
}

/* =========================================================
   Buttons & tags
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(122, 44, 88, .55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(122, 44, 88, .6);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: rgba(184, 72, 142, .12);
  color: var(--primary-dark);
  white-space: nowrap;
}

.tag-muted {
  background: rgba(36, 29, 39, .06);
  color: var(--ink-soft);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-mark {
  width: 34px;
  height: auto;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--primary-dark);
}

.nav-cta {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  color: #fff;
  opacity: .92;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), top .2s var(--ease);
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

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

  .nav-menu {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    border-top: 1px solid var(--line);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 1.25rem;
    text-align: center;
    width: 100%;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1.1rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  max-width: 24ch;
}

.hero-lede {
  margin-top: 1.35rem;
  max-width: 46ch;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-stats>div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.hero-stats dt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}

.hero-stats dd {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
}

.editor-card {
  background: var(--dark);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(28, 18, 32, .45);
  transform: rotate(1.2deg);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .8rem 1rem;
  background: var(--dark-soft);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex: none;
}

.editor-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.editor-tab {
  margin-left: .6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dark-muted);
}

.editor-body {
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.7;
  color: #e9c9dd;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 148px;
  flex: 1;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  vertical-align: middle;
  background: var(--primary-soft);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.editor-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1.5rem 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-m);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  flex: none;
}

.editor-preview.is-visible {
  opacity: 1;
  transform: none;
}

.editor-preview img {
  width: 44px;
  height: auto;
}

.swatches {
  display: flex;
  gap: .35rem;
}

.swatches i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  display: block;
}

.shipped {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  color: #9be3b8;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 460px;
    height: auto !important;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 1.4rem;
    flex-wrap: wrap;
  }
}

/* =========================================================
   About
   ========================================================= */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.about-mark {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  opacity: .92;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 1.25rem;
}

.about-copy p+p {
  margin-top: 1rem;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.about-facts dd {
  margin: .25rem 0 0;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-mark {
    max-width: 200px;
    order: -1;
  }
}

/* =========================================================
   Services
   ========================================================= */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service-item {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-soft);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.service-item:hover {
  border-color: var(--primary-soft);
  background: var(--bg-soft-2);
}

.service-icon {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-m);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 1px 2px rgba(36, 29, 39, .05);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-item h3 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.service-item p {
  max-width: 42ch;
}

@media (max-width: 720px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* =========================================================
   Work — filters & cards
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .18s var(--ease);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -16px rgba(122, 44, 88, .3);
}

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

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft-2);
  cursor: zoom-in;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}

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

.project-media .dir-zoom {
  opacity: 0;
}

.project-media:hover .dir-zoom {
  opacity: 1;
}

.project-body {
  padding: 1.4rem;
  background: var(--bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.project-body h3 {
  font-size: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.project-body p {
  font-size: .95rem;
}

.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary-dark);
}

.project-link svg {
  width: 15px;
  height: 15px;
  transition: transform .18s var(--ease);
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlights */
.highlights {
  margin-top: 3.75rem;
}

.highlights h3 {
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.highlight {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-soft);
}

.highlight-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--primary-dark);
  margin-bottom: .6rem;
}

.highlight h4 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.highlight p {
  font-size: .9rem;
}

@media (max-width: 860px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Branding block */
.branding-block {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-l);
  background: var(--bg-soft-2);
}

.branding-copy {
  min-width: 0;
}

.branding-copy h3 {
  font-size: 1.3rem;
  margin-bottom: .9rem;
}

.branding-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  scrollbar-width: thin;
}

.branding-chips li {
  flex: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.branding-gallery {
  position: relative;
  min-width: 0;
}

.gallery-track {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease);
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .8rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(0deg, rgba(20, 12, 20, .72), transparent);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1rem;
}

.gallery-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.gallery-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.gallery-btn svg {
  width: 16px;
  height: 16px;
}

.gallery-dots {
  display: flex;
  gap: .4rem;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  padding: 0;
  transition: background .16s var(--ease), transform .16s var(--ease);
}

.gallery-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 860px) {
  .branding-block {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .branding-gallery {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Directory */
.directory {
  margin-top: 4.5rem;
}

.directory-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.directory-head h3 {
  font-size: 1.2rem;
}

.directory-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.directory-tabs {
  display: flex;
  gap: .5rem;
}

.dir-tab {
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.dir-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem;
  color: var(--muted);
  min-width: 220px;
}

.directory-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.directory-search input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  color: var(--ink);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.dir-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.dir-card:hover {
  border-color: var(--primary-soft);
  box-shadow: 0 10px 22px -14px rgba(122, 44, 88, .35);
}

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

.dir-media {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft-2);
  cursor: zoom-in;
}

.dir-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}

.dir-media:hover img {
  transform: scale(1.05);
}

.dir-zoom {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 12, 20, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .16s var(--ease);
}

.dir-media:hover .dir-zoom {
  opacity: 1;
}

.dir-zoom svg {
  width: 14px;
  height: 14px;
}

.dir-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .85rem;
}

.dir-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.dir-title {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir-domain {
  font-size: .74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dir-visit {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.dir-visit:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.dir-visit svg {
  width: 13px;
  height: 13px;
}

.dir-tag {
  position: absolute;
  left: .6rem;
  top: .6rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(20, 12, 20, .55);
  color: #fff;
}

.dir-empty {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
}

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

@media (max-width: 780px) {
  .dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dir-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .directory-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 9, 15, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s;
  padding: 3rem 1.25rem;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 82vh;
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  display: block;
  border-radius: var(--radius-s);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: .75rem;
  text-align: center;
  color: var(--dark-muted);
  font-size: .88rem;
}

.lightbox-close {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s var(--ease);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .22);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-prev {
  left: -1.25rem;
}

.lightbox-next {
  right: -1.25rem;
}

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

@media (max-width: 720px) {
  .lightbox-close {
    top: -2.75rem;
    right: 0;
  }

  .lightbox-prev {
    left: -.25rem;
  }

  .lightbox-next {
    right: -.25rem;
  }
}

/* =========================================================
   Experience — timeline
   ========================================================= */
.experience {
  background: var(--bg-soft);
}

.timeline {
  position: relative;
  max-width: 760px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 2.4rem;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--primary);
}

.timeline-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: .02em;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-top: .35rem;
}

.timeline-org {
  font-size: .92rem;
  color: var(--muted);
  margin-top: .15rem;
}

.timeline-item ul {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.timeline-item li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .94rem;
}

.timeline-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-soft);
}

/* =========================================================
   Toolkit + certifications
   ========================================================= */
.toolkit-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
}

.toolkit-col>h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 1.75rem;
}

.skill-group {
  margin-bottom: 1.6rem;
}

.skill-group h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .75rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip-list li {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cert {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}

.cert h4 {
  font-size: 1rem;
}

.cert p {
  font-size: .88rem;
  margin-top: .3rem;
  color: var(--ink-soft);
}

.cert-date {
  display: inline-block;
  margin-top: .45rem;
  font-size: .76rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .toolkit-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: var(--dark);
  color: var(--dark-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 12ch;
}

.contact>.contact-grid>div>p {
  margin-top: 1rem;
  color: var(--dark-muted);
  max-width: 40ch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark-muted);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  width: fit-content;
}

a.contact-value:hover {
  color: var(--primary-soft);
}

.contact-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.contact-copy:hover {
  color: var(--primary-soft);
}

.copy-feedback {
  position: absolute;
  left: 0;
  top: -1.9rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--primary-soft);
  padding: .25rem .6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 2.5rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-footer .brand-word {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .88rem;
  color: var(--dark-muted);
}

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

.footer-meta {
  font-size: .82rem;
  color: var(--dark-muted);
  width: 100%;
  text-align: center;
}

@media (min-width: 760px) {
  .footer-meta {
    width: auto;
    text-align: right;
  }
}


/* ==========================================================
   CLIENT REVIEWS
   Paste at the end of css/styles.css.
   Uses your existing tokens (--primary, --line, --radius-l …)
   ========================================================== */
.reviews {
  background: var(--bg-soft);
  scroll-margin-top: 64px;
  --rv-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.3 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E");
}

/* ---------- header + summary ---------- */
.rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.rv-head .section-head {
  margin-bottom: 0;
}

.rv-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.rv-score,
.rv-badge {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: .9rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.rv-score-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rv-score-label {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}

.rv-badge-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
}

.rv-badge-icon svg {
  width: 21px;
  height: 21px;
}

.rv-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.rv-badge-sub {
  display: block;
  margin-top: .15rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- star rating (pure CSS: set data-rating="1" … "5", halves allowed) ---------- */
.rv-stars {
  --rating: 5;
  --rv-size: 1.05rem;
  --rv-on: var(--primary);
  --rv-off: var(--line);
  width: calc(var(--rv-size) * 5);
  height: var(--rv-size);
  background: linear-gradient(90deg, var(--rv-on) calc(var(--rating) * 20%), var(--rv-off) 0);
  -webkit-mask: var(--rv-star) repeat-x 0 0 / var(--rv-size) var(--rv-size);
  mask: var(--rv-star) repeat-x 0 0 / var(--rv-size) var(--rv-size);
}

.rv-stars[data-rating="1"] {
  --rating: 1;
}

.rv-stars[data-rating="1.5"] {
  --rating: 1.5;
}

.rv-stars[data-rating="2"] {
  --rating: 2;
}

.rv-stars[data-rating="2.5"] {
  --rating: 2.5;
}

.rv-stars[data-rating="3"] {
  --rating: 3;
}

.rv-stars[data-rating="3.5"] {
  --rating: 3.5;
}

.rv-stars[data-rating="4"] {
  --rating: 4;
}

.rv-stars[data-rating="4.5"] {
  --rating: 4.5;
}

.rv-stars[data-rating="5"] {
  --rating: 5;
}

#rvAvgStars {
  --rv-size: .95rem;
}

/* ---------- masonry wall ---------- */
.rv-wall {
  column-count: 3;
  column-gap: 1.25rem;
}

.rv-card {
  position: relative;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.5rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.rv-card:hover {
  border-color: var(--primary-soft);
  box-shadow: 0 18px 32px -20px rgba(122, 44, 88, .35);
  transform: translateY(-2px);
}

.rv-card>*+* {
  margin-top: 1rem;
}

.rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.4rem;
}

.rv-quote-icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--primary-soft);
}

.rv-source {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.rv-quote {
  margin: 0;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.rv-quote p {
  margin: 0;
}

.rv-quote p+p {
  margin-top: .75rem;
}

.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.rv-chip {
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(184, 72, 142, .1);
  color: var(--primary-dark);
}

.rv-chip--muted {
  background: rgba(36, 29, 39, .06);
  color: var(--ink-soft);
}

.rv-by {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.rv-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--grad-brand);
  color: #fff;
}

.rv-avatar svg {
  width: 22px;
  height: 22px;
}

.rv-avatar--anon {
  background: var(--bg-soft-2);
  color: var(--primary-dark);
}

.rv-name {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink);
}

.rv-role {
  display: block;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--muted);
}

.rv-verified {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--primary);
}

/* short, punchy quotes get display type */
.rv-card--short .rv-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}

/* featured card */
.rv-card--feature {
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
  border-color: transparent;
  box-shadow: 0 26px 40px -26px rgba(122, 44, 88, .65);
}

.rv-card--feature:hover {
  border-color: transparent;
  box-shadow: 0 30px 46px -24px rgba(122, 44, 88, .7);
}

.rv-card--feature .rv-stars {
  --rv-on: #fff;
  --rv-off: rgba(255, 255, 255, .35);
}

.rv-card--feature .rv-quote-icon {
  color: rgba(255, 255, 255, .4);
}

.rv-card--feature .rv-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.14rem;
  line-height: 1.55;
  color: #fff;
}

.rv-card--feature .rv-by {
  border-top-color: rgba(255, 255, 255, .25);
}

.rv-card--feature .rv-name {
  color: #fff;
}

.rv-card--feature .rv-role {
  color: rgba(255, 255, 255, .82);
}

.rv-card--feature .rv-avatar {
  background: #fff;
  color: var(--primary-dark);
}

/* "read the full review" (native <details>, no JS) */
.rv-details {
  margin-top: .8rem;
}

.rv-details summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.rv-details summary::-webkit-details-marker {
  display: none;
}

.rv-details summary::after {
  content: '';
  width: .42rem;
  height: .42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s var(--ease);
}

.rv-details[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.rv-details .rv-close-label,
.rv-details[open] .rv-open-label {
  display: none;
}

.rv-details[open] .rv-close-label {
  display: inline;
}

.rv-details p {
  margin-top: .8rem;
}

/* ---------- show all / show fewer ---------- */
.rv-more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.rv-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.rv-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.rv-toggle[hidden] {
  display: none;
}

.rv-toggle::after {
  content: '';
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s var(--ease);
}

.rv-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

/* collapsed state is added by JS, so without JS every review is visible.
   Keep the 7 in sync with VISIBLE in the JS (6 shown). */
.rv-wall.is-collapsed .rv-card:nth-child(n+7) {
  display: none;
}

.rv-wall:not(.is-collapsed) .rv-card:nth-child(n+7) {
  animation: rvIn .45s var(--ease) both;
}

@keyframes rvIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .rv-wall {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .rv-wall {
    column-count: 1;
  }

  .rv-head {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .rv-summary {
    width: 100%;
  }

  .rv-score,
  .rv-badge {
    flex: 1 1 100%;
  }

  .rv-card--short .rv-quote {
    font-size: 1.2rem;
  }
}

/* ==========================================================
   CONTACT — hire-me platform buttons + Font Awesome icons
   Paste at the end of css/styles.css.
   Requires Font Awesome in <head> (see note below).
   ========================================================== */

/* "Hire me on" row — left column, under the lede paragraph */
.hire-row{ margin-top: 2.25rem; }
.hire-label{
  display:block; margin-bottom: .85rem;
  font-size:.72rem; text-transform:uppercase; letter-spacing:.08em;
  color: var(--dark-muted);
}
.hire-buttons{ display:flex; flex-wrap:wrap; gap:.6rem; }
.hire-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem 1.05rem;
  border:1.5px solid rgba(255,255,255,.22);
  border-radius:999px;
  font-size:.86rem; font-weight:600; color:#fff;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.hire-btn i{ font-size:.72rem; color: var(--dark-muted); transition: color .18s var(--ease); }
.hire-btn:hover{
  border-color: transparent;
  background: var(--grad-brand);
  transform: translateY(-1px);
}
.hire-btn:hover i{ color:#fff; }

/* Right column — icon chip next to each contact row */
.contact-list li{ flex-direction:row; align-items:flex-start; gap:.9rem; }
.contact-icon{
  flex:none; width:38px; height:38px; margin-top:.1rem;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  color: var(--primary-soft);
  font-size:.95rem;
}
.contact-text{ display:flex; flex-direction:column; gap:.25rem; }

@media (max-width: 480px){
  .hire-buttons{ gap:.5rem; }
  .hire-btn{ padding:.55rem .9rem; font-size:.82rem; }
}