/* Giovanni Joson, djgiovanni-official.com */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/BigShouldersDisplay-Black.woff2") format("woff2"),
       url("../fonts/BigShouldersDisplay-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Regular.woff2") format("woff2"),
       url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2"),
       url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070504;
  --ink: #F4ECE2;
  --cream: #EFE4D7;
  --body: #D9CCBE;
  --mute: #9C8B7C;
  --acc: #E0621B;
  --panel: #15100C;
  --panel-2: #120D0A;
  --line: #2A1F18;
  --line-2: #3A2E26;
  --header-h: 4.5rem;
  --wrap: 76rem;
  --pad: clamp(1.25rem, 4.2vw, 2.85rem);
  --radius: 0.7rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100%;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 900;
}

::selection {
  background: var(--acc);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 80;
  background: var(--acc);
  color: var(--bg);
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-radius: 0.4rem;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
  outline: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.display {
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.acc {
  color: var(--acc);
}

.label,
.sec-k {
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sec-k {
  color: var(--acc);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.label {
  font-size: 0.72rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn.solid {
  background: var(--acc);
  color: var(--bg);
  border: 1px solid var(--acc);
}

.btn.solid:hover {
  background: #f07028;
  border-color: #f07028;
}

.btn.ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 52;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 5, 4, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  z-index: 52;
}

.nav-links {
  display: none;
  gap: 1.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

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

.nav-links a.acc:hover {
  color: #f07028;
}

.menu-toggle {
  position: relative;
  z-index: 52;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.38rem;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 1.15rem;
  transition: transform 0.3s var(--ease), width 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle span:nth-child(2) {
  width: 0.85rem;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.23rem) rotate(45deg);
  width: 1.15rem;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-0.23rem) rotate(-45deg);
  width: 1.15rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 51;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem var(--pad) 2.5rem;
  transform: translateY(-2%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s, transform 0.35s var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mobile-nav a {
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.mobile-nav a:last-of-type {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.mobile-nav .mobile-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

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

  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #120a06;
}

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

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 22%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 4, 0.55) 0%, rgba(7, 5, 4, 0) 26%, rgba(7, 5, 4, 0) 45%, rgba(7, 5, 4, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 5, 4, 0.35) 0%, rgba(7, 5, 4, 0) 42%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad) clamp(2.2rem, 6vw, 4.2rem);
}

.hero-kicker {
  color: var(--cream);
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
}

.hero h1 {
  font-size: clamp(3.15rem, 11vw, 7.15rem);
  max-width: 14ch;
}

.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 599px) {
  .hero-cta {
    flex-direction: column;
    max-width: 20rem;
  }
}

/* Now sailing */

.sailing-band {
  background: var(--acc);
  color: var(--bg);
}

.sailing-band-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-block: 1.15rem;
}

.sailing-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sailing-left .label {
  color: var(--bg);
  font-size: 0.68rem;
}

.sailing-left .display {
  font-size: clamp(1.85rem, 5.5vw, 2.7rem);
  line-height: 0.9;
}

.sailing-right {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
}

@media (min-width: 760px) {
  .sailing-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.25rem;
  }

  .sailing-left {
    flex-direction: row;
    align-items: baseline;
    gap: 1.15rem;
  }

  .sailing-right {
    text-align: right;
  }
}

.sailing-copy {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(3.2rem, 8vw, 6.5rem);
}

.sailing-copy h2 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  max-width: 12ch;
}

.sailing-copy p {
  color: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  max-width: 36rem;
  align-self: end;
}

@media (min-width: 860px) {
  .sailing-copy {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
  }
}

/* Gallery */

.gallery {
  padding-bottom: clamp(3.2rem, 8vw, 6.5rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-top: 0.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #120a06;
  cursor: zoom-in;
  padding: 0;
  width: 100%;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.gallery-item:focus-visible {
  outline-offset: 2px;
}

/* Default tall/square rhythm */
.gallery-item[data-shot="05"],
.gallery-item[data-shot="06"],
.gallery-item[data-shot="01"],
.gallery-item[data-shot="04"] {
  aspect-ratio: 3 / 4;
}

.gallery-item[data-shot="03"],
.gallery-item[data-shot="09"],
.gallery-item[data-shot="10"],
.gallery-item[data-shot="studio"] {
  aspect-ratio: 1 / 1;
}

.pos-01 { object-position: 48% 52%; }
.pos-03 { object-position: 64% 40%; }
.pos-04 { object-position: 50% 42%; }
.pos-05 { object-position: 34% 22%; }
.pos-06 { object-position: 40% 42%; }
.pos-09 { object-position: 62% 58%; }
.pos-10 { object-position: 50% 55%; }
.pos-studio { object-position: 52% 28%; }
.pos-studio-press { object-position: 50% 16%; }

@media (min-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    grid-template-areas:
      "a c e g"
      "a c e g"
      "a d e h"
      "b d f h"
      "b d f h";
  }

  .gallery-item[data-shot="05"] { grid-area: a; aspect-ratio: auto; min-height: 0; }
  .gallery-item[data-shot="03"] { grid-area: b; aspect-ratio: auto; }
  .gallery-item[data-shot="studio"] { grid-area: c; aspect-ratio: auto; }
  .gallery-item[data-shot="09"] { grid-area: d; aspect-ratio: auto; }
  .gallery-item[data-shot="06"] { grid-area: e; aspect-ratio: auto; }
  .gallery-item[data-shot="10"] { grid-area: f; aspect-ratio: auto; }
  .gallery-item[data-shot="01"] { grid-area: g; aspect-ratio: auto; }
  .gallery-item[data-shot="04"] { grid-area: h; aspect-ratio: auto; }
}

/* Press + booking */

.press-book {
  padding-block: clamp(3.2rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.press-book-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .press-book-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.press h2 {
  font-size: clamp(3rem, 8vw, 4.6rem);
  max-width: 12ch;
  margin-top: 0.5rem;
}

.press-bio {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 36rem;
}

.press-source {
  color: var(--mute);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 0.7rem;
}

.press-portrait {
  margin-top: 1.75rem;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #120a06;
  aspect-ratio: 2.35 / 1;
}

.press-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}

.book-panel {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.book-panel h2 {
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  margin: 0.4rem 0 0.85rem;
}

.book-note {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.field {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line-2);
  padding: 0.95rem 0 0.65rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0;
}

.field::placeholder {
  color: var(--mute);
  letter-spacing: 0.02em;
}

.field:focus {
  outline: none;
  border-bottom-color: var(--acc);
}

textarea.field {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.5;
}

.form-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.form-status {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status p {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.draft {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  color: var(--cream);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.9rem;
  max-height: 12rem;
  overflow: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem 1.6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-name {
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer-handle {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.footer-handle:hover {
  color: var(--acc);
}

.footer-credit {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--mute);
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 5, 4, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(100%, 92vw);
  max-height: min(88svh, 88vh);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: var(--pad);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.2rem;
}

.lightbox-close:hover {
  color: var(--acc);
}

/* 404 */

.page-404 {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-404-bg {
  position: absolute;
  inset: 0;
}

.page-404-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  filter: brightness(0.5);
}

.page-404-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 4, 0.55) 0%, rgba(7, 5, 4, 0.2) 40%, rgba(7, 5, 4, 0.92) 100%);
}

.page-404 .wrap {
  position: relative;
  z-index: 1;
}

.page-404 h1 {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  max-width: 12ch;
  margin: 0.6rem 0 1.2rem;
}

.page-404 p {
  color: var(--body);
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

/* Locked scroll when overlays open */

body.is-locked {
  overflow: hidden;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: none;
  }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 860px) {
  .gallery-grid {
    min-height: min(92vh, 58rem);
    grid-auto-rows: 1fr;
  }

  .gallery-item {
    height: 100%;
    min-height: 0;
  }
}


/* Gallery columns: even 3:4 tiles on small screens, masonry columns from 860px */

.gallery-item picture {
  position: absolute;
  inset: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gallery-col {
  display: contents;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #120a06;
  cursor: zoom-in;
  padding: 0;
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
}

.gallery-item[data-shot="05"],
.gallery-item[data-shot="06"],
.gallery-item[data-shot="01"],
.gallery-item[data-shot="04"],
.gallery-item[data-shot="03"],
.gallery-item[data-shot="09"],
.gallery-item[data-shot="10"],
.gallery-item[data-shot="studio"] {
  aspect-ratio: 3 / 4;
}

@media (min-width: 860px) {
  .gallery-grid {
    display: flex;
    gap: 0.75rem;
    min-height: 0;
    grid-template-areas: none;
    grid-auto-rows: auto;
  }

  .gallery-col {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
  }

  .gallery-item {
    height: auto;
  }

  .gallery-item[data-shot="05"],
  .gallery-item[data-shot="06"],
  .gallery-item[data-shot="01"],
  .gallery-item[data-shot="04"] {
    aspect-ratio: 3 / 4;
  }

  .gallery-item[data-shot="03"],
  .gallery-item[data-shot="09"],
  .gallery-item[data-shot="10"],
  .gallery-item[data-shot="studio"] {
    aspect-ratio: 1 / 1;
  }
}

#gallery,
#press,
#book,
#now {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

@media (max-width: 599px) {
  .hero-copy {
    padding-bottom: 2.6rem;
  }

  .hero-cta {
    max-width: none;
  }

  .hero-cta .btn,
  .form-actions .btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 860px) {
  .page-404-bg img,
  .page-404-bg img.pos-01,
  .page-404-bg img.pos-404 {
    object-position: 82% 80%;
  }
}

.nowrap { white-space: nowrap; }
