/* ============================
   ROOT & RESET
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0d0c0b;
  --bg-dark2: #141210;
  --bg-dark3: #1a1715;
  --bg-card: #1e1b18;
  --accent: #c8a96e;
  --accent-light: #d4bb87;
  --accent-dark: #a8854a;
  --text-primary: #f0ece4;
  --text-secondary: #9a9088;
  --text-muted: #5c5550;
  --border: rgba(200, 169, 110, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select,
input,
textarea {
  font-family: inherit;
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================
   TYPOGRAPHY HELPERS
   ============================ */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-label.light {
  color: var(--accent-light);
}

.section-label.light::before {
  background: var(--accent-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-title.light {
  color: #fff;
}

.section-title.light em {
  color: var(--accent-light);
}

.section-header.center {
  text-align: center;
  margin-bottom: 72px;
}

.section-header.center .section-label {
  justify-content: center;
}

.section-header.center .section-label::before {
  display: none;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 169, 110, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

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

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.4s var(--ease),
    padding 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
  transform: translateZ(0);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background: rgba(13, 12, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 20px;
  border-radius: 2px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-dark) !important;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-link,
.lang-active {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.lang-link {
  color: var(--text-secondary);
}

.lang-active,
.lang-link:hover {
  color: var(--accent);
}

.lang-sep {
  color: var(--border-subtle);
  font-size: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-dark2);
  border-top: 1px solid var(--border-subtle);
  padding: 20px 48px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 70% 50%, #2a1f0e 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, #1a140b 0%, transparent 50%),
    var(--bg-dark);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-dark);
  top: -100px;
  right: -100px;
  animation: float1 12s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #8b6528;
  bottom: 0;
  left: 10%;
  animation: float2 16s ease-in-out infinite;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 30%;
  left: 50%;
  animation: float1 20s ease-in-out infinite reverse;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 20px) scale(1.05);
  }

  66% {
    transform: translate(20px, -10px) scale(0.97);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -40px) scale(1.1);
  }
}

.wood-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(92deg,
      transparent,
      transparent 80px,
      rgba(200, 169, 110, 0.012) 80px,
      rgba(200, 169, 110, 0.012) 82px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 48px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-bottom: 48px;
  max-width: 380px;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1s var(--ease) 0.8s both;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  to {
    left: 100%;
  }
}

.hero-stats {
  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 2;
  animation: fadeIn 1s var(--ease) 1s both;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================
   ABOUT
   ============================ */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
  margin-top: 48px;
}

.about-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 400px;
  position: relative;
}

/* Stacked photo layout */
.about-img-stack {
  width: 100%;
  height: 100%;
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-img-main:hover img {
  transform: scale(1.04);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
  pointer-events: none;
}

.about-img-secondary {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 52%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-img-secondary:hover img {
  transform: scale(1.06);
}

.year-badge {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  border: 1px solid rgba(200, 169, 110, 0.5);
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.about-accent-block {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 2px;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-lead strong {
  color: var(--accent);
  font-weight: 600;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(200, 169, 110, 0.08);
}

/* ============================
   SERVICES
   ============================ */
.services {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark2);
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-subtle);
}

.service-card {
  position: relative;
  padding: 48px 40px;
  background: var(--bg-dark2);
  transition: background 0.3s var(--ease);
  overflow: hidden;
  cursor: default;
}

.service-card::after {
  content: attr(data-index);
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  color: rgba(200, 169, 110, 0.06);
  line-height: 1;
  transition: color 0.3s;
}

.service-card:not(:nth-child(3n)) {
  border-right: 1px solid var(--border-subtle);
}

.service-card:not(:nth-child(n+4)) {
  border-bottom: 1px solid var(--border-subtle);
}

.service-card:hover {
  background: var(--bg-card);
}

.service-card:hover::after {
  color: rgba(200, 169, 110, 0.12);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================
   MATERIALS
   ============================ */
.materials {
  padding: 120px 0;
}

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.materials-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.materials-text+.btn {
  margin-top: 32px;
}

.material-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-dark3);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}

.material-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.material-swatch {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  flex-shrink: 0;
}

.swatch-oak {
  background: linear-gradient(135deg, #c4903e, #a97830, #d4a652);
}

.swatch-walnut {
  background: linear-gradient(135deg, #4a3220, #3a2418, #5c3e29);
}

.swatch-ash {
  background: linear-gradient(135deg, #d4c9b8, #bfb199, #ccc0a8);
}

.swatch-cherry {
  background: linear-gradient(135deg, #8b3a2f, #6e2d22, #9e4438);
}

.swatch-pine {
  background: linear-gradient(135deg, #d4b87e, #c4a468, #e0c890);
}

.swatch-custom {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
}

.material-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.material-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ============================
   PORTFOLIO
   ============================ */
.portfolio {
  padding: 120px 0;
  position: relative;
}

.portfolio-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark2);
}

.portfolio-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.portfolio-item {
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  position: relative;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

.portfolio-visual {
  flex: 1;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark3);
}

.portfolio-item.large .portfolio-visual {
  min-height: 460px;
}

.portfolio-item.hidden {
  display: none;
}

/* Hover zoom effect for photo visuals */
.portfolio-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
  transform: translateZ(0);
  will-change: transform;
  z-index: 0;
}

.portfolio-visual:hover::before {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: opacity;
  z-index: 2;
}

.portfolio-visual:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
}

.portfolio-year {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* ============================
   PROCESS
   ============================ */
.process {
  padding: 120px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
}

.process-step {
  padding: 48px 32px 48px;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
}

.step-line {
  position: absolute;
  top: 64px;
  right: 0;
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.step-line.last {
  display: none;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Hover highlight per step */
.process-step:hover .step-num {
  opacity: 0.7;
}

/* ============================
   CONTACT
   ============================ */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark2);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 24px 0 48px;
  max-width: 380px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.3s;
}

a.contact-value:hover {
  color: var(--accent);
}

/* Form */
.contact-form {
  background: var(--bg-dark3);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9088' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-dark3);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--accent);
  font-size: 14px;
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .nav-inner {
    padding: 0 32px;
  }

  .nav-mobile {
    padding: 20px 32px;
  }

  .hero-content {
    padding: 120px 32px 60px;
  }

  .hero-scroll {
    left: 32px;
  }

  .hero-stats {
    right: 32px;
  }

  .about-grid,
  .materials-grid,
  .contact-grid {
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:not(:nth-child(3n)) {
    border-right: none;
  }

  .service-card:nth-child(odd):not(:nth-last-child(-n+2)) {
    border-right: 1px solid var(--border-subtle);
  }

  .service-card:not(:nth-child(n+5)) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-line {
    display: none;
  }

  .process-step:first-child .step-line,
  .process-step:nth-child(3) .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-stats {
    display: none;
  }

  .hero-scroll {
    bottom: 32px;
    left: 32px;
  }

  .about-grid,
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-left {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .about-visual {
    order: 3;
  }

  .about-right {
    order: 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    border-right: none !important;
  }

  .service-card:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .portfolio-item.large {
    grid-column: span 1;
  }

  .portfolio-visual,
  .portfolio-item.large .portfolio-visual {
    height: 280px;
  }

  .portfolio-overlay {
    opacity: 1;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 480px) {

  .container,
  .nav-inner {
    padding: 0 20px;
  }

  .nav-mobile {
    padding: 20px;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll {
    left: 20px;
  }
}

/* ============================
   PORTFOLIO LOAD MORE
   ============================ */
.portfolio-loadmore {
  display: none;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.portfolio-loadmore.visible {
  display: flex;
}

.loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.loadmore-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.loadmore-btn svg {
  transition: transform 0.3s var(--ease);
}

.loadmore-btn:hover svg {
  transform: translateY(3px);
}

/* ============================
   PORTFOLIO ZOOM ICON
   ============================ */
.portfolio-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 56px;
  height: 56px;
  background: rgba(13, 12, 11, 0.7);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.portfolio-zoom svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.portfolio-visual:hover .portfolio-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-item[data-full] .portfolio-visual {
  cursor: zoom-in;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  display: block;
}

.lightbox.open .lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-loader {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(200, 169, 110, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
  display: none;
}

.lightbox-loader.visible {
  display: block;
}

@keyframes lb-spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 12, 11, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 10px 24px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.lightbox-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
}

.lightbox-counter {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {

  /* Mobile lightbox: vertical stack layout */
  .lightbox {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .lightbox-stage {
    max-width: 100vw;
    max-height: none;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0 0;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    border-radius: 2px;
  }

  /* Close button – stays top-right */
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  /* Nav arrows – move to bottom bar, side by side */
  .lightbox-nav {
    position: fixed;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }

  /* Caption – slim bar at the very bottom */
  .lightbox-caption {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    padding: calc(10px + env(safe-area-inset-bottom, 0px)) 20px 10px;
    white-space: normal;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
  }

  .lightbox-counter {
    border-left: none;
    padding-left: 0;
  }
}