:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: #2c2c2c;
  --text: #f1f1f1;
  --muted: #a6a6a6;
  --accent: #8f969e;
  --title-angle: 160deg;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --grid-shift-x: 0px;
  --grid-shift-y: 0px;
  --max-width: 1020px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #0b0b0b 0%, #0f0f0f 100%);
  overflow: hidden;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.2;
  transform: translate3d(var(--grid-shift-x), var(--grid-shift-y), 0);
  transition: transform 90ms linear;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 228, 77, 0.32) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 147, 48, 0.3) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 4px rgba(255, 212, 79, 0.15));
  transform: translate3d(calc(var(--grid-shift-x) * -0.6), calc(var(--grid-shift-y) * -0.6), 0);
  transition: transform 90ms linear;
  -webkit-mask-image: radial-gradient(
    circle 150px at var(--mouse-x) var(--mouse-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 36%,
    rgba(0, 0, 0, 0.15) 64%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 150px at var(--mouse-x) var(--mouse-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 36%,
    rgba(0, 0, 0, 0.15) 64%,
    transparent 100%
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(11, 11, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1rem 3.5rem;
}

section {
  margin: 1rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero {
  padding: 2rem 1.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
  color: rgba(241, 241, 241, 0.95);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.22);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1,
  h2,
  h3 {
    background: linear-gradient(
      var(--title-angle),
      rgba(245, 245, 245, 0.92) 0%,
      rgba(181, 181, 181, 0.78) 46%,
      rgba(92, 92, 92, 0.72) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.7px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
  }
}

h1 {
  margin: 0.65rem 0 0.9rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  max-width: 13ch;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0.35rem 0 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.03rem;
  font-weight: 600;
}

.lead,
.timeline-item p,
.project-card p,
.contact p {
  color: var(--muted);
}

.lead {
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.58rem 0.95rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn.primary {
  background: #2f2f2f;
  border-color: #454545;
  color: var(--text);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: linear-gradient(135deg, rgba(255, 228, 77, 0.95), rgba(255, 147, 48, 0.92));
  border-color: rgba(255, 176, 58, 0.95);
  color: #20160d;
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: linear-gradient(135deg, rgba(255, 228, 77, 0.95), rgba(255, 147, 48, 0.92));
  border-color: rgba(255, 176, 58, 0.95);
  color: #20160d;
}

.section-heading {
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-left: 1.35rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: var(--surface-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.09rem;
  top: 1.1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #d9d9d9;
  box-shadow: 0 0 0 3px rgba(217, 217, 217, 0.16);
}

.timeline-item:hover,
.timeline-item:focus-within {
  border-color: rgba(255, 176, 58, 0.9);
  background: linear-gradient(135deg, rgba(255, 228, 77, 0.14), rgba(255, 147, 48, 0.12));
  transform: translateX(2px);
}

.timeline-item__top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.experience-logo {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0.7rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:hover::before,
.timeline-item:focus-within::before {
  background: #ffd54f;
  box-shadow: 0 0 0 3px rgba(255, 201, 74, 0.26);
}

.year {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  background: var(--surface-2);
  transition: border-color 0.2s ease;
}

.project-card-trigger {
  cursor: pointer;
}

.project-logo {
  display: block;
  height: 2rem;
  width: auto;
  margin-bottom: 0.7rem;
}

.project-card:hover,
.project-card:focus-within {
  border-color: #5b5b5b;
}

.tag {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.project-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.project-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #c7c7c7;
}

.project-card li + li {
  margin-top: 0.3rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 2.45rem;
  margin-top: 0.95rem;
  text-decoration: none;
  appearance: none;
  padding: 0 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 58, 0.8);
  background: linear-gradient(135deg, #ffe44d 0%, #ffbf3f 48%, #ff9330 100%);
  color: #20160d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 162, 48, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.project-btn-modal {
  cursor: pointer;
  border: 1px solid rgba(255, 176, 58, 0.8);
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: auto;
}

.project-btn:hover,
.project-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(255, 150, 42, 0.35);
}

.project-modal {
  display: none;
}

.project-modal.is-open {
  display: flex !important;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #161616 0%, #121212 100%);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  position: relative;
}

.project-modal__close {
  justify-self: end;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  color: var(--text);
  border-color: rgba(255, 176, 58, 0.7);
}


.project-modal__header h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
}

.project-modal__description {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.project-modal__shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.shot-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.shot-slot {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.74) 100%);
  color: #f2f2f2;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shot-card:hover .shot-overlay,
.shot-card:focus-within .shot-overlay {
  opacity: 1;
}

.image-gallery {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-gallery.is-open {
  display: flex !important;
}

.image-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.image-gallery__panel {
  position: relative;
  z-index: 1;
  width: min(100vw, 1400px);
  height: min(100vh, 1000px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  display: block;
  padding: 0;
}

.image-gallery__stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.image-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}

.image-gallery__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
}

.image-gallery__count,
.image-gallery__caption {
  margin: 0;
  color: #f2f2f2;
}

.image-gallery__count {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.image-gallery__caption {
  font-size: 0.9rem;
  font-weight: 600;
}

.image-gallery__icon {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.62);
  color: var(--text);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  backdrop-filter: blur(8px);
}

.image-gallery__icon span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-0.06em);
}

.image-gallery__icon:hover,
.image-gallery__icon:focus-visible {
  border-color: rgba(255, 176, 58, 0.75);
  background: rgba(255, 176, 58, 0.08);
}

.image-gallery__icon--close {
  top: 1rem;
  right: 1rem;
}

.image-gallery__icon--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.image-gallery__icon--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 820px) {
  .image-gallery__panel {
    width: 100vw;
    height: 100vh;
  }

  .image-gallery__icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .image-gallery__icon--close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

.contact .btn.primary {
  margin-top: 0.35rem;
  display: inline-flex;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 820px) {
  .site-header {
    position: static;
    padding-bottom: 0.7rem;
  }

  nav {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item__top {
    gap: 0.7rem;
  }

  .experience-logo {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
  }

  section {
    padding: 1.15rem;
  }

  .timeline {
    padding-left: 1.1rem;
  }

  .timeline-item::before {
    left: -0.87rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
