:root {
  color: #18242b;
  background: #f6f0e6;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  --harbor-ink: #18242b;
  --harbor-cream: #f6f0e6;
  --harbor-coral: #ed6b4f;
  --harbor-yellow: #e4b94f;
  --harbor-mint: #b8d4c4;
  --harbor-line: #b9b0a4;
  --harbor-paper: #fffaf2;
  --harbor-muted: #5d666a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--harbor-cream); }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.52; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #176c82; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; overflow: visible; padding: 10px 14px; clip-path: none; background: #fff; }

.harbor-header {
  width: min(1480px, calc(100% - 64px));
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  margin-inline: auto;
  border-bottom: 1px solid var(--harbor-ink);
}

.harbor-header nav { display: flex; gap: 34px; }
.harbor-header nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.harbor-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.access-session { justify-self: end; display: flex; gap: 10px; align-items: center; }
.access-status { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.access-status::before { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.access-status.is-logged-in::before { background: #4f8b69; }
.harbor-logout { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--harbor-muted); font-size: 0.72rem; font-weight: 700; text-underline-offset: 4px; }
.harbor-logout:hover { color: var(--harbor-ink); }

main { overflow: hidden; }
.harbor-hero, .public-market, .private-lock, .private-auctions, .deal-result, .protected-actions, .harbor-footer { width: min(1480px, calc(100% - 64px)); margin-inline: auto; }

.harbor-hero { min-height: 650px; display: grid; align-content: center; padding: 72px 0 88px; }
.harbor-hero h1 { max-width: 1180px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(5.2rem, 10vw, 10.4rem); font-weight: 400; letter-spacing: -0.075em; line-height: 0.79; }
.harbor-hero__lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.65fr); gap: clamp(48px, 9vw, 140px); align-items: end; margin-top: 72px; }
.harbor-hero__lower > p { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.38; }

.personalization-card { padding: 28px 30px; border: 1px solid var(--harbor-ink); background: var(--harbor-yellow); }
.personalization-card > span { display: block; margin-bottom: 12px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.personalization-card > strong { display: block; max-width: 460px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 400; line-height: 1.2; }
.personalization-card > p:not(.harbor-feedback) { margin: 12px 0 20px; font-size: 0.9rem; line-height: 1.55; }
.personalization-card.is-connected { min-height: 82px; display: flex; align-items: center; padding: 20px 24px; background: var(--harbor-mint); }
.personalization-card.is-connected > span { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
.personalization-card.is-connected > span::before { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-right: 14px; border: 1px solid var(--harbor-ink); border-radius: 50%; content: "✓"; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 0.9rem; font-weight: 800; }
.personalization-card.is-connected > strong,
.personalization-card.is-connected > p,
.personalization-card.is-connected > button { display: none; }
.harbor-link { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-bottom: 2px solid currentColor; background: none; color: var(--harbor-ink); font-weight: 800; text-align: left; }
.harbor-login { width: min(100%, 480px); gap: 16px; padding: 8px 0 10px; }
.harbor-login img { width: 72px; height: 48px; flex: 0 0 auto; filter: drop-shadow(1px 0 0 var(--harbor-ink)) drop-shadow(-1px 0 0 var(--harbor-ink)) drop-shadow(0 1px 0 var(--harbor-ink)) drop-shadow(0 -1px 0 var(--harbor-ink)); object-fit: contain; }
.harbor-login [data-personalize-copy] { line-height: 1.2; }
.harbor-link--dark { color: #fff; }
.harbor-feedback { min-height: 0; margin: 12px 0 0; color: #702f25; font-size: 0.84rem; line-height: 1.5; }
.harbor-feedback:empty { display: none; }

main[data-phase="connected"] .harbor-hero,
main[data-phase="offers"] .harbor-hero,
main[data-phase="completed"] .harbor-hero { min-height: auto; padding: 58px 0 70px; }
main[data-phase="connected"] .harbor-hero h1,
main[data-phase="offers"] .harbor-hero h1,
main[data-phase="completed"] .harbor-hero h1 { font-size: clamp(4rem, 7vw, 7.4rem); }
main[data-phase="connected"] .harbor-hero__lower,
main[data-phase="offers"] .harbor-hero__lower,
main[data-phase="completed"] .harbor-hero__lower { margin-top: 48px; }

.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 3.8vw, 4rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.section-heading p { margin: 8px 0 0; color: var(--harbor-muted); }
.section-heading > span { flex: 0 0 auto; padding-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.public-market { padding: 76px 0 100px; border-top: 1px solid var(--harbor-ink); }
.public-lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--harbor-ink); border-left: 1px solid var(--harbor-ink); }
.public-lot { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 0.88fr); border-right: 1px solid var(--harbor-ink); border-bottom: 1px solid var(--harbor-ink); background: var(--harbor-paper); }
.public-lot > div:last-child { min-height: 240px; display: grid; align-content: end; gap: 10px; padding: 24px; }
.public-lot small, .auction-lot small { align-self: start; margin-bottom: auto; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.public-lot strong, .auction-lot strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 400; line-height: 1.08; }
.public-lot em { font-style: normal; font-weight: 800; }

.lot-image { min-width: 0; background-repeat: no-repeat; }
.lot-image--public { min-height: 240px; background-image: url("./assets/harbor-public-lots.webp"); background-size: auto 100%; }
.lot-image--public-1 { background-position: left center; }
.lot-image--public-2 { background-position: center center; }
.lot-image--public-3 { background-position: right center; }

.private-lock { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(300px, 0.54fr); gap: 30px; align-items: center; margin-bottom: 104px; padding: 42px 46px; border: 1px solid var(--harbor-ink); background: var(--harbor-yellow); }
.private-lock__mark { position: relative; width: 42px; height: 40px; justify-self: center; margin-top: 13px; border: 2px solid var(--harbor-ink); }
.private-lock__mark::before { position: absolute; width: 23px; height: 21px; left: 50%; bottom: 100%; border: 2px solid var(--harbor-ink); border-bottom: 0; border-radius: 15px 15px 0 0; content: ""; translate: -50% 0; }
.private-lock h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.private-lock p { max-width: 720px; margin: 0; line-height: 1.55; }
.private-lock__action { justify-self: stretch; }
.private-lock button, .bid-action { width: 100%; min-height: 54px; display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 13px 18px; border: 1px solid var(--harbor-ink); background: var(--harbor-coral); color: var(--harbor-ink); font-weight: 800; text-align: left; transition: background 180ms ease, color 180ms ease; }
.private-lock button:hover, .bid-action:hover { background: var(--harbor-ink); color: #fff; }
.private-lock button:active, .bid-action:active, .harbor-link:active { opacity: 0.72; }

.private-auctions { padding: 74px 0 104px; border-top: 1px solid var(--harbor-ink); }
.section-heading--private { margin-bottom: 24px; }
.private-lots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--harbor-ink); border-left: 1px solid var(--harbor-ink); }
.auction-lot { min-width: 0; min-height: 350px; display: grid; grid-template-columns: 42% minmax(0, 1fr); border-right: 1px solid var(--harbor-ink); border-bottom: 1px solid var(--harbor-ink); background: var(--harbor-paper); }
.auction-lot--selected { position: relative; background: #fff5e7; box-shadow: inset 0 5px 0 var(--harbor-coral); }
.auction-lot__details { min-width: 0; display: flex; flex-direction: column; padding: 20px 16px; }
.auction-lot__details > strong { margin: 12px 0 18px; font-size: clamp(1.16rem, 1.5vw, 1.55rem); }
.auction-lot__details > p { margin: 14px 0; color: var(--harbor-muted); font-size: 0.78rem; line-height: 1.45; }
.auction-lot dl { margin: auto 0 0; }
.auction-lot dl div { display: grid; gap: 3px; padding: 8px 0; border-top: 1px solid var(--harbor-line); }
.auction-lot dt { color: var(--harbor-muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.auction-lot dd { margin: 0; font-size: 0.78rem; line-height: 1.35; }
.lot-image--private { background-image: url("./assets/harbor-private-lots.webp"); background-size: auto 100%; }
.lot-image--private-1 { background-position: left center; }
.lot-image--private-2 { background-position: 25% center; }
.lot-image--private-3 { background-position: center center; }
.lot-image--private-4 { background-position: 75% center; }
.lot-image--private-5 { background-position: right center; }
.bid-action { min-height: 48px; margin-top: 4px; padding: 11px 12px; font-size: 0.78rem; }

.deal-result { margin-bottom: 76px; padding: clamp(40px, 7vw, 86px); background: var(--harbor-ink); color: #fff; }
.deal-result > span { display: block; margin-bottom: 18px; color: #f1b19f; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.deal-result h2 { max-width: 980px; margin: 0 0 46px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6.5vw, 6.8rem); font-weight: 400; letter-spacing: -0.06em; line-height: 0.95; }
.deal-result h2:focus { outline: none; }
.deal-result dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 36px; border-top: 1px solid #738189; border-left: 1px solid #738189; }
.deal-result dl div { min-height: 116px; display: grid; align-content: space-between; gap: 18px; padding: 18px; border-right: 1px solid #738189; border-bottom: 1px solid #738189; }
.deal-result dt { color: #b8c5ca; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.deal-result dd { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.3; }

.protected-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-bottom: 104px; border-top: 1px solid var(--harbor-ink); border-left: 1px solid var(--harbor-ink); }
.protected-actions h2, .protected-actions > div { min-height: 98px; padding: 24px; border-right: 1px solid var(--harbor-ink); border-bottom: 1px solid var(--harbor-ink); }
.protected-actions h2 { margin: 0; background: var(--harbor-mint); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.protected-actions > div { display: grid; gap: 8px; }
.protected-actions strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 400; }
.protected-actions span { color: var(--harbor-muted); font-size: 0.78rem; line-height: 1.4; }

.harbor-footer { min-height: 180px; display: flex; justify-content: space-between; gap: 40px; align-items: center; border-top: 1px solid var(--harbor-ink); }
.harbor-footer p { max-width: 700px; margin: 0; line-height: 1.55; }
.popup-return { min-height: 100vh; display: grid; place-content: center; gap: 10px; padding: 30px; text-align: center; }
.popup-return strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.popup-return p { max-width: 430px; margin: 0; line-height: 1.55; }

@media (max-width: 1180px) {
  .private-lots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-lot--selected { grid-column: 1 / -1; }
  .auction-lot:last-child { grid-column: 1 / -1; }
  .private-lock { grid-template-columns: 70px minmax(0, 1fr); }
  .private-lock__action { grid-column: 2; }
}

@media (max-width: 900px) {
  .harbor-header { grid-template-columns: 1fr auto; }
  .harbor-header nav { display: none; }
  .harbor-hero__lower { grid-template-columns: 1fr; gap: 38px; }
  .public-lots { grid-template-columns: 1fr; }
  .public-lot { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr); }
  .deal-result dl { grid-template-columns: 1fr 1fr; }
  .protected-actions { grid-template-columns: 1fr 1fr; }
  .protected-actions h2 { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  html { scroll-behavior: auto; }
  .harbor-header, .harbor-hero, .public-market, .private-lock, .private-auctions, .deal-result, .protected-actions, .harbor-footer { width: min(100% - 32px, 1480px); }
  .harbor-header { min-height: 84px; gap: 14px; }
  .access-session { gap: 8px; }
  .access-status { font-size: 0.66rem; }
  .harbor-logout { font-size: 0.68rem; }
  .harbor-hero, main[data-phase="connected"] .harbor-hero, main[data-phase="offers"] .harbor-hero, main[data-phase="completed"] .harbor-hero { min-height: auto; padding: 58px 0 66px; }
  .harbor-hero h1, main[data-phase="connected"] .harbor-hero h1, main[data-phase="offers"] .harbor-hero h1, main[data-phase="completed"] .harbor-hero h1 { font-size: clamp(4.1rem, 22vw, 6.2rem); line-height: 0.83; }
  .harbor-hero__lower, main[data-phase="connected"] .harbor-hero__lower, main[data-phase="offers"] .harbor-hero__lower, main[data-phase="completed"] .harbor-hero__lower { margin-top: 44px; }
  .personalization-card { padding: 23px 20px; }
  .harbor-link { width: 100%; justify-content: space-between; }
  .harbor-login { gap: 12px; }
  .harbor-login img { width: 64px; height: 43px; }
  .section-heading { align-items: start; }
  .section-heading > span { display: none; }
  .public-market { padding: 60px 0 76px; }
  .public-lot { grid-template-columns: 46% minmax(0, 1fr); }
  .public-lot > div:last-child { min-height: 170px; padding: 18px 16px; }
  .lot-image--public { min-height: 170px; }
  .private-lock { grid-template-columns: 1fr; gap: 22px; margin-bottom: 76px; padding: 34px 24px; }
  .private-lock__mark { justify-self: start; margin: 10px 0 0 7px; }
  .private-lock__action { grid-column: 1; }
  .private-auctions { padding: 60px 0 76px; }
  .private-lots { grid-template-columns: 1fr; }
  .auction-lot, .auction-lot:last-child { grid-column: auto; min-height: 330px; }
  .deal-result { margin-bottom: 62px; padding: 40px 22px; }
  .deal-result dl { grid-template-columns: 1fr; }
  .protected-actions { grid-template-columns: 1fr; margin-bottom: 76px; }
  .protected-actions h2 { grid-column: auto; }
  .protected-actions h2, .protected-actions > div { min-height: auto; padding: 21px 18px; }
  .harbor-footer { min-height: 230px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
}

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

/* Standalone/mobile safe areas, including landscape cutouts and the home indicator. */
html { min-height: 100%; background: var(--harbor-cream); }
body { min-height: 100dvh; }
.harbor-header,
.harbor-hero,
.public-market,
.private-lock,
.private-auctions,
.deal-result,
.protected-actions,
.harbor-footer {
  width: auto;
  max-width: 1480px;
  margin-right: max(32px, env(safe-area-inset-right, 0px));
  margin-left: max(32px, env(safe-area-inset-left, 0px));
}
.harbor-header {
  min-height: calc(104px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.harbor-footer {
  min-height: calc(180px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.popup-return {
  min-height: 100dvh;
  padding: max(30px, env(safe-area-inset-top, 0px)) max(30px, env(safe-area-inset-right, 0px)) max(30px, env(safe-area-inset-bottom, 0px)) max(30px, env(safe-area-inset-left, 0px));
}
@media (max-width: 620px) {
  .harbor-header,
  .harbor-hero,
  .public-market,
  .private-lock,
  .private-auctions,
  .deal-result,
  .protected-actions,
  .harbor-footer {
    width: auto;
    margin-right: max(16px, env(safe-area-inset-right, 0px));
    margin-left: max(16px, env(safe-area-inset-left, 0px));
  }
  .harbor-header { min-height: calc(84px + env(safe-area-inset-top, 0px)); }
  .harbor-footer { min-height: calc(230px + env(safe-area-inset-bottom, 0px)); }
}
