:root {
  --page-padding: 3rem;
  --text-color: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
  --content-width: 50rem;
  --wide-width: 70rem;
  --panel-bg: rgba(20, 20, 20, 0.32);
  --panel-border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("./assets/img-3.jpg") center center / cover no-repeat fixed;
  color: var(--text-color);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
}

.brand {
  width: 260px;
  height: auto;
}

.brand-top {
  margin-top: 0;
}

.owner-intro {
  width: min(calc(100% - 3rem), var(--wide-width));
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.owner-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.owner-copy {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  backdrop-filter: blur(8px);
}

.owner-copy p,
.disciplines-intro p,
.category-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
  color: inherit;
}

.inline-link {
  color: inherit;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
}

.disciplines-intro {
  width: min(100%, var(--content-width));
  padding: 0 var(--page-padding);
  display: grid;
  gap: 1rem;
  text-align: center;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  opacity: 0.84;
}

.disciplines-intro h1,
.category-copy h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

.disciplines-intro h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.category-grid {
  width: min(calc(100% - 3rem), var(--wide-width));
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.category-card {
  display: block;
  position: relative;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.category-card > * {
  pointer-events: none;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.category-copy {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
}

.category-copy h2 {
  font-size: 1.5rem;
}

.card-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card-link {
  opacity: 0.95;
}

.detail-page {
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("./assets/img-3.jpg") center center / cover no-repeat fixed;
}

.back-link {
  width: min(calc(100% - 3rem), var(--wide-width));
  padding: 0 var(--page-padding);
  color: inherit;
  text-decoration: none;
  opacity: 0.88;
}

.detail-hero,
.detail-gallery {
  width: min(calc(100% - 3rem), var(--wide-width));
  padding: 0 var(--page-padding);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.detail-copy {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  backdrop-filter: blur(8px);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.detail-copy p {
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

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

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.instagram-link {
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.instagram-icon {
  width: 100px;
  height: 100px;
}

@media (max-width: 900px) {
  :root {
    --page-padding: 1.5rem;
  }

  body {
    background-attachment: scroll;
  }

  .page {
    gap: 2.5rem;
  }

  .owner-intro {
    width: min(calc(100% - 2rem), var(--wide-width));
    grid-template-columns: 1fr;
  }

  .owner-photo {
    max-width: 420px;
    justify-self: center;
  }

  .category-grid {
    width: min(calc(100% - 2rem), var(--wide-width));
    grid-template-columns: 1fr;
  }

  .back-link,
  .detail-hero,
  .detail-gallery {
    width: min(calc(100% - 2rem), var(--wide-width));
  }

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

  .detail-image {
    max-width: 440px;
    justify-self: center;
  }

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

@media (max-width: 640px) {
  .brand {
    width: min(260px, calc(100% - 3rem));
  }

  .owner-copy {
    padding: 1.5rem;
  }

  .detail-copy {
    padding: 1.5rem;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .instagram-link {
    flex-direction: column;
    gap: 1rem;
  }

  .instagram-icon {
    width: 84px;
    height: 84px;
  }
}
