:root {
  --night: #0a181e;
  --chalk: #faf3e8;
  --muted: #b9c9c9;
  --gold: #e3c49a;
  --jade: #183e41;
  --line: #335056;
  --ink: #162c31;
  --paper: #f6f1e8;
  --cut: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px),
    calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--chalk);
  background:
    radial-gradient(ellipse at 72% 3%, #204348 0, transparent 58rem),
    radial-gradient(circle, #567a7950 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--night);
}
img, svg { display: block; }
button, input, textarea { font: inherit; }
p, h1, h2, figure { margin: 0; }
.frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
:focus-visible { outline: 3px solid #f4cf93; outline-offset: 5px; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { padding-block: 24px 20px; border-bottom: 1px solid var(--line); }
.site-header nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nav-link { position: relative; min-width: 0; color: var(--chalk); text-decoration: none; }
.nav-link::before {
  position: absolute;
  inset: 5px 0 -4px;
  content: "";
  background: linear-gradient(#3b5755, #0b1319);
  clip-path: var(--cut);
}
.nav-face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  height: 100%;
  padding: 10px 16px;
  isolation: isolate;
  font-size: 16px;
  font-weight: 650;
  background: linear-gradient(122deg, #c8a576, #526865 31%, #547875 75%, #c8a576);
  clip-path: var(--cut);
  transition: transform 150ms ease, filter 160ms ease;
}
.nav-face::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  content: "";
  background:
    linear-gradient(135deg, transparent 40%, #73958f4f 42% 44%, transparent 46%) right 4px top 4px / 19px 19px no-repeat,
    linear-gradient(122deg, #233f43, #101f26);
  clip-path: var(--cut);
}
.nav-face::after {
  position: absolute;
  content: "";
  width: 22px;
  height: 2px;
  right: 15px;
  bottom: 6px;
  background: #8e8066;
  box-shadow: 4px -4px #8e806670;
}
.nav-face svg { flex: 0 0 25px; width: 25px; height: 25px; color: var(--gold); }
.nav-link[aria-current="page"] .nav-face { background: linear-gradient(115deg, #ecd0a1, #b37a55, #ecd0a1); }
.nav-link[aria-current="page"] .nav-face::before { background: linear-gradient(122deg, #713e38, #392a2c); }
@media (hover: hover) {
  .nav-link:hover .nav-face { transform: translateY(-2px); filter: brightness(1.14); }
}
.nav-link:active .nav-face { transform: translateY(4px) scale(.983); filter: brightness(.88); }
.nav-link.is-releasing .nav-face { animation: release 240ms cubic-bezier(.3,.66,.36,1) both; }
@keyframes release {
  0% { transform: translateY(4px) scale(.983); filter: brightness(.88); }
  54% { transform: translateY(-4px) scale(1.012); filter: brightness(1.26); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

.home-main {
  --harbour-height: 540px;
  --art-overlap: 82px;
  position: relative;
  isolation: isolate;
  padding-bottom: 76px;
}
.home-main::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--harbour-height);
  content: "";
  background: url(harbour-grid.svg) center top / auto 100% no-repeat;
  pointer-events: none;
}
.hero {
  display: grid;
  place-items: center;
  min-height: calc(var(--harbour-height) - var(--art-overlap));
  padding: 26px 12px 76px;
  text-align: center;
}
.hero h1 {
  color: #fff1d8;
  font-size: clamp(3.1rem, 10.6vw, 8.2rem);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-shadow: 0 4px 4px #07181b, 0 10px 34px #040c12, 0 0 42px #0b2025;
}
.gallery-shell { max-width: 842px; margin-inline: auto; }
.gallery-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shot {
  position: relative;
  min-width: 0;
  padding: 8px;
  background: linear-gradient(150deg, #365456, #112329 48%, #1c3036);
  border: 1px solid #536b64;
  border-radius: 4px;
}
.shot::before, .shot::after { position: absolute; content: ""; width: 26px; height: 26px; pointer-events: none; }
.shot::before { top: 0; left: 0; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.shot::after { right: 0; bottom: 0; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.shot img { width: 100%; height: auto; aspect-ratio: 1179 / 2556; background: #091923; }
.gallery-controls { display: none; }
.gallery-controls button, .send-button, .success-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid #507470;
  border-radius: 3px;
  background: var(--jade);
  color: white;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.gallery-controls button:hover, .send-button:hover, .success-dialog button:hover { background: #265355; }
.gallery-controls button:active, .send-button:active, .success-dialog button:active { transform: translateY(2px); }
.gallery-controls button { width: 52px; }
.gallery-controls button svg, .send-button svg { width: 22px; height: 22px; }
.gallery-controls button:disabled { opacity: .42; cursor: default; }

.paper {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9aa94;
  border-top: 3px solid #ae7951;
  border-radius: 4px;
  box-shadow: 0 16px 42px #060e1570;
}
.legal-main { width: min(820px, calc(100% - 64px)); padding: 52px 0 64px; }
.legal-content { padding: clamp(24px, 6vw, 64px); }
.legal-content h1, .company-details h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.legal-content h1 { margin-bottom: 28px; }
.legal-content h2 { margin: 32px 0 12px; padding-top: 22px; border-top: 1px solid #cbbfae; font-size: 1.32rem; line-height: 1.34; }
.legal-content p { margin-bottom: 14px; font-size: 1.07rem; line-height: 1.72; overflow-wrap: anywhere; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-email, .contact-email { font-weight: 650; }

.contact-main { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 60px 0 76px; }
.company-details { padding: 22px 0 0; }
.company-details h1::after { display: block; width: 52px; height: 2px; margin: 24px 0; background: var(--gold); content: ""; }
.contact-email { color: var(--gold); font-size: clamp(1.12rem, 2.5vw, 1.42rem); overflow-wrap: anywhere; }
.form-panel { padding: clamp(22px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { min-width: 0; margin-bottom: 19px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 650; }
.form-field input, .form-field textarea {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid #758986;
  border-radius: 3px;
  background: #fffcf7;
  color: var(--ink);
}
.form-field :is(input, textarea):focus-visible { outline-color: #276764; outline-offset: 2px; }
.form-field textarea { min-height: 125px; resize: vertical; }
.form-field [aria-invalid="true"] { border-color: #a62b31; }
.field-error { margin-top: 6px; font-size: .94rem; line-height: 1.4; color: #9d202b; }
.field-error:empty { display: none; }
.send-button { min-width: 172px; gap: 16px; padding: 9px 17px; }
.success-dialog {
  width: min(360px, calc(100vw - 36px));
  padding: 32px 24px;
  border: 1px solid #aa926f;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.success-dialog::backdrop { background: #07151bc4; }
.success-dialog > svg { width: 48px; height: 48px; color: #32645e; margin: 0 auto 17px; }
.success-dialog h2 { font-size: 1.42rem; margin-bottom: 24px; }
.success-dialog button { min-width: 132px; padding: 8px 22px; }
.success-dialog button:focus-visible, .send-button:focus-visible { outline-color: #276764; outline-offset: 3px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 23px 0 26px; color: var(--muted); }
.site-footer p { text-align: center; font-size: .88rem; line-height: 1.6; }
@media (max-width: 900px) {
  .site-header nav { gap: 9px; }
  .nav-face { gap: 8px; padding-inline: 10px; font-size: .9rem; }
  .nav-face svg { flex-basis: 21px; width: 21px; height: 21px; }
  .contact-main { gap: 28px; }
  .form-row { display: block; }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 36px); }
  .site-header { padding-block: 16px 17px; }
  .site-header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav-face { padding-inline: 10px; min-height: 50px; gap: 7px; }
  .nav-face::after { width: 12px; right: 10px; bottom: 4px; }
  .home-main { --harbour-height: 374px; --art-overlap: 100px; padding-bottom: 40px; }
  .hero { padding: 24px 8px 48px; }
  .gallery-controls { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
  .gallery-grid {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 100%; padding: 6px; scroll-snap-align: start; scroll-snap-stop: always; }
  .legal-main { padding: 27px 0 38px; }
  .legal-content p { font-size: 1rem; }
  .legal-content h2 { margin-top: 24px; padding-top: 19px; }
  .contact-main { display: block; padding: 29px 0 42px; }
  .company-details { padding: 0 0 24px; }
  .company-details h1::after { margin: 16px 0; }
  .send-button { width: 100%; }
  .site-footer { padding: 18px 0 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
