#top .mast,#top .work{width:min(1320px,94%);margin-inline:auto}
#top .mast{position:relative;isolation:isolate;overflow:hidden;border-radius:20px;min-height:clamp(520px,72vh,790px);display:grid;align-items:end;background:#182630;color:white}
.mast-sea,.mast:after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-2}
.mast:after{content:"";z-index:-1;background:linear-gradient(90deg,#101922dc,transparent 85%),linear-gradient(0deg,#101922a8,transparent 55%)}
.mast-copy{padding:clamp(24px,5vw,78px);max-width:700px}
#top .mast-copy h1{font-size:clamp(44px,5.45vw,84px);line-height:.99;letter-spacing:-.05em;margin:16px 0;color:white}
.mast-copy p{font-size:16px;color:white}.intro{max-width:32em;line-height:1.5;color:white}
.actions,.work-head,.storage{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.actions{margin-top:26px}.actions a{color:white;padding:12px 0;font-weight:650}.actions a:first-child{background:white;color:#123752;border-radius:10px;padding:14px 20px}
#top .work{padding-block:clamp(45px,6vw,94px);scroll-margin-top:100px}
.work-head,.storage{justify-content:space-between}.work-head{margin-bottom:24px}
#top .work h2{font-size:clamp(28px,3.25vw,53px);letter-spacing:-.04em;margin:0}
.jobs{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(10px,1vw,16px)}
.jobs article{grid-column:span 4}.jobs article:nth-child(-n+2){grid-column:span 6}
@media(min-width:701px){.jobs article:nth-child(n+3) img{height:clamp(205px,19vw,290px)}}
.jobs img{display:block;width:100%;height:clamp(250px,25vw,380px);object-fit:cover;border-radius:16px}
#top .jobs h3{font-size:clamp(22px,2.02vw,33px);letter-spacing:-.035em;margin:16px 0 6px}
.jobs p{max-width:52ch;margin:0 0 8px}.work a{color:inherit;text-decoration:underline;text-underline-offset:.24em;display:inline-block;padding-block:10px;font-weight:650}
.storage{margin-top:32px;border-top:1px solid currentColor;padding-block:18px}.storage span{font-weight:700}
@media(max-width:700px){#top .mast,#top .work{width:92%}#top .mast{min-height:550px}.mast-sea{height:55%}.mast:after{background:linear-gradient(0deg,#182630 43%,transparent 75%)}.mast-copy{padding:20px}.jobs{display:block}.jobs article+article{margin-top:12px}.jobs img{height:auto;aspect-ratio:3/2}.actions{gap:12px}.work-head{gap:4px}}

.mast-sea { overflow: hidden; pointer-events: none; }
.mast-sea picture { position: absolute; inset: 0; display: block; }
.mast-sea img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
}
@media (max-width: 700px) {
  .mast-sea { mask-image: linear-gradient(to bottom, black 70%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  .mast-sea img { animation: yacht-glide 7s ease-in-out infinite alternate-reverse both paused; }
  .mast-sea.in-view img { animation-play-state: running; }
  @keyframes yacht-glide {
    from { transform: scale(1.024); }
    to { transform: scale(1.105); }
  }
}

#top .mast-copy h1, #top .work h2, #top .jobs h3 {font-weight:600}
.jobs details {position:relative}
.jobs summary {cursor:pointer;list-style:none}
.jobs summary::-webkit-details-marker {display:none}
#top .jobs summary h3 {margin:0}
.job-photo {display:block;overflow:hidden;border-radius:16px}
.job-title {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 6px}
.job-title::after {content:"";width:9px;height:9px;flex:none;margin-inline-end:5px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
details[open] .job-title::after {transform:rotate(225deg)}
.job-info {background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:16px}
.job-info p {margin:0}
@media(min-width:701px) {
  .job-info {position:absolute;right:12px;bottom:3.6em;width:min(72%,340px);box-sizing:border-box}
}
@media(prefers-reduced-motion:no-preference) {
  .job-photo img {transition:transform 300ms ease-out}
  details[open] .job-photo img {transform:scale(1.055)}
  details[open] .job-info {animation:job-detail-in 220ms ease-out 120ms backwards}
  details:has(summary:focus-visible) .job-info {animation:none}
  @keyframes job-detail-in {from {opacity:0;transform:translateY(5px)}}
}

/* The photo and its disclosure share one surface, even when open on mobile. */
.jobs article {min-width:0;align-self:start}
.jobs details {background:var(--soft);border-radius:18px}
.jobs .job-photo {border-radius:18px 18px 0 0}
.jobs .job-title {min-height:60px;box-sizing:border-box;padding:14px clamp(14px,2vw,26px);gap:18px}
.jobs .job-title::after {color:var(--accent)}
.jobs summary:focus-visible {outline:2px solid var(--accent);outline-offset:3px;border-radius:18px}
@media(max-width:700px) {
  .jobs .job-info {background:transparent;border:0;box-shadow:none;padding:0 14px 12px}
}
.actions a:first-child {position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;gap:12px}
.actions .action-arrow {font-weight:500}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .actions a:first-child::before {
    content:"";position:absolute;inset:0 auto 0 0;width:56%;z-index:-1;pointer-events:none;
    background:linear-gradient(105deg,transparent,rgba(67,151,196,.25),transparent);
    transform:translateX(-110%);
  }
  .actions a:first-child:hover::before {animation:action-glint 550ms ease-out}
  @keyframes action-glint {to {transform:translateX(200%)}}
}

#top .pier-contact{position:relative;isolation:isolate;width:min(1320px,94%);min-height:clamp(310px,32vw,480px);margin:0 auto clamp(40px,6vw,88px);border-radius:18px;overflow:hidden;display:grid;align-items:end;background:#142733;scroll-margin-top:100px}
.pier-contact img,.pier-contact::after{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover;object-position:74% 53%}
.pier-contact::after{content:"";z-index:-1;background:linear-gradient(90deg,#101d29da,transparent 74%),linear-gradient(0deg,#101d298c,transparent 48%)}
.pier-contact>div{padding:clamp(24px,4vw,60px)}
#top .pier-contact h2{color:#fff;font-size:clamp(28px,3.2vw,50px);line-height:1.06;letter-spacing:-.04em;margin:0 0 18px}
#top .pier-contact .button{display:inline-flex;gap:.7em;align-items:center;background:white;color:#153349;border:0;border-radius:10px;padding:12px 20px;min-height:46px}
@media(max-width:700px){#top .pier-contact{width:92%}.pier-contact img{object-position:75% 45%}.pier-contact::after{background:linear-gradient(0deg,#101d29df,transparent 80%)}}

.mast .hero-choice {
  position:absolute; top:14px; right:14px; z-index:2; display:flex; align-items:center;
  gap:3px; padding:4px; border-radius:14px; color:white; background:#132630ed;
}
.hero-choice span { padding:0 8px; font-size:14px; }
.mast .hero-choice button { font:inherit; font-weight:600; cursor:pointer; color:white;
  background:transparent; border:0; border-radius:10px; min-width:44px; min-height:44px; }
.mast .hero-choice button[aria-pressed=true] {background:white;color:#153349;}
