/* ============================================
   zlatkovic.design — Global Styles
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --container-max: 1440px;
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #1A1A1A;
  --bg-elevated: #222222;
  --accent: #4AEAAE;
  --accent-hover: #3DD99D;
  --accent-subtle: rgba(74, 234, 174, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.pulsating-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: relative;
}

.pulsating-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulsate 1.5s ease-out infinite;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

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

.tag-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  border-left: 1px solid var(--border-primary);
  border-right: 1px solid var(--border-primary);
}

.header,
.hero,
.section-padding,
.about-teaser,
.cta-section,
.footer,
.filters,
.bio-section,
.expertise-section,
.contact-main,
.map-section,
.project-hero,
.project-cover,
.project-meta,
.project-section,
.project-image-full,
.project-image-grid,
.project-quote,
.project-stats,
.project-next,
.divider {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  border-left: 1px solid var(--border-primary);
  border-right: 1px solid var(--border-primary);
}

.section-padding {
  padding: 100px 80px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-primary);
}

/* --- Header / Nav --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 28px;
  width: auto;
  display: block;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

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

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

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

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero with Unicorn Studio WebGL scene */
.hero-with-scene {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-with-scene .hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--container-max);
  margin-left: 0;
  margin-right: auto;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.0;
  color: var(--text-primary);
}

.hero-sub-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--accent);
  color: #0A0A0A;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 234, 174, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.lg {
  padding: 20px 48px;
  font-size: 16px;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -1.5px;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.8;
}

/* --- Project Cards --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}

.project-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

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

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

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

.card-image .placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
}

.card-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.service-title {
  font-size: 22px;
  font-weight: 600;
}

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

/* --- About Teaser --- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 80px;
  align-items: start;
}

.about-left .headline {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.about-right {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-right p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.8;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 120px 80px;
}

.cta-with-scene {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 600px;
}

.cta-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-with-scene .cta-content {
  position: relative;
  z-index: 1;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 600px;
}

.cta-headline {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -2px;
  line-height: 1.1;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: flex;
  gap: 40px;
}

.footer-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 140px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-location {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* --- Filters --- */
.filters {
  display: flex;
  gap: 32px;
  padding: 24px 80px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent);
  font-weight: 600;
}

/* --- Bio Section --- */
.bio-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 80px;
  padding: 0 80px 0 0;
  align-items: start;
}

.bio-portrait {
  width: 800px;
  height: 800px;
  border-radius: 8px;
  overflow: hidden;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-height: 800px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  scrollbar-width: none;
}

.bio-content::-webkit-scrollbar {
  display: none;
}

.bio-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.bio-role {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

.bio-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, background 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
}

.value-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.value-title {
  font-size: 20px;
  font-weight: 600;
}

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

/* --- Expertise List --- */
.expertise-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px;
  align-items: start;
}

.expertise-list {
  display: flex;
  flex-direction: column;
}

.expertise-item {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-primary);
  cursor: pointer;
  transition: color 0.2s;
}

.expertise-item:first-child {
  border-top: 1px solid var(--border-primary);
}

.expertise-item:hover {
  color: var(--accent);
}

.expertise-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.expertise-item-body {
  display: none;
  padding-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.expertise-item.open .expertise-item-body {
  display: block;
}

.expertise-item .name {
  font-size: 18px;
  font-weight: 500;
}

.expertise-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.expertise-item:hover svg {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* --- Contact Form --- */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  padding: 80px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0 16px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 234, 174, 0.1);
}

.form-textarea {
  height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-value {
  font-size: 18px;
  font-weight: 500;
}

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

.info-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.social-row {
  display: flex;
  gap: 24px;
}

.social-row a {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

.social-row a:hover {
  opacity: 0.8;
}

/* --- Map Section --- */
.map-section {
  padding: 0 80px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(1) contrast(0.9) hue-rotate(180deg);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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;
}

/* Stagger children */
.stagger-children>.reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children>.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children>.reveal:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children>.reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children>.reveal:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger-children>.reveal:nth-child(6) {
  transition-delay: 0.3s;
}

/* Hero specific animations */
.hero .tag {
  animation: fadeSlideUp 0.6s 0.2s both;
}

.hero .hero-headline {
  animation: fadeSlideUp 0.8s 0.4s both;
}

.hero .hero-sub-row {
  animation: fadeSlideUp 0.8s 0.6s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Link underline animation */
.animated-link {
  position: relative;
  display: inline-block;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

/* --- Project Case Study --- */
.project-hero {
  padding: 80px 80px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}

.project-back-link:hover {
  color: var(--accent);
}

.project-title {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.0;
}

.project-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

.project-cover {
  padding: 0 80px 0;
}

.project-cover-image {
  width: 100%;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 80px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.project-section {
  padding: 80px;
}

.project-section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.project-section-title {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 24px;
}

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

.project-body:last-child {
  margin-bottom: 0;
}

/* Project Images */
.project-image-full {
  width: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image-full img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.project-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.project-image-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.project-image-half,
.project-image-third {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--border-primary);
}

.project-image-half:last-child,
.project-image-third:last-child {
  border-right: none;
}

.project-image-half img,
.project-image-third img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.placeholder-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Quote */
.project-quote {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.quote-text {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.4;
  max-width: 900px;
  color: var(--text-primary);
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.quote-name {
  font-size: 16px;
  font-weight: 600;
}

.quote-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Stats */
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 60px 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -2px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Next Project */
.project-next {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.project-next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-next-link {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: color 0.2s;
}

.project-next-link:hover {
  color: var(--accent);
}

.project-next-title {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -2px;
}

.project-next-link svg {
  transition: transform 0.3s;
}

.project-next-link:hover svg {
  transform: translateX(8px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .header {
    padding: 20px 40px;
  }

  .hero {
    padding: 80px 40px;
  }

  .hero-with-scene .hero-content {
    padding: 80px 40px;
  }

  .section-padding {
    padding: 80px 40px;
  }

  .about-teaser {
    padding: 80px 40px;
    gap: 40px;
  }

  .bio-section {
    grid-template-columns: 1fr;
    padding: 60px 40px;
  }

  .bio-portrait {
    height: 400px;
  }

  .expertise-section {
    grid-template-columns: 1fr;
    padding: 60px 40px;
  }

  .contact-main {
    grid-template-columns: 1fr;
    padding: 60px 40px;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }

  .contact-info .info-block {
    min-width: 200px;
  }

  .map-section {
    padding: 0 40px;
  }

  .footer {
    padding: 40px;
  }

  .filters {
    padding: 24px 40px;
  }

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

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

  .cta-section {
    padding: 80px 40px;
  }

  .project-hero {
    padding: 60px 40px 40px;
  }

  .project-cover {
    padding: 0 40px;
  }

  .project-meta {
    padding: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-section {
    padding: 60px 40px;
  }

  .project-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-quote {
    padding: 80px 40px;
  }

  .project-stats {
    padding: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-next {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 40px 24px;
    gap: 32px;
    z-index: 150;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 24px;
  }

  .hero-headline {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-sub-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-padding {
    padding: 60px 24px;
  }

  .about-teaser {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

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

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

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

  .bio-section {
    display: flex;
    flex-direction: column-reverse;
    padding: 40px 24px 0 24px;
    gap: 40px;
  }

  .bio-portrait {
    width: calc(100% + 48px);
    margin: 0 -24px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }

  .expertise-section {
    padding: 40px 24px;
  }

  .contact-main {
    padding: 40px 24px;
  }

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

  .form-actions {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .map-section {
    padding: 0 24px;
  }

  .filters {
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .cta-section {
    padding: 60px 24px;
  }

  .cta-section.cta-with-scene {
    padding: 0;
  }

  .cta-with-scene .cta-content {
    padding: 40px 24px;
  }

  .cta-headline {
    font-size: 32px;
  }

  .footer {
    padding: 40px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .project-hero {
    padding: 40px 24px 32px;
  }

  .project-title {
    letter-spacing: -1.5px;
  }

  .project-subtitle {
    font-size: 16px;
  }

  .project-cover {
    padding: 0 24px;
  }

  .project-meta {
    padding: 32px 24px;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .project-section {
    padding: 40px 24px;
  }

  .project-section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .project-image-grid.three-col {
    grid-template-columns: 1fr;
  }

  .project-image-half,
  .project-image-third {
    border-right: none;
    border-bottom: 1px solid var(--border-primary);
  }

  .project-image-half:last-child,
  .project-image-third:last-child {
    border-bottom: none;
  }

  .project-quote {
    padding: 60px 24px;
  }

  .project-stats {
    padding: 32px 24px;
    grid-template-columns: 1fr 1fr;
  }

  .project-next {
    padding: 60px 24px;
  }

  .project-next-title {
    font-size: 28px;
  }
}