/* ============================================
   RAUMWERK – Interior Design Studio Potsdam
   Stylesheet
   ============================================ */

:root {
  --bg: #f5f1ea;
  --bg-warm: #ebe4d7;
  --bg-dark: #1f1c19;
  --ink: #2c2826;
  --ink-soft: #5b544c;
  --line: #d8cfc0;
  --accent: #8b6f47;
  --accent-deep: #6b5535;
  --sage: #5a6b4f;
  --terracotta: #b56a4a;
  --cream: #faf6ef;
  --shadow: 0 30px 80px -30px rgba(44, 40, 38, 0.25);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--cream);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: 1.3rem; }

p {
  color: var(--ink-soft);
  font-weight: 300;
}

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

.italic { font-style: italic; }
.serif { font-family: var(--serif); }

/* Layout */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }
  .container, .container-narrow { padding: 0 1.5rem; }
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn:hover { color: var(--cream); }
.btn:hover::before { transform: translateY(0); }

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after { transform: translateX(4px); }

.btn-light {
  border-color: var(--cream);
  color: var(--cream);
}
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--ink); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  mix-blend-mode: normal;
}

.nav.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(216, 207, 192, 0.5);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.nav-logo .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  position: relative;
}

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

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

.nav-cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
}

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

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
  }
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-out forwards;
}

@keyframes kenburns {
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 28, 25, 0.15) 0%, rgba(31, 28, 25, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 900px;
}

.hero-content .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.hero-content .eyebrow::before {
  background: var(--cream);
}

.hero h1 {
  color: var(--cream);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: #e8d9be;
}

.hero-sub {
  color: rgba(250, 246, 239, 0.85);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-meta {
  position: absolute;
  bottom: 3rem;
  right: 2.5rem;
  z-index: 2;
  color: var(--cream);
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 2;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.7;
}

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

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

@keyframes scroll-line {
  to { top: 100%; }
}

/* Page hero (smaller) */
.page-hero {
  padding: 11rem 0 5rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 600px;
  font-size: 1.1rem;
}

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

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

/* Marquee */
.marquee {
  background: var(--bg-dark);
  color: var(--cream);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 35s linear infinite;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  align-items: center;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.marquee-track .star {
  color: var(--accent);
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Intro / About preview */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.intro-text h2 {
  margin-bottom: 1.5rem;
}

.intro-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.intro-text p {
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}

.intro-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.intro-image:hover img { transform: scale(1.04); }

.intro-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--accent);
  z-index: -1;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.stat .num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Services tabs */
.services {
  background: var(--bg-warm);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 4rem;
  gap: 3rem;
  flex-wrap: wrap;
}

.services-header .lead {
  max-width: 420px;
  font-size: 1.05rem;
}

.tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; gap: 2rem; }
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .tab-list { flex-direction: row; overflow-x: auto; border: none; }
  .tab-list::-webkit-scrollbar { display: none; }
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.tab-btn:hover { color: var(--ink); padding-left: 1rem; }
.tab-btn.active { color: var(--ink); padding-left: 1rem; }
.tab-btn.active::before { height: 60%; }

.tab-btn .num {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .tab-btn {
    border: 1px solid var(--line);
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    font-size: 1rem;
  }
  .tab-btn::before { display: none; }
  .tab-btn.active { background: var(--ink); color: var(--cream); padding-left: 1.25rem; }
}

.tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.tab-content.active { display: grid; }

.tab-content {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .tab-content { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.tab-content img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tab-info h3 {
  margin-bottom: 1.25rem;
}

.tab-info p {
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.tab-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tab-info ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tab-info ul li::before {
  content: '—';
  color: var(--accent);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.project-card.large { grid-column: span 7; aspect-ratio: 4/3; }
.project-card.small { grid-column: span 5; aspect-ratio: 4/5; }
.project-card.medium { grid-column: span 6; aspect-ratio: 3/2; }
.project-card.full { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 900px) {
  .project-card.large,
  .project-card.small,
  .project-card.medium,
  .project-card.full { grid-column: span 1; aspect-ratio: 4/3; }
}

.project-card .img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card .meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(0deg, rgba(31, 28, 25, 0.85) 0%, transparent 100%);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.project-card .meta h4 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--cream);
}

.project-card .meta .cat {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.project-card .meta .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.75;
}

/* Process / Timeline */
.process {
  background: var(--bg-dark);
  color: var(--cream);
}

.process h2 { color: var(--cream); }
.process p { color: rgba(250, 246, 239, 0.7); }
.process .eyebrow { color: var(--accent); }
.process .eyebrow::before { background: var(--accent); }

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

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
}

.step {
  border-top: 1px solid rgba(216, 207, 192, 0.2);
  padding-top: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.step:hover { border-top-color: var(--accent); }

.step .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.step h4 {
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonial */
.testimonial {
  background: var(--cream);
  text-align: center;
}

.testimonial-content {
  max-width: 820px;
  margin: 0 auto;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

.testimonial cite strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.testimonial-dot.active { background: var(--accent); border-color: var(--accent); }

/* Journal / Blog teaser */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: 1fr; }
}

.journal-card { cursor: pointer; }

.journal-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.journal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.journal-card:hover img { transform: scale(1.04); }

.journal-card .date {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.journal-card h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.journal-card:hover h4 { color: var(--accent); }

.journal-card p {
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: var(--bg-dark);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

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

.cta-section p {
  color: rgba(250, 246, 239, 0.75);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--cream);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(216, 207, 192, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.footer-brand .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.footer-col p, .footer-col a {
  color: rgba(250, 246, 239, 0.7);
  font-size: 0.95rem;
  font-weight: 300;
}

.footer-col h5 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 207, 192, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 207, 192, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  color: rgba(250, 246, 239, 0.7);
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  transform: translateY(-2px);
}

/* About page specific */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card .img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-warm);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all 0.6s ease;
}

.team-card:hover img { filter: grayscale(0%); transform: scale(1.03); }

.team-card .role {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.team-card h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-card .bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value {
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
}

.value:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value .icon {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-style: italic;
}

.value h4 {
  margin-bottom: 0.75rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-info-block:last-child { border-bottom: none; }

.contact-info-block .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-info-block .value-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}

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

.contact-form {
  background: var(--cream);
  padding: 3rem;
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .contact-form { padding: 2rem 1.5rem; }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.checkbox-group input { width: auto; }
.checkbox-group a { color: var(--accent); text-decoration: underline; }

/* Legal pages */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 0;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content strong { color: var(--ink); }

/* Animations on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }
.fade-in-delay-4 { transition-delay: 0.6s; }

/* Case Study Layout */
.case-study {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 7rem;
}

.case-study:nth-child(even) {
  grid-template-columns: 1fr 1.25fr;
}

.case-study:nth-child(even) .case-image { order: 2; }
.case-study:nth-child(even) .case-info { order: 1; }

@media (max-width: 900px) {
  .case-study,
  .case-study:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4.5rem;
  }
  .case-study:nth-child(even) .case-image,
  .case-study:nth-child(even) .case-info { order: initial; }
}

.case-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.case-study:hover .case-image img { transform: scale(1.03); }

.case-image .case-num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  z-index: 2;
}

.case-info { padding: 1rem 0; }

.case-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.case-meta .sep {
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.case-info h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.case-info p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-fact .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.case-fact .val {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.3;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.case-tags span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--bg);
}

/* Project detail / Single project look */
.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}

@media (max-width: 700px) {
  .project-detail-meta { grid-template-columns: 1fr 1fr; }
}

.project-detail-meta .item .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.project-detail-meta .item .val {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

/* Map placeholder */
.map-block {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #ebe4d7 0%, #d8cfc0 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 49%, rgba(139, 111, 71, 0.08) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(139, 111, 71, 0.08) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(139, 111, 71, 0.05) 50%, transparent 51%);
  background-size: 50px 50px, 50px 50px, 100px 100px;
}

.map-block::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 12px rgba(139, 111, 71, 0.4);
  animation: mapPin 2s ease-in-out infinite;
}

@keyframes mapPin {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -110%); }
}

.map-pin-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--cream);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  z-index: 2;
}

.map-pin-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
