:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --line: rgba(242, 240, 234, 0.08);
  --text: #f2f0ea;
  --muted: #9aa0ab;
  --orange: #ff5b2e;
  --teal: #2ec4b6;
  --yellow: #f4c430;
  --cut: 22px;
  --radius: 4px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: var(--bg);
  z-index: 100;
}

.skip:focus {
  left: 1rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: 0.14em;
}

.brand svg {
  width: 22px;
  height: 22px;
  fill: var(--orange);
}

.nav nav {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  align-items: center;
  overflow-x: auto;
}

.nav nav a {
  text-decoration: none;
  font: 500 0.9rem/1 var(--font-display);
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav nav a:hover {
  color: var(--text);
}

.nav .nav-cta {
  color: var(--bg);
  background: var(--text);
  padding: 0.55rem 0.9rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.nav .nav-cta:hover {
  color: var(--bg);
  background: var(--orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font: 500 0.95rem/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--yellow);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, 0.25);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-big {
  padding: 1.2rem 2.2rem;
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem clamp(1rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font: 500 0.95rem/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.accent {
  color: var(--orange);
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.hero-art svg {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  display: block;
  overflow: visible;
}

/* Static state is a mid-sunset frame; the animations below loop around it. */
.frame-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  opacity: 0.6;
}

.sun {
  transform: translateY(55px);
  animation: sunset 15s linear infinite;
}

.sky-dusk {
  opacity: 0.25;
  animation: dusk 15s ease-in-out infinite;
}

.stars {
  fill: var(--text);
  opacity: 0;
  animation: stars 15s ease-in-out infinite;
}

.ridge-back {
  fill: #1a1f2b;
}

.ridge-front {
  fill: var(--bg);
}

.horizon {
  stroke: var(--text);
  stroke-width: 1.5;
  opacity: 0.5;
}

.reflection {
  animation: glint 15s linear infinite;
}

.shimmer {
  fill: url(#sun-fill);
  transform-box: fill-box;
  transform-origin: center;
  animation: shimmer 2.4s ease-in-out infinite alternate;
}

.shimmer:nth-child(2n) {
  animation-delay: -1.2s;
}

.shimmer:nth-child(3n) {
  animation-delay: -0.6s;
}

@keyframes sunset {
  0% {
    transform: translateY(-70px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  80%,
  100% {
    transform: translateY(190px);
    opacity: 1;
  }
}

@keyframes dusk {
  0%,
  100% {
    opacity: 0;
  }
  85% {
    opacity: 1;
  }
}

@keyframes stars {
  0%,
  50%,
  100% {
    opacity: 0;
  }
  85% {
    opacity: 0.9;
  }
}

@keyframes glint {
  0% {
    opacity: 0;
  }
  12%,
  55% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
  }
}

@keyframes shimmer {
  from {
    transform: scaleX(0.55);
    opacity: 0.45;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem clamp(1rem, 4vw, 3rem);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.section-head .num {
  grid-row: span 2;
  font: 700 0.9rem/1 var(--font-display);
  color: var(--bg);
  background: var(--yellow);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* Gallery */
.gallery {
  columns: 3;
  column-gap: 1rem;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-2);
  break-inside: avoid;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.shot:nth-child(even) {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.shot img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.05);
}

.shot:focus-visible {
  outline: none;
}

.shot:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px var(--yellow);
}

/* Lightbox */
body.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "prev figure next";
  align-items: center;
  gap: 1rem;
  padding: 4.5rem clamp(1rem, 4vw, 3rem) 2rem;
  background: rgba(11, 13, 18, 0.95);
  animation: lb-in 0.25s ease;
}

.lightbox[hidden] {
  display: none;
}

.lb-figure {
  grid-area: figure;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  min-width: 0;
  margin: 0;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.lb-figure figcaption {
  max-width: 44rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.lb-btn {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  font: 500 1.8rem/1 var(--font-display);
  color: var(--text);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, 0.25);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.2s, color 0.2s;
}

.lb-btn:hover {
  color: var(--bg);
  background: var(--orange);
}

.lb-btn:focus-visible {
  outline: none;
  color: var(--bg);
  background: var(--yellow);
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: clamp(1rem, 4vw, 3rem);
}

.lb-prev {
  grid-area: prev;
}

.lb-next {
  grid-area: next;
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
}

/* Work */
.work {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}

.work li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.work .when {
  font: 500 0.9rem/1.6 var(--font-display);
  color: var(--teal);
}

.work h3 {
  font-size: 1.2rem;
}

.work h3 span {
  color: var(--orange);
}

.work p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

/* Contact */
.contact {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 6rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 2rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.14), rgba(46, 196, 182, 0.1));
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  z-index: -1;
}

.contact h2 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.contact p {
  color: var(--muted);
  margin: 0.8rem 0 2rem;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* Reveal */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 260px;
    margin: 0 auto;
  }

  .gallery {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .work li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .brand span {
    display: none;
  }

  .gallery {
    column-gap: 0.7rem;
  }

  .shot {
    margin-bottom: 0.7rem;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "figure figure"
      "prev next";
  }

  .lb-next {
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .gallery {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .shot:hover img,
  .shot:focus-visible img {
    transform: none;
  }
}
