:root {
  color-scheme: dark;
  --ink: #071624;
  --ink-soft: #0c2237;
  --blue: #4caeff;
  --blue-pale: #d8edff;
  --paper: #f6f9fc;
  --muted: #93a9bc;
  --line: rgba(216, 237, 255, 0.2);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.42rem;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(7, 22, 36, 0.24);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a,
footer a {
  position: relative;
  font-size: 0.95rem;
  text-decoration: none;
}

nav a::after,
footer a::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  overflow: hidden;
  background: #18334a;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 42%;
  animation: hero-settle 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(2, 12, 20, 0.55) 0%, rgba(2, 12, 20, 0.02) 36%, rgba(2, 12, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 12, 20, 0.35), transparent 60%);
}

.hero-copy {
  position: absolute;
  bottom: clamp(5.5rem, 12vh, 9rem);
  left: var(--gutter);
}

.hero-copy p,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-pale);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.78;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.3rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.work-section,
.about-section,
.contact-section {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 7vw, 5.5rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 26rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.gallery {
  columns: 3 18rem;
  column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 1.6vw, 1.5rem);
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  padding: 0;
  background: var(--ink-soft);
  color: inherit;
  cursor: zoom-in;
}

.photo--wide {
  column-span: all;
}

.photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 300ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo:hover img {
  filter: brightness(1.05);
  transform: scale(1.018);
}

.photo:hover::after,
.photo:focus-visible::after {
  opacity: 1;
}

.about-section {
  border-top: 1px solid var(--line);
  background: var(--blue-pale);
  color: var(--ink);
}

.about-section .eyebrow {
  color: #1e6da7;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.about-copy {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
}

.about-copy p {
  margin: 0 0 1.25rem;
}

.about-portrait {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(89, 185, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, #08283f, #0b4b76);
}

.contact-section > .eyebrow,
.contact-heading,
.contact-links {
  width: min(100%, 96rem);
  margin-right: auto;
  margin-left: auto;
}

.contact-section > .eyebrow {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-heading {
  display: block;
}

.contact-heading h2 {
  color: white;
  font-size: clamp(4rem, 10vw, 9rem);
}

.contact-heading p {
  max-width: 26rem;
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.contact-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-link > span:first-child {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-link strong {
  min-width: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-link > span:last-child {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  place-items: center;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-link:hover > span:last-child {
  background: rgba(255, 255, 255, 0.1);
  transform: translate(0.12rem, -0.12rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(3, 12, 20, 0.96);
  color: white;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(3, 12, 20, 0.96);
}

.lightbox figure {
  display: grid;
  height: 100%;
  margin: 0;
  padding: clamp(4rem, 8vh, 6rem) 1rem 2rem;
  place-items: center;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  max-height: calc(100svh - 9rem);
  object-fit: contain;
}

.lightbox figcaption {
  align-self: end;
  min-height: 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox button {
  border: 0;
  color: white;
  font: inherit;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  border-bottom: 1px solid var(--blue) !important;
  padding: 0.4rem 0;
  background: transparent;
}

.lightbox-arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.25rem !important;
}

@keyframes hero-settle {
  from {
    opacity: 0.5;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .brand {
    max-width: 7rem;
    line-height: 1.15;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.875rem;
  }

  .hero {
    min-height: 78vh;
    min-height: 78svh;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }

  .hero-scroll {
    left: var(--gutter);
    right: auto;
  }

  .work-section,
  .about-section,
  .contact-section {
    padding-top: clamp(4rem, 12vw, 6rem);
    padding-bottom: clamp(4rem, 12vw, 6rem);
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    grid-column: auto;
  }

  .gallery {
    columns: 2 9rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .lightbox[open] {
    display: block;
  }

  .lightbox figure {
    height: 100vh;
    height: 100dvh;
    padding: 4rem 0.75rem 5rem;
  }

  .lightbox img {
    max-height: calc(100vh - 10rem);
    max-height: calc(100dvh - 10rem);
  }

  .lightbox-arrow {
    position: fixed;
    z-index: 2;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3rem;
    height: 3rem;
  }

  .lightbox-prev {
    left: max(1rem, env(safe-area-inset-left));
  }

  .lightbox-next {
    right: max(1rem, env(safe-area-inset-right));
  }

  .lightbox-close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .brand {
    max-width: 6.25rem;
    font-size: 0.875rem;
  }

  nav {
    gap: 0.65rem;
  }

  nav a {
    font-size: 0.875rem;
  }

  .hero-copy {
    bottom: 6.5rem;
  }

  .gallery {
    columns: 1;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .contact-heading {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-heading h2 {
    font-size: clamp(3.5rem, 18vw, 6.5rem);
  }
}
