:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-soft: #f8f3ec;
  --surface: rgba(255, 252, 247, 0.72);
  --surface-strong: rgba(255, 252, 247, 0.92);
  --text: #1f1a17;
  --muted: #6f635a;
  --line: rgba(31, 26, 23, 0.12);
  --line-strong: rgba(31, 26, 23, 0.22);
  --accent: #9d7351;
  --accent-soft: #cfb095;
  --shadow: 0 30px 60px rgba(43, 28, 18, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(207, 176, 149, 0.28), transparent 34%),
    radial-gradient(circle at right 15%, rgba(157, 115, 81, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f1e9 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
}

a:not(.button):-webkit-any-link {
  color: inherit;
}

@media (max-width: 768px) {
  a[href^="tel:"],
  a[href^="mailto:"],
  a[href*="wa.me"],
  a[href*="instagram.com"],
  a[x-apple-data-detectors] {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-decoration: none !important;
  }
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: -10rem;
  right: -9rem;
  background: rgba(207, 176, 149, 0.28);
}

.ambient-b {
  bottom: -11rem;
  left: -12rem;
  background: rgba(157, 115, 81, 0.16);
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 28px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 84px;
  height: auto;
  display: block;
  object-fit: contain;
  margin-left: -6px;
}

.brand-text {
  font-size: 0.86rem;
  line-height: 1;
  transform: translateY(1px);
}

.topnav {
  justify-self: center;
  display: inline-flex;
  gap: 26px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.55);
  backdrop-filter: blur(14px);
}

.topnav a {
  font-size: 0.92rem;
  color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(14px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--text);
  color: #fff7ef;
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  min-height: calc(100vh - 90px);
  padding-top: 72px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
.hero-card-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.95;
  max-width: 12ch;
}

.hero-text {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:visited,
.button:hover,
.button:active,
.button:focus {
  -webkit-text-fill-color: currentColor;
}

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

.button-primary {
  background: var(--text);
  color: #fff7ef;
  border-color: var(--text);
  -webkit-text-fill-color: #fff7ef;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.button-primary:visited,
.button-primary:hover,
.button-primary:active,
.button-primary:focus {
  color: #fff7ef;
  -webkit-text-fill-color: #fff7ef;
}

.button-secondary:visited,
.button-secondary:hover,
.button-secondary:active,
.button-secondary:focus {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: rgba(255, 252, 247, 0.58);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(43, 28, 18, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  z-index: 7;
}

.back-to-top span {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  translate: 0 -1px;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(255, 252, 247, 0.82);
  border-color: rgba(31, 26, 23, 0.2);
}

.back-to-top.is-visible {
  opacity: 0.72;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.is-visible:hover,
.back-to-top.is-visible:focus-visible {
  opacity: 1;
}

.stats {
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats div {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.58);
  backdrop-filter: blur(12px);
}

.stats dt {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats dd {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 680px;
  display: grid;
  align-content: center;
}

.hero-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card-main {
  position: relative;
  z-index: 2;
  padding: 26px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-card-main::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(157, 115, 81, 0.18), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.hero-card-top,
.hero-card-body {
  position: relative;
  z-index: 1;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-card-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-card-copy {
  max-width: 21ch;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-card-secondary {
  position: absolute;
  right: 0;
  width: 240px;
  height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.tone-1 {
  top: 42px;
  background:
    linear-gradient(180deg, rgba(34, 29, 25, 0.08), rgba(34, 29, 25, 0.02)),
    linear-gradient(135deg, #d9c5b2 0%, #f2e8df 100%);
}

.tone-2 {
  bottom: 14px;
  left: 36px;
  background:
    linear-gradient(180deg, rgba(34, 29, 25, 0.08), rgba(34, 29, 25, 0.02)),
    linear-gradient(135deg, #d4b08b 0%, #efe4d9 100%);
}

.project-label {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.project-small {
  color: rgba(31, 26, 23, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-strip {
  padding-top: 6px;
  padding-bottom: 20px;
}

.intro-strip p {
  margin: 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

.story-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.64);
  box-shadow: var(--shadow);
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1.02rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  appearance: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 70px rgba(43, 28, 18, 0.1);
}

.project-card:focus-visible {
  outline: 2px solid rgba(157, 115, 81, 0.45);
  outline-offset: 4px;
}

.project-media {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.project-media__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transform: scale(1.02);
}

.project-media__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 13, 0.12), rgba(20, 16, 13, 0.38)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 26%);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.project-media__label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-content__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.project-number {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: right;
}

.project-content h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.98;
  max-width: 10ch;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 44ch;
}

.project-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.6);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight {
  padding-top: 16px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: stretch;
  padding: 22px;
  border-radius: calc(var(--radius-xl) + 8px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.86), rgba(255, 248, 241, 0.72));
  box-shadow: var(--shadow);
}

.spotlight-card__copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-card__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.spotlight-card__copy h3 {
  margin: 14px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 0.92;
  max-width: 8ch;
}

.spotlight-card__lead {
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 38ch;
}

.spotlight-card__body {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 42ch;
}

.spotlight-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.spotlight-card__cta {
  align-self: flex-start;
  margin-top: 28px;
}

.spotlight-card__visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.spotlight-card__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(31, 26, 23, 0.08);
  background: #efe7dc;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.spotlight-card__figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(43, 28, 18, 0.08);
}

.spotlight-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card__figure--main {
  min-height: 540px;
}

.spotlight-card__stack {
  display: grid;
  gap: 14px;
}

.spotlight-card__figure--small {
  min-height: 263px;
}

.approach {
  padding-top: 40px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.approach-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.66);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
}

.approach-card h3 {
  margin: 0;
  font-size: 1.8rem;
}

.approach-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact {
  padding-top: 46px;
  padding-bottom: 72px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-copy {
  display: grid;
  gap: 10px;
}

.contact-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-label {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
}

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

.quote-card {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.84), rgba(255, 247, 239, 0.64));
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.8;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.project-modal[aria-hidden="false"] {
  display: block;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.5);
  backdrop-filter: blur(10px);
}

.project-modal__panel {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  height: min(92vh, 1080px);
  margin: 4vh auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.98), rgba(244, 239, 232, 0.98));
  border: 1px solid rgba(31, 26, 23, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal__content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  height: 100%;
  padding: 28px;
  overflow: auto;
}

.project-modal__intro {
  position: sticky;
  top: 0;
  align-self: start;
}

.project-modal__hero {
  padding: 18px;
}

.project-modal__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-modal__hero h2 {
  margin-top: 12px;
  max-width: 12ch;
}

.project-modal__lead {
  margin: 16px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.project-modal__body {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill--soft {
  background: rgba(157, 115, 81, 0.08);
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-modal__article {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-content: start;
}

.project-modal__module--text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.project-modal__module--text > div + div {
  margin-top: 12px;
}

.project-modal__module--text a {
  color: var(--accent);
}

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

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.project-modal__figure {
  appearance: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #efe7dc;
  border: 1px solid rgba(31, 26, 23, 0.08);
  min-height: 180px;
}

.project-modal__figure:focus-visible {
  outline: 2px solid rgba(157, 115, 81, 0.45);
  outline-offset: 4px;
}

.project-modal__figure.is-hero {
  grid-column: 1 / -1;
  min-height: 360px;
}

.project-modal__figure--inline {
  min-height: 260px;
}

.project-modal__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.image-viewer[aria-hidden="false"] {
  display: block;
}

.image-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 10, 0.78);
  backdrop-filter: blur(12px);
}

.image-viewer__panel {
  position: relative;
  width: min(1200px, calc(100vw - 28px));
  height: min(92vh, 980px);
  margin: 4vh auto;
  border-radius: 28px;
  background: rgba(15, 12, 11, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.image-viewer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ef;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.image-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ef;
  font-size: 2rem;
  cursor: pointer;
}

.image-viewer__nav--prev {
  left: 14px;
}

.image-viewer__nav--next {
  right: 14px;
}

.image-viewer__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-viewer__content img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 60%);
}

.image-viewer__meta {
  padding: 16px 22px 20px;
  color: #fff7ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-viewer__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.image-viewer__counter {
  color: rgba(255, 247, 239, 0.72);
  margin-top: 6px;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-self: start;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-visual {
    min-height: 540px;
  }

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

  .project-card,
  .project-card.is-wide {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-card__visuals {
    grid-template-columns: 1fr;
  }

  .spotlight-card__figure--main {
    min-height: 400px;
  }

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

  .story-grid,
  .quotes-grid,
  .approach-grid--large {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .project-modal__intro {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
  }

  .ambient {
    width: 18rem;
    height: 18rem;
    filter: blur(24px);
    opacity: 0.28;
  }

  .ambient-a {
    top: -6rem;
    right: -7rem;
  }

  .ambient-b {
    bottom: -7rem;
    left: -8rem;
  }

  .topbar,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    padding-top: 18px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 72px;
    margin-left: -4px;
  }

  .topnav {
    width: 100%;
    justify-self: stretch;
    gap: 14px;
    padding: 10px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    white-space: nowrap;
    font-size: 0.84rem;
  }

  .lang-switch {
    width: fit-content;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 40px;
    gap: 24px;
    justify-items: center;
  }

  h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.7rem);
    line-height: 1.02;
    max-width: 12.5ch;
    margin-inline: auto;
    text-wrap: balance;
    text-align: center;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-text,
  .intro-strip p,
  .contact-text,
  .approach-card p,
  .project-content p,
  .quote-card blockquote,
  .story-card p,
  .spotlight-card__lead,
  .spotlight-card__body,
  .project-modal__lead,
  .project-modal__body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-text {
    margin-top: 20px;
    max-width: 34ch;
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .button {
    width: min(100%, 280px);
    min-height: 48px;
    margin-inline: auto;
    text-align: center;
  }

  .stats {
    margin-top: 28px;
    width: 100%;
    justify-items: center;
  }

  .stats div {
    padding: 16px;
    width: min(100%, 280px);
    text-align: center;
  }

  .hero-visual {
    min-height: auto;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }

  .hero-card {
    border-radius: 22px;
  }

  .hero-card-main {
    min-height: 280px;
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .hero-card-main::before {
    inset: 12px;
  }

  .hero-card-top {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .hero-card-copy {
    max-width: 24ch;
    margin-inline: auto;
    text-align: center;
  }

  .hero-card-secondary {
    position: static;
    width: 100%;
    height: auto;
    min-height: 112px;
    padding: 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .tone-1,
  .tone-2 {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .project-label {
    font-size: 1.2rem;
  }

  .project-small {
    font-size: 0.7rem;
  }

  .intro-strip {
    padding-top: 0;
    padding-bottom: 16px;
  }

  .intro-strip p {
    padding: 18px 0;
  }

  .section {
    margin: 0 auto;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .story-grid,
  .quotes-grid,
  .approach-grid,
  .approach-grid--large,
  .contact-panel {
    gap: 12px;
  }

  .story-card,
  .quote-card,
  .approach-card,
  .contact-panel {
    padding: 18px;
  }

  .approach-card h3 {
    font-size: 1.45rem;
  }

  .project-modal__panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 22px;
  }

  .project-modal__content {
    gap: 16px;
    padding: 16px;
  }

  .project-modal__article,
  .project-modal__gallery {
    gap: 12px;
  }

  .project-modal__hero {
    padding: 0;
  }

  .project-modal__hero h2 {
    max-width: 100%;
  }

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

  .project-modal__figure.is-hero {
    min-height: 240px;
  }

  .project-modal__figure--inline {
    min-height: 220px;
  }

  .image-viewer__panel {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 20px;
  }

  .image-viewer__nav {
    width: 44px;
    height: 44px;
  }

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

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

  .project-card,
  .project-card.is-wide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-media {
    min-height: 220px;
  }

  .project-content {
    padding: 18px;
  }

  .spotlight-card {
    gap: 16px;
    padding: 16px;
  }

  .spotlight-card__copy {
    padding: 10px;
  }

  .spotlight-card__copy h3 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .spotlight-card__figure--main {
    min-height: 280px;
  }

  .spotlight-card__figure--small {
    min-height: 180px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .contact-panel {
    text-align: left;
  }

  html[lang="ru"] .hero-copy {
    max-width: 420px;
  }

  html[lang="ru"] .hero {
    gap: 20px;
  }

  html[lang="ru"] h1 {
    max-width: 15ch;
    font-size: clamp(1.64rem, 7.6vw, 2.2rem);
    transform: translateX(0.18ch);
  }

  html[lang="ru"] .hero-text {
    max-width: 31ch;
  }

  html[lang="ru"] .button {
    width: min(100%, 250px);
  }

  html[lang="ru"] .stats div {
    width: min(100%, 250px);
  }

  html[lang="ru"] .hero-card-copy {
    max-width: 20ch;
  }

  html[lang="ru"] .hero-card-secondary {
    min-height: 108px;
  }

  html[lang="ru"] .project-label {
    font-size: 1.08rem;
  }

  html[lang="ru"] .project-small {
    font-size: 0.66rem;
  }

}

@media (max-width: 480px) {
  .topbar {
    padding-top: 14px;
    justify-items: center;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 62px;
    margin-left: -2px;
  }

  .brand-text {
    font-size: 0.78rem;
  }

  .topnav {
    padding: 8px 12px;
    gap: 12px;
  }

  .lang-btn {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  h1 {
    font-size: clamp(1.68rem, 8.2vw, 2.45rem);
    max-width: 12ch;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-card-main {
    min-height: 250px;
    padding: 18px;
  }

  .hero-text {
    max-width: 32ch;
    margin-inline: auto;
  }

  .hero-card-secondary {
    min-height: 100px;
    padding: 16px;
  }

  .stats div {
    width: min(100%, 260px);
  }

  .button {
    width: min(100%, 260px);
  }

  .stats {
    gap: 10px;
  }

  .stats dd {
    font-size: 0.95rem;
  }

  .project-card {
    border-radius: 22px;
  }

  .project-media {
    min-height: 190px;
  }

  .project-content h3 {
    max-width: 100%;
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .project-content__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .project-kicker {
    text-align: left;
    line-height: 1.45;
  }

  .pill {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .spotlight-card__copy h3 {
    max-width: 100%;
  }

  .spotlight-card__figure--main {
    min-height: 240px;
  }

  .spotlight-card__figure--small {
    min-height: 160px;
  }

  .quote-card blockquote {
    line-height: 1.72;
  }

  .project-modal__close,
  .image-viewer__close,
  .image-viewer__nav {
    width: 42px;
    height: 42px;
  }

  .image-viewer__meta {
    padding: 14px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  html[lang="ru"] .hero-copy {
    max-width: 390px;
  }

  html[lang="ru"] .hero {
    gap: 18px;
  }

  html[lang="ru"] h1 {
    max-width: 14.2ch;
    font-size: clamp(1.52rem, 7.2vw, 1.98rem);
    transform: translateX(0.15ch);
  }

  html[lang="ru"] .hero-text {
    max-width: 28ch;
  }

  html[lang="ru"] .button {
    width: min(100%, 240px);
  }

  html[lang="ru"] .stats div {
    width: min(100%, 240px);
  }

  html[lang="ru"] .project-label {
    font-size: 1rem;
  }

  html[lang="ru"] .hero-card-copy {
    max-width: 18ch;
  }

}
