:root {
  --bg: hsl(var(--background));
  --paper: hsl(var(--card));
  --ink: hsl(var(--foreground));
  --muted: hsl(var(--muted-foreground));
  --line: hsl(var(--border));
  --accent: hsl(var(--brand-accent));
  --accent-two: hsl(var(--brand-accent));
  --card: hsl(var(--secondary));
  --container: min(1440px, 94vw);
  --radius: 0.5rem;
}

[data-theme="dark"] {
  --bg: #141416;
  --paper: #1c1c1e;
  --ink: #f0f0f2;
  --muted: #9c9ca3;
  --line: rgba(255, 255, 255, 0.12);
  --card: #2c2c2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.grid-overlay {
  position: fixed;
  inset: -150%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-color: var(--line);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 20 50 10 T 100 10' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 20 Q 25 30 50 20 T 100 20' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 30 Q 25 40 50 30 T 100 30' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q 25 10 50 0 T 100 0' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 40 Q 25 50 50 40 T 100 40' fill='none' stroke='black' stroke-width='0.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 20 50 10 T 100 10' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 20 Q 25 30 50 20 T 100 20' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 30 Q 25 40 50 30 T 100 30' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 0 Q 25 10 50 0 T 100 0' fill='none' stroke='black' stroke-width='0.5'/%3E%3Cpath d='M0 40 Q 25 50 50 40 T 100 40' fill='none' stroke='black' stroke-width='0.5'/%3E%3C/svg%3E");
  -webkit-mask-size: 300px 120px;
  mask-size: 300px 120px;
  animation: diagonalWave 80s linear infinite;
}

@keyframes diagonalWave {
  from {
    transform: rotate(-45deg) translateY(0);
  }

  to {
    transform: rotate(-45deg) translateY(-600px);
  }
}

.topbar {
  width: var(--container);
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.brand span,
.footer-brand span {
  color: var(--accent);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
}

.nav a,
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.87rem;
  transition: color 0.4s ease;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.4s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.connect-btn {
  background: #ff4d00 !important;
  color: #ffffff !important;
  border: none;
  font-weight: 500;
}

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

[data-theme="dark"] .primary {
  background: #ffffff;
  color: #000000;
}

.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

main {
  width: var(--container);
  margin: 2.2rem auto 3rem;
}

section {
  margin-bottom: 5.5rem;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.spinning-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinning-badge svg {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.badge-star {
  position: absolute;
  color: var(--ink);
  font-size: 1.5rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-title {
  margin: 0.35rem 0 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.2rem, 10.5vw, 7.25rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  max-width: 9ch;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-title .switch-ui {
  display: inline-flex;
  width: 1.8em;
  height: 0.85em;
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 0.12em;
  background: var(--accent);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
  align-items: center;
  padding: 0 0.1em;
}

.hero-title .switch-thumb {
  display: block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: thumbToggle 6s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite;
}

.hero-title .block {
  display: block;
}

.morph-container {
  display: block;
  position: relative;
}

.morph-text1,
.morph-text2 {
  display: block;
  color: var(--ink);
}

.morph-text2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.morph-text1 {
  animation: morph1 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.morph-text2 {
  animation: morph2 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes morph1 {

  0%,
  40% {
    opacity: 1;
    filter: blur(0px);
  }

  50%,
  90% {
    opacity: 0;
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes morph2 {

  0%,
  40% {
    opacity: 0;
    filter: blur(8px);
  }

  50%,
  90% {
    opacity: 1;
    filter: blur(0px);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes bgToggle {

  0%,
  40% {
    background: var(--accent);
  }

  50%,
  90% {
    background: var(--ink);
  }

  100% {
    background: var(--accent);
  }
}

@keyframes thumbToggle {

  0%,
  40% {
    transform: translateX(0.95em);
  }

  50%,
  90% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(0.95em);
  }
}

.tagline {
  margin: 0.85rem 0 0.25rem;
  color: var(--accent);
  font-size: 1rem;
}

.hero-copy {
  margin: 0;
  max-width: 59ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-foot {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Removed Logos Styling */

.intro-card {
  width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.intro-text strong {
  color: var(--accent);
  display: block;
  font-size: 0.9rem;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about,
.expertise,
.expertise-tools,
.works,
.experience,
.cta {
  text-align: center;
}

.about h2,
.expertise h2,
.expertise-tools h2,
.works h2,
.experience h2,
.cta h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.03em;
}

.about-text {
  margin: 1.8rem auto 0;
  max-width: 42ch;
  font-size: clamp(1.6rem, 4.8vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}

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

.inline-avatar {
  display: inline-block;
  vertical-align: middle;
  width: 1.3em;
  height: 1.3em;
  border-radius: 40px;
  object-fit: cover;
  margin: 0 0.1em;
  margin-top: -0.2em;
  border: 2px solid #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: -0.1em;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: left;
}

.expertise-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.08);
  border-color: var(--accent);
}

.expertise-grid article:hover .card-icon {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(-10deg) scale(1.1);
}

.card-icon {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expertise-tools {
  margin-top: 1.8rem;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.tool-item {
  width: 68px;
  height: 68px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.tool-item:hover {
  transform: scale(1.15) translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.tool-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.tool-item:hover img {
  filter: grayscale(0);
}

[data-theme="dark"] .tool-item img {
  filter: invert(1) brightness(1.5);
}

.tool-item i {
  font-size: 1.8rem;
  color: var(--ink);
}

.more-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  font-size: 1.4rem;
  background: #ffffff;
  color: #6366f1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expertise-grid h3 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.expertise-list li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  padding-left: 1.25rem;
}

/* Removed redundant light theme rule as var(--muted) is now base */

.expertise-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 3.5rem 2.5rem;
}

.work-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card-link:hover {
  transform: translateY(-8px);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.work-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

.work-card-arrow {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 16px rgba(18, 18, 18, 0.2);
  transform: rotate(-45deg);
}

.work-card-link:hover .work-card-arrow {
  transform: scale(1.15) rotate(-45deg);
  box-shadow: 0 12px 24px rgba(255, 77, 0, 0.3);
}

.work-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.work-title {
  margin: 0.8rem 0 0;
  font-size: 1.85rem;
  font-family: "Archivo Black", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  text-transform: none;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.work-tag {
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.work-card-link:hover .work-tag {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-view-all {
  background: #ef533f;
  color: white !important;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  margin-top: 1rem;
}

.btn-view-all:hover {
  background: #d84332;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(239, 83, 63, 0.25);
}

.works-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 3.5rem 2.5rem;
  margin-top: 3.5rem;
}


.work-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.work-gallery-meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.work-image-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
}

.work-thumb-strip {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
}

.work-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

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

.work-thumb-more {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.work-empty,
.projects-status,
.admin-empty,
.notice {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: var(--paper);
}

.project-page {
  background: var(--bg);
  color: var(--ink);
}

[data-theme="dark"] .project-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 90, 29, 0.08), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(57, 134, 155, 0.08), transparent 22%),
    #040918;
}

.project-shell {
  width: min(1460px, 90vw);
  margin: 3rem auto 4rem;
}

.project-story-layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 2.5rem;
  padding-right: 2rem;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.project-back-link:hover {
  color: var(--brand-accent);
}

.project-sidebar-copy {
  display: grid;
  gap: 2rem;
  padding-top: 3.25rem;
}

.project-sidebar-copy h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3rem, 6vw, 4.7rem);
  line-height: 0.92;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.06em;
}

.project-year-row {
  display: flex;
  align-items: center;
}

.project-year-chip {
  min-height: 34px;
  padding: 0 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info-block {
  display: grid;
  gap: 0.9rem;
}

.project-info-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 800;
}

.project-info-block h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.02em;
}

.project-story-text {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.project-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-chip {
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-sidebar-actions {
  padding-top: 0.4rem;
}

.project-sidebar-actions .connect-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.project-media-column {
  display: grid;
  gap: 2rem;
}

.project-media-card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.project-media-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-media-hero {
  min-height: 520px;
}

.project-media-hero img {
  aspect-ratio: 1.48 / 1;
}

.project-media-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  color: rgba(219, 225, 236, 0.58);
  text-align: center;
}

.project-gallery-stack {
  display: grid;
  gap: 5rem;
  margin-top: 3rem;
}

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

.project-gallery-card img {
  aspect-ratio: 1.38 / 1;
}

/* End of project specific styles */

.projects-status[data-state="error"],
.notice[data-state="error"] {
  border-color: rgba(194, 57, 57, 0.35);
  background: rgba(194, 57, 57, 0.08);
}

.notice[data-state="success"] {
  border-color: rgba(28, 135, 74, 0.3);
  background: rgba(28, 135, 74, 0.08);
}

.is-hidden {
  display: none !important;
}

.admin-page {
  background: var(--bg);
  color: var(--ink);
}

.admin-page .grid-overlay {
  opacity: 0.08;
}

.admin-page .brand,
.admin-page .nav a,
.admin-page footer a {
  color: var(--ink);
}

.admin-page .nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-page .connect-btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.admin-page .btn,
.admin-page .upload-btn {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-page .ghost,
.admin-page .connect-btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.04);
}

.admin-page .ghost:hover,
.admin-page .connect-btn:hover {
  border-color: #a1a1aa;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.admin-page .primary {
  background: #18181b;
  color: #fafafa;
  border-color: #18181b;
  box-shadow: 0 12px 24px rgba(24, 24, 27, 0.16);
}

.admin-page .primary:hover {
  background: #27272a;
  border-color: #27272a;
}

.admin-page .small-btn {
  min-height: 40px;
  padding: 0 0.95rem;
}

.admin-shell {
  width: var(--container);
  margin: 2rem auto 4rem;
}

.admin-header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-family: "Archivo Black", sans-serif;
}

.admin-header-copy {
  margin: 0;
  max-width: 58ch;
  color: var(--muted) !important;
  font-size: 1rem;
  line-height: 1.6;
}

.works-hero {
  margin-bottom: 3.25rem;
}

.works-hero h1 {
  margin: 0.55rem 0 0;
  max-width: 9ch;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.06em;
}

.works-hero-copy {
  margin: 1.25rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.35;
  color: var(--muted) !important;
}

.works-archive {
  text-align: left;
}

.works-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.works-filter-chip {
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(205, 215, 235, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(237, 240, 247, 0.78);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.works-filter-chip:hover,
.works-filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(140, 180, 239, 0.34);
  color: #edf0f7;
}

.works-filter-chip.is-active {
  background: rgba(140, 180, 239, 0.14);
  border-color: rgba(140, 180, 239, 0.4);
  color: #edf0f7;
}

.works-archive-grid {
  margin-top: 2rem;
  columns: 2 320px;
  column-gap: 2rem;
}

.works-archive-grid>* {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.works-archive-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.works-archive-card {
  display: grid;
  gap: 1rem;
  transition: transform 0.28s ease;
}

.works-archive-link:hover .works-archive-card,
.works-archive-link:focus-visible .works-archive-card {
  transform: translateY(-4px);
}

.works-archive-media {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.works-archive-media img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.works-archive-link:hover .works-archive-media img,
.works-archive-link:focus-visible .works-archive-media img {
  transform: scale(1.03);
}

.works-archive-media-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: rgba(219, 225, 236, 0.6);
  font-size: 0.95rem;
}

.works-archive-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 0.98;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.04em;
  color: #f7f8fb;
}

.works-archive-copy p {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cb4ef;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.08);
}

.panel h2 {
  margin: 0.4rem 0 0;
  font-size: 1.8rem;
  line-height: 1.05;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.03em;
}

.panel p {
  color: var(--muted);
}

.admin-layout,
.dashboard-stack {
  display: grid;
  gap: 1.2rem;
}

.dashboard-stack {
  width: 100%;
}

.admin-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.session-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 0.85rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid #e4e4e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.95fr);
  gap: 1.2rem;
  align-items: start;
}

.admin-editor,
.admin-library {
  min-height: 100%;
}

.admin-page .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

.admin-page .panel h2,
.admin-page .project-row h3 {
  color: var(--ink);
}

.admin-page .panel p,
.admin-page .project-row p,
.admin-page .project-row small,
.admin-page .copyright,
.admin-page .section-kicker {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-panel-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.small-select {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}

.form-section {
  display: grid;
  gap: 0.95rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.form-section-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.form-section-head p {
  margin: 0.3rem 0 0;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.83rem;
  font-weight: 700;
  color: #3f3f46;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.1);
}

.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-trigger:focus-visible {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.1);
}

.select-trigger i {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.custom-select.is-open .select-trigger {
  border-color: #a1a1aa;
}

.custom-select.is-open .select-trigger i {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 4px;
  overflow: hidden;
  z-index: 50;
  display: none;
  animation: selectOpen 0.1s ease-out;
}

@keyframes selectOpen {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-select.is-open .select-options {
  display: block;
}

.select-option {
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.select-option:hover {
  background: #f4f4f5;
  color: #18181b;
}

[data-theme="dark"] .select-option:hover {
  background: #27272a;
  color: #fafafa;
}

.select-option.is-selected {
  background: #18181b;
  color: #ffffff;
}

[data-theme="dark"] .select-option.is-selected {
  background: #fafafa;
  color: #18181b;
}

.field textarea {
  resize: vertical;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.media-preview {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

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

.media-preview-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--muted);
}

.media-preview-empty i {
  font-size: 1.6rem;
}

.media-fields {
  display: grid;
  gap: 0.95rem;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.gallery-toolbar p {
  margin: 0.28rem 0 0;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.upload-btn {
  position: relative;
  overflow: hidden;
}

.upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-empty {
  min-height: 170px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  padding: 1rem;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg);
}

.gallery-empty strong,
.gallery-empty span {
  display: block;
}

.gallery-empty span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.gallery-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

.gallery-tile-media {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background: var(--bg);
}

.gallery-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-tile-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-remove {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(9, 9, 11, 0.88);
  color: #ffffff;
  cursor: pointer;
}

.gallery-tile-copy {
  padding: 0.8rem 0.9rem 1rem;
}

.gallery-tile-copy strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.gallery-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #e4e4e7;
}

.pill-muted {
  background: #f4f4f5;
  color: #3f3f46;
}

.pill-draft {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.admin-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.check-field {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.92rem;
}

.check-field input {
  width: 16px;
  height: 16px;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.projects-list {
  display: grid;
  gap: 0.9rem;
}

.project-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: start;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.project-row:hover,
.project-row:focus-within {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.project-row-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f5;
}

.project-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-row-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.project-row h3 {
  margin: 0;
  font-size: 1rem;
}

.project-row-copy {
  display: grid;
  gap: 0.2rem;
}

.project-row-top {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.project-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-row-category,
.project-row-summary,
.project-row small {
  margin: 0.35rem 0 0;
}

.project-row-category {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-row-summary {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
}

.small-btn {
  padding: 0.54rem 0.85rem;
}

.danger-btn {
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-empty,
.notice {
  padding: 1rem 1.1rem;
  border-radius: 18px;
}

.admin-page .primary {
  background: var(--ink);
  color: var(--bg);
}

.admin-page .ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.admin-page footer {
  border-top-color: #e4e4e7;
}

.setup-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.timeline {
  margin: 1.65rem auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline>div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--paper);
}

.timeline strong {
  display: block;
  font-size: 0.92rem;
}

.timeline p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.cta {
  margin-bottom: 4.2rem;
}

.cta h2 span {
  color: var(--accent);
}

.cta .btn.primary {
  margin-top: 1rem;
}

footer {
  width: var(--container);
  margin: 0 auto 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem;
}

footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-socials a {
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), filter 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform, filter;
}

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

/* Staggered entrance for grids */
.expertise-grid,
.work-grid,
.experience-timeline {
  position: relative;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem 0;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-end;
  padding-right: 4rem;
}

.timeline-item.right {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 4rem;
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--dot-color, var(--accent));
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item.right .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-content {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 20px;
  text-align: left;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--dot-color, var(--accent));
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.timeline-content .company {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.timeline-content li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  position: relative;
  padding-left: 1.25rem;
}

.timeline-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--dot-color, var(--accent));
}

.experience-timeline.is-visible .timeline-item {
  animation: revealUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.experience-timeline .timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.experience-timeline .timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.experience-timeline .timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.experience-timeline .timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.experience-timeline .timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

.experience-timeline .timeline-item:nth-child(6) {
  animation-delay: 0.6s;
}

.experience-timeline .timeline-item {
  opacity: 0;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .experience-timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 4rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-item.right {
    margin-left: 0;
    padding-left: 4rem;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  .timeline-icon {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-actions {
    justify-self: center;
  }

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

  .intro-card {
    width: min(280px, 100%);
  }

  .work-grid,
  .timeline,
  .project-story-layout,
  .works-archive-grid,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .admin-status {
    grid-template-columns: 1fr;
  }

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

  .media-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  section {
    margin-bottom: 3.8rem;
  }

  .topbar {
    gap: 0.65rem;
  }

  .brand {
    font-size: 1.6rem;
  }

  .top-actions .theme-toggle {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.6rem, 18vw, 4.3rem);
  }

  .about p:last-child {
    font-size: clamp(1.38rem, 7vw, 2.2rem);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .admin-inline,
  .gallery-preview-grid,
  .work-grid,
  .project-row,
  .project-row-top {
    grid-template-columns: 1fr;
  }

  .gallery-actions,
  .gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .project-row,
  .project-row-top {
    display: grid;
  }

  .work-card {
    min-height: 620px;
    padding: 1.35rem;
    border-radius: 28px;
  }

  .work-mockup {
    padding: 1rem;
  }

  .project-shell {
    width: min(92vw, 1460px);
    margin-top: 1.5rem;
  }

  .works-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .works-hero-copy {
    max-width: 100%;
  }

  .project-sidebar-copy {
    padding-top: 1rem;
    gap: 1.5rem;
  }

  .project-sidebar-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.about-text .accent,
.cta h2 .accent {
  color: var(--accent);
}

.inline-avatar {
  width: auto;
  height: 1.1em;
  border-radius: 50%;
  vertical-align: middle;
  transform: translateY(-0.05em);
  border: 1.5px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* About Page — Editorial Design (Inspired by Image) */
.about-hero-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 3.5rem;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.about-portrait:hover img {
  filter: grayscale(0);
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-lead {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: "Archivo Black", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-copy {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 55ch;
}

/* Philosophy Cards (Image Alignment) */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.editorial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-thumb {
  aspect-ratio: 1/1;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}

.editorial-meta {
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: -0.5rem;
}

.editorial-card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.editorial-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Journey Layout */
.journey-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4rem;
  border-radius: 24px;
  position: relative;
  margin-bottom: 4rem;
}

.journey-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  border-left: 1px solid var(--line);
  padding-left: 4rem;
}

.stat-item strong {
  display: block;
  font-size: 3.5rem;
  font-family: "Archivo Black", sans-serif;
  color: var(--brand-accent);
  line-height: 1;
}

.stat-item span {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 1024px) {

  .about-hero-layout,
  .philosophy-grid,
  .journey-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .journey-stats {
    border-left: 0;
    padding-left: 0;
  }

  .about-portrait {
    max-width: 400px;
  }
}

/* Lightbox Carousel */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox:not([aria-hidden="true"]) .lightbox-content {
  transform: scale(1);
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent, #ff4d00);
  border-color: var(--accent, #ff4d00);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Archivo', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.project-media-card img {
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
  }
}