* {
  box-sizing: border-box;
}
:root {
  --bg: #0d0d0c;
  --panel: #111110;
  --gold: #b9925e;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
.site-header {
  position: fixed;
  top: 0;
  z-index: 90;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.brand {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: white;
  text-align: left;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}
.brand img {
  display: block;
  height: auto;
  filter: brightness(0) invert(1);
  transform: scale(1.3);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.brand:hover {
  opacity: 0.82;
}
.brand:hover img {
  transform: scale(1.38);
}
.brand:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}
.brand span {
  display: block;
  letter-spacing: 0.55em;
  font-size: 14px;
}
.brand small {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
}
nav {
  display: flex;
  gap: 36px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0;
  z-index: 70;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: white;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(8, 8, 7, 0.98);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-nav nav button {
  background: none;
  border: 0;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
}
.mobile-nav nav button:hover {
  color: var(--gold);
}
.mobile-nav .outline-btn {
  display: inline-block;
}
nav button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
}
nav button:hover {
  color: white;
}
.outline-btn,
.primary-btn,
.gold-btn {
  border-radius: 0;
  padding: 18px 28px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}
.outline-btn,
.primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: white;
}
.gold-btn {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: black;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
  cursor: pointer;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0.08)
    ),
    linear-gradient(0deg, var(--bg), transparent 38%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
  padding: 180px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
}
h1,
h2,
.page-title {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.hero h1 {
  font-size: clamp(58px, 10vw, 150px);
  margin: 20px 0 28px;
}
.lead,
.page-intro {
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
  font-size: 20px;
  line-height: 1.8;
}
.button-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-blurb {
  margin-top: 32px;
}
.slider-controls {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
}
.slider-controls button {
  width: 54px;
  height: 54px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 28px;
}

.modal-card{
  background: var(--panel) ;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.info-grid > div {
  padding: 48px;
  border-right: 1px solid var(--line);
}
.info-grid h2,
.section-heading h2 {
  font-size: clamp(42px, 7vw, 112px);
  margin: 0;
}
.info-grid p,
.section-heading p,
.about-grid p,
.process-list p {
  color: var(--muted);
  line-height: 1.8;
}
.stat {
  margin-bottom: 30px;
}
.stat label {
  display: block;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  margin-bottom: 8px;
}
.text-link {
  background: none;
  border: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  padding: 0;
  margin-top: 24px;
}
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  padding: 0 !important;
}
.image-card,
.project-image,
.about-image {
  background-size: cover;
  background-position: center;
  min-height: 100%;
}
.section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 140px 48px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Portfolio Carousel ───────────────────────────── */

/* Outer wrapper: holds buttons + clip side by side */
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* This is the only element with overflow:hidden — it clips the track */
.carousel-clip {
  flex: 1;          /* takes all space between the two buttons */
  overflow: hidden; /* clips cards outside the viewport */
  min-width: 0;     /* lets flex child shrink below content size */
}

/* The scrolling track */
#portfolioProjects,
#homeProjects {
  display: flex;
  gap: 28px;
  transition: transform 0.45s ease;
  will-change: transform;
}

/* JS sets exact pixel width on each card */
#portfolioProjects .project-card,
#homeProjects .project-card {
  flex: 0 0 auto;
}

.carousel-btn {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.7);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}
.project-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.project-card button {
  width: 100%;
  background: none;
  border: 0;
  color: white;
  text-align: left;
}
.project-image-wrap {
  position: relative;
  overflow: hidden;
  height: 520px;
}
.project-image-wrap .project-image-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}
.project-image {
  width: 100%;
  height: 100%;
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: transform 0.55s ease, opacity 0.3s ease;
}
.project-card:hover .project-image {
  opacity: 1;
  transform: scale(1.04);
}
.project-card .image-nav {
  position: absolute !important;
  top: 50% !important;
  left: auto;
  right: auto;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: white;
  font-size: 20px;
  line-height: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 6;
  opacity: 0;
  text-align: center;
  transition: opacity 0.2s, background 0.2s;
}
.project-image-wrap:hover .image-nav {
  opacity: 1;
}
.image-nav:hover {
  background: rgba(0, 0, 0, 0.85) !important;
}
.project-card .image-nav-prev {
  left: 12px !important;
}
.project-card .image-nav-next {
  right: 12px !important;
}
.image-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 6;
  pointer-events: none;
}
.image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
}
.image-dot.active {
  background: var(--gold);
  transform: scale(1.5);
}
@media (max-width: 900px) {
  .project-card .image-nav {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45) !important;
  }
}
.project-content {
  padding: 28px;
}
.project-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin: 12px 0;
}
.project-content p {
  color: rgba(255, 255, 255, 0.5);
}
.about-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page-title {
  font-size: clamp(56px, 9vw, 140px);
  max-width: 1100px;
  margin: 20px 0 34px;
}
.process-list {
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.process-step span {
  color: var(--gold);
}
.process-step h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0;
}
.about-step {
  grid-template-columns: 1fr;
}
.process-list p,
.process-list li {
  color: var(--muted);
  line-height: 1.8;
}
.process-list ul {
  margin: 0 0 1em;
  padding-left: 1.8em;
  list-style-position: outside;
}
.process-list li {
  padding-left: 0.3em;
  margin-bottom: 0.4em;
}
.process-list li::marker {
  color: var(--gold);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about-card {
  position: sticky;
  top: 140px;
  height: 520px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 2;
}
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.about-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.9s ease, transform 0.7s ease;
}
.about-image.active {
  opacity: 1;
}
.about-card:hover .about-image.active {
  transform: scale(1.05);
}
#bioImage {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--panel);
}
#bio .about-card {
  height: 680px;
}
.value-list {
  padding: 32px;
}
.copy {
  color: var(--muted);
  line-height: 1.8;
}
.bio-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin: 0 0 1.3em;
}
.value-list p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.contact-phone {
  display: inline-block;
  margin: 4px 0 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}
.contact-phone:hover {
  opacity: 0.8;
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-top: 42px;
}
.grecaptcha-badge {
  visibility: hidden;
}
.recaptcha-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: -4px 0 4px;
}
.recaptcha-note a {
  color: var(--gold);
}
input,
textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: white;
  padding: 20px;
  font-size: 16px;
}
textarea {
  min-height: 160px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 4, 0.94);
}
.lightbox.active {
  display: flex;
}
.lightbox-stage {
  max-width: 88vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 3;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
}
.lightbox-close {
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 30px;
  line-height: 1;
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}
.lightbox-counter {
  position: absolute;
  top: 32px;
  left: 32px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
}
.lightbox-dots {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
@media (max-width: 900px) {
  .site-header {
    padding: 20px;
  }
  .brand img {
    width: 120px;
  }
  nav,
  .outline-btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-content,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .info-grid,
  .section-heading,
  .project-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .image-pair {
    grid-template-columns: 1fr;
  }
  .about-card {
    position: relative;
  }
  #bio .about-card {
    height: 420px;
  }
  .project-image-wrap {
    height: 380px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-counter {
    top: 18px;
    left: 18px;
  }
  footer {
    flex-direction: column;
    gap: 14px;
    padding: 32px 24px;
  }
}