:root {
  color-scheme: dark;
  --color-bg: #0c0c0f;
  --color-surface: rgba(30, 30, 36, 0.85);
  --color-surface-strong: rgba(40, 40, 48, 0.9);
  --color-accent: #e0d7c2;
  --color-accent-strong: #f2c46d;
  --color-text: #f7f7f7;
  --color-text-muted: #c9c9d4;
  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --transition: 200ms ease;
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-radius: 22px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --thumb-bg: #0f0f10;
  --thumb-border-dash: rgba(255, 255, 255, 0.18);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #1a1a1f;
  background-image: url("/assets/bg/professional-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(26, 26, 31, 0.75), rgba(30, 30, 36, 0.85)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 4px
    );
  z-index: -1;
}

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

a:hover,
a:focus {
  color: var(--color-accent-strong);
}

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background-color: rgba(10, 10, 14, 0.88);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 3vw, 3rem);
  max-width: 1200px;
  width: 100%;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.4rem;
  margin-bottom: -0.75rem;
}

.brand {
  flex-shrink: 0;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  text-align: left;
}

.brand__title {
  white-space: nowrap;
  letter-spacing: 0.06em;
  margin: 0;
  margin-bottom: clamp(0.6rem, 1.2vw, 0.9rem);
}

.brand__name {
  margin-bottom: clamp(0.4rem, 0.8vw, 0.6rem);
}

.site-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 2px 8px rgba(240, 228, 180, 0.2);
}

.brand__name {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  opacity: 1;
  display: block !important;
  text-align: left;
  font-family: inherit;
}

.brand__role {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-style: italic;
  color: var(--color-text);
  opacity: 0.9;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
  display: block !important;
  text-align: left;
}

.brand__byline {
  white-space: nowrap;
  opacity: 0.85;
  line-height: 1.3;
}

.site-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: relative;
  border: none;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
  color: inherit;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bar::before {
  transform: translateY(-6px);
}

.nav-toggle__bar::after {
  transform: translateY(4px);
}

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

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

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

.primary-nav {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav__item {
  margin: 0;
  padding: 0;
}


.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--card-bg);
  color: #fff;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  position: relative;
}

.nav-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.nav-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.active {
  border-color: #d6b27b;
  box-shadow: 0 0 0 2px rgba(214, 178, 123, 0.25) inset;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
  background: transparent;
}

.section {
  padding-block: clamp(0.75rem, 2vw, 1.5rem);
  margin: 1rem 0;
  position: relative;
}

.section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem 0;
}

.project-card,
.gallery-card,
.material-card,
.section-card,
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card .thumb,
.gallery-card .thumb,
.material-card .thumb,
.card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  border: 1px dashed var(--thumb-border-dash);
  border-radius: calc(var(--card-radius) - 6px);
}

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

.section-header {
  text-align: center;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fafafa 0%, #bcbcd2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.surface {
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(10, 10, 14, 0.92);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-weight: 600;
  color: var(--color-text);
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

@media (max-width: 900px) {
  .primary-nav,
  .site-nav {
    position: fixed;
    inset: 0 0 auto auto;
    transform: translateY(-120%);
    background: rgba(10, 10, 14, 0.95);
    width: min(320px, 80vw);
    border-bottom-left-radius: 18px;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    transition: transform var(--transition);
  }

  .primary-nav.is-open,
  .site-nav.is-open {
    transform: translateY(0);
  }

  .primary-nav ul,
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.primary-nav ul {
  gap: clamp(0.75rem, 2.3vw, 1.1rem);
}

.site-nav__list {
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

/* reserved for future responsive tuning of navigation buttons */

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
  }

  .brand__title {
    letter-spacing: 0.08em;
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  }

  .brand__name {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    letter-spacing: 0.05em;
  }

  .brand__role {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    letter-spacing: 0.05em;
  }

  .brand__byline {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  .site-subtitle {
    font-size: 0.85rem;
  }

  .site-nav__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
  }

  .site-nav__list::-webkit-scrollbar {
    display: none;
  }

  .main-content {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .site-nav__list {
    flex-wrap: wrap;
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }
}

@media (min-width: 1024px) {
  .site-nav__list {
    flex-wrap: nowrap;
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }
}

.hero {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.hero p {
  opacity: 0.9;
  margin-top: 0.5rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1rem;
}

@media (min-width: 900px) {
  .meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meta-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.8rem 1rem;
}

.meta-item .label {
  font-size: 0.8rem;
  opacity: 0.7;
}

.meta-item .value {
  font-weight: 600;
  margin-top: 0.15rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--card-radius) - 6px);
  background: var(--thumb-bg);
  border: 1px dashed var(--thumb-border-dash);
  margin-bottom: 0.9rem;
  object-fit: cover;
  display: block;
}

.gallery-card .thumb {
  margin-bottom: 0;
}

.thumb[aria-hidden="true"] {
  background: var(--thumb-bg);
  border: 1px dashed var(--thumb-border-dash);
}

.field {
  margin: 0.6rem 0;
}

.image-card .field {
  margin: 0;
}

.field .label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.placeholder-box {
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--card-bg);
  pointer-events: none;
  user-select: none;
}

.placeholder-box.large {
  height: 110px;
}

/* Disable any accidental edit affordances */
[contenteditable],
input,
textarea {
  caret-color: transparent;
}

/* Ensure placeholder areas never accept pointer or keyboard focus */
.placeholder-box,
.placeholder-box * {
  pointer-events: none;
}

.gallery-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gallery-card img {
  flex-shrink: 0;
  margin-bottom: 0;
}

.gallery-card .field {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.gallery-card .field:first-of-type {
  min-height: 3.5em;
}

.gallery-card .field:nth-of-type(2) {
  min-height: 2.5em;
}

.gallery-card .field:last-of-type {
  flex-grow: 1;
}
.project-hero__fields {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
