/* Aldermoor Capital Partners
   Black and white only. One heavy grotesque, very large headlines, panels that alternate
   between white and black. The one image is halftone: forms built from dots, drawn by app.js.
   All motion hangs on the class "motion" (set by app.js unless reduced motion is requested). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --grey: #787e86;          /* continuation text on white */
  --grey-on-black: #8b9199; /* continuation text on black */
  --fill: #f3f4f5;          /* fields, quiet buttons */
  --pad: clamp(16px, 2.2vw, 32px);
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fg: var(--black);
  --bg: var(--white);
  --dim: var(--grey);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, address, fieldset { margin: 0; }
address { font-style: normal; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--black); color: var(--white); }
.dark ::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--black); color: var(--white); border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 16px; }
.dark { background: var(--black); color: var(--white); --fg: var(--white); --bg: var(--black); --dim: var(--grey-on-black); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 18px; border: 0; border-radius: var(--radius);
  background: var(--black); color: var(--white);
  font: inherit; font-weight: 600; line-height: 1.5; letter-spacing: .2px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: #2a2c2f; }
.btn:active { transform: scale(.98); }
.btn--quiet { background: var(--fill); color: var(--black); }
.btn--quiet:hover { background: #e6e8ea; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #dfe1e4; }
.btn--mail { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.chev { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
a:hover > .chev, button:hover > .chev { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 76px; margin-bottom: -76px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad) calc(var(--pad) - 6px);
  background: var(--white);
  transition: transform .4s var(--ease), background-color .25s;
}
.site-header.is-dark { background: var(--black); }
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: grid; padding: 8px 0; }
.brand img { grid-area: 1 / 1; height: 22px; width: auto; transition: opacity .25s; }
.brand img + img { opacity: 0; }
.logo-light .brand img { opacity: 0; }
.logo-light .brand img + img { opacity: 1; }
.header__right { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 12px 14px; border-radius: var(--radius);
  font-weight: 600; letter-spacing: .2px; text-decoration: none;
  transition: background-color .2s, color .25s;
}
.nav a:hover, .nav a[aria-current] { background: rgba(0, 0, 0, .06); }
.header__cta { margin-left: 8px; padding: 12px 18px; }
.nav-light .nav a { color: var(--white); }
.nav-light .nav a:hover, .nav-light .nav a[aria-current] { background: rgba(255, 255, 255, .16); }
.nav-light .header__cta, .nav-light .menu-btn { background: var(--white); color: var(--black); }
.menu-btn { display: none; padding: 10px 16px; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) max(28px, env(safe-area-inset-bottom));
  background: var(--white);
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
  overflow-y: auto;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s, visibility 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block; padding: 4px 0;
  font-size: clamp(2.5rem, 11.5vw, 3.75rem); font-weight: 760; line-height: 1.08; letter-spacing: -.03em;
  text-decoration: none;
}
.menu li a[aria-current] { color: var(--grey); }
.menu__mail a { font-size: 1.125rem; font-weight: 600; color: var(--grey); text-decoration: none; }
.motion .menu a { opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .55s var(--ease); }
.motion .menu.is-open a { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 55ms); }
.menu-open .site-header { transform: none; background: var(--white); }
.menu-open .brand img { opacity: 1; }
.menu-open .brand img + img { opacity: 0; }
.menu-open .menu-btn { background: var(--black); color: var(--white); }

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header { padding-inline: var(--pad); height: 68px; margin-bottom: -68px; }
}

/* ------------------------------------------------------------ type */
.h {
  font-size: clamp(2.25rem, .9rem + 5.4vw, 5.75rem);
  font-weight: 760; line-height: .98; letter-spacing: -.035em;
}
.h .line { display: block; }
.w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.w > span { display: inline-block; }
.motion .h[data-split] .w > span { transform: translateY(118%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .h[data-split].is-in .w > span { transform: none; }

.sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.st { font-size: 1.125rem; line-height: 1.36; font-weight: 600; letter-spacing: .1px; color: var(--dim); padding-top: 18px; border-top: 2px solid var(--fg); }
.st b { font-weight: 600; color: var(--fg); margin-right: .25em; }
.st a { text-decoration: none; }
.st a:hover { text-decoration: underline; text-underline-offset: 3px; }
.motion .sts .st b { color: var(--dim); transition: color .7s; transition-delay: calc(250ms + var(--i, 0) * 180ms); }
.motion .sts.is-in .st b { color: var(--fg); }
@media (max-width: 860px) { .sts { grid-template-columns: 1fr; } }

.motion [data-in] { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-in].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ halftone */
.ht { width: 100%; aspect-ratio: 1; color: var(--fg); }

/* ------------------------------------------------------------ hero (home) */
.hero { position: relative; overflow: hidden; min-height: min(100svh, 960px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__ht { position: absolute; right: var(--pad); top: 92px; width: min(46vh, 36vw, 520px); }
.hero__inner { position: relative; padding-top: 120px; padding-bottom: clamp(28px, 4vw, 48px); }
.hero .h { font-size: clamp(2.3rem, .35rem + 9.4vw, 9rem); line-height: .94; letter-spacing: -.045em; }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(32px, 5vw, 64px); padding-top: 20px; border-top: 2px solid var(--white); }
.hero__points { display: flex; flex-wrap: wrap; gap: 4px 40px; }
.hero__points li { font-size: 1.125rem; font-weight: 600; line-height: 1.36; color: var(--grey-on-black); }
@media (max-width: 860px) {
  .hero { min-height: min(100svh, 860px); }
  .hero__ht { right: 50%; top: 84px; width: min(82vw, 44svh); transform: translateX(50%); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__points { flex-direction: column; }
}

/* ------------------------------------------------------------ bands and the panel pattern */
.band { padding-block: clamp(72px, 9.5vw, 152px); }
.band--tight { padding-top: 0; }
main > .band:first-child { padding-top: clamp(128px, 13vw, 200px); }

.panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.panel__head { grid-column: 1 / 9; grid-row: 1; }
.panel__art { grid-column: 9 / 13; grid-row: 1; justify-self: end; width: min(100%, 400px); }
.panel__body { grid-column: 1 / 13; grid-row: 2; margin-top: clamp(48px, 7vw, 112px); }
.panel__action { margin-top: 40px; }
@media (max-width: 860px) {
  .panel { display: block; }
  .panel__art { width: min(72vw, 340px); margin-top: 40px; }
  .panel__body { margin-top: 48px; }
}

/* ------------------------------------------------------------ page heads, next, closing */
.phero { padding: clamp(136px, 15vw, 224px) 0 clamp(64px, 8vw, 120px); }
.phero .h { font-size: clamp(2.3rem, .35rem + 9.4vw, 9rem); line-height: .94; letter-spacing: -.045em; }
.phero .sts { margin-top: clamp(40px, 6vw, 88px); }

.next {
  display: flex; align-items: center; gap: 16px;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 2px solid var(--black); text-decoration: none;
}
.dark + .wrap .next { border-top: 0; }
.next__label { font-size: 1.125rem; font-weight: 600; color: var(--grey); align-self: flex-start; padding-top: .5em; min-width: 4.5rem; }
.next__title { font-size: clamp(2rem, .9rem + 5.4vw, 5.75rem); font-weight: 760; line-height: 1; letter-spacing: -.035em; }
.next .chev { width: clamp(28px, 4.4vw, 64px); height: auto; margin-left: auto; }
.next:hover .chev { transform: translateX(8px); }

.closing { border-top: 2px solid var(--black); }
.dark + .closing { border-top: 0; }
.closing .sts { margin-top: clamp(40px, 6vw, 88px); }
.closing .actions { margin-top: 40px; }

/* ------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.contact__info { grid-column: 1 / 5; display: grid; gap: 32px; align-content: start; }
.contact__info address b { display: block; }
.form { grid-column: 7 / 13; display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: .9375rem; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--fill); color: var(--black);
  font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
  outline: 2px solid transparent; outline-offset: 0; transition: outline-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field ::placeholder { color: #a9aeb5; opacity: 1; }
.field input:focus, .field textarea:focus { outline-color: var(--black); background: var(--white); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 12px 16px; border-radius: var(--radius); background: var(--fill); font-weight: 600; transition: background-color .2s, color .2s; }
.choice input:checked + span { background: var(--black); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 3px; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { flex: 1 1 14rem; max-width: 24rem; font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--grey); }
.form__status { font-size: .9375rem; font-weight: 600; }
.form__status:empty { display: none; }
@media (max-width: 860px) {
  .contact { display: block; }
  .form { margin-top: 56px; }
}
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ text pages */
.doc { padding: clamp(136px, 15vw, 224px) 0 clamp(72px, 9vw, 136px); }
.doc__body { max-width: 40rem; margin-top: clamp(48px, 7vw, 104px); font-size: 1.125rem; line-height: 1.45; }
.doc__body h2 { font-size: 1.125rem; font-weight: 700; margin: 2.5rem 0 .35rem; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body address { color: #5d636b; font-weight: 600; }
.doc__body p + p, .doc__body address + p { margin-top: .75rem; }
.doc__body a { color: var(--black); text-underline-offset: 3px; }

/* ------------------------------------------------------------ footer */
.site-footer { padding: clamp(72px, 9vw, 128px) 0 28px; }
.footer__note { max-width: 46rem; font-size: 1.125rem; line-height: 1.36; font-weight: 600; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 2px solid var(--white); }
.footer__cols h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 14px; }
.footer__cols li a { font-size: 1.125rem; line-height: 1.4; font-weight: 600; color: var(--grey-on-black); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer__cols li a:hover, .footer__cols li a[aria-current] { color: var(--white); }
.footer__brand { justify-self: end; align-self: start; }
.footer__brand img { height: 22px; width: auto; }
.footer__meta { margin-top: 64px; font-size: .8125rem; line-height: 1.3; font-weight: 500; color: var(--grey-on-black); }
@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { justify-self: start; grid-column: 1 / -1; }
}

@media print {
  .site-header, .menu { display: none; }
}
