:root {
  color-scheme: dark;
  --bg: #080a0e;
  --surface: #0e1117;
  --surface-2: #151922;
  --text: #f4f0e8;
  --muted: #a7adb8;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #3478f6;
  --accent-strong: #175ce0;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1500px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
body.nav-open {
  overflow: hidden;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px clamp(20px, 5vw, 80px);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.94), rgba(5, 7, 10, 0.35));
  transition:
    background 0.25s,
    border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 600 0.62rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}
.site-nav a,
.site-footer a {
  color: #dfe3ea;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-color: var(--accent);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(720px, 100svh);
  overflow: hidden;
}
.hero .photo-placeholder {
  position: absolute;
  inset: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 10, 0.97) 0%,
      rgba(4, 6, 10, 0.76) 32%,
      rgba(4, 6, 10, 0.25) 67%,
      rgba(4, 6, 10, 0.38) 100%
    ),
    linear-gradient(0deg, rgba(8, 10, 14, 0.55), transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 88vw);
  margin-left: clamp(22px, 7vw, 120px);
  padding-top: var(--header-height);
}
.eyebrow {
  margin: 0 0 14px;
  color: #77a6ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 7vw, 7.2rem);
  letter-spacing: -0.045em;
}
.hero-content > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 0 32px;
  color: #d1d5dc;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(74, 132, 255, 0.55);
  outline-offset: 4px;
}
.button--primary {
  background: var(--accent-strong);
  color: #fff;
}
.button--primary:hover {
  background: var(--accent);
}
.button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(8, 10, 14, 0.28);
}
.button--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #fff;
  animation: scroll-cue 1.8s infinite;
}
@keyframes scroll-cue {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(80px, 10vw, 150px) 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 42px;
}
.section-heading h2,
.about-copy h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.035em;
}
.section-heading > p {
  width: min(500px, 45%);
  margin: 0;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gallery-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(72, 127, 244, 0.65);
}
.gallery-card .photo-placeholder {
  aspect-ratio: 4 / 3;
}
.gallery-card__content {
  padding: 22px;
}
.gallery-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.gallery-card p {
  min-height: 3.2em;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.text-link {
  color: #cbd9f8;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.text-link b {
  margin-left: 6px;
  color: var(--accent);
}

.section--prints {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--content)) / 2));
  background: #0b0e13;
  border-block: 1px solid var(--line);
}
.print-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}
.frame {
  padding: clamp(12px, 2vw, 24px);
  background: #d8d5cf;
  border: 10px solid #1f2022;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
}
.frame .photo-placeholder {
  aspect-ratio: 4 / 3;
}
.print-card h3 {
  margin: 22px 0 4px;
  font-size: 1.25rem;
}
.print-card p,
.prints-note {
  color: var(--muted);
  font-size: 0.86rem;
}
.prints-note {
  margin: 42px 0 0;
  text-align: center;
}
.prints-note a {
  color: #bed2ff;
}

.section--about {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.about-visual .photo-placeholder {
  min-height: 580px;
}
.about-copy {
  max-width: 600px;
}
.about-copy .lead {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.35;
}
.about-copy p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.contact {
  padding: clamp(100px, 13vw, 190px) 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(34, 81, 170, 0.24), transparent 45%);
  border-top: 1px solid var(--line);
}
.contact h2 {
  max-width: 900px;
  margin: 0 auto 22px;
}
.contact > p:not(.eyebrow) {
  max-width: 670px;
  margin: 0 auto 32px;
  color: var(--muted);
}
.button-row--center {
  justify-content: center;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 80px);
  color: #838b98;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.noscript {
  margin: 0;
  padding: 12px;
  background: #fff3cd;
  color: #171717;
  text-align: center;
}

.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: #131923;
  color: rgba(255, 255, 255, 0.68);
}
.photo-placeholder::before,
.photo-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
}
.photo-placeholder::before {
  background:
    linear-gradient(145deg, rgba(35, 96, 209, 0.44), transparent 45%),
    radial-gradient(circle at 75% 25%, rgba(255, 104, 37, 0.48), transparent 35%),
    linear-gradient(180deg, #192638, #080b12);
  transform: scale(1.03);
}
.photo-placeholder::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 45%);
}
.photo-placeholder span {
  max-width: 220px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.photo-placeholder--hero::before {
  background:
    radial-gradient(circle at 72% 55%, rgba(255, 103, 37, 0.5), transparent 23%),
    linear-gradient(140deg, transparent 45%, rgba(39, 96, 213, 0.38)),
    linear-gradient(180deg, #111d2d 0%, #0d1421 42%, #05070a 100%);
}
.photo-placeholder--city::before,
.photo-placeholder--print-one::before {
  background:
    linear-gradient(150deg, rgba(15, 70, 180, 0.6), transparent 45%),
    radial-gradient(circle at 65% 60%, rgba(245, 113, 38, 0.42), transparent 22%),
    linear-gradient(#0a1425, #05070b);
}
.photo-placeholder--aviation::before,
.photo-placeholder--print-two::before {
  background: linear-gradient(165deg, #5d83b8 0%, #e39b5b 45%, #151b24 46%, #07090d 100%);
}
.photo-placeholder--landscape::before,
.photo-placeholder--print-three::before {
  background: linear-gradient(180deg, #243f69 0%, #f07137 39%, #2b3133 40%, #0c1511 100%);
}
.photo-placeholder--nature::before {
  background:
    radial-gradient(ellipse at 56% 48%, #a93dc2 0%, #74268b 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #f2b84b 0%, transparent 6%),
    linear-gradient(135deg, #10241b, #315138);
}
.photo-placeholder--about::before {
  background:
    linear-gradient(125deg, rgba(15, 58, 127, 0.55), transparent 55%),
    radial-gradient(circle at 50% 30%, rgba(244, 152, 74, 0.4), transparent 20%),
    linear-gradient(#151c27, #080a0e);
}

@media (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section--about {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
  .about-visual .photo-placeholder {
    min-height: 470px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }
  .site-header {
    padding-inline: 18px;
    background: rgba(8, 10, 14, 0.88);
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px 22px;
    background: rgba(8, 10, 14, 0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .site-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font: 400 1.7rem/1.2 var(--serif);
  }
  .hero {
    min-height: 760px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 6, 10, 0.94), rgba(4, 6, 10, 0.35)),
      linear-gradient(0deg, rgba(4, 6, 10, 0.86), transparent 55%);
  }
  .hero-content {
    width: auto;
    margin: 0 20px;
    padding-top: 85px;
    align-self: end;
    padding-bottom: 110px;
  }
  h1 {
    font-size: clamp(3.3rem, 16vw, 5.2rem);
  }
  .hero-content > p:not(.eyebrow) {
    font-size: 0.98rem;
  }
  .button-row {
    align-items: stretch;
  }
  .button {
    flex: 1 1 190px;
  }
  .section {
    width: min(100% - 32px, var(--content));
    padding-block: 82px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p {
    width: auto;
    margin-top: 18px;
  }
  .gallery-grid,
  .print-grid,
  .section--about {
    grid-template-columns: 1fr;
  }
  .gallery-card p {
    min-height: auto;
  }
  .section--prints {
    width: 100%;
    padding-inline: 16px;
  }
  .print-grid {
    gap: 48px;
  }
  .section--about {
    gap: 38px;
  }
  .about-visual .photo-placeholder {
    min-height: 430px;
  }
  .site-footer {
    display: block;
    text-align: center;
  }
  .site-footer nav {
    justify-content: center;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Photography and collection pages retain the original visual design. */
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo picture,
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 10, 0.83),
      rgba(4, 6, 10, 0.45) 38%,
      rgba(4, 6, 10, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(8, 10, 14, 0.6), transparent 50%);
}
.hero-caption {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 25px;
  color: #e8dfd2;
  font-size: 0.7rem;
  text-decoration: none;
}
.collection-cover {
  display: block;
  overflow: hidden;
}
.collection-cover img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s;
}
.collection-cover:hover img {
  transform: scale(1.035);
}
.text-link {
  text-decoration: none;
}
.frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-visual img {
  width: 100%;
  height: 580px;
  object-fit: cover;
}
.collection-intro {
  padding-top: 150px;
  padding-bottom: 50px;
}
.collection-intro h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}
.collection-intro p {
  max-width: 650px;
  color: var(--muted);
}
.collection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.collection-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.8rem;
}
.collection-tabs [aria-current="page"] {
  background: var(--accent-strong);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 24px;
  padding-top: 0;
}
.portfolio-item {
  margin: 0;
}
.portfolio-item a {
  display: block;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: #0b0e13;
}
.portfolio-item figcaption {
  padding-top: 15px;
}
.portfolio-item h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.portfolio-item p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  max-width: 620px;
}
.artistic-label {
  display: inline-block;
  margin-top: 8px;
  color: #cbb38f;
  font-size: 0.72rem;
}
.image-viewer {
  width: min(96vw, 1500px);
  max-width: none;
  border: 1px solid var(--line);
  background: #080a0e;
  color: var(--text);
  padding: 24px;
  max-height: 96vh;
}
.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.image-viewer img {
  max-height: 72vh;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}
.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.viewer-bar button {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: white;
  padding: 10px 18px;
  cursor: pointer;
}
.viewer-caption {
  color: var(--muted);
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .hero-photo img {
    object-position: 57% center;
  }
  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 6, 10, 0.95), rgba(4, 6, 10, 0.3) 70%);
  }
  .hero-caption {
    bottom: 14px;
    right: 15px;
    font-size: 0.62rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .about-visual img {
    height: 430px;
  }
  .collection-intro {
    padding-top: 120px;
  }
  .image-viewer {
    padding: 14px;
  }
  .viewer-bar button {
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .collection-cover img {
    transition: none;
  }
}

/* Image download deterrents */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
@media print {
  picture,
  img,
  .hero-photo {
    visibility: hidden !important;
  }
  body::after {
    content: "Photographs © Johann Huck. All rights reserved.";
    display: block;
  }
}

/* Contact buttons */
button[data-email-contact] {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button[data-email-contact]:not(.button) {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.contact-noscript {
  padding: 1rem 5vw;
}

/* Mobile navigation: keep the panel opaque and viewport-sized on iOS. */
@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
    background: #080a0e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav {
    z-index: 1;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: #080a0e;
    color: #f4f0e8;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .site-nav.is-open {
    pointer-events: auto;
  }
  .site-nav a {
    color: #f4f0e8;
    flex-shrink: 0;
  }
}

/* Johann Huck wordmark; paths preserve the lettering without font downloads. */
.brand-logo {
  display: block;
  width: 232px;
  height: 51px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .brand-logo {
    width: 200px;
    height: 44px;
  }
}
@media (max-width: 350px) {
  .brand-logo {
    width: 174px;
    height: 38px;
  }
}
