:root {
  --ink: #152028;
  --ink-soft: #3d4a54;
  --paper: #eef1ee;
  --paper-2: #e2e8e4;
  --mist: #c9d5d2;
  --sea: #1f5f5a;
  --sea-deep: #163f3c;
  --brass: #8f6b3e;
  --white: #fbfcfb;
  --line: rgba(21, 32, 40, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 95, 90, 0.1), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(143, 107, 62, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  background: rgba(238, 241, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--sea);
}

.header-cta {
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sea-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .header-cta {
    margin-left: 1.5rem;
  }
}

/* Hero: one composition — brand first, full-bleed food plane */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(12, 22, 28, 0.88) 0%,
      rgba(12, 22, 28, 0.72) 38%,
      rgba(12, 22, 28, 0.25) 68%,
      rgba(12, 22, 28, 0.15) 100%
    ),
    linear-gradient(to top, rgba(12, 22, 28, 0.55), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  animation: rise-in 0.9s ease-out both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(251, 252, 251, 0.88);
  max-width: 36ch;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sea);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sea-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(251, 252, 251, 0.55);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(251, 252, 251, 0.08);
}

.contact .btn-secondary {
  color: var(--ink);
  border-color: rgba(21, 32, 40, 0.28);
}

.contact .btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(21, 32, 40, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--sea-deep);
  border: 1px solid transparent;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-inner {
  width: min(100% - 2rem, 44rem);
  margin-inline: auto;
}

.work-intro {
  width: min(100% - 2rem, var(--max));
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
}

.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about p,
.work-intro p,
.contact-lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.gallery {
  width: min(100% - 1rem, var(--max));
  margin-inline: auto;
  columns: 1;
  column-gap: 0.65rem;
}

@media (min-width: 560px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 900px) {
  .gallery {
    columns: 3;
  }
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 0.65rem;
  overflow: hidden;
  background: var(--mist);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery figure.is-visible {
  opacity: 1;
  transform: none;
}

.gallery button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.45s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.03);
}

.skill-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .skill-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.75rem;
  }
}

.skill-list li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.skill-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 650;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.timeline .meta {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass);
}

.timeline p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(31, 95, 90, 0.08)),
    linear-gradient(135deg, var(--paper-2), #d7e0dc 55%, #dfe6e1);
}

.contact .section-inner {
  width: min(100% - 2rem, 40rem);
}

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--sea-deep);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 16, 20, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.35rem;
  background: rgba(251, 252, 251, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-media img,
  .hero-copy,
  .gallery figure,
  .gallery img,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
