:root {
  color-scheme: dark;
  background: #2b2b2b;
  --display-font: "Tenor Sans", sans-serif;
  --display-color: #DFAA4C;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

body {
  min-height: 100vh;
  background-color: #2b2b2b;
}

p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
.hero-phrase,
.section-title {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #000000;
  border: 1px solid #DFAA4C;
  border-top: 1px solid #DFAA4C;
}

.header-content {
  width: min(100% - 48px, 1200px);
  height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
}

.logo {
  display: block;
  width: clamp(95px, 0.5vw, 195px);
  height: auto;
}

.title-image {
  display: block;
  width: clamp(133px, 20.4vw, 218px);
  height: 163px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-nav button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 104px;
  height: 58px;
  padding: 0 8px;
  border: 0;
  background: #000000 url("bot%C3%B3n.png") center / 100% auto no-repeat;
  color: var(--display-color);
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 300ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  color: var(--display-color);
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3,
h4,
h5,
h6,
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.site-nav button::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 45%;
  clip-path: inset(10px 0);
  background: linear-gradient(
    105deg,
    transparent,
    rgb(255 229 160 / 75%),
    transparent
  );
  content: "";
  pointer-events: none;
}

.site-nav button span {
  position: relative;
  z-index: 1;
}

.site-nav button:hover,
.site-nav button:focus-visible {
  transform: scale(1.08);
}

.site-nav button:hover::after,
.site-nav button:focus-visible::after {
  animation: button-shine 850ms ease-out;
}

.site-nav button:focus-visible {
  outline: 2px solid #DFAA4C;
  outline-offset: 2px;
}

@keyframes button-shine {
  from {
    left: -75%;
  }

  to {
    left: 130%;
  }
}

.main-content {
  min-height: calc(100vh - 114px);
  background-color: #2b2b2b;
}

.hero-art {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 55vh, 620px);
  overflow: hidden;
  background: linear-gradient(to bottom, #000000 55%, #2b2b2b 100%);
}

.hero-phrase {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(90%, 900px);
  margin: 0;
  background: linear-gradient(to right, #F4862D, #F4B466);
  background-clip: text;
  color: transparent;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-frame {
  position: absolute;
  inset: 0.5cm;
  z-index: 2;
  width: calc(100% - 1cm);
  height: calc(100% - 1cm);
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgb(223 170 76 / 35%));
}

.hero-particles {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.services-section {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.services-section > .section-title {
  margin: 0 0 28px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  border: none;
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgb(223 170 76 / 8%), transparent 58%),
    #1d1d1d;
  text-align: center;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    background-color 250ms ease;
}

.card-frame {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgb(223 170 76 / 25%));
  transition: filter 250ms ease;
}

.service-card:hover .card-frame {
  filter: drop-shadow(0 0 8px rgb(223 170 76 / 65%));
}

.service-card h3 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgb(223 170 76 / 16%);
}

@media (min-width: 768px) {
  .hero-art {
    height: min(70vh, 760px);
    display: flex;
    justify-content: center;
  }

}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .header-content {
    width: calc(100% - 32px);
    height: auto;
    min-height: 88px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0 14px;
  }

  .logo {
    width: min(31vw, 130px);
  }

  .title-image {
    width: 109px;
    height: 122px;
  }

  .hero-phrase {
    width: min(calc(100% - 1cm - 60px), 380px);
    font-size: clamp(0.8rem, 3.5vw, 1.05rem);
    line-height: 1.45;
    letter-spacing: 0.08em;
  }

  .site-nav {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
  }

  .site-nav button {
    flex-basis: 96px;
    height: 54px;
    padding: 0 6px;
    font-size: 10px;
  }

  .main-content {
    min-height: calc(100vh - 184px);
  }

  .services-section {
    width: calc(100% - 32px);
  }

  .services-section > .section-title {
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card {
    min-height: 136px;
    padding: 18px 12px;
  }

  .service-card h3 {
    font-size: clamp(0.78rem, 3vw, 0.9rem);
    letter-spacing: 0.07em;
  }

}

@media (prefers-reduced-motion: reduce) {
  .site-nav button {
    transition: none;
  }

  .site-nav button:hover::after,
  .site-nav button:focus-visible::after {
    animation: none;
  }

}
