:root {
  --bg: #050505;
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.78);
  --soft: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --turquoise: #58d6cf;
  --turquoise-hover: #42c2bb;
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 750;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-align: center;
}

p {
  color: var(--muted);
}

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: #000;
}

.hero-image,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 34%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-copy {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  max-width: 640px;
  padding: 5rem 0;
}

.hero-copy h1 {
  max-width: 10ch;
}

.hero-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.hero-actions {
  margin-top: 1.75rem;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: var(--turquoise);
  color: #032625;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--turquoise-hover);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--turquoise);
  color: #032625;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text {
  max-width: 520px;
}

.about-text p {
  font-size: 1.08rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* ART + PHOTO GRID */
.grid,
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.art-item {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
}

.art-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
}

.art-item:hover .art-thumb {
  transform: translateY(-2px);
  opacity: 0.96;
}

.art-item:focus-visible {
  outline: none;
}

.art-item:focus-visible .art-thumb {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 0 0 2px var(--turquoise);
}

.art-title {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ORACLE */
.oracle-wrap {
  text-align: center;
}

.oracle-card {
  display: block;
  width: 600px;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.oracle-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.oracle-wrap p {
  max-width: 40rem;
  margin: 0 auto;
}

.oracle-wrap .button {
  margin-top: 1.5rem;
}

/* TESTIMONIAL / CONTACT / FOOTER */
.center-copy {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.quote-attribution {
  margin-top: 1rem;
  color: var(--soft);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  text-align: center;
}

footer p + p {
  margin-top: 0.5rem;
}

/* MODAL */
.modal,
.art-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.open,
.art-modal.is-open {
  display: block;
}

.modal-bg,
.art-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content,
.art-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 1200px);
  margin: 4vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal img,
.art-modal-image {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

.close,
.art-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.close:hover,
.close:focus-visible,
.art-modal-close:hover,
.art-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

/* hide accidental stray modal leftovers if still present outside modal container */
body > button[aria-label="Close artwork preview"],
body > button:last-of-type,
body > img[src="index.html"] {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section {
    padding: 4rem 0;
  }

  .hero,
  .hero-overlay {
    min-height: 72vh;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.66) 0%,
      rgba(0, 0, 0, 0.32) 55%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .hero-copy {
    max-width: 100%;
    padding: 4rem 0;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .about-grid,
  .grid,
  .art-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    max-width: 100%;
  }

  .oracle-card {
    width: min(600px, 100%);
  }
}
