/* Harlan & Reyes. An editorial monument: parchment and ink, black and white photographs,
   an oxblood ribbon that hangs from the masthead rule, and practice areas set as a contents page. */

:root {
  --parch: #EEE7D9;
  --parch-hi: #F6F1E7;
  --ox: #5C1A1E;
  --ox-deep: #43121A;
  --ink: #000000;
  --stone: #8A8174;
  --stone-ink: #625A4F;
  --display: 'Brygada 1918', Georgia, serif;
  --body: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0; color: var(--ink); background: var(--parch);
  font: 400 18px/1.55 var(--body);
  text-rendering: optimizeLegibility; font-kerning: normal;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: url(img/grain.svg) 0 0 / 320px 320px; opacity: .22; mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; }
p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ox); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 120; background: var(--ink); color: var(--parch); padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 12px; }
.tel { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 2px solid transparent; border-radius: 2px;
  font: 700 18px/1 var(--body); letter-spacing: .005em; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-ink { background: var(--ink); color: var(--parch); }
.btn-ink:hover { background: #2A2622; }
.btn-ox { background: var(--ox); color: var(--parch); }
.btn-ox:hover { background: var(--ox-deep); }
.btn-parch { background: var(--parch); color: var(--ox); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--parch-hi); }
.btn-parch:hover { background: var(--parch-hi); }

/* Masthead */
.mast { position: relative; z-index: 6; border-bottom: 3px solid var(--ink); background: var(--parch); }
.mast-in { max-width: 1440px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 14px; min-height: 72px; }
.name { display: flex; align-items: center; min-height: 48px; text-decoration: none; margin-right: auto; padding: 4px 0; }
/* Logo: an oxblood seal with the H and R of the two partners, joined by one straight bar through the H's
   crossbar and the R's waist, beside the Brygada wordmark with a small upright ampersand. */
.logo { display: inline-flex; align-items: center; gap: .36em; font-size: 30px; }
.logo-icon { height: 1.7em; width: auto; aspect-ratio: 15.5 / 18; flex: none; }
.logo-seal { fill: var(--ox); }
.logo-mono { fill: var(--parch); }
.logo-text { display: grid; justify-items: start; }
.name-words { font: 700 1em/1 var(--display); letter-spacing: 0; word-spacing: -.04em; white-space: nowrap; }
.amp { display: inline-block; font-size: .58em; font-style: normal; font-weight: 500; color: var(--ox); margin: 0 .03em; }
.name-line { display: block; font: 500 15px/1.3 var(--body); color: var(--stone-ink); margin-top: 5px; text-wrap: balance; }
.nav, .mast-phone { display: none; }
.burger {
  width: 48px; height: 48px; flex: none; display: grid; place-content: center; gap: 6px;
  background: transparent; border: 2px solid var(--ink); border-radius: 2px;
}
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 100%); overflow-y: auto; display: flex; flex-direction: column; padding: 6px var(--gutter) 28px; background: var(--ink); color: var(--parch); }
.menu :focus-visible { outline-color: var(--parch); }
.menu-photo { flex: 1 1 0; min-height: 0; max-height: 300px; margin: 22px 0 0; overflow: hidden; border-radius: 0; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-photo + .menu-foot { margin-top: 0; padding-top: 14px; }
@media (max-height: 700px) { .menu-photo { display: none; } .menu-photo + .menu-foot { margin-top: auto; } }
.menu-photo img { object-position: 50% 62%; }
.menu-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 2px; font: italic 500 18px/1.4 var(--display); color: #D9CFC0; }
.scrim { position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, .5); }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: center; min-height: 54px; font: 700 23px/1.1 var(--display); text-decoration: none; border-bottom: 1px solid rgba(238, 231, 217, .2); }
.menu nav a:first-child { font-style: italic; font-weight: 500; }
.menu-cta { width: 100%; margin-top: 18px; }
.menu-call { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 8px; font: 700 19px/1 var(--body); border: 2px solid var(--parch); text-decoration: none; }

/* Front page */
.front-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; }
.front-main { container-type: inline-size; padding: 26px 0 30px; min-width: 0; }
.headline { font-size: clamp(34px, 11.6cqi, 64px); line-height: 1; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
.headline span { display: inline; }
.front-actions { display: grid; gap: 10px; margin-top: 24px; }
.plate { margin-top: 34px; position: relative; }
.plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 54% 50%; background: #111; }
.plate figcaption { margin-top: 10px; font: italic 500 17px/1.4 var(--display); color: var(--stone-ink); }

/* The ribbon: the consultation form hangs from the masthead rule like a bookmark. */
.ribbon {
  position: relative; z-index: 4; color: var(--parch);
  background-color: var(--ox);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 30px), 0 100%);
  margin: 0 calc(var(--gutter) * -1);
}
.ribbon :focus-visible { outline-color: var(--parch); }
.ribbon-in { padding: 30px 20px 66px; display: grid; gap: 16px; }
.ribbon-title { font-size: 38px; line-height: 1; letter-spacing: -.01em; }
.ribbon-lede { font-size: 18px; line-height: 1.45; color: #F3E9DD; }
.consult { display: grid; gap: 16px; }
.consult fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.consult legend, .field-label { display: block; padding: 0; margin-bottom: 6px; font: 700 17px/1.3 var(--body); color: var(--parch); }
.areas { display: grid; }
.area { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 46px; padding: 9px 10px 6px; cursor: pointer; border-bottom: 1px solid rgba(238, 231, 217, .22); }
.area input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.area-name { font: 700 23px/1.1 var(--display); }
.area-who { font: italic 500 18px/1.1 var(--display); color: #F3E9DD; white-space: nowrap; }
.area:hover { background: rgba(0, 0, 0, .14); }
.area:has(input:checked) { background: var(--parch); color: var(--ox); }
.area:has(input:checked) .area-who { color: var(--ox); }
.area:has(input:focus-visible) { outline: 3px solid var(--parch); outline-offset: 2px; }
.field { display: grid; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 2px;
  background: var(--parch-hi); color: var(--ink); font-size: 18px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: #6E665C; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--parch); outline-offset: 2px; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 3px #E8A0A8; }
/* The times share a row where they fit and wrap two and one on narrow phones. */
.when-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; flex: 1 1 0; min-width: max-content; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 4px; border: 2px solid rgba(238, 231, 217, .6); font: 700 17px/1.1 var(--body); text-align: center; white-space: nowrap; }
.chip input:hover + span { background: rgba(0, 0, 0, .15); }
.chip input:checked + span { background: var(--parch); color: var(--ox); border-color: var(--parch); }
.chip input:checked + span::before { content: ""; width: 14px; height: 14px; margin-right: 6px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3L12 3.5' fill='none' stroke='%235C1A1E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chip input:focus-visible + span { outline: 3px solid var(--parch); outline-offset: 3px; }
.pair { display: grid; gap: 16px; }
.submit { width: 100%; min-height: 56px; font: 700 21px/1 var(--display); letter-spacing: -.005em; }
.consult-msg { font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--ox); padding: 12px 14px; background: var(--parch); border-radius: 2px; }
.consult-msg:empty { display: none; }
.done { display: grid; gap: 12px; outline: none; padding: 6px 0; }
.done-head { font: 700 34px/1.05 var(--display); }
.done-body { font-size: 18px; line-height: 1.5; }
.done-body a { font-weight: 700; }
.done-again { justify-self: start; min-height: 48px; padding: 0; background: none; border: 0; font: 700 17px/1 var(--body); color: var(--parch); text-decoration: underline; text-underline-offset: 4px; }
.promise { display: flex; align-items: center; gap: 10px; font: 700 17px/1.35 var(--body); }
.promise svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Contents page */
.contents-in { max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter) 84px; }
.contents-head { display: grid; gap: 14px; padding-bottom: 30px; }
.contents-title { font-size: clamp(52px, 9vw, 104px); line-height: .95; letter-spacing: -.02em; }
.contents-sub { font-size: 20px; max-width: 40ch; }
.toc { list-style: none; margin: 0; padding: 0; }
.part { border-top: 3px solid var(--ink); padding: 22px 0 34px; }
.part-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.part-name { font: 700 clamp(44px, 7vw, 84px)/1 var(--display); letter-spacing: -.02em; }
.part-dots { display: none; }
.part-who { font: italic 500 clamp(22px, 2.4vw, 30px)/1.1 var(--display); color: var(--ox); }
.part-body { display: grid; gap: 12px; margin-top: 14px; }
.part-cases { font-size: 20px; line-height: 1.5; max-width: 38ch; }
.part-fee { font: italic 500 21px/1.45 var(--display); color: var(--ox); max-width: 40ch; }

/* Full-width plate */
.band { position: relative; margin: 0; background: var(--ink); }
.band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 34%, rgba(0, 0, 0, 0) 66%); pointer-events: none; }
.band figcaption { z-index: 1; }
.band figcaption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  font: 700 clamp(26px, 3.6vw, 44px)/1.1 var(--display); color: var(--parch); max-width: 22ch; text-wrap: balance;
}

/* How a Case Works */
.how-in { max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter); display: grid; gap: 34px; }
.how-side { display: grid; gap: 14px; align-content: start; }
.how-title { font-size: clamp(48px, 8vw, 92px); line-height: .95; letter-spacing: -.02em; }
.how-sub { font-size: 20px; }
.how-photo { margin-top: 18px; }
.how-photo img { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; padding: 24px 0 28px; border-top: 2px solid var(--ink); }
.step:last-child { border-bottom: 2px solid var(--ink); }
.step-mark { grid-row: span 2; font: 700 40px/1 var(--display); color: var(--ox); white-space: nowrap; }
.step h3 { font-size: 28px; line-height: 1.12; letter-spacing: -.01em; }
.step p:not(.step-mark) { font-size: 19px; line-height: 1.55; max-width: 52ch; }

/* The Lawyers */
.lawyers { border-top: 3px solid var(--ink); }
.lawyers-in { max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter) 96px; display: grid; gap: 48px; }
.lawyers-title { font-size: clamp(52px, 9vw, 104px); line-height: .95; letter-spacing: -.02em; }
.lawyer { display: grid; gap: 20px; }
.lawyer-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #111; }
.lawyer-text { display: grid; gap: 12px; }
.lawyer-name { font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; }
.lawyer-role { font: 700 18px/1.4 var(--body); color: var(--ox); }
.lawyer-text p:not(.lawyer-role) { font-size: 19px; line-height: 1.6; max-width: 46ch; }
.lawyer-line { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; font: 700 18px/1 var(--body); text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--ox); }

/* Contact */
.contact { background: var(--ink); color: var(--parch); }
.contact :focus-visible { outline-color: var(--parch); }
.contact-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 84px; display: grid; gap: 36px; }
.contact-photo { margin: 0 calc(var(--gutter) * -1); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.contact-text { display: grid; gap: 20px; align-content: start; }
.contact-title { font-size: clamp(56px, 10vw, 120px); line-height: .9; letter-spacing: -.025em; }
.contact-addr { font: 500 26px/1.3 var(--display); font-style: normal; display: grid; }
.contact-phone { justify-self: start; font: 700 clamp(40px, 6vw, 64px)/1 var(--display); text-decoration: none; letter-spacing: -.01em; padding: 4px 0; border-bottom: 3px solid var(--ox); }
.contact-phone:hover { border-bottom-color: var(--parch); }
.facts { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(238, 231, 217, .28); }
.facts p { font-size: 19px; line-height: 1.55; max-width: 44ch; }
.contact .btn { justify-self: start; margin-top: 8px; }

/* Footer */
.foot { border-top: 3px solid var(--ink); }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 48px; display: grid; gap: 8px; font-size: 17px; }
.foot-logo { margin-bottom: 6px; }
.foot-logo .logo { font-size: 30px; }
.foot-logo .logo-icon { height: 1.5em; }
.foot-name { font: 700 1em/1.1 var(--display); word-spacing: -.04em; }
.foot a { font-weight: 700; }
.foot-demo { margin-top: 12px; color: var(--stone-ink); }

/* Load moment: the masthead rule is drawn across the page and the ribbon drops onto it. */
@media (prefers-reduced-motion: no-preference) {
  .mast::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--ink);
    transform-origin: left; animation: rule-draw .7s cubic-bezier(.6, 0, .2, 1) backwards;
  }
  .mast { border-bottom-color: transparent; }
  .ribbon { transform-origin: 50% 0; animation: ribbon-drop 1.1s cubic-bezier(.22, 1, .36, 1) .45s backwards; }
}
@keyframes rule-draw { from { transform: scaleX(0); } }
@keyframes ribbon-drop { 0% { transform: translateY(-28px) rotate(-1.2deg); } 60% { transform: translateY(4px) rotate(.4deg); } 100% { transform: none; } }
@media (max-width: 359px) {
  .name .logo-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .headline { font-size: clamp(44px, 11.2cqi, 112px); line-height: .96; }
  .headline span { display: block; }
  .front-actions { grid-template-columns: auto auto; justify-content: start; }
  .plate img { aspect-ratio: 3 / 2; }
  .pair { grid-template-columns: 1fr 1fr; }
  .part-body { grid-template-columns: 1fr 1fr; gap: 30px; }
  .band img { aspect-ratio: 21 / 9; }
  .band figcaption { bottom: 34px; }
  .lawyer-photo img { max-width: 520px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .name .logo { font-size: 38px; }
  .name .logo-icon { height: 1.66em; }
  .nav { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font: 500 17px/1 var(--body); text-decoration: none; }
  .nav a:hover, .nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--ox); }
  .nav a[aria-current="true"] { color: var(--ox); }
  .burger { display: none; }
  .menu, .scrim { display: none !important; }
  .mast-in { min-height: 96px; }
  .part-line { flex-wrap: nowrap; }
  .part-dots { display: block; flex: 1; min-width: 40px; border-bottom: 4px dotted var(--stone); transform: translateY(-.18em); }
  .how-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .how-side { position: sticky; top: 30px; }
  .step { grid-template-columns: 96px 1fr; padding: 28px 0 32px; }
  .step-mark { font-size: 48px; }
  .lawyers-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; }
  .lawyers-title { grid-column: 1 / -1; margin-bottom: 44px; }
  .lawyer-a { grid-column: 1 / span 6; }
  .lawyer-b { grid-column: 7 / span 6; margin-top: 200px; }
  .lawyer-photo img { max-width: none; }
  .contact-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 0 var(--gutter); align-items: stretch; }
  .contact-photo { margin: 0 0 0 calc(var(--gutter) * -1); }
  .contact-photo img { height: 100%; aspect-ratio: auto; min-height: 640px; }
  .contact-text { padding: 96px 0; align-self: center; }
}

@media (min-width: 1100px) {
  .mast-phone { display: grid; justify-items: end; margin-left: 18px; text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
  .mast-phone-label { font: 500 15px/1.2 var(--body); color: var(--stone-ink); letter-spacing: 0; margin-bottom: 4px; }
}

/* The front page spread: headline and plate on the left, the ribbon hanging on the right. */
@media (min-width: 1180px) {
  :root { --gutter: 56px; }
  .front-in { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 52px; }
  .front-main { padding: 34px 0 40px; }
  .front-actions { display: none; }
  .plate img { aspect-ratio: auto; height: clamp(320px, calc(100vh - 470px), 560px); object-position: 50% 50%; }
  .ribbon { margin: -3px 0 0; align-self: start; }
  .ribbon-in { padding: 24px 30px 62px; gap: 12px; }
  .consult { gap: 12px; }
  .field textarea { min-height: 64px; }
  .area { min-height: 44px; padding: 7px 10px 5px; }
  .area-name { font-size: 22px; }
}
