:root {
  --bg: #f5f0e8;
  --bg-strong: #efe7dc;
  --surface: rgba(255, 251, 246, 0.82);
  --surface-strong: #fffaf3;
  --text: #191512;
  --muted: #6b6056;
  --line: rgba(25, 21, 18, 0.12);
  --line-strong: rgba(25, 21, 18, 0.22);
  --accent: #8f6a3b;
  --accent-soft: #efe1cc;
  --shadow: 0 22px 50px rgba(48, 34, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(143, 106, 59, 0.12), transparent 24%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 52%, var(--bg-strong) 100%);
  min-height: 100vh;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.lang-switch {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-switch__button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 160ms ease;
}

.lang-switch__button.is-active {
  opacity: 1;
  color: var(--text);
}

.floating-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 180ms linear, transform 180ms linear;
  will-change: opacity, transform;
}

.floating-logo img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: Didot, "Bodoni 72", "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
}

.hero {
  position: relative;
  padding: 170px 0 48px;
  display: block;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 860px;
}

.hero-quote {
  display: flex;
  justify-content: flex-end;
  margin-top: 42px;
}

.hero-quote p {
  margin: 0;
  max-width: 260px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(3.8rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: none;
}

.lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--text);
  color: #f7f1ea;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.section {
  margin-top: 88px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.intro-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel,
.project-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-emphasis {
  background: linear-gradient(180deg, rgba(239, 225, 204, 0.82), rgba(255, 250, 243, 0.96));
  border-color: rgba(143, 106, 59, 0.18);
}

h3 {
  margin: 0 0 14px;
  font-size: 1.34rem;
  letter-spacing: -0.015em;
  text-transform: none;
}

.panel p,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-card p {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 96px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  max-width: 680px;
}

.site-footer a,
.back-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.legal-shell {
  padding-top: 48px;
}

.legal-content {
  max-width: 760px;
  margin-top: 20px;
}

.legal-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tags li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

  .contact-card,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .floating-logo {
    top: 16px;
    left: 8px;
    width: 78px;
    height: 78px;
  }

  .lang-switch {
    top: 18px;
    right: 12px;
    gap: 8px;
  }

  .hero {
    padding-top: 126px;
  }

  .panel,
  .project-card {
    padding: 22px;
    border-radius: 24px;
  }
}
