/* Island Gardens demo additions on top of the shared check-in styles */
:root { --hb: #2c4f9b; --hbd: #23408a; }
#track { height: 1900vh; }
html, body { background: #9cc4e4; }

/* nav */
.nav .brand img { height: 30px; display: block; }
.nav .for { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); font-size: 13px; color: var(--navy); box-shadow: 0 8px 24px -14px rgba(11, 37, 69, .6); }
.nav .for i { font: 500 9.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--dim); }
.nav .for img { height: 18px; }
.nav .btn { margin-left: auto; }

/* hero */
#hero { max-width: 760px; top: 14vh; }
#hero h1 { font-size: clamp(34px, 4.6vw, 66px); }
#hero .lede { max-width: 50ch; color: #22374f; }
#hero::before { inset: -60px -110px -50px -140px; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62) 58%, rgba(255, 255, 255, 0)); }

#caption { transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1), top .5s; }
#caption.low { top: auto; bottom: 96px; }

#fade { position: fixed; inset: 0; z-index: 9; background: #f4f8fc; opacity: 0; pointer-events: none; }

/* 3D-anchored labels */
#tags { position: fixed; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; display: grid; justify-items: center; white-space: nowrap; will-change: transform, opacity; }
.tag.crew b { padding: 7px 13px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 26px -10px rgba(11, 37, 69, .8); }
.tag.crew small { margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; color: var(--dim); }
.tag.crew::after { content: ""; width: 1.5px; height: 14px; background: linear-gradient(var(--navy), transparent); }
.tag.hub { padding: 10px 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px -14px rgba(11, 37, 69, .7); gap: 4px; }
.tag.hub img { height: 20px; }
.tag.hub small { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hb); }

/* phone: real Harbor check-in form */
.scr.form.real { padding: 0; background: #f3f6fc; display: block; }
.real .scroller { padding: 46px 10px 14px; transform: translateY(var(--scroll, 0px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.h-head { display: grid; justify-items: center; gap: 3px; padding: 16px 10px 16px; border-radius: 16px; background: var(--hb); color: #fff; text-align: center; }
.h-head .tile { width: 44px; height: 44px; border-radius: 11px; background: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.h-head .tile img { height: 28px; }
.h-head b { font-size: 17px; }
.h-head small { font-size: 10.5px; opacity: .88; }
.h-card { margin-top: 10px; padding: 12px 10px; border-radius: 16px; background: #fff; border: 1px solid #dfe6f2; display: grid; gap: 9px; }
.h-card .cap { font: 600 8.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b7686; }
.h-card .field { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s; border-bottom: 0; padding: 0; }
.h-card .sel { padding: 11px 12px; border: 1px solid #e3e8f1; border-radius: 12px; font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; }
.h-card .sel i { font-style: normal; color: #6b7686; }
.h-card .box { padding: 10px; border: 1px solid #e9edf4; border-radius: 12px; }
.h-card .lab { display: block; font-size: 11px; color: #5d6a7c; margin-bottom: 6px; } .h-card .lab em, .h-card .strong em { font-style: normal; color: #9aa5b5; font-weight: 400; }
.h-card .lab.strong { font-weight: 600; color: #1d2633; font-size: 12px; }
.co { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--hb); border-radius: 10px; background: #f6f9fe; }
.co .av { width: 28px; height: 28px; border-radius: 7px; background: #0b5fa5; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.co b { display: block; font-size: 11.5px; } .co small { font-size: 9.5px; color: #5d6a7c; } .co a { margin-left: auto; color: var(--hb); font-weight: 600; font-size: 10.5px; }
.svc { display: grid; grid-template-columns: 50px 1fr; gap: 6px; } .svc .lab { margin: 4px 0 0; } .svc small { display: block; font-size: 9px; line-height: 1.35; color: #7b8798; }
.chip { display: inline-block; margin-top: 6px; padding: 5px 9px; border-radius: 7px; background: #e6eefb; color: var(--hbd); font-size: 11px; font-weight: 500; }
.ins { border: 1px solid #d5e0f2; border-radius: 12px; overflow: hidden; }
.ins .top { padding: 10px; background: #f3f7fd; display: grid; grid-template-columns: 1fr auto; gap: 3px; font-size: 11.5px; } .ins .top span { font-size: 9.5px; color: #5d6a7c; font-weight: 600; } .ins .top small { grid-column: 1 / -1; font-size: 9px; color: #6b7686; }
.ins .doc { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 7px; padding: 9px 10px; background: #fff; }
.ins .sh { width: 26px; height: 26px; border-radius: 50%; background: #e6eefb; color: var(--hb); display: grid; place-items: center; font-size: 13px; }
.ins .doc b { display: block; font-size: 10.5px; } .ins .doc small { font-size: 8.5px; color: #6b7686; }
.ins .doc em { font-style: normal; font-size: 7.5px; font-weight: 700; letter-spacing: .06em; color: #b06a17; background: #fdf1e0; padding: 3px 6px; border-radius: 999px; }
.ins .doc i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #2f9e58; color: #2f9e58; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.ta { padding: 9px 10px; min-height: 40px; border-radius: 10px; background: #f3f6fc; font-size: 11px; color: #3c4858; }
#phone[data-fill="1"] .h-card .field:nth-of-type(-n+1), #phone[data-fill="2"] .h-card .field:nth-of-type(-n+2), #phone[data-fill="3"] .h-card .field:nth-of-type(-n+3),
#phone[data-fill="4"] .h-card .field:nth-of-type(-n+4), #phone[data-fill="5"] .h-card .field:nth-of-type(-n+5) { opacity: 1; transform: none; }
.real .cta-btn { margin-top: 4px; padding: 12px; border-radius: 999px; background: var(--hb); box-shadow: none; font-size: 13.5px; }
#phone.pressed .real .cta-btn { background: var(--hbd); }
.scr.ok small { letter-spacing: .06em; }

/* office dashboard */
#dash { position: fixed; z-index: 11; left: 50%; top: 52%; width: min(880px, 94vw); opacity: 0; transform: translate(-50%, -50%) scale(.5); pointer-events: none;
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px -30px rgba(11, 37, 69, .75), 0 0 0 1px rgba(11, 37, 69, .12); }
#dash .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9eef5; font: 500 11px var(--mono); color: #5d6a7c; }
#dash .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c9d2de; } #dash .chrome span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; background: #fff; }
#dash .shot { position: relative; max-height: min(64vh, 620px); overflow: hidden; }
#dash .shot img { display: block; width: 100%; }
#dash .hl { position: absolute; left: 6.2%; top: 23.4%; width: 87.2%; height: 9.6%; border-radius: 14px; box-shadow: 0 0 0 0 rgba(44, 79, 155, 0); transition: box-shadow .4s; }
#dash.new .hl { animation: ring 1.2s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 2px rgba(44, 79, 155, .55), 0 0 0 8px rgba(44, 79, 155, .12); } 50% { box-shadow: 0 0 0 2px rgba(44, 79, 155, .9), 0 0 0 16px rgba(44, 79, 155, .0); } }
#dash .ok1, #dash .ok2 { position: absolute; opacity: 0; transition: opacity .3s; display: flex; align-items: center; }
#dash .ok1 { left: 33.3%; top: 25.4%; width: 8.4%; height: 3.3%; background: #e8f6ec; color: #2f9e58; font-size: clamp(8px, 1.15vw, 11.500px); font-weight: 600; justify-content: center; border-radius: 999px; box-shadow: 0 0 0 3px #fff; }
#dash .ok2 { left: 46%; top: 25%; width: 43.5%; height: 6.4%; background: #fff; justify-content: flex-end; padding-right: 2%; color: #2f9e58; font-weight: 700; font-size: clamp(10px, 1.4vw, 14px); }
#dash.approved .ok1, #dash.approved .ok2 { opacity: 1; }
#cursor { position: absolute; width: 22px; height: 22px; margin: -2px 0 0 -2px; opacity: 0; transition: transform .15s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.500 1.800L16 20l-3 1.500-3.600-7.300L4 19z' fill='%23111' stroke='%23fff' stroke-width='1.500'/%3E%3C/svg%3E") no-repeat center / contain; }
#cursor.click { transform: scale(.78); }

/* directory + profile panels */
#directory, #profile { position: fixed; z-index: 11; right: clamp(16px, 4vw, 64px); top: 50%; width: min(520px, calc(100vw - 32px)); padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 40px 100px -30px rgba(11, 37, 69, .7); opacity: 0; transform: translate(40px, -50%); pointer-events: none; transition: opacity .45s, transform .7s cubic-bezier(.16, 1, .3, 1); }
#directory.on, #profile.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
#directory .k { font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--hb); }
#directory h3 { margin: 8px 0 12px; font-size: 22px; letter-spacing: -.02em; }
#directory img { display: block; width: 100%; border-radius: 12px; border: 1px solid #dfe6f2; }
#directory p { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
#profile { padding: 0; overflow: hidden; width: min(600px, calc(100vw - 32px)); }
#profile-cover { height: 150px; background: #5f8fc4 center 58% / cover; }
.p-head { display: flex; align-items: center; gap: 14px; padding: 0 20px 14px; border-bottom: 1px dashed #dfe6f2; margin-bottom: 4px; }
.p-head .logo-c { width: 70px; height: 70px; margin-top: -24px; border-radius: 50%; background: #fff; border: 1px solid #dfe6f2; display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(11, 37, 69, .5); } .p-head .logo-c img { height: 40px; }
.p-head b { display: block; font-size: 21px; letter-spacing: -.02em; margin-top: 10px; } .p-head small { color: var(--dim); font-size: 12.500px; }
.p-btn { margin-left: auto; margin-top: 10px; padding: 9px 18px; border-radius: 999px; background: var(--hb); color: #fff; font-weight: 600; font-size: 13px; }
#profile .tabs { display: flex; gap: 22px; padding: 10px 20px 0; font-size: 13px; font-weight: 600; color: #5d6a7c; border-bottom: 1px solid #e9edf4; } #profile .tabs span { padding-bottom: 9px; } #profile .tabs .on { color: var(--hb); box-shadow: 0 2px 0 var(--hb); }
#profile .search { margin: 12px 20px 0; padding: 9px 14px; border-radius: 999px; background: #f3f7fd; color: #8a96a8; font-size: 12.500px; }
#profile h4 { margin: 14px 20px 8px; font-size: 14px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px; } .chips2 span { padding: 6px 11px; border: 1px solid #dfe6f2; border-radius: 999px; font-size: 11.500px; } .chips2 .more { color: var(--hb); border-style: dashed; }
.cards2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 20px; }
.cards2 > div { padding: 10px; border: 1px solid #e3e8f1; border-radius: 12px; display: grid; gap: 3px; font-size: 11px; }
.cards2 b { font-size: 12px; } .cards2 b i { font-style: normal; color: var(--hb); font-size: 10px; } .cards2 small { color: #8a96a8; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cards2 em { font-style: normal; color: #d99a1b; font-weight: 600; }
.cards2 span { justify-self: start; padding: 2px 7px; border: 1px solid #e3e8f1; border-radius: 999px; font-size: 9.500px; } .cards2 a { margin-top: 5px; padding: 7px 4px; border-radius: 999px; background: var(--hb); color: #fff; text-align: center; font-weight: 600; font-size: 10px; }
#profile .fine { padding: 12px 20px 16px; font-size: 11px; color: #8a96a8; }

/* network map */
#mapwrap { position: fixed; inset: 0; z-index: 10; opacity: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, #12305e, #071a36 70%); }
#map { position: absolute; inset: 8vh 4vw 12vh; width: 92vw; height: 80vh; }
#map .land { fill: #1b3f78; stroke: #4f7fc4; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#map .link { fill: none; stroke: #8fc4ff; stroke-width: var(--sw, 1); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
#map .spot circle { fill: #bfe0ff; } #map .spot text { fill: #cfe3fb; font-family: var(--sans); font-weight: 500; }
#map .home circle { fill: #fff; } #map .home .halo { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .6; animation: halo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
#map .home text { fill: #fff; font-family: var(--sans); font-weight: 700; }
#mapwrap.usa .home text { font-size: 15px !important; } #mapwrap.usa .home circle:not(.halo) { r: 6; }
.mapnote { position: absolute; left: 0; right: 0; bottom: 72px; text-align: center; font-size: 12px; color: rgba(207, 227, 251, .75); padding: 0 20px; }

/* closing */
#final { position: fixed; z-index: 12; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; opacity: 0; pointer-events: none; color: #fff; }
#final img { height: clamp(44px, 7vw, 86px); filter: brightness(0) invert(1); transform: scale(.7); opacity: 0; transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .8s; }
#final.on img { transform: none; opacity: 1; }
#final h2 { font-size: clamp(28px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
#final p { color: rgba(207, 227, 251, .85); font-size: 17px; }
#final .btn { background: #fff; color: var(--navy); } #final .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.500px rgba(255, 255, 255, .45); }
#final .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
  .nav .for i { display: none; } .nav .for { padding: 6px 10px; font-size: 12px; } .nav .brand img { height: 24px; } .nav .btn { display: none; }
  #caption.low { bottom: 74px; top: auto; }
  #directory, #profile { right: 16px; top: auto; bottom: 150px; transform: translate(0, 40px); } #directory.on, #profile.on { transform: none; }
  .cards2 { grid-template-columns: repeat(2, 1fr); } #profile-cover { height: 90px; }
  #dash { top: 46%; }
}

#dash .inner { position: relative; }
.chip { white-space: nowrap; }
.ins .doc small { display: block; }
@media (min-width: 861px) { #dash { left: 63%; width: min(800px, 60vw); } }

#mapwrap .credit { position: absolute; left: 0; right: 0; bottom: 1.2vh; margin: 0; text-align: center; font: 400 11px/1.3 var(--sans); color: rgba(207,227,251,.5); }
.nav .for img, .h-head .tile img, .logo-c img { border-radius: 50%; }

/* 11/13 updates: expanded check-in in the office step, larger directory + contractor profile, more prominent public profile */
#dash .detail { position: absolute; left: 6.2%; top: 33.2%; width: 87.2%; background: #fff; border-radius: 0 0 14px 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(16, 32, 64, .28), 0 0 0 1px #dfe6f2; transform-origin: 50% 0; transform: scaleY(.05); opacity: 0; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
#dash.open .detail { transform: none; opacity: 1; }
#directory { padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; width: min(860px, 58vw); backdrop-filter: none; -webkit-backdrop-filter: none; }
#directory img { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(8, 20, 44, .42), 0 0 0 1px rgba(223, 230, 242, .9); background: #fff; }
#directory .dir { width: 100%; }
#directory .prof { position: absolute; right: -2.5%; top: 7%; width: 63%; opacity: 0; transform: translate(18px, 10px) scale(.94); transition: opacity .45s .35s, transform .55s .35s cubic-bezier(.2, .8, .2, 1); }
#directory.on .prof { opacity: 1; transform: none; }
#directory .note { margin: 12px 0 0; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; line-height: 1.3; color: var(--dim); }
#profile h4 i { font-style: normal; font-weight: 600; font-size: 11px; color: var(--hb); margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #eaf0fb; }
#profile.on .cards2 a { animation: req 2.2s ease-in-out infinite; } @keyframes req { 50% { box-shadow: 0 0 0 4px rgba(44, 79, 155, .22); } }
@media (min-width: 861px) and (min-height: 760px) { #profile { zoom: 1.05; } }
@media (max-width: 860px) { #directory { width: calc(100vw - 32px); } #directory .prof { right: 0; } }

/* directory step in two beats: the directory alone first, then the contractor profile opens over it */
#directory { width: min(600px, 44vw, 64vh); }
#directory .dir { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); box-shadow: none; filter: drop-shadow(0 24px 40px rgba(8, 20, 44, .4)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .5s; transform-origin: 0 50%; }
#directory .prof { right: -5%; top: 12%; width: 84%; opacity: 0; transform: translate(40px, 14px) scale(.92); transition: opacity .4s, transform .6s cubic-bezier(.2, .8, .2, 1); }
#directory.on .prof { opacity: 0; transform: translate(40px, 14px) scale(.92); }
#directory.on.two .prof { opacity: 1; transform: none; }
#directory.two .dir { transform: translateX(-7%) scale(.95); filter: drop-shadow(0 18px 30px rgba(8, 20, 44, .35)) brightness(.9); }
@media (max-width: 860px) { #directory { width: min(calc(100vw - 32px), 52vh); top: 76px; bottom: auto; right: 16px; } #directory .prof { right: 0; } #directory.two .dir { transform: scale(.95); } }
