/* Starport opening and quieter, image-led chapters. */
body {
  background: #090f12;
}

.site-header {
  background: rgba(8, 17, 21, .55);
  border-color: rgba(210, 231, 227, .09);
  box-shadow: none;
  border-radius: 10px;
}

.hero {
  background: #061116;
  min-height: max(760px, 100svh);
}

.hero-image > img {
  object-position: 57% center;
}

.hero-image::after {
  background:
    linear-gradient(90deg, rgba(5, 14, 19, .91), rgba(5, 14, 19, .48) 39%, rgba(5, 14, 19, .03) 75%),
    linear-gradient(0deg, #090f12, transparent 32%),
    linear-gradient(180deg, rgba(4, 11, 17, .2), transparent 25%);
}

/* Atmosphere is drawn with dithering on the canvas, not broad CSS gradients. */
.hero::before,
.hero::after {
  content: none;
  display: none;
  animation: none;
  background: none;
}

.hero-atmosphere {
  opacity: .95;
  z-index: 1;
}

.hero-content {
  padding-top: 160px;
  padding-bottom: 160px;
}

.hero h1 {
  font-size: clamp(4.8rem, 8.4vw, 8.3rem);
  margin-bottom: 35px;
}

.hero-intro {
  font-size: .85rem;
  letter-spacing: .035em;
  line-height: 1.8;
  color: #f0f3ed;
}

.hero-intro span {
  color: #b7ccc9;
}

.hero-actions {
  margin-top: 30px;
}

.hero-bottom {
  justify-content: space-between;
  align-items: end;
}

.hero-credit {
  margin: 0 0 8px;
  text-align: right;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .76rem;
  color: #d9e4de;
}

.hero-credit span {
  display: block;
  font-size: .65rem;
  color: #9eb4b5;
  margin-top: 4px;
}


.hero.is-outside::before,
.hero.is-outside::after {
  animation-play-state: paused;
}

.section {
  padding-top: 140px;
  padding-bottom: 140px;
}

.project-grid {
  gap: 48px 30px;
}

.project-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.project-card:hover,
.project-card:focus-within {
  box-shadow: none;
  transform: translateY(-3px);
}

.project-info,
.project-feature .project-info {
  background: transparent;
  padding: 24px 0 0;
}

.project-info::before {
  display: none;
}

.project-view {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: .7rem;
  letter-spacing: .04em;
  padding: 9px 14px;
  background: rgba(5, 14, 19, .8);
  border: 1px solid rgba(225, 240, 230, .2);
  border-radius: 4px;
  color: #e6eee7;
}

.photo-section {
  background: linear-gradient(180deg, #0b1519, #101c20 55%, #0b1519);
  border: 0;
}

.photo-section .photo-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 28px;
}

.photo-section .photo-grid figure {
  border-radius: 0;
  height: auto;
  min-height: 0;
}

.photo-section .photo-grid .photo-large {
  grid-column: 1 / -1;
  grid-row: auto;
  aspect-ratio: 1.75;
}

.photo-section .photo-grid figure:not(.photo-large) {
  aspect-ratio: 1.35;
}

.photo-section .photo-grid .image-expand {
  height: 100%;
}

.about-section {
  background: #111d20;
  color: #e7eee7;
}

/* Personal projects: uncropped photographs with quiet, readable specifications. */
.personal-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.personal-preview-image {
  aspect-ratio: 1.15;
  overflow: hidden;
}

.personal-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.personal-preview h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.personal-preview h3 span {
  color: var(--accent);
}

.personal-details h3 {
  scroll-margin-top: 110px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .personal-preview:hover img { transform: scale(1.025); }
}

@media (max-width: 700px) {
  .personal-previews { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .personal-preview-image img { transition: none; }
}

.personal-project {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 26px;
  min-width: 0;
}

.personal-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 48px;
}

.personal-gallery {
  display: grid;
  gap: 18px;
  min-width: 0;
  height: clamp(320px, 34vw, 460px);
}

.deathclaw-gallery {
  grid-template-columns: .904fr 1.128fr;
  align-items: center;
}

.personal-gallery .image-expand {
  display: block;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.personal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.personal-details h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 24px;
}

.personal-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.personal-specs dt {
  color: var(--accent);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.personal-specs dd {
  margin: 4px 0 0;
  color: #b7c7c1;
  font-size: .95rem;
}

.server-gallery {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.personal-video {
  margin: 0;
  min-width: 0;
}

.personal-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090f12;
}

.personal-video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .7rem;
}

@media (min-width: 701px) and (max-width: 1050px) {
  .site-header nav { gap: 15px; }
}

@media (max-width: 700px) {
  .personal-project-grid { grid-template-columns: 1fr; gap: 60px; }
  .personal-gallery { gap: 12px; height: auto; }
  .personal-gallery .image-expand { height: auto; }
  .personal-gallery img { height: auto; }
  .server-gallery { grid-template-columns: 1fr; gap: 22px; }
  .personal-specs { gap: 18px 20px; }
}

.about-section::before {
  background: radial-gradient(ellipse at 85% 10%, rgba(130, 188, 183, .06), transparent 55%);
}

.about-section .eyebrow {
  color: var(--accent);
}

.about-body p {
  color: #b7c7c1;
}

.about-body .lead {
  color: #ecf1e9;
}

.about-portrait {
  box-shadow: none;
}

@media (max-width: 700px) {
  .hero-image > img { object-position: 60% center; }
  .hero-image::after {
    background:
      linear-gradient(90deg, rgba(5, 14, 19, .85), rgba(5, 14, 19, .28)),
      linear-gradient(0deg, #090f12, transparent 40%);
  }
  .hero h1 { font-size: clamp(4.3rem, 17vw, 6rem); }
  .hero-content { padding-top: 145px; padding-bottom: 170px; }
  .hero-bottom { gap: 20px; align-items: start; }
  .hero-credit { max-width: 155px; font-size: .65rem; }
  .hero-credit span { font-size: .6rem; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .project-feature .project-info { padding: 24px 0 0; }
  .project-view { right: 12px; bottom: 12px; font-size: .62rem; }
  .photo-section .photo-grid { grid-template-columns: 1fr; gap: 22px; }
  .photo-section .photo-grid .photo-large { grid-column: auto; aspect-ratio: 1.2; }
  .photo-section .photo-grid figure:not(.photo-large) { aspect-ratio: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; transform: none; }
  .project-card:hover, .project-card:focus-within { transform: none; }
}
