:root {
  --ink: #14294c;
  --header-sky: #dceaf3;
  --accent-blue: #466783;
  --shadow-near: 1px -1px 1px rgb(20 41 76 / .17);
  --shadow-soft: 3px -2px 6px rgb(20 41 76 / .09);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #547ca5; outline-offset: 5px; }
.portfolio-link:is(button) {
  border: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.contact-dialog {
  position: fixed;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid #dceaf3;
  border-radius: 14px;
  background: #f8fbfd;
  color: #2b4061;
  box-shadow: 0 16px 64px rgb(20 41 76 / .28);
  font: 400 1rem/1.4 'Instrument Sans', var(--sans);
}
.contact-dialog::backdrop { background: rgb(20 41 76 / .55); }
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog h2 {
  margin: 0 2rem 1.35rem 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.15;
}
.contact-close {
  position: absolute;
  inset: .5rem .5rem auto auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  font: 400 1.65rem/1 var(--sans);
  cursor: pointer;
}
.contact-close:hover { background: #e5eff6; }
.contact-form { display: grid; gap: .4rem; }
.contact-form[hidden] { display: none; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  width: 100%;
  padding: .6rem .7rem;
  margin: 0 0 .45rem;
  border: 1px solid #879db3;
  border-radius: 5px;
  background: #fff;
  color: #14294c;
  font: inherit;
}
.contact-form textarea { min-height: 5rem; resize: vertical; }
.contact-send {
  justify-self: start;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #466783;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.contact-send:hover { background: #193e57; }
.contact-send:disabled { opacity: .65; cursor: wait; }
.portfolio-link:focus-visible, .contact-dialog :focus-visible {
  outline: 2px solid #547ca5;
  outline-offset: 3px;
}
.contact-status { margin: .8rem 0 0; }
.contact-status:empty { margin: 0; }
#contact-title[hidden] ~ .contact-status { margin: 0; padding-right: 1.75rem; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: clamp(75px, 6.15vw, 116px);
  padding: 12px 4% 12px 6.15%;
  background: linear-gradient(#edf4f8, var(--header-sky) 65%);
}
.brand { width: clamp(180px, 19vw, 340px); }
.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: url(#logo-navy) drop-shadow(var(--shadow-near)) drop-shadow(var(--shadow-soft));
  opacity: .88;
}
.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #b8d8ed;
}
.aerial {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 126%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: clamp(94px, 10.5vw, 174px);
  background: linear-gradient(
    var(--header-sky) 0%,
    rgb(220 234 243 / .96) 8%,
    rgb(220 234 243 / .78) 25%,
    rgb(220 234 243 / .48) 47%,
    rgb(220 234 243 / .20) 69%,
    rgb(220 234 243 / .04) 90%,
    rgb(220 234 243 / 0) 100%
  );
  z-index: -1;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 47.5vw) minmax(0, 26.5vw);
  gap: 5.2vw;
  align-items: start;
  margin-inline: 11.4% 0;
  padding-block: 5.55vw 7vw;
}
.statement {
  margin: 3.45vw 0 0;
  font: 400 clamp(24px, 2.82vw, 56px)/1.12 var(--serif);
  letter-spacing: -.035em;
}
.statement strong, .statement-copy { display: block; }
.statement strong { font-weight: 700; margin-bottom: .16em; }
.statement-copy { font-family: 'Instrument Sans', var(--sans); font-style: italic; font-weight: 500; }
.portfolio {
  display: grid;
  gap: clamp(15px, 1.55vw, 30px);
  padding: clamp(20px, 2vw, 39px);
  border: 1px solid rgb(255 255 255 / .42);
  border-radius: clamp(10px, 1vw, 20px);
  background: rgb(255 255 255 / .74);
  backdrop-filter: blur(8px);
  font: 400 clamp(16px, 1.4vw, 27px)/1.27 'Instrument Sans', var(--sans);
}
.portfolio p { margin: 0; }
.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: .72em .52em;
  color: white;
  background: color-mix(in srgb, var(--accent-blue) 90%, transparent);
  border-radius: 6px;
  text-align: center;
  font-size: .9em;
}
.portfolio-link:hover { background: #193e57; }
.location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: auto 0 0;
  padding: 36px 4.3% 21px;
  background: linear-gradient(transparent, rgb(13 30 40 / .7));
  color: #fff;
  font: 500 clamp(10px, .9vw, 16px)/1.5 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.location::before { content: ''; width: 45px; height: 1px; background: #a8cce5; }
.maps-link {
  margin-inline-start: auto;
  flex-shrink: 0;
  padding: 6px 4px;
  color: rgb(255 255 255 / .85);
  font: 500 12px/1.3 var(--sans);
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.maps-link:hover, .maps-link:focus-visible { color: #fff; }
.maps-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 850px) {
  .site-header { padding-inline: 5%; }
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: 38px; margin: 0; padding: 45px 7% 55px; }
  .statement { max-width: 620px; margin: 0; font-size: clamp(25px, 4.6vw, 39px); }
  .portfolio { max-width: 530px; font-size: 17px; line-height: 1.45; background: rgb(255 255 255 / .86); }
  .aerial { height: 100%; object-position: 47% bottom; }
  .location { padding-inline: 7%; }
}
@media (max-width: 380px) {
  .brand { width: 150px; }
}

.hero { --horizon: 43.5%; }
.hero .aerial {
  top: 0;
  height: calc(2 * var(--horizon));
  object-fit: fill;
  clip-path: inset(0 0 50% 0);
}
.hero .sunburst-foreground {
  display: block;
  position: absolute;
  inset: var(--horizon) 0 0;
  overflow: hidden;
  z-index: -2;
  container-type: size;
}
.sunburst-foreground img {
  --photo-width: max(100cqw, 274cqh);
  position: absolute;
  width: var(--photo-width);
  height: auto;
  top: calc(-.195 * var(--photo-width));
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 850px) {
  .hero { --horizon: 47%; }
}
.site-header {
  min-height: clamp(58px, 4.65vw, 88px);
  padding-block: 10px;
}
.brand { width: clamp(145px, 14vw, 250px); }

.hero { background: white; }
.portfolio {
  background: linear-gradient(rgb(255 255 255 / .74), rgb(255 255 255 / .84));
}
@media (max-width: 850px) {
  .portfolio { background: rgb(255 255 255 / .88); }
}

@media (min-width: 851px) {
  .site-header { min-height: 62px; }
  .brand { width: clamp(145px, 14vw, 194px); }
  .hero { --horizon: 39%; }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 4svh, 38px);
    margin: 0;
    padding: clamp(28px, 11svh, 104px) 5% 20px;
  }
  .statement {
    max-width: 790px;
    margin: 0;
    text-align: center;
    font-size: clamp(26px, min(3vw, 4.8svh), 40px);
  }
  .statement-copy { text-wrap: balance; }
  .portfolio {
    width: min(100%, 650px);
    gap: clamp(12px, 2svh, 19px);
    padding: clamp(16px, 2.7svh, 26px) clamp(22px, 3vw, 38px);
    border: 0;
    border-radius: 8px;
    background: rgb(255 255 255 / .62);
    backdrop-filter: none;
    font-size: clamp(15px, 2.05svh, 18px);
    line-height: 1.4;
  }
  .portfolio-link { justify-self: center; padding-inline: 1.25em; }
  .location { padding-block: 20px 15px; }
}

@media (max-width: 850px) {
  .hero-content { justify-items: center; }
  .statement { text-align: center; }
  .portfolio-link { justify-self: center; padding-inline: 1em; }
}
@media (min-width: 851px) {
  body {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow-x: clip;
  }
  .site-header {
    grid-row: 1;
    background: transparent;
  }
  .hero { display: contents; }
  .hero .aerial-frame {
    grid-area: 1 / 1 / 3 / 2;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
  }
  .hero .aerial {
    height: 200%;
    clip-path: none;
    filter: saturate(.68) contrast(.34) brightness(1.52);
  }
  .hero .aerial-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/sunburst.png') no-repeat left top / 100% 200%;
    mask-image: radial-gradient(
      ellipse 56% 46% at 8% 96%,
      black 18%,
      rgb(0 0 0 / .75) 46%,
      rgb(0 0 0 / .25) 73%,
      transparent 100%
    );
    pointer-events: none;
  }
  .hero::before {
    content: none;
  }
  .hero .sunburst-foreground {
    grid-area: 3 / 1 / 5 / 2;
    inset: 0;
  }
  .location {
    grid-row: 4;
    margin: 0;
  }
  .hero-content {
    gap: var(--copy-gap);
    grid-row: 2;
    padding: clamp(22px, 6.5svh, 64px) 5% var(--horizon-gap);
  }
  .statement {
    font-size: clamp(25px, min(3vw, 4.4svh), 39px);
  }
  .portfolio {
    position: relative;
    top: var(--card-offset);
    width: min(100%, 42.25em);
    gap: clamp(9px, 1.7svh, 16px);
    padding: var(--card-padding);
    background: rgb(255 255 255 / .40);
    font-size: clamp(15px, 1.95svh, 17px);
    line-height: 1.35;
  }
}

@media (min-width: 851px) {
  .statement { max-width: 100%; }
  .statement-copy { font-size: min(2.65vw, 1em); }
  .statement-copy span { display: block; }
}

.portfolio p { text-align: center; }
@media (max-width: 1050px) {
  .portfolio-break { display: none; }
}

.hero-content > .statement { position: relative; top: calc(var(--copy-gap, 38px) / 2); }
@media (min-width: 851px) {
  .portfolio {
    --button-height: 2.511em;
    isolation: isolate;
    background: transparent;
  }
  .portfolio::before {
    content: '';
    position: absolute;
    inset: 0 0 calc(var(--card-padding) + var(--button-height) / 2);
    z-index: -1;
    border-radius: inherit;
    background: rgb(255 255 255 / .40);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), var(--shadow-near), var(--shadow-soft);
  }
}

@media (min-width: 851px) {
  .portfolio-link {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), var(--shadow-near), var(--shadow-soft);
  }
  .portfolio-link:hover { background: #193e57; }
}

.statement {
  color: rgb(43 64 97 / .88);
  text-shadow: 1px -1px .5px rgb(20 41 76 / .085), 3px -2px 3px rgb(20 41 76 / .045);
}
.portfolio p { color: #2b4061; }

body { --wordmark-gap: clamp(22px, 3.6svh, 38px); }
.site-header {
  justify-content: center;
  min-height: 0;
  padding: var(--wordmark-gap) 4% 0;
}
.site-header .brand {
  width: calc(min(90vw, clamp(350px, 38vw, 504px)) * 2 / 3);
  /* The bottom 12 of 144 image rows are transparent. */
  transform: translateY(calc(100% / 12 + var(--wordmark-gap) - var(--headline-card-gap) * 2 / 3));
}
.hero-content { padding-top: calc(var(--wordmark-gap) - var(--copy-gap) / 2); }
body {
  --copy-gap: 38px;
  --headline-card-gap: calc(var(--copy-gap) / 2);
}
@media (max-width: 850px) {
  .site-header .brand {
    width: min(68vw, 285px);
    transform: none;
  }
  .hero-content {
    gap: 22px;
    padding-block: 20px 28px;
  }
  .hero-content > .statement { top: auto; }
  .portfolio-link { min-height: 44px; }
  .location { padding-block: 26px 16px; }
}
@media (min-width: 851px) {
  body {
    --copy-gap: clamp(16px, 3svh, 28px);
    --horizon-gap: clamp(12px, 2svh, 20px);
    --card-padding: var(--horizon-gap);
    --card-offset: calc(var(--horizon-gap) * .75 + var(--card-padding) / 2);
    --headline-card-gap: calc(var(--copy-gap) / 2 + var(--card-offset));
    --headline-drop: calc((var(--headline-card-gap) + 5px) / 3);
  }
  .hero-content > .statement {
    top: calc(var(--copy-gap) / 2 + var(--headline-drop));
  }
  .site-header .brand {
    /* Account for the transparent logo edge and the headline's line box. */
    transform: translateY(calc(100% / 12 + var(--wordmark-gap) - var(--headline-card-gap) * 2 / 3 + var(--headline-drop) + 3px));
  }
}
