/* Advanced Isentropic Solutions / Sailor Jack Station */
:root {
  --teal: #0f3d4c;
  --teal-2: #164f61;
  --gold: #f2a900;
  --gold-soft: #fdf3d8;
  --green: #3f7d20;
  --green-soft: #e9f2e2;
  --cream: #faf7f0;
  --ink: #1d2a30;
  --muted: #5b6a71;
  --line: #e3e0d6;
  --white: #fff;
  --radius: 14px;
  --wrap: 1160px;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--teal); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 .8rem/1.6 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--head); padding: 15px 24px; border-radius: 999px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; border: 2px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--teal); box-shadow: 0 6px 18px rgba(242,169,0,.3); }
.btn-gold:hover { background: #ffbb14; }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line.dark { color: var(--teal); }
.btn-green { background: var(--green); color: var(--white); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* logo: the mark, AIS, and the full name beside it */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); }
.brand img { height: 54px; width: 54px; }
.brand b { font: 800 2.1rem/1 var(--head); letter-spacing: .04em; }
.brand span { font: 600 1rem/1.2 var(--head); border-left: 2px solid var(--gold); padding-left: 12px; white-space: nowrap; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { font: 600 .92rem/1 var(--head); color: var(--teal); text-decoration: none; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--gold-soft); }
.nav a[aria-current="page"] { background: var(--teal); color: var(--white); }
.nav .cta { background: var(--gold); margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--teal); border-radius: 2px; margin: 5px 0; transition: .2s; }
/* the full menu needs about 1080px beside the logo; below that it's the menu button */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav .cta { margin: 6px 0 0; text-align: center; }
  .brand { gap: 10px; }
  .brand img { height: 44px; width: 44px; }
  .brand b { font-size: 1.7rem; }
  .brand span { font-size: .85rem; padding-left: 10px; }
}
@media (max-width: 400px) {
  .site-head .wrap { padding: 0 16px; }
  .nav-toggle { padding: 10px 4px; }
  .brand { gap: 8px; }
  .brand img { height: 38px; width: 38px; }
  .brand b { font-size: 1.45rem; }
  .brand span { font-size: .74rem; padding-left: 8px; }
}

/* hero */
.hero { position: relative; color: var(--white); min-height: min(88vh, 760px); display: flex; align-items: flex-end; background: var(--teal) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,61,76,.15) 0%, rgba(15,61,76,.35) 45%, rgba(10,38,48,.88) 100%); }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero h1 { color: var(--white); max-width: 15em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .eyebrow { color: var(--gold); }
.hero p { font-size: 1.25rem; max-width: 36em; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero.short { min-height: 440px; }
.credit { position: absolute; right: 14px; bottom: 10px; font-size: .75rem; color: rgba(255,255,255,.6); z-index: 1; }

/* sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.white { background: var(--white); }
.teal { background: var(--teal); color: #d7e4e8; }
.teal h2, .teal h3 { color: var(--white); }
.teal .eyebrow { color: var(--gold); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img.photo { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15,61,76,.18); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } section { padding: 68px 0; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.i-gold { background: var(--gold-soft); color: #b37d00; }
.i-green { background: var(--green-soft); color: var(--green); }
.i-teal { background: #e2edf0; color: var(--teal); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 0; }
.fact { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.fact b { display: block; font: 800 1.7rem/1.1 var(--head); color: var(--teal); }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }

.status { display: flex; gap: 14px; align-items: flex-start; background: var(--gold-soft); border: 1px solid #f3dc9b; color: #6b4d00; border-radius: var(--radius); padding: 18px 22px; font-size: 1rem; margin-top: 28px; }
.status svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
/* floats over the top of the hero photo, taking no space of its own */
.status-bar { position: relative; z-index: 5; height: 0; }
.status-bar .wrap { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; display: flex; gap: 12px; align-items: center; background: rgba(253,243,216,.96); border: 1px solid #f3dc9b; color: #6b4d00; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,.25); padding: 10px 18px; font-size: .95rem; line-height: 1.45; }
.status-bar svg { flex: none; width: 20px; height: 20px; }

/* line breaks that only apply on computers (br-wide) or phones (br-phone) */
.br-phone { display: none; }
@media (max-width: 600px) { .br-wide { display: none; } .br-phone { display: inline; } }

/* diagram */
.diagram { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; margin-top: 40px; cursor: zoom-in; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-hint { display: none; text-align: center; font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 700px) { .diagram { padding: 10px; } .diagram-hint { display: block; } }
/* tapped: fills the screen, turned sideways if the phone is upright */
.diagram.full { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 0; border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-out; }
.diagram.full svg { flex: none; width: 96vw; max-height: 96vh; }
@media (orientation: portrait) { .diagram.full svg { width: 96vh; max-width: none; max-height: 96vw; transform: rotate(90deg); } }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.step { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { content: counter(s); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--white); font: 800 .9rem/30px var(--head); text-align: center; }
.step h3 { margin-top: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* sailor jack */
.sj-sign { max-width: 520px; width: 100%; margin: 0 auto 10px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.18)); }
.mascot { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.mascot img { width: 220px; }
@media (max-width: 700px) { .mascot { grid-template-columns: 1fr; text-align: center; } .mascot img { margin: 0 auto; width: 180px; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.gallery a.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }

.wide-photo { max-width: 900px; margin: 40px auto 0; }
.wide-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15,61,76,.18); }
.wide-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.wide-photo figcaption a { color: inherit; }
.team { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.member { width: 240px; }
.member img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 5px solid var(--white); box-shadow: 0 12px 30px rgba(15,61,76,.18); display: block; margin: 0 auto 16px; }
.member h3 { margin-bottom: .2em; }
.member p { color: var(--muted); margin: 0; }

.band { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-2) 100%); color: #d7e4e8; border-radius: 22px; padding: 54px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band h2 { color: var(--white); margin-bottom: .3em; }
.band p { margin: 0; max-width: 40em; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* contact */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font: 600 .88rem/1 var(--head); color: var(--teal); display: block; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #d5d9d6; border-radius: 10px; background: #fcfcfa; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; margin: 0; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #b3261e; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } .form { padding: 24px 18px; } }

/* footer */
.site-foot { background: #0b2f3b; color: #a9c1c8; padding: 64px 0 30px; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot .foot-brand { color: var(--white); margin-bottom: 18px; }
.site-foot h4 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-foot a { color: #d7e4e8; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: var(--gold); }
.site-foot .base { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; margin-top: 10px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .site-foot .wrap { grid-template-columns: 1fr; } }
