:root {
  --brand-black: #111111;
  --brand-white: #ffffff;
  --brand-gray: #888888;
  --brand-offwhite: #f7f7f7;
}

body {
  color: var(--brand-black);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-padding-top: 7rem;
}

.public-site {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-site p,
.public-site a,
.public-site button,
.public-site span,
.public-site li,
.public-site label,
.public-site input,
.public-site textarea,
.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.public-site h5,
.public-site h6 {
  letter-spacing: 0.08em;
}

/* Navbar */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0.75rem 0;
  transition: top 0.3s ease;
}

.site-navbar.is-scrolled {
  top: 1rem;
}

.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-navbar.is-scrolled .navbar-inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.navbar-brand-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.navbar-logo {
  width: auto;
  height: 4.25rem;
  max-width: 17rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 576px) {
  .navbar-logo {
    height: 5rem;
    max-width: 19rem;
  }
}

@media (min-width: 992px) {
  .navbar-logo {
    height: 6rem;
    max-width: 22rem;
  }
}

.navbar-links a {
  color: var(--brand-black);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--brand-gray);
}

.navbar-toggle {
  border: none;
}

.mobile-menu-offcanvas {
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.97);
}

.mobile-menu-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-black);
  text-decoration: none;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  background: var(--brand-black);
  padding: 10rem 1rem 8rem;
}

.hero-slideshow {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 7s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1.03);
}

.hero-overlay {
  background: rgba(17, 17, 17, 0.35);
  z-index: 1;
}

.hero-text {
  color: var(--brand-white);
  line-height: 0.95;
  letter-spacing: 0.14em;
  font-weight: 300;
}

.hero-subtitle {
  max-width: 36rem;
  color: rgba(247, 247, 247, 0.8);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.3125rem);
  text-transform: uppercase;
}

.hero-scroll-hint {
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Sections */
.section-padding {
  padding: 6rem 1rem;
}

@media (min-width: 576px) {
  .section-padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 992px) {
  .section-padding {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.page-top-padding {
  padding-top: 9rem;
}

.section-title,
.page-title {
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-about {
  background: var(--brand-offwhite);
}

.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
}

.about-quote {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.section-contact.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (min-width: 992px) {
  .section-contact.section-padding {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
}

.section-contact .section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 2rem !important;
}

.contact-email,
.contact-phone {
  font-size: clamp(1.375rem, 3vw, 2rem);
  color: var(--brand-black);
  text-decoration: none;
  letter-spacing: 0.12em;
}

.contact-email:hover,
.contact-phone:hover {
  color: var(--brand-gray);
}

.link-underline {
  color: var(--brand-black);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-black);
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}

.link-underline:hover {
  color: var(--brand-gray);
  border-color: var(--brand-gray);
}

/* Project cards */
.square-frame {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: transparent;
}

.project-card-image,
.gallery-image {
  transition: transform 1s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.gallery-frame:hover .gallery-image {
  transform: scale(1.03);
}

.project-title {
  transition: color 0.18s ease;
}

.project-card:hover .project-title {
  color: var(--brand-gray);
}

.project-arrow {
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Detail page */
.meta-label {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
}

.info-card {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.gallery-frame {
  overflow: hidden;
  background: var(--brand-offwhite);
  border-radius: 0.75rem;
  cursor: zoom-in;
  display: block;
  color: inherit;
  text-align: inherit;
}

button.gallery-frame {
  appearance: none;
}

.gallery-frame:focus-visible {
  outline: 2px solid var(--brand-black);
  outline-offset: 2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.92);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.gallery-lightbox-nav-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  margin-top: 1.25rem;
  width: 100%;
}

.gallery-lightbox-nav-row > * {
  flex: 0 0 auto;
}

.gallery-lightbox-counter {
  margin: 0;
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--brand-white);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.gallery-lightbox-close i {
  font-size: 1.75rem;
  line-height: 1;
}

.gallery-lightbox-close:hover {
  color: rgba(255, 255, 255, 0.75);
}

.gallery-lightbox-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  color: var(--brand-white);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery-lightbox-nav-icon {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  pointer-events: none;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
}

.gallery-lightbox-nav:active {
  transform: scale(0.96);
}

@media (max-width: 575.98px) {
  .gallery-lightbox-image {
    max-height: calc(100vh - 12rem);
  }

  .gallery-lightbox-nav-row {
    gap: 2rem;
    margin-top: 1rem;
  }

  .gallery-lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .gallery-lightbox-nav-icon {
    font-size: 2rem;
  }

  .gallery-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
  }
}

/* Footer */
.site-footer {
  background: var(--brand-offwhite);
  padding: 4rem 0;
  font-size: 0.875rem;
  color: var(--brand-gray);
  text-transform: uppercase;
}

.footer-brand {
  color: var(--brand-black);
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-right: 0.5rem;
}

.site-footer a,
.site-footer .btn-link {
  color: var(--brand-gray);
  text-decoration: none;
  font-size: inherit;
  letter-spacing: inherit;
}

.site-footer a:hover,
.site-footer .btn-link:hover {
  color: var(--brand-black);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  padding: 1rem;
}

.cookie-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 1.5rem 2rem;
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: rgba(17, 17, 17, 0.7);
  text-transform: none;
  letter-spacing: 0.02em;
}

.cookie-btn {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.85);
  text-decoration: none;
}

.cookie-settings-title {
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cookie-settings-list label {
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* TipTap content */
.tiptap-content {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em !important;
  line-height: 1.7;
}

.tiptap-content p { margin-bottom: 1.5rem; }
.tiptap-content p:last-child { margin-bottom: 0; }
.tiptap-content strong { font-weight: 600; }
.tiptap-content em { font-style: italic; }
.tiptap-content h1 { font-size: 2rem; margin-bottom: 2rem; font-weight: 300; }
.tiptap-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 300; }
.tiptap-content h3 { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 300; }
.tiptap-content ul,
.tiptap-content ol { margin-bottom: 1.5rem; padding-left: 1.25rem; }
.tiptap-content li { margin-bottom: 0.5rem; }
.tiptap-content blockquote {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(17, 17, 17, 0.2);
  color: var(--brand-gray);
}
.tiptap-content a { text-decoration: underline; }
.tiptap-content a:hover { color: var(--brand-gray); }

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

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

/* Maintenance */
.maintenance-page {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #0b0b0b 0%, #111111 45%, #080808 100%);
  color: var(--brand-offwhite);
}

.maintenance-badge {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 247, 247, 0.7);
}

.maintenance-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

.maintenance-text {
  max-width: 36rem;
  color: rgba(247, 247, 247, 0.7);
  text-transform: none;
  letter-spacing: 0.02em;
}