/* HiRise Collective. Type, air, hairlines. */

:root {
  --ink: #0B1220;
  --white: #fff;
  --paper: #F4F6F8;
  --blue: #1558E0;
  --blue-deep: #0E3FB3;
  --muted: #5B6573;
  --line: #E4E8EE;
  --header: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--blue-deep); }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.85rem, 8vw, 6.15rem);
  line-height: 0.92;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 32em;
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

p.ink { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #D6E4FB;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 8rem));
  margin-inline: auto;
}

.label {
  display: block;
  margin: 0 0 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--blue); }

.site-nav a[aria-current="page"] { color: var(--blue); }

.site-nav a.btn,
.site-nav a.btn:hover {
  color: var(--white);
  background: var(--blue);
}

.site-nav a.btn:hover { background: var(--blue-deep); }

.has-sub { position: relative; }

.subnav {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: -0.85rem;
  min-width: 12.5rem;
  padding: 0.35rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav {
  opacity: 1;
  visibility: visible;
}

.subnav a {
  display: block;
  padding: 0.55rem 0.95rem;
}

.subnav a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 13px;
}

.nav-toggle .bar { top: 21px; }

.nav-toggle .bar::before,
.nav-toggle .bar::after { content: ""; left: 0; }

.nav-toggle .bar::before { top: -6px; }

.nav-toggle .bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .bar { background: transparent; }

.nav-toggle[aria-expanded="true"] .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.site-nav .btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.actions { margin-top: 1.75rem; }

/* Sections */

.section { padding: 12vh 0; }

.band-paper { background: var(--paper); }

/* Hero */

.hero {
  min-height: calc(88vh - var(--header));
  display: flex;
  align-items: flex-end;
  padding: 8vh 0 12vh;
}

.hero-copy {
  animation: hero-in 0.7s ease;
}

@keyframes hero-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.support {
  margin: 1.35rem 0 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 28em;
}

.hero .btn { margin-top: 2rem; }

.page-hero {
  padding: 10vh 0 4vh;
}

.page-hero h1 { max-width: 14ch; }

.page-hero .support { margin-top: 1.15rem; }

/* Linked rows */

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lines a,
.lines li {
  display: block;
  padding: 2.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.lines a:last-child,
.lines li:last-child { border-bottom: 1px solid var(--line); }

.lines strong {
  display: block;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.lines span {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
  max-width: 32em;
}

.lines a:hover strong { color: var(--blue); }

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.plain li:last-child { border-bottom: 1px solid var(--line); }

/* Work */

.work-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-top: 0.5rem;
}

.work-link h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin: 0 0 0.85rem;
}

.work-link .meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1rem;
}

.work-link p { max-width: 28em; }

.work-link:hover h2 { color: var(--blue); }

/* Why */

.statement {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink);
  max-width: 16ch;
}

.statement + p {
  margin-top: 1.5rem;
  max-width: 28em;
}

/* Process */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.75rem 2rem;
  margin: 0;
  padding: 0;
}

.process-six { grid-template-columns: repeat(3, 1fr); }

.process li {
  list-style: none;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink);
}

.process h3 { margin: 0 0 0.4rem; }

.process p {
  margin: 0;
  font-size: 0.98rem;
  max-width: 22em;
}

/* Split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 4rem;
}

/* Blue moment */

.blue-line {
  margin: 0;
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
  color: var(--blue);
  max-width: 11ch;
}

/* Case */

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-meta div { margin: 0; }

.case-meta dt {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.case-meta dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-block { padding: 0; }

.case-block h2 { margin-bottom: 0.85rem; }

.page-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-list a {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-list a:last-child { border-bottom: 1px solid var(--line); }

.page-list a:hover { color: var(--blue); }

/* Form */

.form {
  max-width: 34rem;
  display: grid;
  gap: 1.35rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-weight: 500;
  font-size: 0.92rem;
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0;
  min-height: 48px;
  width: 100%;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

.form .btn {
  justify-self: start;
  min-width: 12rem;
}

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note a { font-weight: 600; }

.person {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 28em;
}

.person strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.person span {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
}

.close h2 { max-width: 14ch; }

/* Footer */

.site-footer {
  padding: 3.25rem 0 2.75rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover { color: var(--blue); }

.footer-nav a.btn,
.footer-nav a.btn:hover { color: var(--white); }

.footer-copy {
  flex: 1 0 100%;
  max-width: none;
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 2.5rem); }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1.25rem 1.35rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav > ul > li { border-top: 1px solid var(--line); }

  .site-nav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.15rem;
  }

  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    padding: 0 0 0.65rem 0.15rem;
    border: 0;
    background: transparent;
    min-width: 0;
  }

  .subnav::before { display: none; }

  .subnav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--muted);
  }

  .site-nav .btn {
    width: 100%;
    margin: 0.75rem 0 0.15rem;
    min-height: 52px;
  }

  .hero {
    min-height: calc(88vh - var(--header));
    padding: 6vh 0 8vh;
  }

  h1 { font-size: clamp(2.55rem, 12vw, 3.5rem); }

  .page-hero { padding: 7vh 0 3vh; }

  .section { padding: 9vh 0; }

  .split,
  .process,
  .process-six,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split { gap: 3.25rem; }

  .process { gap: 0; }

  .process li { padding: 1.35rem 0; }

  .btn { min-height: 52px; }

  .footer-inner { display: grid; }

  .statement { max-width: 14ch; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; }
}
