/* Home page. Loads after styles.css. */

/* Hero */
.home-hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero {
    padding: 64px 0 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

/* The name is about 8.75em wide in Orbitron, so size it to its column and never break it. */
.home-hero h1 {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: min(4rem, calc((100vw - 32px) / 9));
}

@media (min-width: 600px) {
  .home-hero h1 {
    font-size: min(4rem, calc((100vw - 56px) / 9));
  }
}

@media (min-width: 900px) {
  .home-hero h1 {
    font-size: min(4.25rem, calc((min(100vw, 1160px) - 104px) * 0.575 / 9));
  }
}

.hero-lead {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}

.pay-note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* 3D model stages */
model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
  --progress-bar-height: 2px;
}

.stage {
  position: relative;
  overflow: hidden;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(76, 201, 240, 0.035) 0 1px, transparent 1px 4px);
}

.hero-stage {
  height: 340px;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(155, 92, 255, 0.35), rgba(155, 92, 255, 0.08) 60%, transparent),
    var(--panel);
}

@media (min-width: 900px) {
  .hero-stage {
    height: 500px;
  }
}

.stage-label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.mv-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Credits under About */
.about-text {
  max-width: 68ch;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  text-wrap: pretty;
}

.credits {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .credits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.credits li {
  padding: 22px 22px 24px;
}

.credit-role {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.credit-name {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.credits p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Services */
.services {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.service {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
}

.service h3 {
  margin-bottom: 10px;
}

.service p {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--muted);
}

.service-price {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-price strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.service a {
  margin-top: 14px;
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Model cards */
.model-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.model-card .stage {
  height: 320px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(closest-side at 50% 50%, rgba(76, 201, 240, 0.18), transparent),
    transparent;
}

@media (min-width: 860px) {
  .model-card .stage {
    height: 380px;
  }
}

.model-card figcaption {
  padding: 18px 22px 22px;
}

.model-card h3 {
  margin-bottom: 6px;
}

.model-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Work */
.work-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
}

.work-text p {
  max-width: 60ch;
  text-wrap: pretty;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}

.feature-list strong {
  color: var(--text);
}

.work-shots {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  list-style: none;
}

.work-shots li:first-child {
  grid-column: 1 / -1;
}

.work-shots a {
  display: block;
}

.work-shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 935;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  transition: border-color 0.2s ease;
}

.work-shots a:hover img {
  border-color: var(--accent);
}

/* Contact steps */
.steps {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  padding: 22px;
  counter-increment: step;
}

.steps li::after {
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(76, 201, 240, 0.22);
}

.steps h3 {
  margin-bottom: 8px;
  padding-right: 40px;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-card {
  max-width: 560px;
  margin-bottom: 24px;
  padding: 22px 22px 24px;
}

.contact-label {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
}

.handle {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.copy-btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(76, 201, 240, 0.12);
}

.contact-help {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}
