:root {
  color: #3a403c;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  overflow-x: hidden;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    calc(4.6rem + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  color: #3a403c;
  background-color: #d5ddd4;
  background-image: linear-gradient(
    180deg,
    #eef2ee 0% 11%,
    #e3ebe4 11% 22%,
    #d7e1d6 22% 36%,
    #e6eee5 36% 48%,
    #d3ddd2 48% 61%,
    #e0e8df 61% 73%,
    #c9d4c8 73% 86%,
    #b7c4b6 86% 100%
  );
}

main {
  width: min(920px, 100%);
  text-align: center;
}

.plate {
  position: relative;
  width: min(40rem, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mandala {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plate-text {
  position: relative;
  z-index: 1;
  width: 54%;
}

h1, h2, p { margin: 0; font-weight: 400; }

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.16em;
  font-weight: 450;
}

.role {
  margin-top: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.cert {
  margin-top: 0.85rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

.contact {
  margin: 1.7rem 0 0;
  font-style: normal;
  display: grid;
  gap: 0.35rem;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

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

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

.contact p,
.cert {
  overflow-wrap: anywhere;
}

.videos { margin-top: 2.75rem; }

h2 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.scroller {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 0.35rem;
}

.track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

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

.slide {
  flex: 0 0 calc((100% - 1.6rem) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.slide a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px rgba(58, 64, 60, 0.12);
}

.slide p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 0.55rem 0.45rem;
  background: linear-gradient(transparent, rgba(44, 50, 46, 0.78));
  color: #f4f6f3;
  font-size: 0.74rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(58, 64, 60, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #3a403c;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.prev::before { transform: translate(-35%, -50%) rotate(135deg); }
.next::before { transform: translate(-65%, -50%) rotate(-45deg); }

.nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.55); }

.nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.nav:focus-visible,
.slide a:focus-visible {
  outline: 1px solid #3a403c;
  outline-offset: 3px;
}

.status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  min-height: 1.2em;
}

@media (max-width: 1024px) {
  .slide { flex-basis: calc((100% - 0.8rem) / 2); }
  .plate { width: min(34rem, 86vw); }
}

@media (max-width: 800px) {
  body { align-items: flex-start; }
  .plate {
    aspect-ratio: auto;
    width: 100%;
    display: block;
    padding: 1.6rem 0.25rem 1.2rem;
  }
  .mandala {
    width: min(148vw, 40rem);
    height: auto;
    inset: auto;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
  }
  .plate-text { width: min(22rem, 90%); margin: 0 auto; }
  .videos { margin-top: 1.4rem; }
  h1 { letter-spacing: 0.08em; font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .role { margin-top: 0.45rem; letter-spacing: 0.14em; }
  .cert { margin-top: 0.55rem; font-size: 0.95rem; }
  .contact { margin-top: 1rem; font-size: 0.95rem; gap: 0.4rem; }
}

@media (max-width: 640px) {
  .plate {
    aspect-ratio: 1;
    width: min(100%, 22rem);
    display: grid;
    place-items: center;
    padding: 0;
  }
  .mandala {
    width: 100%;
    height: 100%;
    inset: 0;
    transform: none;
  }
  .plate-text { width: 50%; }
  h1 { font-size: 1.05rem; letter-spacing: 0.04em; }
  .role { font-size: 0.55rem; letter-spacing: 0.06em; margin-top: 0.28rem; line-height: 1.35; }
  .cert { font-size: 0.62rem; margin-top: 0.3rem; line-height: 1.35; }
  .contact { font-size: 0.62rem; margin-top: 0.45rem; gap: 0.12rem; }
  .slide { flex-basis: 100%; }
  .slide p { font-size: 0.85rem; padding: 1.6rem 0.7rem 0.55rem; }
  .scroller { gap: 0.15rem; }
  h2 { margin-bottom: 0.65rem; }
}

