:root {
  --paper: #f6f3ed;
  --ink: #20201d;
  --muted: #64645f;
  --line: #ddd7cc;
  --sage: #6d7666;
  --clay: #a86650;
  --white: #fffaf2;
  --topbar: rgba(246, 243, 237, 0.92);
  --card: rgba(255, 250, 242, 0.72);
}

:root[data-theme="dark"] {
  --paper: #171815;
  --ink: #f3efe6;
  --muted: #b8b1a4;
  --line: #38382f;
  --sage: #a9b89a;
  --clay: #d39b82;
  --white: #22231e;
  --topbar: rgba(23, 24, 21, 0.92);
  --card: rgba(34, 35, 30, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(32, 32, 29, 0.3);
  text-underline-offset: 0.22em;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(32, 32, 29, 0.12);
  background: var(--topbar);
  backdrop-filter: blur(18px);
}

.topbar .shell {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  min-height: 72px;
  align-items: center;
  gap: 20px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.menu-toggle {
  display: none;
}

.header-panel {
  display: contents;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.94rem;
}

.switches {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.icon-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language,
.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language button,
.theme-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.language button.is-active,
.theme-switch button.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
  padding: clamp(48px, 8vw, 96px) 0;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 9vw, 6.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lead {
  max-width: 730px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.portrait {
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

section {
  padding: clamp(58px, 9vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
}

.section-copy {
  max-width: 820px;
}

.focus-card {
  position: relative;
  margin: 28px 0;
  border-left: 4px solid var(--clay);
  padding: 4px 0 4px 22px;
}

.card-marker {
  display: none;
}

.pill-grid,
.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pill,
.client-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--ink);
}

.pill-grid + h3 {
  margin-top: 42px;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--clay);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.media-item span,
.contact-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 5vw, 54px);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.office {
  overflow: hidden;
  border-radius: 8px;
}

.office img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .topbar .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
  }

  .brand {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
  }

  .header-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 14px 0 4px;
  }

  .topbar.is-open .header-panel {
    display: grid;
    gap: 16px;
  }

  .nav {
    display: grid;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    font-size: 1.05rem;
  }

  .nav a {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    text-decoration: none;
  }

  .switches {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .hero,
  .section-grid,
  .about-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .portrait {
    max-width: 360px;
  }

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