
/* Layout idea: the brand is black, white and one red, shot in black-and-white.
   Black hero with the embankment photo, then quiet ruled lists on white and stone.
   The only loud thing is the lowercase wordmark with its red initials. */
:root {
  color-scheme: light;
  --ink: #0c0c0d;
  --paper: #ffffff;
  --stone: #edebea;
  --red: #d0122d;
  --mute: #68666a;
  --mute-on-ink: #a9a6aa;
  --red-on-ink: #f0475c;
  --line: rgba(12, 12, 13, .16);
  --line-on-ink: rgba(255, 255, 255, .2);
  --display: "Prata", "Times New Roman", Georgia, serif;
  --body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.dark :focus-visible, .top :focus-visible, .intro :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--paper); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 10px; }
.legal { display: grid; gap: 4px; max-width: 46em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--line-on-ink);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 32px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 22px; text-decoration: none; line-height: 1;
}
.brand img { width: 38px; height: 38px; }
.brand b, .mark b { font-weight: 400; color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav a {
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); }

/* ---------- intro: start screen ---------- */
.intro { position: relative; height: clamp(460px, 88vh, 860px); background: var(--ink); color: var(--paper); overflow: hidden; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
@media (orientation: landscape) {
  .intro video { object-position: 50% 64.5%; }
}
.intro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12,12,13,.66) 0%, rgba(12,12,13,.86) 100%); }
.intro-inner {
  position: relative; z-index: 1; height: 100%; padding: 40px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
}
.intro-mark {
  font-family: var(--display); font-weight: 400; font-size: clamp(54px, 13vw, 208px);
  line-height: .95; letter-spacing: -.02em; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em;
}
.intro-mark .w { display: inline-flex; }
.intro-mark .r { color: var(--red); }
.cue {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cue::after { content: ""; width: 1px; height: 44px; background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .intro-mark .w > span { animation: letter 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.5s + var(--i) * .13s); }
  .intro .eyebrow, .cue { animation: fade 1s ease 2s both; }
  @keyframes letter { from { opacity: 0; filter: blur(14px); transform: translateY(.18em); } }
  @keyframes fade { from { opacity: 0; } }
  .cue::after { animation: drop 2s ease-in-out 3s infinite; transform-origin: top; }
  @keyframes drop { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../media/bridge-w.webp") center 30% / cover no-repeat; opacity: .2; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,13,.85) 0%, rgba(12,12,13,.35) 60%, rgba(12,12,13,.6) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 72px); align-items: stretch;
  padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(36px, 6vw, 80px);
}
.hero-text { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); justify-content: space-between; }
.eyebrow {
  margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-on-ink);
}
.mark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 12.5vw, 176px); line-height: .92; letter-spacing: -.02em;
}
.mark span { display: block; }
.mark span + span { padding-left: .62em; }
.motto { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.motto .lead { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.12; text-wrap: balance; }
.motto .gloss { font-size: 16px; max-width: 30em; color: var(--mute-on-ink); }
.motto .gloss i { font-family: var(--display); font-style: normal; color: var(--paper); }
.btn {
  display: inline-block; align-self: flex-start;
  padding: 15px 28px; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { background: #a80d23; transform: translateY(-1px); }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-on-ink);
}
.stats div { padding: 18px 16px 0 0; }
.stats div + div { padding-left: 16px; border-left: 1px solid var(--line-on-ink); }
.stats strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stats span { font-size: 14px; color: var(--mute-on-ink); }
.hero-photo { position: relative; min-height: 340px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; background: #1b1b1d; }
.hero-photo::after {
  content: ""; position: absolute; left: -1px; bottom: 0; width: 5px; height: 38%; background: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
  .mark span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .mark span + span { animation-delay: .12s; }
  .hero-photo img { animation: unveil 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.stone { background: var(--stone); }
.dark { background: var(--ink); color: var(--paper); }
.head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }
.head p { max-width: 26em; color: var(--mute); font-size: 16px; }
.dark .head p { color: var(--mute-on-ink); }

.about { padding: clamp(48px, 7vw, 88px) 0; }
.about p {
  font-family: var(--display); font-size: clamp(22px, 3vw, 36px); line-height: 1.32;
  max-width: 24em; text-wrap: balance;
}
.about p::before { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-bottom: 28px; }

/* photo band */
.band { margin: 0; background: var(--ink); }
.band img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; object-position: 50% 55%; }

/* practices: ruled rows */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px 40px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.row h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.row ul { display: grid; gap: 8px; }
.bul li { position: relative; padding-left: 20px; }
.bul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--red); }

/* projects */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); }
.cols h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.cols li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* team */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(32px, 5vw, 72px); }
.person { display: flex; flex-direction: column; gap: 22px; }
.person .ph { aspect-ratio: 4 / 4.4; overflow: hidden; background: #1b1b1d; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.person .role { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-on-ink); margin-top: 8px; }
.person .bio { color: #e4e2e5; }
.facts { display: grid; gap: 18px; border-top: 1px solid var(--line-on-ink); padding-top: 20px; }
.facts h4 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-on-ink); }
.facts ul { display: grid; gap: 6px; font-size: 16px; }
details { border-top: 1px solid var(--line-on-ink); border-bottom: 1px solid var(--line-on-ink); }
summary {
  cursor: pointer; padding: 16px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--red-on-ink); }
details[open] summary::after { content: "–"; }
details ul { display: grid; gap: 10px; padding-bottom: 20px; font-size: 15.5px; color: #e4e2e5; }
.reach { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.reach a { text-decoration-color: var(--red); text-underline-offset: 4px; }

/* media */
.news { border-top: 1px solid var(--ink); }
.news li {
  display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto;
  gap: 8px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.news .cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.news h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.news p { color: var(--mute); font-size: 15.5px; margin-top: 6px; max-width: 46em; }
.news a.more { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; text-decoration-color: var(--red); text-underline-offset: 4px; }
.pubs { margin-top: 44px; display: grid; gap: 12px; max-width: 52em; }
.pubs h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.pubs li { font-size: 16px; }
.blog { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.blog li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.blog time { font-size: 13px; letter-spacing: .08em; color: var(--mute); font-variant-numeric: tabular-nums; }
.blog a { font-size: 19px; font-weight: 500; line-height: 1.3; text-decoration-color: var(--red); text-underline-offset: 4px; }
@media (max-width: 640px) { .blog li { grid-template-columns: minmax(0, 1fr); } }

/* contacts */
.contact { position: relative; background: var(--ink) url("../media/skyline-w.webp") center 60% / cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,13,.9), rgba(12,12,13,.72)); }
.contact .wrap { position: relative; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px clamp(32px, 5vw, 72px); align-items: end; }
.contact h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 80px); line-height: 1.02; }
.contact h2 b { font-weight: 400; color: var(--red); }
.contact dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-on-ink); }
.contact dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-on-ink); }
.contact dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-on-ink); padding-top: 5px; }
.contact dd { margin: 0; font-size: clamp(18px, 2vw, 22px); overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--red); }

footer { background: var(--ink); color: var(--mute-on-ink); font-size: 14px; border-top: 1px solid var(--line-on-ink); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }

@media (max-width: 860px) {

  .hero .wrap, .row, .cols, .people, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .news li { grid-template-columns: minmax(0, 1fr); }
  .person .ph { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 640px) {
  .top .wrap { flex-wrap: nowrap; gap: 16px; }
  .brand span { display: none; }
  .nav { flex-wrap: nowrap; gap: 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 0; }
  .intro { height: clamp(480px, 82vh, 720px); }
  .intro-mark { flex-direction: column; align-items: center; font-size: clamp(72px, 25vw, 132px); line-height: .9; gap: 0; }
  .intro-mark .w + .w { padding-left: .5em; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .band img { height: 62vw; }
  .contact dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav a { font-size: 12px; }
  .stats strong { font-size: 30px; }
  .stats div { padding-right: 8px; }
  .stats div + div { padding-left: 10px; }
  .stats span { font-size: 12.5px; }
}

/* ---------- multi-page additions ---------- */
.head .more, a.more { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.row h3 a, .card h2 a { text-decoration: none; }
.row h3 a:hover, .card h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.phead { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 72px) 0; }
.phead .wrap { display: flex; flex-direction: column; gap: 20px; }
.phead .wrap::before { content: ""; width: 64px; height: 4px; background: var(--red); order: 1; }
.crumbs { order: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-on-ink); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.phead h1 { order: 2; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; max-width: 18em; text-wrap: balance; }
.plead, .byline { order: 3; font-size: 18px; color: var(--mute-on-ink); max-width: 42em; }
.h2, .split > h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > div { display: grid; gap: 18px; }
.ph { color: var(--mute); }
.cards { display: grid; gap: 0 clamp(32px, 5vw, 72px); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.card { border-top: 1px solid var(--ink); padding: 26px 0 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.card[hidden] { display: none; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.card h2.small { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.28; }
.card > p { color: var(--mute); font-size: 16px; }
.card .bul { display: grid; gap: 8px; font-size: 16px; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red) !important; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps .n { font-family: var(--display); font-size: 40px; line-height: 1.1; color: var(--red); }
.steps h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.steps p { font-size: 15.5px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { font: inherit; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; padding: 9px 16px; background: var(--paper); color: var(--ink); border: 1px solid rgba(12,12,13,.3); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.req-table { margin: 0; border-top: 1px solid var(--ink); max-width: 900px; }
.req-table div { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.req-table dt, .facts2 dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.req-table dd, .facts2 dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.req-table dd a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.facts2 { margin: 0; border-top: 1px solid var(--ink); }
.facts2 div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.case h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin-top: 14px; }

.article { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.article h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-top: 12px; }
.newsblock { padding-top: clamp(40px, 5vw, 64px); }
.e404 { background: var(--ink); color: var(--paper); padding: clamp(72px, 12vw, 150px) 0; text-align: center; }
.e404 .wrap { display: grid; gap: 20px; justify-items: center; }
.e404 .big { font-family: var(--display); font-size: clamp(110px, 20vw, 220px); line-height: .95; }
.e404 .big b { font-weight: 400; color: var(--red); }
.e404 h1 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); }
.e404 p { color: var(--mute-on-ink); }

[data-page][hidden], [data-on][hidden] { display: none !important; }
@media (max-width: 860px) {
  .split, .split.even, .cards.two, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .req-table div { grid-template-columns: minmax(0, 1fr); }
}
