:root {
  --navy: #14305e;
  --navy-ink: #1c2f4f;
  --blue: #3d5f95;
  --blue-soft: #5b80c0;
  --mist: #f3f6fa;
  --mist-2: #e8eef6;
  --line: #dde4ee;
  --text: #3b4658;
  --text-soft: #6b7689;
  --white: #ffffff;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--navy-ink); }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }

.kicker, .eyebrow {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 400; color: var(--blue);
  letter-spacing: .02em;
}
.text-link .arrow { width: 30px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .4s var(--ease); }
.text-link:hover .arrow { transform: translateX(8px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-word { width: 160px; height: auto; }
.site-nav { display: flex; gap: 44px; }
.site-nav a { font-size: 14.5px; font-weight: 400; color: var(--navy-ink); position: relative; padding: 4px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--blue-soft); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; overflow: hidden; background: #eef3f9; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-landscape.svg?v=a4195b22") center bottom / cover no-repeat;
  animation: drift 30s ease-in-out infinite alternate;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,248,251,.85) 0%, rgba(246,248,251,.35) 45%, rgba(246,248,251,0) 70%); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-content { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.08; letter-spacing: -.01em;
  color: var(--navy); margin-bottom: 36px;
}
.hero-lines { margin-bottom: 52px; }
.hero-lines li { font-size: clamp(17px, 1.6vw, 19px); color: var(--navy-ink); line-height: 1.9; }

/* ---------- Values ---------- */
.values { padding: 88px 0; background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.values-grid li { text-align: center; padding: 8px 26px; border-left: 1px solid var(--line); }
.values-grid li:first-child { border-left: 0; }
.values-grid .icon { margin: 0 auto 22px; }
.values-grid h3 { font-family: var(--sans); font-size: 16px; font-weight: 400; margin-bottom: 12px; }
.values-grid p { font-size: 14px; color: var(--text-soft); line-height: 1.75; margin: 0; }

/* ---------- About ---------- */
.about { padding: 120px 0; background: var(--mist); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; color: var(--navy); }
.lead { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.5; color: var(--navy-ink); margin-bottom: 28px; }
.split-body p:not(.lead) { color: var(--text); }

/* ---------- Philosophy ---------- */
.philosophy { padding: 140px 0; background: var(--white); }
.philosophy blockquote { margin: 0 0 32px; }
.philosophy blockquote p { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; color: var(--navy); margin: 0; }
.philosophy-sub { color: var(--text-soft); font-size: 17px; margin: 0; }
.philosophy .narrow::after { content: ""; display: block; width: 56px; height: 1px; background: var(--blue-soft); margin: 48px auto 0; opacity: .6; }

/* ---------- Services ---------- */
.services { padding: 120px 0; background: var(--mist); }
.services-inner { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; }
.services-head h2 { margin-bottom: 24px; }
.services-intro { color: var(--text-soft); font-size: 16px; max-width: 320px; }
.services-head { position: sticky; top: 120px; align-self: start; }
.services-groups { display: grid; gap: 48px; }
.service-group { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.service-group:last-child { border-bottom: 0; padding-bottom: 0; }
.group-title { grid-column: 1 / -1; font-family: var(--serif); font-weight: 300; font-size: 26px; color: var(--navy); display: flex; align-items: baseline; gap: 16px; }
.group-title span { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--blue-soft); }
.service { display: flex; gap: 20px; align-items: flex-start; }
.service .icon { flex: none; width: 30px; height: 30px; margin-top: 2px; }
.service h4 { font-family: var(--sans); font-size: 16px; font-weight: 400; margin-bottom: 6px; }
.service p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7; margin: 0; }

/* ---------- Approach ---------- */
.approach { padding: 120px 0; background: var(--white); }
.approach-head { text-align: center; margin-bottom: 72px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.steps li { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.step-no { position: absolute; top: -12px; left: 0; background: var(--white); padding-right: 14px; font-family: var(--serif); font-size: 18px; color: var(--blue-soft); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 10px; color: var(--navy); }
.steps p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 130px 0; background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); }
.contact h2 { margin-bottom: 18px; }
.contact p { color: var(--text-soft); margin-bottom: 30px; }
.contact-mail { margin-top: 18px; font-size: 14px; letter-spacing: .04em; }
.contact-mail a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-mail a:hover { color: var(--blue); border-color: var(--blue-soft); }
.contact-address { margin: 48px auto 0; padding-top: 36px; border-top: 1px solid var(--line); max-width: 360px; font-style: normal; font-size: 14.5px; line-height: 1.85; color: var(--text-soft); }
.address-name { display: block; margin-bottom: 6px; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 72px 0 40px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.lw.footer-mark { width: 64px; margin-bottom: 18px; }
.footer-word { width: 160px; height: auto; }
.footer-tagline { margin: 12px 0 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-address { font-style: normal; font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); max-width: 720px; }
.footer-address span { white-space: nowrap; }
.footer-nav { display: flex; justify-content: center; gap: 32px; font-size: 14px; }
.footer-nav a:hover { color: var(--white); }
.copyright { align-self: stretch; margin: 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Animated logo (wave water) ---------- */
.lw { display: block; flex: none; width: 40px; height: auto; aspect-ratio: 1 / 1; overflow: visible; }
.lw-w1 { animation: lw-left 7s linear infinite; }
.lw-w2 { animation: lw-right 10s linear infinite; }
.lw-bob { animation: lw-bob 5s ease-in-out infinite; }
.lw-glow { animation: lw-pulse 6s ease-in-out infinite; transform-origin: 140px 182px; }
.lw-shimmer { opacity: .45; }
.lw-shimmer path:nth-child(1) { animation: lw-left 9s linear infinite, lw-dash 4s linear infinite; }
.lw-shimmer path:nth-child(2) { animation: lw-right 12s linear infinite, lw-dash 5s linear infinite reverse; }
.lw-shimmer path:nth-child(3) { animation: lw-left 15s linear infinite, lw-dash 6s linear infinite; }
@keyframes lw-left  { from { transform: translateX(0); } to { transform: translateX(-140px); } }
@keyframes lw-right { from { transform: translateX(-140px); } to { transform: translateX(0); } }
@keyframes lw-bob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.5px); } }
@keyframes lw-pulse { 0%, 100% { opacity: .75; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.12); } }
@keyframes lw-dash  { to { stroke-dashoffset: -64; } }

.brand-mark { width: 40px; }

/* Hero logo */
.hero-logo { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-logo::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); }
.lw-hero { width: clamp(220px, 27vw, 360px); }

/* Contact lockup */
.lockup { display: flex; flex-direction: column; align-items: center; margin: 0 auto 72px; width: min(380px, 84%); }
.lockup-mark { width: 37.4%; margin-bottom: 9%; }
.lockup-word { width: 100%; height: auto; }
.lockup-tag { width: 100%; height: auto; margin-top: 7%; }

/* ---------- Section waves ---------- */
.hero, .philosophy, .contact { position: relative; overflow: hidden; }
.philosophy > .container, .contact > .container { position: relative; z-index: 1; }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none; overflow: hidden; }
.sea-l { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.sea-l1 { animation: sea-move 38s linear infinite; }
.sea-l2 { animation: sea-move 54s linear infinite reverse; }
.sea-l3 { animation: sea-move 30s linear infinite; height: 80%; }
.sea-hero { height: 32%; z-index: 0; }
.sea-hero .sea-l1 { animation-duration: 26s; }
.sea-hero .sea-l2 { animation-duration: 40s; }
.sea-hero .sea-l3 { animation-duration: 20s; }
@keyframes sea-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .sea-l, .lw *, .lw-shimmer path { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav { gap: 28px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .values-grid li:nth-child(4) { border-left: 0; }
  .services-inner { grid-template-columns: 1fr; gap: 56px; }
  .services-head { position: static; }
  .services-intro { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .site-nav.open { max-height: 360px; }
  .site-nav a { padding: 16px 32px; border-top: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .lw-hero { width: 180px; }
  .sea { height: 120px; }
  .about, .services, .approach { padding: 88px 0; }
  .philosophy, .contact { padding: 100px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-nav a { padding: 16px 20px; }
  .brand-mark { width: 34px; }
  .brand-word { width: 130px; }
  .hero { min-height: 600px; align-items: flex-start; }
  .hero-content { padding-top: 48px; grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; justify-content: flex-start; }
  .hero-logo::before { width: 160%; left: -30%; }
  .lw-hero { width: 128px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(246,248,251,.9) 0%, rgba(246,248,251,.5) 50%, rgba(246,248,251,0) 75%); }
  .values { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .values-grid li { border-left: 0; padding: 0 8px; }
  .values-grid li:last-child { grid-column: 1 / -1; }
  .service-group { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lead { font-size: 21px; }
  .footer-nav { gap: 24px; }
}
