/* MJ Whalen Associates — site styles (brand system v1.0) */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #1D2C6B;
  --gold: #E8B321;
  --sand: #F7F3EA;
  --ink: #1A1E2C;
  --tide: #4C6A9E;
  --mist: #C3CDE4;
  --fog: #E4E7EF;
  --rule: #DCD5C6;
  --deep: #121C47;
  --white: #FFFFFF;

  --font-display: "Jost", "Century Gothic", system-ui, sans-serif;
  --font-body: "Inter", Calibri, system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;

  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--navy); margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.005em; }
h3 { font-size: 23px; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.site-header .logo img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { text-decoration: underline; }
.nav .nav-cta { border: 1.5px solid var(--mist); border-radius: var(--radius-md); padding: 9px 16px; }
.nav .nav-cta:hover { border-color: var(--white); text-decoration: none; background: rgba(255,255,255,0.06); }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 96px); padding-bottom: var(--space-8); }
.hero-copy { max-width: min(560px, 46%); }
.hero-photo {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 54%; margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, #000 58%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, #000 58%, transparent 90%);
  mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; filter: saturate(0.72) hue-rotate(-12deg) brightness(0.92); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(29, 44, 107, 0.18); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { margin-top: var(--space-6); max-width: 54ch; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--mist); }
.hero .actions { margin-top: var(--space-8); display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-md);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; border: 0;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F0C142; }
.link-light { color: var(--white); font-weight: 500; }

.waterline { position: relative; z-index: 1; display: block; width: 100%; height: max(150px, calc(100vw * 236 / 1440)); }
.waterline .tail { fill: var(--gold); }
.waterline .knock { fill: none; stroke: var(--navy); stroke-width: 21.6; stroke-linecap: round; stroke-linejoin: round; }
.waterline .wave { fill: none; stroke: var(--sand); stroke-width: 10.8; stroke-linecap: round; stroke-linejoin: round; }
.tail-rise { animation: rise 1.4s cubic-bezier(.2,.75,.2,1) .25s both; }
@keyframes rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tail-rise { animation: none; } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-intro { max-width: 60ch; margin-top: var(--space-4); font-size: 19px; color: var(--ink); }
.on-white { background: var(--white); }

/* what we do */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: var(--space-12); }
.sides h3 { padding-bottom: var(--space-3); border-bottom: 2px solid var(--navy); }
.sides ul { list-style: none; margin: 0; padding: 0; }
.sides li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: var(--space-16); }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.photo-strip figcaption { margin-top: var(--space-2); font-size: 15px; color: var(--tide); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about .story p + p { margin-top: var(--space-4); }
.about .story p:first-of-type { margin-top: var(--space-6); }
.rebus { background: var(--sand); border-radius: var(--radius-lg); padding: var(--space-8); }
.rebus img { width: 100%; max-width: 280px; height: auto; }
.rebus p { margin-top: var(--space-4); color: var(--ink); font-size: 16px; }
.team { display: grid; gap: clamp(40px, 5vw, 64px); margin-top: var(--space-16); max-width: 960px; }
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.person h3 { font-size: 30px; }
.person p { margin-top: var(--space-3); max-width: 62ch; }
.portrait { position: relative; margin: 0; width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.portrait span { font: 500 44px/1 var(--font-display); color: var(--navy); letter-spacing: 0.04em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* lines */
.lines-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-8); flex-wrap: wrap; }
.brand-grid { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.brand { display: flex; flex-direction: column; gap: var(--space-2); padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; color: var(--navy); }
.brand-what { color: var(--ink); max-width: 30ch; }
.brand a { margin-top: auto; padding-top: var(--space-2); font-size: 15px; font-weight: 500; }
.brand .no-link { display: none; }

/* contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .section-intro { color: var(--mist); }
.contact .social { margin-top: var(--space-8); display: flex; gap: var(--space-6); }
.contact .social a { color: var(--white); font-weight: 500; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--space-6); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 500; font-size: 15px; color: var(--navy); }
.field .opt { color: var(--tide); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C0D3; border-radius: var(--radius-md);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; background: var(--navy); color: var(--white); }
.form .btn:hover { background: var(--deep); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.status { font-weight: 500; min-height: 1.6em; }
.status.ok { color: #1E6B3A; }
.status.err { color: #A3261B; }

/* footer */
.site-footer { background: var(--deep); color: var(--mist); padding: var(--space-16) 0 var(--space-12); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8) var(--space-16); align-items: start; }
.site-footer img { width: 240px; height: auto; }
.footer-brand p { margin-top: var(--space-3); color: var(--mist); }
.footer-links { justify-self: end; display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-links a, .footer-links button { color: var(--white); background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(195,205,228,0.25); padding-top: var(--space-6); }

/* consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(18,28,71,0.22); padding: var(--space-6); display: grid; gap: var(--space-4); }
.consent[hidden] { display: none; }
.consent p { font-size: 15px; }
.consent .btns { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.consent .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-plain { background: var(--fog); color: var(--navy); }

/* simple pages */
.page { padding: var(--section) 0; }
.page .prose { max-width: 68ch; }
.prose h2 { font-size: 28px; margin-top: var(--space-12); }
.prose p, .prose ul { margin-top: var(--space-4); }
.prose li + li { margin-top: var(--space-2); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .sides, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero { display: flex; flex-direction: column; }
  .hero .wrap { order: 1; }
  .hero-photo { order: 2; }
  .waterline { order: 3; }
  .hero-copy { max-width: none; }
  .hero-photo { position: relative; width: 100%; height: 320px; margin-bottom: -96px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 62%, transparent 100%); }
  .person { grid-template-columns: 140px minmax(0, 1fr); }
  .person h3 { font-size: 26px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .logo img { width: 180px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav .nav-what { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .photo-strip figure:last-child { grid-column: 1 / -1; }
  .portrait { max-width: 200px; }
}
