/* ==========================================================================
   SIDDHARTH KUMAR ARCHITECTURE | SPACE FICTION
   Warm Architectural Canvas Theme & Smooth Scroll Parallax Transition
   Matching Malik Architecture Reference & Watercolor Logo Palette
   Includes Dark / Light Theme Toggle Engine
   ========================================================================== */

/* Base Canvas & Resets */
html {
  scroll-behavior: smooth;
  background-color: #ECEAE5;
  color: #181918;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ECEAE5;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  color: #181918;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #ECEAE5;
}
::-webkit-scrollbar-thumb {
  background: #DFDDD7;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: #788E75;
}

/* Luxury Editorial Text Selection */
::selection {
  background: rgba(120, 142, 117, 0.25);
  color: #181918;
}

/* Typography Classes */
.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

.font-editorial {
  font-family: 'Outfit', sans-serif;
}

/* --------------------------------------------------------------------------
   SITE BRAND LOCKUP
   Single markup source for every breakpoint. Even before the utility or
   theme stylesheets are parsed it reads as one brand line, so the page can
   never flash two or three copies of the studio name at the top.
   -------------------------------------------------------------------------- */
.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  z-index: 10;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  color: #181918;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-brand-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-brand-sub {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: #686A64;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: #788E75;
}

.site-brand:hover .site-brand-sub,
.site-brand:focus-visible .site-brand-sub {
  color: #788E75;
}

@media (min-width: 640px) {
  .site-brand {
    gap: 2px;
  }

  .site-brand-name {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .site-brand-sub {
    font-size: 9px;
    letter-spacing: 0.28em;
  }
}

@media (min-width: 1024px) {
  .site-brand {
    flex-direction: row;
    align-items: baseline;
    gap: 0.55em;
    white-space: nowrap;
  }

  .site-brand-name {
    font-size: 14px;
    letter-spacing: 0.22em;
  }

  .site-brand-sub {
    font-size: 14px;
    letter-spacing: 0.22em;
    color: #181918;
  }
}

/* ==========================================================================
   HERO TO ABOUT SCROLL PARALLAX TRANSITION (Matching User's 4 Screenshots)
   Image 1: Full hero view with 100% natural, clear architectural backdrop
   Image 2: Slight scroll, background smoothly transitions to canvas, About peeks in
   Image 3: Mid scroll, About centered over softly faded architectural background
   Image 4: Full scroll, transitions seamlessly to pristine warm parchment (#ECEAE5)
   ========================================================================== */
.hero-viewport-wrap {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-sticky-layer {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Focal point per slide/breakpoint (see slide.focus in js/data.js). */
  background-position: var(--hero-focus, center);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Tablet: keep the built structure in view between 901px and 1024px. */
@media (max-width: 1024px) {
  .hero-slide-bg {
    background-position: var(--hero-focus-tablet, var(--hero-focus, center));
  }
}

/* Mobile: portrait screens crop horizontally, so use the mobile focal point. */
@media (max-width: 900px) {
  .hero-slide-bg {
    background-position: var(--hero-focus-mobile, var(--hero-focus, center));
  }
}

/* Overlay starts at 0 opacity: 100% crystal clear on hero screen */
.hero-scroll-overlay {
  position: absolute;
  inset: 0;
  background-color: #ECEAE5;
  opacity: 0;
  transition: opacity 0.15s ease-out, background-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.hero-content-layer {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  will-change: opacity, transform;
  /* Let clicks on the photograph reach the full-bleed project link. */
  pointer-events: none;
}

.hero-content-layer a,
.hero-content-layer button,
#hero-dashes-container {
  pointer-events: auto;
}

/* Full-bleed hero link: the current photograph opens its project. */
.hero-project-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.hero-project-link:focus-visible {
  outline: 2px solid #A5B8A2;
  outline-offset: -6px;
}

/* Hero slide indicators: widths live here so they can shrink on small screens. */
#hero-dashes-container {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 460px;
}

.hero-dash-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 3px;
  max-width: 34px;
}

.hero-dash-btn[aria-pressed="true"] {
  flex-grow: 1.45;
  max-width: 46px;
}

@media (max-width: 480px) {
  #hero-dashes-container {
    gap: 3px;
    max-width: 100%;
  }
}

.about-scroll-stage {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background: linear-gradient(180deg, 
              rgba(236, 234, 229, 0) 0%, 
              rgba(236, 234, 229, 0.82) 22%, 
              rgba(236, 234, 229, 0.98) 45%, 
              #ECEAE5 70%, 
              #ECEAE5 100%);
  display: flex;
  align-items: center;
  transition: background 0.4s ease;
}

/* ==========================================================================
   VERTICAL ACCORDION EXPANDING STRIPS INTERACTION (Projects Page)
   - Without hover: Narrow strip (flex-1), grayscale, dimmed, vertical writing text
   - With hover: Expands wide (flex-[3.8]), full vibrant color, text horizontal
   ========================================================================== */
.writing-vertical {
  writing-mode: vertical-rl;
}

.accordion-strip {
  transition: flex 0.75s cubic-bezier(0.25, 1, 0.35, 1), transform 0.6s ease, border-color 0.4s ease;
  will-change: flex;
}

.accordion-strip .strip-img {
  transition: filter 0.75s ease-out, transform 0.85s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.5s ease;
  will-change: filter, transform;
}

.accordion-strip .strip-overlay {
  transition: opacity 0.55s ease;
}

.accordion-strip:hover .strip-overlay {
  opacity: 0.25;
}

/* Subtle Film Grain */
.bg-grain {
  background-image: radial-gradient(rgba(24, 25, 24, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ==========================================================================
   THEME TOGGLING: DARK THEME OVERRIDES
   Default: Warm Architectural White / Parchment (#ECEAE5)
   Dark Mode: Basalt Charcoal Luxury Architectural (#0e0f0e)
   ========================================================================== */

html.theme-dark,
body.theme-dark {
  background-color: #0e0f0e !important;
  color: #ECEAE5 !important;
}

body.theme-dark ::-webkit-scrollbar-track {
  background: #0a0b0a !important;
}

body.theme-dark ::-webkit-scrollbar-thumb {
  background: #272A27 !important;
}

body.theme-dark ::-webkit-scrollbar-thumb:hover {
  background: #8DA08A !important;
}

body.theme-dark ::selection {
  background: rgba(141, 160, 138, 0.35) !important;
  color: #F7F5F0 !important;
}

body.theme-dark #main-header {
  background-color: rgba(14, 15, 14, 0.94) !important;
  border-bottom-color: #272A27 !important;
}

body.theme-dark #main-header span,
body.theme-dark #main-header a span {
  color: #ECEAE5 !important;
}

body.theme-dark #main-header a:hover span,
body.theme-dark #main-header button:hover span {
  color: #8DA08A !important;
}

body.theme-dark #header-center-logo {
  background-color: #121312 !important;
  border-color: #272A27 !important;
}

body.theme-dark #theme-toggle-btn,
body.theme-dark #menu-toggle-btn {
  background-color: #141514 !important;
  border-color: #272A27 !important;
}

body.theme-dark #theme-toggle-btn:hover,
body.theme-dark #menu-toggle-btn:hover {
  background-color: #1c1e1c !important;
  border-color: #8DA08A !important;
}

body.theme-dark #theme-toggle-btn span,
body.theme-dark #theme-toggle-btn #theme-toggle-label {
  color: #ECEAE5 !important;
}

body.theme-dark #theme-toggle-btn:hover span,
body.theme-dark #theme-toggle-btn:hover #theme-toggle-label {
  color: #8DA08A !important;
}

body.theme-dark #menu-toggle-btn span {
  background-color: #ECEAE5 !important;
}

body.theme-dark #menu-toggle-btn:hover span {
  background-color: #8DA08A !important;
}

body.theme-dark #menu-drawer {
  background-color: rgba(14, 15, 14, 0.98) !important;
  border-bottom-color: #272A27 !important;
}

body.theme-dark #menu-drawer a {
  color: #ECEAE5 !important;
}

body.theme-dark #menu-drawer a:hover {
  color: #8DA08A !important;
}

body.theme-dark #hero-scroll-overlay {
  background-color: #0e0f0e !important;
}

body.theme-dark .about-scroll-stage {
  background: linear-gradient(180deg, 
              rgba(14, 15, 14, 0) 0%, 
              rgba(14, 15, 14, 0.85) 22%, 
              rgba(14, 15, 14, 0.98) 45%, 
              #0e0f0e 70%, 
              #0e0f0e 100%) !important;
}

body.theme-dark #about h2 {
  color: #ECEAE5 !important;
}

body.theme-dark #about p {
  color: #ECEAE5 !important;
}

body.theme-dark #about .border-t,
body.theme-dark #about .border-b,
body.theme-dark #about .border {
  border-color: #272A27 !important;
}

body.theme-dark #about a {
  color: #ECEAE5 !important;
}

body.theme-dark #about a:hover {
  color: #8DA08A !important;
}

body.theme-dark #contact {
  background-color: #121312 !important;
  border-top-color: #272A27 !important;
}

body.theme-dark #contact h2 {
  color: #ECEAE5 !important;
}

body.theme-dark #contact p {
  color: #B8B3A8 !important;
}

body.theme-dark #contact input,
body.theme-dark #contact textarea,
body.theme-dark #contact select {
  color: #ECEAE5 !important;
  border-bottom-color: #272A27 !important;
}

body.theme-dark #contact input:focus,
body.theme-dark #contact textarea:focus,
body.theme-dark #contact select:focus {
  border-bottom-color: #8DA08A !important;
}

body.theme-dark #contact button {
  color: #ECEAE5 !important;
  border-bottom-color: #8DA08A !important;
}

body.theme-dark #contact button:hover {
  color: #8DA08A !important;
  border-bottom-color: #ECEAE5 !important;
}

body.theme-dark #contact option {
  background-color: #141514 !important;
  color: #ECEAE5 !important;
}

body.theme-dark #loading-screen {
  background-color: #0e0f0e !important;
}

body.theme-dark #loader-brand-title {
  color: #ECEAE5 !important;
}

body.theme-dark .cat-filter-btn {
  border-color: transparent !important;
  color: #B8B3A8 !important;
  background-color: transparent !important;
}

body.theme-dark .cat-filter-btn.active-cat,
body.theme-dark .cat-filter-btn[data-active="true"] {
  border-color: #8DA08A !important;
  color: #8DA08A !important;
  background-color: #181918 !important;
}

/* ==========================================================================
   PROJECTS PAGE (DARK THEME)
   ========================================================================== */

body.theme-dark .projects-page-header {
  border-color: #272A27 !important;
}

body.theme-dark .projects-page-badge {
  color: #8DA08A !important;
}

body.theme-dark .projects-page-title,
body.theme-dark .projects-page-message {
  color: #ECEAE5 !important;
}

body.theme-dark .projects-page-subtitle {
  color: #B8B3A8 !important;
}

body.theme-dark .projects-page-link {
  color: #ECEAE5 !important;
  border-color: rgba(236, 234, 229, 0.25) !important;
}

body.theme-dark .projects-page-link:hover {
  color: #8DA08A !important;
  border-color: #8DA08A !important;
}

/* ==========================================================================
   PROJECT ARCHIVE INDEX (projects.html)
   ========================================================================== */

.projects-index-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0 1.75rem;
}

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(24, 25, 24, 0.16);
  border-radius: 2px;
  background: transparent;
  color: #686A64;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.project-category-btn:hover {
  color: #181918;
  border-color: #788E75;
}

.project-category-btn.is-active {
  color: #5F735C;
  border-color: #788E75;
  background-color: rgba(120, 142, 117, 0.14);
}

.project-category-count {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #9A9890;
  font-weight: 500;
}

.project-category-btn.is-active .project-category-count {
  color: #5F735C;
}

.project-category-blurb {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #686A64;
  max-width: 44rem;
  min-height: 2.6em;
  margin: 0;
}

/* ==========================================================================
   PROJECTS SHOWCASE: ARCHITECTURAL ACCORDION STRIPS
   - Resting state: Narrow vertical strip, desaturated/dimmed, vertical project title.
   - Hovered state: Expands dynamically, full-color photography, full monograph
     caption smoothly slides up and fades in.
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* Desktop: Seamless accordion gallery where all 21 monographs fit in view simultaneously */
@media (min-width: 900px) and (hover: hover) {
  .projects-grid {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    height: clamp(520px, 52vw, 680px);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 142, 117, 0.45) transparent;
  }

  .projects-grid::-webkit-scrollbar {
    height: 4px;
  }

  .projects-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .projects-grid::-webkit-scrollbar-thumb {
    background-color: rgba(120, 142, 117, 0.35);
    border-radius: 4px;
  }

  .projects-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(120, 142, 117, 0.65);
  }
}

.projects-grid[hidden],
.projects-empty[hidden],
.projects-empty-cta[hidden] {
  display: none !important;
}

.project-card {
  position: relative;
  display: block;
  background-color: #141514;
  border: 1px solid rgba(24, 25, 24, 0.14);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  will-change: flex-grow, flex-basis;
  transform: translateZ(0);
  transition:
    flex 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.6s ease,
    box-shadow 0.7s ease;
}

@media (min-width: 900px) and (hover: hover) {
  .project-card {
    flex: 1 1 0%;
    min-width: 42px;
    height: 100%;
    cursor: pointer;
  }

  .project-card:hover,
  .project-card:focus-visible {
    flex: 7.5 1 0%;
    min-width: clamp(340px, 30vw, 440px);
    border-color: rgba(120, 142, 117, 0.65);
    box-shadow: 0 24px 50px -15px rgba(10, 12, 10, 0.65);
  }
}

.project-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #DFDDD7;
  isolation: isolate;
  height: 100%;
  transform: translateZ(0);
}

@media (min-width: 900px) and (hover: hover) {
  .project-card-media {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Image behavior: Silky smooth color reveal & zoom */
.project-card-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: filter, transform;
  transform: scale(1.02) translateZ(0);
  transition:
    filter 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

@media (min-width: 900px) and (hover: hover) {
  .project-card-media img {
    filter: grayscale(1) brightness(0.88) contrast(1.04);
    transform: scale(1.02) translateZ(0);
  }

  .project-card:hover .project-card-media img,
  .project-card:focus-visible .project-card-media img {
    filter: grayscale(0) brightness(1.02) contrast(1.02);
    transform: scale(1.06) translateZ(0);
  }
}

/* Cinematic gradient scrim */
.project-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0) 35%, rgba(8, 9, 8, 0.28) 60%, rgba(8, 9, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 9, 8, 0.38) 0%, rgba(8, 9, 8, 0) 45%);
  transition: opacity 0.8s ease;
}

.project-card:hover .project-card-media::after,
.project-card:focus-visible .project-card-media::after {
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0) 25%, rgba(8, 9, 8, 0.24) 52%, rgba(8, 9, 8, 0.92) 100%);
}

/* 1. Vertical title: Visible on narrow strip, centered horizontally, comfortably shifted upwards from bottom edge */
.project-card-vtitle {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg) translateZ(0);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #F5F4F0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  max-height: calc(100% - 7rem);
  opacity: 1;
  transform-origin: center center;
  will-change: opacity, transform;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@media (max-width: 899px), (hover: none) {
  .project-card-vtitle {
    display: none;
  }
}

@media (min-width: 900px) and (hover: hover) {
  .project-card:hover .project-card-vtitle,
  .project-card:focus-visible .project-card-vtitle {
    opacity: 0;
    transform: translateX(-50%) rotate(180deg) translateY(14px) translateZ(0);
    transition-duration: 0.35s, 0.5s;
  }
}

/* 2. Full Caption: Hidden/slid down on narrow strip; slides up and pops out on hover */
.project-card-caption {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 1;
  transform: none;
  will-change: opacity, transform;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) and (hover: hover) {
  .project-card-caption {
    width: min(340px, calc(100% - 2.7rem));
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    pointer-events: none;
  }

  .project-card:hover .project-card-caption,
  .project-card:focus-visible .project-card-caption {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    pointer-events: auto;
    transition-delay: 0.22s;
  }
}

.project-card-num {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.5rem;
  background-color: rgba(18, 19, 18, 0.72);
  color: #ECEAE5;
  border: 1px solid rgba(236, 234, 229, 0.18);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(6px);
}

.project-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-card-category {
  color: #B9C9B6;
  font-weight: 600;
}

.project-card-typology {
  color: rgba(245, 244, 240, 0.68);
}

.project-card-typology::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-color: rgba(236, 234, 229, 0.35);
}

.project-card-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #F5F4F0;
}

.project-card-tagline {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(245, 244, 240, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-link {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-top: 1px solid rgba(236, 234, 229, 0.24);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F5F4F0;
  transition: color 0.35s;
}

.project-card-link .material-symbols-outlined {
  font-size: 15px;
  transition: transform 0.35s;
}

.project-card:hover .project-card-link {
  color: #B9C9B6;
}

.project-card:hover .project-card-link .material-symbols-outlined {
  transform: translateX(3px);
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 4rem 0 2rem;
}

.projects-empty-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #181918;
}

.projects-empty-message {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #686A64;
  max-width: 36rem;
}

.projects-empty-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(24, 25, 24, 0.25);
  border-radius: 2px;
  background: transparent;
  color: #181918;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s, border-color 0.35s;
}

.projects-empty-cta:hover {
  color: #5F735C;
  border-color: #788E75;
}

.projects-empty-cta .material-symbols-outlined {
  font-size: 15px;
}

/* ==========================================================================
   PROJECT MONOGRAPH DETAIL (project.html)
   ========================================================================== */

.project-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #181918;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.project-back-link:hover {
  color: #5F735C;
}

.project-back-link .material-symbols-outlined {
  font-size: 16px;
}

.project-detail-index {
  color: #8E8C84;
  letter-spacing: 0.16em;
}

.project-detail-cover {
  position: relative;
  margin: 0 0 2.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #DFDDD7;
  border: 1px solid rgba(24, 25, 24, 0.1);
}

.project-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-cover-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  background-color: rgba(18, 19, 18, 0.74);
  color: #ECEAE5;
  border: 1px solid rgba(236, 234, 229, 0.22);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(6px);
}

.project-detail-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
}

.project-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8E8C84;
}

.project-detail-category {
  color: #788E75;
  font-weight: 600;
}

.project-detail-rule {
  width: 26px;
  height: 1px;
  background-color: rgba(24, 25, 24, 0.22);
}

.project-detail-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #181918;
}

.project-detail-tagline {
  margin: 0.9rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #686A64;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
}

@media (min-width: 1024px) {
  .project-detail-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 4.5rem;
  }
}

.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

@media (min-width: 1024px) {
  .project-detail-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.project-fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.08);
}

.project-fact-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #788E75;
}

.project-fact-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3B3C38;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3B3C38;
}

.project-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background-color: #788E75;
}

.project-palette {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-palette-swatches {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-swatch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: #686A64;
}

.project-swatch em {
  font-style: normal;
}

.project-swatch-chip {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(24, 25, 24, 0.15);
}

.project-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-detail-lede {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: #181918;
}

.project-prose {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.project-prose p {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #4A4B46;
}

.project-gallery-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
}

.project-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.1);
}

.project-section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #788E75;
}

.project-gallery-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8E8C84;
}

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.project-gallery-item {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #DFDDD7;
  border: 1px solid rgba(24, 25, 24, 0.08);
}

.project-gallery-item.is-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery-item:hover img {
  transform: scale(1.02);
}

.project-detail-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
}

@media (min-width: 640px) {
  .project-detail-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(24, 25, 24, 0.12);
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s, background-color 0.35s;
}

.project-nav-link:hover {
  border-color: #788E75;
  background-color: rgba(120, 142, 117, 0.06);
}

.project-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E8C84;
}

.project-nav-label .material-symbols-outlined {
  font-size: 14px;
}

.project-nav-next {
  text-align: right;
}

.project-nav-next .project-nav-label {
  justify-content: flex-end;
}

.project-nav-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #181918;
}

.project-detail-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid rgba(24, 25, 24, 0.12);
  background-color: rgba(245, 244, 240, 0.6);
}

.project-detail-cta p {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #686A64;
  max-width: 34rem;
}

.project-detail-cta .project-back-link {
  color: #181918;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.25);
}

.project-detail-cta .project-back-link:hover {
  color: #5F735C;
  border-color: #788E75;
}

.project-not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 3rem 0 4rem;
}

@media (max-width: 640px) {
  .project-detail-cover {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   PROJECTS ARCHIVE & MONOGRAPH (DARK THEME)
   ========================================================================== */

body.theme-dark .project-category-btn {
  border-color: #272A27;
  color: #B8B3A8;
}

body.theme-dark .project-category-btn:hover {
  color: #ECEAE5;
  border-color: #8DA08A;
}

body.theme-dark .project-category-btn.is-active {
  color: #8DA08A;
  border-color: #8DA08A;
  background-color: rgba(141, 160, 138, 0.14);
}

body.theme-dark .project-category-count {
  color: #7C7F79;
}

body.theme-dark .project-category-btn.is-active .project-category-count {
  color: #8DA08A;
}

body.theme-dark .project-category-blurb {
  color: #A8A49A;
}

body.theme-dark .project-card {
  background-color: #101210;
  border-color: #272A27;
}

body.theme-dark .project-card:hover {
  border-color: #8DA08A;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

body.theme-dark .project-card-media {
  background-color: #1E201E;
}

body.theme-dark .project-card:hover .project-card-link {
  color: #B9C9B6;
}

body.theme-dark .projects-empty-title {
  color: #ECEAE5;
}

body.theme-dark .projects-empty-message {
  color: #A8A49A;
}

body.theme-dark .projects-empty-cta {
  color: #ECEAE5;
  border-color: rgba(236, 234, 229, 0.25);
}

body.theme-dark .projects-empty-cta:hover {
  color: #8DA08A;
  border-color: #8DA08A;
}

body.theme-dark .project-detail-topbar {
  border-color: #272A27;
}

body.theme-dark .project-back-link {
  color: #ECEAE5;
}

body.theme-dark .project-back-link:hover {
  color: #8DA08A;
}

body.theme-dark .project-detail-index {
  color: #7C7F79;
}

body.theme-dark .project-detail-cover {
  background-color: #1E201E;
  border-color: #272A27;
}

body.theme-dark .project-detail-header {
  border-color: #272A27;
}

body.theme-dark .project-detail-title {
  color: #ECEAE5;
}

body.theme-dark .project-detail-eyebrow {
  color: #8E918B;
}

body.theme-dark .project-detail-category {
  color: #8DA08A;
}

body.theme-dark .project-detail-rule {
  background-color: rgba(236, 234, 229, 0.22);
}

body.theme-dark .project-detail-tagline {
  color: #B8B3A8;
}

body.theme-dark .project-detail-layout {
  border-color: #272A27;
}

body.theme-dark .project-fact {
  border-color: #1F211F;
}

body.theme-dark .project-fact-label {
  color: #8DA08A;
}

body.theme-dark .project-fact-value {
  color: #D8D5CC;
}

body.theme-dark .project-highlights li {
  color: #D8D5CC;
}

body.theme-dark .project-highlights li::before {
  background-color: #8DA08A;
}

body.theme-dark .project-swatch {
  color: #A8A49A;
}

body.theme-dark .project-swatch-chip {
  border-color: rgba(236, 234, 229, 0.25);
}

body.theme-dark .project-detail-lede {
  color: #ECEAE5;
}

body.theme-dark .project-prose p {
  color: #C9C5BB;
}

body.theme-dark .project-gallery-section {
  border-color: #272A27;
}

body.theme-dark .project-gallery-head {
  border-color: #272A27;
}

body.theme-dark .project-section-label {
  color: #8DA08A;
}

body.theme-dark .project-gallery-count {
  color: #7C7F79;
}

body.theme-dark .project-gallery-item {
  background-color: #1E201E;
  border-color: #272A27;
}

body.theme-dark .project-detail-nav {
  border-color: #272A27;
}

body.theme-dark .project-nav-link {
  border-color: #272A27;
}

body.theme-dark .project-nav-link:hover {
  border-color: #8DA08A;
  background-color: rgba(141, 160, 138, 0.08);
}

body.theme-dark .project-nav-label {
  color: #7C7F79;
}

body.theme-dark .project-nav-title {
  color: #ECEAE5;
}

body.theme-dark .project-detail-cta {
  border-color: #272A27;
  background-color: #141514;
}

body.theme-dark .project-detail-cta p {
  color: #A8A49A;
}

body.theme-dark .project-detail-cta .project-back-link {
  color: #ECEAE5;
  border-color: #272A27;
}

body.theme-dark .project-detail-cta .project-back-link:hover {
  color: #8DA08A;
  border-color: #8DA08A;
}

/* ==========================================================================
   PROJECTS: KEYBOARD FOCUS
   ========================================================================== */

.project-category-btn:focus-visible,
.project-card:focus-visible,
.project-nav-link:focus-visible,
.projects-empty-cta:focus-visible,
.project-back-link:focus-visible {
  outline: 2px solid #788E75;
  outline-offset: 3px;
}

/* ==========================================================================
   PROJECTS: REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card-media img,
  .project-card-vtitle,
  .project-card-caption,
  .project-card-link,
  .project-card-link .material-symbols-outlined {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   CAREERS PAGE
   ========================================================================== */

.career-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .career-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 5rem;
    align-items: end;
  }
}

.career-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #788E75;
}

.career-eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background-color: #788E75;
}

.career-title {
  margin: 0 0 1.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.75rem, 6.5vw, 5.4rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #181918;
}

.career-title em {
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: #5F735C;
}

.career-lede {
  max-width: 40rem;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: #686A64;
}

.career-hero-note {
  padding: 1.75rem;
  background-color: #F5F4F0;
  border: 1px solid rgba(24, 25, 24, 0.14);
  border-radius: 2px;
}

.career-note-label {
  display: block;
  margin-bottom: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #788E75;
}

.career-hero-note > p {
  margin: 0 0 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #686A64;
}

.career-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.career-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(24, 25, 24, 0.1);
}

.career-facts dt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8E8C84;
}

.career-facts dd {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: right;
  color: #181918;
}

.career-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 4rem;
  background-color: rgba(24, 25, 24, 0.15);
}

.career-application {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .career-application {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 5rem;
  }
}

@media (min-width: 1024px) {
  .career-aside {
    position: sticky;
    top: 7rem;
  }
}

.career-section-index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #788E75;
}

.career-aside h2 {
  margin: 0 0 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #181918;
}

.career-aside > p {
  margin: 0 0 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #686A64;
}

.career-aside-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.career-aside-list li {
  display: flex;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(24, 25, 24, 0.1);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #686A64;
}

.career-aside-list span {
  padding-top: 0.12rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #788E75;
}

.career-direct {
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 25, 24, 0.15);
}

.career-direct span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E8C84;
}

.career-direct a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(120, 142, 117, 0.5);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  color: #181918;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.career-direct a:hover {
  color: #5F735C;
  border-color: #5F735C;
}

.career-form {
  padding: 1.5rem;
  background-color: #F5F4F0;
  border: 1px solid rgba(24, 25, 24, 0.14);
  border-radius: 2px;
}

@media (min-width: 640px) {
  .career-form {
    padding: 2.25rem 2.4rem 2.4rem;
  }
}

.career-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(24, 25, 24, 0.12);
}

.career-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #181918;
}

.career-form-required {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #788E75;
}

.career-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .career-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.career-field {
  min-width: 0;
}

.career-field--full {
  grid-column: 1 / -1;
}

.career-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #788E75;
  transition: color 0.3s;
}

.career-field label span {
  color: #A5B8A2;
}

.career-field input,
.career-field textarea {
  width: 100%;
  padding: 0.55rem 0 0.6rem;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid rgba(24, 25, 24, 0.22);
  border-radius: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: #181918;
  transition: border-color 0.3s, color 0.3s;
}

.career-field textarea {
  min-height: 2.9rem;
  resize: vertical;
}

.career-field input::placeholder,
.career-field textarea::placeholder {
  color: rgba(104, 106, 100, 0.45);
}

.career-field input:focus,
.career-field textarea:focus {
  outline: none;
  border-bottom-color: #788E75;
}

.career-field:focus-within label {
  color: #181918;
}

.career-field input[aria-invalid="true"],
.career-field textarea[aria-invalid="true"] {
  border-bottom-color: #B4553F;
}

.career-field input:-webkit-autofill {
  -webkit-text-fill-color: #181918;
  box-shadow: 0 0 0 1000px #F5F4F0 inset;
}

.career-fixed-field {
  position: relative;
}

.career-fixed-field input {
  padding-right: 1.6rem;
  color: #5F735C;
  cursor: default;
}

.career-fixed-field .material-symbols-outlined {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 15px;
  color: #788E75;
  pointer-events: none;
}

.career-help {
  margin: 0.45rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #8E8C84;
}

.career-error {
  display: none;
  margin: 0.4rem 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #B4553F;
}

.career-error.is-visible {
  display: block;
}

.career-form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(24, 25, 24, 0.12);
}

@media (min-width: 640px) {
  .career-form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.career-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.9rem 1.4rem;
  background-color: #181918;
  border: 1px solid #181918;
  color: #F5F4F0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.career-submit:hover {
  background-color: #5F735C;
  border-color: #5F735C;
  color: #F5F4F0;
}

.career-submit .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.3s;
}

.career-submit:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.career-status {
  min-height: 1.2em;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5F735C;
}

.career-status.is-error {
  color: #B4553F;
}

.career-fallback {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5F735C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.career-fallback[hidden] {
  display: none !important;
}

.career-privacy {
  margin: 1.2rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  line-height: 1.65;
  color: #8E8C84;
}

.career-privacy a {
  color: #5F735C;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.career-privacy strong {
  font-weight: 500;
  color: #686A64;
}

.career-side a:focus-visible,
.career-direct a:focus-visible,
.career-submit:focus-visible,
.career-fallback:focus-visible,
.career-field input:focus-visible,
.career-field textarea:focus-visible {
  outline: 2px solid #788E75;
  outline-offset: 3px;
}

/* Careers — dark theme */

body.theme-dark .career-title,
body.theme-dark .career-aside h2,
body.theme-dark .career-facts dd,
body.theme-dark .career-form-title {
  color: #ECEAE5;
}

body.theme-dark .career-title em {
  color: #A5B8A2;
}

body.theme-dark .career-lede,
body.theme-dark .career-aside > p,
body.theme-dark .career-aside-list li,
body.theme-dark .career-hero-note > p {
  color: #A8A49A;
}

body.theme-dark .career-hero-note {
  background-color: #141514;
  border-color: #272A27;
}

body.theme-dark .career-facts div,
body.theme-dark .career-aside-list li,
body.theme-dark .career-direct,
body.theme-dark .career-form-head,
body.theme-dark .career-form-footer {
  border-color: #272A27;
}

body.theme-dark .career-rule {
  background-color: #272A27;
}

body.theme-dark .career-facts dt,
body.theme-dark .career-direct span,
body.theme-dark .career-help,
body.theme-dark .career-privacy {
  color: #8E918B;
}

body.theme-dark .career-direct a {
  color: #ECEAE5;
  border-color: #3A3D3A;
}

body.theme-dark .career-direct a:hover {
  color: #A5B8A2;
  border-color: #A5B8A2;
}

body.theme-dark .career-form {
  background-color: #141514;
  border-color: #272A27;
}

body.theme-dark .career-field label {
  color: #A5B8A2;
}

body.theme-dark .career-field label span {
  color: #788E75;
}

body.theme-dark .career-field:focus-within label {
  color: #ECEAE5;
}

body.theme-dark .career-field input,
body.theme-dark .career-field textarea {
  color: #ECEAE5;
  border-bottom-color: #3A3D3A;
}

body.theme-dark .career-field input::placeholder,
body.theme-dark .career-field textarea::placeholder {
  color: rgba(168, 164, 154, 0.45);
}

body.theme-dark .career-field input:focus,
body.theme-dark .career-field textarea:focus {
  border-bottom-color: #8DA08A;
}

body.theme-dark .career-field input:-webkit-autofill {
  -webkit-text-fill-color: #ECEAE5;
  box-shadow: 0 0 0 1000px #141514 inset;
}

body.theme-dark .career-fixed-field input {
  color: #A5B8A2;
}

body.theme-dark .career-submit {
  background-color: #ECEAE5;
  border-color: #ECEAE5;
  color: #181918;
}

body.theme-dark .career-submit:hover {
  background-color: #8DA08A;
  border-color: #8DA08A;
  color: #101210;
}

body.theme-dark .career-status {
  color: #A5B8A2;
}

body.theme-dark .career-status.is-error,
body.theme-dark .career-field input[aria-invalid="true"],
body.theme-dark .career-field textarea[aria-invalid="true"] {
  color: #E09A86;
  border-bottom-color: #B4553F;
}

body.theme-dark .career-fallback,
body.theme-dark .career-privacy a {
  color: #A5B8A2;
}

body.theme-dark .career-privacy strong {
  color: #B8B3A8;
}

@media (prefers-reduced-motion: reduce) {
  .career-submit,
  .career-submit .material-symbols-outlined,
  .career-field input,
  .career-field textarea,
  .career-direct a {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   FLOATING SOCIAL SHORTCUTS (INSTAGRAM + WHATSAPP)
   ========================================================================== */
.floating-social {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.floating-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, background-color 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.floating-social-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.floating-social-btn:hover,
.floating-social-btn:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 22px 46px -16px rgba(0, 0, 0, 0.65);
}

.floating-social-btn:hover svg,
.floating-social-btn:focus-visible svg {
  transform: scale(1.08);
}

.floating-social-whatsapp {
  background-color: #25D366;
}

.floating-social-whatsapp:hover,
.floating-social-whatsapp:focus-visible {
  background-color: #20ba5a;
}

.floating-social-instagram {
  background-image: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}

.floating-social-instagram:hover,
.floating-social-instagram:focus-visible {
  filter: brightness(1.08);
}

@media (min-width: 640px) {
  .floating-social-btn {
    width: 3.5rem;
    height: 3.5rem;
  }

  .floating-social-btn svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (max-width: 380px) {
  .floating-social {
    right: 1rem;
    bottom: 1rem;
    gap: 0.55rem;
  }

  .floating-social-btn {
    width: 3rem;
    height: 3rem;
  }

  .floating-social-btn svg {
    width: 1.45rem;
    height: 1.45rem;
  }
}

/* ==========================================================================
   GLOBAL ACCESSIBILITY & MOBILE VIEWPORT POLISH
   ========================================================================== */

/* Visible keyboard focus for every interactive control. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #788E75;
  outline-offset: 3px;
}

body.theme-dark a:focus-visible,
body.theme-dark button:focus-visible,
body.theme-dark input:focus-visible,
body.theme-dark textarea:focus-visible,
body.theme-dark select:focus-visible {
  outline-color: #A5B8A2;
}

/* Keep anchor targets clear of the fixed header. */
#hero,
#about,
#contact {
  scroll-margin-top: 80px;
}

/* Inquiry form status: error state on the homepage. */
#form-status.is-error {
  color: #B4553F;
}

body.theme-dark #form-status.is-error {
  color: #E09A86;
}

/* Use the small viewport height on mobile so the hero never hides content
   behind the collapsing browser chrome. Both the hero and the negative
   margin of <main> must change together. */
@supports (height: 100svh) {
  #hero,
  .hero-viewport-wrap,
  .hero-sticky-layer {
    height: 100svh;
  }

  #main-content.hero-main {
    margin-top: -100svh !important;
  }

  .about-scroll-stage {
    min-height: 100svh;
  }
}

/* Global reduced-motion fallback for smooth scrolling and transitions. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   PROJECT PHOTO VIEWER (full-screen lightbox)
   ========================================================================== */
body.lightbox-open {
  overflow: hidden;
}

.project-detail-cover img,
.project-gallery-item img {
  cursor: zoom-in;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid #A5B8A2;
  outline-offset: -2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #0c0d0c;
  color: #ECEAE5;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(236, 234, 229, 0.1);
}

.lightbox-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.lightbox-project {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-counter {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #A5B8A2;
}

.lightbox-icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(236, 234, 229, 0.22);
  background: rgba(24, 25, 24, 0.4);
  color: #ECEAE5;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.lightbox-icon-btn:hover {
  background: rgba(165, 184, 162, 0.18);
  border-color: #A5B8A2;
}

.lightbox-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.35rem 0;
  touch-action: none;
  cursor: zoom-in;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.2s ease-out;
  will-change: transform;
  cursor: zoom-in;
}

.lightbox-img.is-zoomed {
  cursor: grab;
  transition: none;
}

.lightbox-img.is-zoomed:active {
  cursor: grabbing;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  border: 1px solid rgba(236, 234, 229, 0.2);
  background: rgba(24, 25, 24, 0.55);
  color: #ECEAE5;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lightbox-nav:hover {
  background: rgba(165, 184, 162, 0.22);
  border-color: #A5B8A2;
}

.lightbox-nav .material-symbols-outlined {
  font-size: 20px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.4rem 1.35rem 1.1rem;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lightbox-caption {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 234, 229, 0.62);
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lightbox-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 0.55rem;
  border: 1px solid rgba(236, 234, 229, 0.2);
  background: rgba(24, 25, 24, 0.45);
  color: #ECEAE5;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.lightbox-tool:hover {
  background: rgba(165, 184, 162, 0.18);
  border-color: #A5B8A2;
}

.lightbox-tool .material-symbols-outlined {
  font-size: 16px;
}

.lightbox-zoom-label {
  min-width: 54px;
  color: #A5B8A2;
}

.lightbox-hint {
  margin-left: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 234, 229, 0.4);
}

.lightbox-thumbs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 184, 162, 0.5) transparent;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(236, 234, 229, 0.14);
  background: #1D1E1D;
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: #A5B8A2;
}

@media (max-width: 768px) {
  .lightbox-topbar {
    padding: 0.65rem 0.9rem;
  }

  .lightbox-bottom {
    padding: 0.3rem 0.9rem 0.8rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .lightbox-hint {
    display: none;
  }

  .lightbox-thumb {
    width: 48px;
    height: 34px;
  }

  .lightbox-caption {
    letter-spacing: 0.14em;
  }
}

