:root {
  --bg: #f5efe5;
  --bg-strong: #efe3d0;
  --surface: rgba(255, 250, 244, 0.88);
  --surface-strong: #fff9f3;
  --text: #231914;
  --muted: #6f5b4c;
  --line: rgba(92, 68, 45, 0.16);
  --accent: #ba7f29;
  --accent-2: #245f62;
  --accent-3: #8c4b2d;
  --shadow: 0 24px 64px rgba(39, 27, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(186, 127, 41, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(36, 95, 98, 0.11), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 45%, #f0e5d8 100%);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

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

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

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -10rem;
  left: -12rem;
  background: rgba(186, 127, 41, 0.36);
}

.page-glow-right {
  top: 18rem;
  right: -14rem;
  background: rgba(36, 95, 98, 0.26);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f7ede0;
}

.brand img {
  width: 8rem;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: rgba(244, 229, 209, 0.84);
}

.nav a,
.lang-switcher a,
.site-footer a {
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.nav a:hover,
.lang-switcher a:hover,
.topbar-contact-phone:hover,
.site-footer a:hover {
  color: #fff6e6;
  transform: translateY(-1px);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 229, 209, 0.95);
  white-space: nowrap;
}

.topbar-contact-name {
  font-weight: 700;
}

.topbar-contact-phone {
  color: inherit;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(244, 229, 209, 0.9);
}

.lang-switcher-list {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher-list a {
  min-width: 2rem;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.lang-switcher-list a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #21170f;
}

main {
  padding: 1.25rem;
  padding-top: 9.2rem;
}

.hero,
.section,
.gallery-hero {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
}

.hero-media {
  min-height: 82vh;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: #fff9f1;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0.1), rgba(18, 12, 8, 0.45));
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 42rem;
  margin-top: auto;
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(29, 20, 13, 0.14), rgba(29, 20, 13, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #f3d49f;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.8rem);
  line-height: 0.95;
  max-width: 12ch;
}

.lede,
.section-heading p,
.work-card p,
.tool-card p,
.gallery-tile figcaption {
  color: var(--muted);
}

.hero .lede {
  max-width: 40rem;
  color: rgba(255, 246, 236, 0.93);
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, #f0bb65, #ba7f29);
  color: #24170e;
  box-shadow: 0 12px 30px rgba(186, 127, 41, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ef;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stats article {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 248, 240, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.5rem;
}

.hero-stats span {
  color: rgba(255, 246, 236, 0.82);
}

.section {
  padding: 0.4rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1rem;
}

.section-heading-wide {
  max-width: 60rem;
}

.section-heading h2,
.gallery-hero h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin-bottom: 0.7rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.work-card,
.tool-card,
.muted-panel,
.gallery-tile {
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

.work-card-image,
.tool-card-thumb,
.gallery-tile-image,
.tools-feature-image {
  background-size: cover;
  background-position: center;
}

.work-card-image {
  min-height: 18rem;
}

.work-card-body,
.tool-card,
.gallery-tile figcaption,
.muted-panel,
.tools-feature-copy {
  padding: 1.2rem;
}

.work-card h3,
.tool-card h3,
.tools-feature-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.work-card-amber .work-card-image {
  filter: saturate(1.05) contrast(1.04);
}

.work-card-jade .work-card-image {
  filter: saturate(0.95) hue-rotate(6deg);
}

.work-card-steel .work-card-image {
  filter: saturate(0.88) brightness(0.98);
}

.tools-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.tools-feature {
  display: grid;
  grid-template-rows: minmax(20rem, 1fr) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tools-feature-image {
  min-height: 20rem;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(36, 95, 98, 0.09);
  color: var(--accent-2);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.tools-cards {
  align-content: start;
}

.tool-card {
  min-height: 15.5rem;
}

.tool-card-thumb {
  height: 10rem;
  border-radius: 1.15rem;
  margin-bottom: 1rem;
}

.muted-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 231, 217, 0.9));
}

.gallery-preview {
  flex-wrap: wrap;
}

.gallery-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.4rem;
}

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

.gallery-category {
  margin-bottom: 1.4rem;
}

.gallery-category-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.gallery-tile {
  min-height: 22rem;
  position: relative;
  overflow: hidden;
}

.gallery-tile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile-caption {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.62);
  color: #fff7ef;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 2rem 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-media {
    min-height: 72vh;
  }

  main {
    padding-top: 10.4rem;
  }

  .card-grid-3,
  .tools-layout,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding: 0.85rem;
    padding-top: 11rem;
  }

  .topbar,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar {
    justify-content: center;
    row-gap: 0.55rem;
  }

  .topbar-contact {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
    order: -1;
    gap: 0;
  }

  .brand img {
    width: 6.4rem;
    height: auto;
  }

  .sitename {
    display: none;
  }

  .hero-media {
    min-height: auto;
    gap: 1rem;
  }

  .hero-copy {
    padding: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

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

  .muted-panel,
  .gallery-hero,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}