:root {
  --navy: #202f5a;
  --blue: #8eabe1;
  --cream: #feffea;
  --teal: #325a66;
  --deep-teal: #1d414d;

  --bg: var(--navy);
  --ink: var(--cream);
  --maxw: 1100px;

  --serif: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 70% -10%, rgba(142, 171, 225, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(50, 90, 102, 0.30), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Fixed grain overlay for subtle texture (non-interactive) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.masthead,
.footer {
  position: relative;
  z-index: 2;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--cream);
}

/* ---------- Masthead ---------- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 11rem) 1.5rem clamp(3rem, 8vh, 6rem);
  text-align: center;
  animation: rise 1.2s ease both;
}

.eyebrow {
  margin: 0 0 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue);
}

.name {
  margin: 0;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.latitude {
  margin: 1.8rem 0 0;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  color: rgba(254, 255, 234, 0.6);
}

/* ---------- Section scaffolding ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  margin: 0 0 1.6rem;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-label::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin-top: 1rem;
  background: rgba(142, 171, 225, 0.5);
}

/* ---------- About ---------- */
.about {
  padding: clamp(3rem, 9vh, 6rem) 0;
}

.about-text {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2.05rem);
  line-height: 1.5;
}

/* ---------- Gallery ---------- */
.gallery {
  padding-bottom: clamp(3rem, 9vh, 6rem);
}

.shot {
  position: relative;
  margin: 0 0 clamp(1.5rem, 4vw, 2.6rem);
  overflow: hidden;
  background: var(--deep-teal);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shot:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4.5rem 1.5rem 1.3rem;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(29, 65, 77, 0.92) 0%, rgba(29, 65, 77, 0.55) 45%, transparent 100%);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.shot figcaption i {
  font-style: normal;
  letter-spacing: 0.02em;
}

.shot:hover figcaption,
.shot:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Side-by-side pairing for the two tall portrait shots */
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}

.shot-pair .shot {
  margin-bottom: 0;
}

.shot-pair + .shot {
  margin-top: clamp(1.5rem, 4vw, 2.6rem);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(3rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem);
  border-top: 1px solid rgba(142, 171, 225, 0.18);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  font-size: clamp(1.4rem, 3.4vw, 2.05rem);
  line-height: 1.7;
}

.contact-list a {
  position: relative;
}

.contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.contact-list a:hover::after,
.contact-list a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254, 255, 234, 0.45);
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .shot-pair .shot {
    margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
  }

  /* Touch devices have no hover: keep captions legible by default */
  .shot figcaption {
    opacity: 1;
    transform: none;
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
