:root {
  --ink: #211919;
  --parchment: #E2D0B1;
  --gold: #C6A773;
  --terracotta: #734E38;
  --oxblood: #591616;

  --font-heading: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --content-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--parchment); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) var(--gutter) var(--gutter);
}

.logo { display: inline-block; }

.logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  height: calc(100svh + env(safe-area-inset-top, 0px));
  overflow: hidden;
  background: var(--ink);
}

.hero__image,
.hero__image img {
  width: 100%;
  height: 100%;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  max-width: min(92%, 48rem);
  color: var(--parchment);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: -10% -15%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0;
  opacity: 0.92;
}

.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--parchment);
  background: rgba(33, 25, 25, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: bounce 2.4s ease-in-out infinite;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__arrow:hover {
  background: rgba(33, 25, 25, 0.6);
  color: var(--gold);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- About ---------- */

.about {
  background: #2c1f1b;
}

.about__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--gutter);
  text-align: center;
}

.about__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.about__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 2rem;
  color: var(--parchment);
}

.about__body {
  max-width: 42rem;
  margin: 0 auto;
}

.about__body p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--parchment);
  opacity: 0.88;
  margin: 0 0 1.25rem;
}

.about__body p:last-child { margin-bottom: 0; }

/* ---------- Projects ---------- */

.projects {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--gutter);
}

.projects__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin: 0 0 2.5rem;
  color: var(--parchment);
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project__image-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--terracotta);
}

.project__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project__image-link:hover .project__image {
  transform: scale(1.03);
}

.project__image-link--stack {
  position: relative;
  background: transparent;
  overflow: visible;
  aspect-ratio: 4 / 3;
}

.project__shot {
  position: absolute;
  top: 50%;
  width: 32%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s ease;
}

.project__shot--back {
  left: 42%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 1;
}

.project__shot--front {
  left: 58%;
  transform: translate(-50%, -50%) rotate(5deg);
  z-index: 2;
}

.project__image-link--stack:hover .project__shot--back {
  transform: translate(-50%, -50%) rotate(-8deg) translateX(-10px);
}

.project__image-link--stack:hover .project__shot--front {
  transform: translate(-50%, -50%) rotate(7deg) translateX(10px);
}

.project__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  color: var(--parchment);
}

.project__description {
  margin: 0 0 1.25rem;
  color: var(--parchment);
  opacity: 0.85;
}

.project__link {
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.project__status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(198, 167, 115, 0.4);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .project {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }

  .project__body { padding-right: 1rem; }
}

/* ---------- Contact ---------- */

.contact {
  background: #2c1f1b;
}

.contact__inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--gutter);
  text-align: center;
}

.contact__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.contact__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--parchment);
}

.contact__intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--parchment);
  opacity: 0.85;
  margin: 0 0 2.5rem;
}

.contact__form {
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.contact__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .contact__row { grid-template-columns: 1fr 1fr; }
}

.contact__field {
  display: grid;
  gap: 0.4rem;
}

.contact__label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--parchment);
  opacity: 0.8;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--parchment);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(226, 208, 177, 0.18);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact__field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
}

.contact__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__privacy {
  font-size: 0.8rem;
  color: var(--parchment);
  opacity: 0.6;
  margin: 0;
}

.contact__submit {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.contact__submit:hover { background: var(--parchment); }
.contact__submit:active { transform: translateY(1px); }
.contact__submit:disabled { opacity: 0.5; cursor: wait; }

.contact__status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.contact__status--success { color: var(--gold); }
.contact__status--error { color: #e8a48a; }
