:root {
  --black: #080604;
  --ink: #120d09;
  --bark: #23170f;
  --soil: #3a2619;
  --root: #5f422e;
  --copper: #b47c4f;
  --bone: #efe0cb;
  --mist: #cbb698;
  --line: rgba(239, 224, 203, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 6, 4, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  color: var(--mist);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--bone);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--bone);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 72px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  z-index: -2;
  background:
    linear-gradient(rgba(8, 6, 4, 0.22), rgba(8, 6, 4, 0.28)),
    url("assets/foto1.jpg") center 58% / cover no-repeat;
  filter: blur(10px) saturate(0.8) brightness(0.66);
  transform: scale(1.05);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(180, 124, 79, 0.13), transparent 36%),
    linear-gradient(to bottom, rgba(8, 6, 4, 0.15), var(--black));
  content: "";
}

.hero-content {
  width: min(720px, 100%);
  text-align: center;
}

.hero-logo {
  width: clamp(210px, 42vw, 420px);
  margin: 0 auto 32px;
  border: 1px solid rgba(239, 224, 203, 0.18);
  opacity: 0;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  transition: opacity 1800ms ease, transform 1800ms ease;
}

.hero-logo.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--mist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
}

.section,
.contact-section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section {
  background:
    linear-gradient(135deg, rgba(95, 66, 46, 0.16), transparent 38%),
    var(--ink);
}

.intro-section {
  background: linear-gradient(180deg, var(--black), var(--bark));
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(840px, 100%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
}

h1,
h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 6vw, 5.1rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.text-block {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  color: var(--mist);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
}

.text-block p,
.profile p,
.closing-text p {
  margin: 0;
}

.photo-band {
  background: var(--black);
}

.photo-band img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center;
  border-block: 1px solid var(--line);
}

.profiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 54px);
}

.profile {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(8, 6, 4, 0.42);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile h3 span {
  display: block;
  margin-top: 4px;
  color: var(--copper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.profile p {
  color: var(--mist);
  font-size: 0.98rem;
}

.profile a {
  width: fit-content;
  margin-top: auto;
  color: var(--bone);
  font-weight: 700;
  text-decoration-color: rgba(180, 124, 79, 0.65);
  text-underline-offset: 5px;
}

.profile a:hover {
  color: var(--copper);
}

.closing-text {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-top: clamp(38px, 6vw, 66px);
  padding-left: clamp(20px, 3vw, 34px);
  color: var(--mist);
  border-left: 2px solid var(--copper);
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
}

.contact-section {
  min-height: 48svh;
  background:
    linear-gradient(rgba(8, 6, 4, 0.84), rgba(8, 6, 4, 0.9)),
    url("assets/foto1.jpg") center / cover no-repeat;
}

.contact-inner {
  display: grid;
  gap: 20px;
  text-align: center;
}

.contact-inner .kicker,
.contact-inner h2 {
  margin-right: auto;
  margin-left: auto;
}

.mail-link {
  justify-self: center;
  padding: 14px 22px;
  color: var(--black);
  background: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.mail-link:hover {
  background: var(--copper);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 18px 22px;
    background: rgba(8, 6, 4, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 104px;
  }

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

  .photo-band img {
    min-height: 360px;
  }
}

@media (max-width: 460px) {
  .brand span {
    font-size: 0.95rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero-logo {
    width: min(76vw, 310px);
  }

  .section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile {
    padding: 20px;
  }
}
