/* Round 3 sections. Paper, hairlines, large plates, one dominant element per scene. */
main { position: relative; display: block; }

/* ---------- shared media plate ---------- */
.plate {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.plate > img, .plate > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
button.plate { padding: 0; border: 0; text-align: left; cursor: pointer; color: inherit; }
.plate:hover > img, .plate:hover > video, .plate:focus-visible > img, .plate:focus-visible > video { transform: scale(1.03); }
.plate > video.crop-bars { left: -40%; top: -40%; width: 180%; max-width: none; height: 180%; }
.plate__play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font: 500 0.8125rem/1 var(--sans);
  pointer-events: none;
}
.plate__play svg { width: 28px; height: 28px; }
.plate__play circle { fill: none; stroke: currentColor; stroke-width: 1; }
.plate__play path { fill: currentColor; }

/* ---------- hero: the reel ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  --focus: var(--paper);
}
.hero__media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 26, 63, 0.86) 0%, rgba(10, 26, 63, 0.46) 36%, rgba(10, 26, 63, 0.1) 62%, rgba(10, 26, 63, 0.3) 100%),
    linear-gradient(90deg, rgba(10, 26, 63, 0.35) 0%, rgba(10, 26, 63, 0) 60%);
}
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(44px, 7vh, 80px);
}
.hero__grid { width: 100%; align-items: end; row-gap: clamp(28px, 4vh, 44px); }
.hero__title { grid-column: 1 / 12; color: var(--paper); text-wrap: balance; }
.hero__aside {
  grid-column: 1 / 9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
}
.hero__sub { flex: 1 1 320px; max-width: 40ch; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__meta { grid-column: 10 / 13; justify-self: end; text-align: right; color: rgba(255, 255, 255, 0.72); }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 1px; background: rgba(255, 255, 255, 0.2); }
.hero__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left center; }
html.is-loading .hero__play { display: none; }
@media (max-width: 1023px) {
  .hero__title { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / -1; }
  .hero__meta { display: none; }
}
@media (max-width: 767px) {
  .hero__sub { font-size: 0.9375rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- who we are: a label, a statement, a paragraph and one tall plate ---------- */
.who__label { grid-column: 1 / 3; color: var(--blue); padding-top: 0.6em; }
.who__statement { grid-column: 3 / 13; }
.who__body { grid-column: 3 / 8; margin-top: clamp(40px, 6vw, 88px); align-self: start; }
.who__body p + p { margin-top: 1.2em; }
.who__plate { grid-column: 9 / 13; margin: clamp(40px, 6vw, 88px) 0 0; }
.who__plate .plate { aspect-ratio: 3 / 4; }
.cap { margin-top: 12px; color: var(--mute); }
@media (max-width: 1023px) {
  .who__label { grid-column: 1 / -1; padding-top: 0; margin-bottom: 20px; }
  .who__statement { grid-column: 1 / -1; }
  .who__body { grid-column: 1 / 8; }
  .who__plate { grid-column: 9 / 13; }
}
@media (max-width: 767px) {
  .who__body { grid-column: 1 / -1; }
  .who__plate { grid-column: 1 / 4; max-width: 360px; }
}

/* ---------- what we do: hairline rows and a sticky plate ---------- */
.sec-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.sec-head__title { grid-column: 1 / 8; }
.sec-head__line { grid-column: 9 / 13; padding-bottom: 0.4em; color: var(--mute); }
@media (max-width: 1023px) {
  .sec-head { row-gap: 20px; }
  .sec-head__title, .sec-head__line { grid-column: 1 / -1; }
}

.what__rows { grid-column: 1 / 8; position: relative; }
.what__rows::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); transform: scaleX(var(--draw, 1)); transform-origin: left center; }
.srow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: center;
  padding: clamp(26px, 3vw, 38px) 0 clamp(24px, 3vw, 36px);
  cursor: pointer;
}
.srow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); transform: scaleX(var(--draw, 1)); transform-origin: left center; transition: background-color 0.3s ease; }
.srow:hover::after, .srow:focus-within::after, .srow.is-on::after { background: var(--blue); }
.srow__main { min-width: 0; }
.srow__name { color: var(--ink); transition: color 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.srow:hover .srow__name, .srow:focus-within .srow__name, .srow.is-on .srow__name { color: var(--blue); transform: translateX(10px); }
.srow__text { margin-top: 10px; max-width: 46ch; font-size: 0.9375rem; line-height: 1.5; color: var(--mute); }
.srow__link { align-self: center; white-space: nowrap; }
.what__plates {
  grid-column: 9 / 13;
  position: sticky;
  top: calc(var(--head-h) + 24px);
  align-self: start;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
}
.vplate { position: absolute; inset: 0; opacity: 0; }
.vplate.is-on { opacity: 1; }
.vplate > video, .vplate > img { width: 100%; height: 100%; object-fit: cover; }
.vplate--art { background: var(--blue); display: grid; place-items: center; }
.vplate--art svg { width: 70%; height: auto; }
.vplate--art path { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linejoin: miter; }
.vplate--art path:nth-child(even) { opacity: 0.45; }
.what__plates-cap { position: absolute; left: 20px; bottom: 18px; color: var(--paper); font: 500 0.8125rem/1.4 var(--sans); opacity: 0.85; }
@media (max-width: 1023px) {
  .what__rows { grid-column: 1 / -1; }
  .what__plates { display: none; }
  .srow { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .srow__link { justify-self: start; }
}

/* ---------- our achievements: a blue band and a ledger ---------- */
.ach { background: var(--blue); color: var(--paper); overflow: hidden; --focus: var(--paper); }
.ach__k { position: absolute; right: -4vw; top: 50%; width: min(52vw, 720px); height: auto; transform: translateY(-50%); pointer-events: none; }
.ach__k path { fill: none; stroke: var(--paper); stroke-width: 1.1; stroke-linejoin: miter; opacity: 0.34; vector-effect: non-scaling-stroke; }
.ach .wrap { position: relative; z-index: 1; }
.ach__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.ach__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.875rem, 3.4vw, 3.25rem); line-height: 1; }
.ach__line { color: rgba(255, 255, 255, 0.76); }
.ledger { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-w); }
.claim { position: relative; padding: clamp(32px, 4vw, 56px) 24px clamp(30px, 3.6vw, 52px) 0; border-bottom: 1px solid var(--hair-w); min-width: 0; }
.claim:not(:nth-child(3n + 1)) { padding-left: 24px; }
.claim:not(:nth-child(3n + 1))::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair-w); }
.claim__num { display: block; color: var(--paper); white-space: nowrap; }
.claim__label { display: block; margin-top: 14px; font-size: 0.9375rem; line-height: 1.4; color: rgba(255, 255, 255, 0.84); }
@media (max-width: 767px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim:not(:nth-child(3n + 1)) { padding-left: 0; }
  .claim:not(:nth-child(3n + 1))::before { display: none; }
  .claim:nth-child(even) { padding-left: 20px; }
  .claim:nth-child(even)::before { content: ""; display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair-w); }
  .claim { padding-right: 12px; }
  .ach__k { width: 80vw; right: -20vw; }
}

/* ---------- selected work: an editorial gallery, then the full index ---------- */
.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  column-gap: var(--gap);
  row-gap: clamp(56px, 7vw, 112px);
  align-items: end;
}
.piece { min-width: 0; }
.piece--1 { grid-column: 1 / 9; }
.piece--2 { grid-column: 1 / 5; }
.piece--3 { grid-column: 6 / 13; }
.piece--4 { grid-column: 1 / 8; }
.piece--5 { grid-column: 9 / 13; }
.piece--6 { grid-column: 3 / 11; }
.piece__media { aspect-ratio: 16 / 9; }
.piece--2 .piece__media, .piece--5 .piece__media { aspect-ratio: 4 / 5; }
.piece__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.piece__title { color: var(--ink); }
.piece__svc { flex: none; max-width: 40%; text-align: right; color: var(--mute); }
@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece { grid-column: auto !important; }
  .piece--1, .piece--3, .piece--6 { grid-column: 1 / -1 !important; }
  .piece--2 .piece__media, .piece--5 .piece__media { aspect-ratio: 4 / 5; }
}
@media (max-width: 767px) {
  .gallery { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .piece--2 .piece__media, .piece--5 .piece__media { aspect-ratio: 16 / 9; }
  .piece__cap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .piece__svc { max-width: none; text-align: left; }
}

.index { grid-column: 1 / -1; margin-top: clamp(88px, 11vw, 160px); }
.index__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}
.index__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 2.6vw, 2.375rem); line-height: 1; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.chip {
  padding: 6px 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: 500 0.875rem/1.3 var(--sans);
  color: var(--mute);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.chip__n { color: var(--blue); margin-left: 4px; }
.index__count { margin-top: 14px; color: var(--mute); }
.irows { margin-top: 10px; }
.irow[hidden] { display: none; }
.irow__btn {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: baseline;
  width: 100%;
  padding: clamp(18px, 2vw, 26px) 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.irow__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); transform: scaleX(var(--draw, 1)); transform-origin: left center; transition: background-color 0.3s ease; }
.irow__btn:hover::after, .irow__btn:focus-visible::after { background: var(--blue); }
.irow__n { font-size: 0.8125rem; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.irow__title { color: var(--ink); transition: color 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.irow__btn:hover .irow__title, .irow__btn:focus-visible .irow__title { color: var(--blue); transform: translateX(10px); }
.irow__svc { text-align: right; max-width: 36ch; color: var(--mute); }
@media (max-width: 767px) {
  .irow__btn { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .irow__svc { grid-column: 2; text-align: left; }
}

/* cursor preview for the index (desktop with a pointer only) */
.preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 1023px) {
  .preview { display: none; }
}

/* ---------- those who trusted us: a quiet monochrome field ---------- */
.clients__head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.clients__line { color: var(--mute); max-width: 46ch; }
.wall {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px) clamp(20px, 2.6vw, 40px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--hair);
}
.client { min-width: 0; }
.client img {
  width: 82%;
  height: 56px;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.66;
  mix-blend-mode: multiply;
  transition: filter 0.5s ease, opacity 0.5s ease;
}
.client:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 1023px) {
  .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .client img { height: 42px; width: 90%; }
}

/* ---------- contact: the ink closing scene ---------- */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; --focus: var(--paper); }
.contact__k { position: absolute; right: 4%; top: clamp(72px, 9vh, 140px); width: min(26vw, 360px); height: auto; pointer-events: none; }
.contact__k path { fill: none; stroke: var(--paper); stroke-width: 1.2; stroke-linejoin: miter; opacity: 0.6; vector-effect: non-scaling-stroke; }
.contact .wrap { position: relative; z-index: 1; }
.contact__title { grid-column: 1 / 12; color: var(--paper); }
.contact__rows { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--hair-w); }
.crow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--hair-w);
  color: var(--paper);
  text-decoration: none;
}
.crow__text { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.1; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.crow:hover .crow__text, .crow:focus-visible .crow__text { transform: translateX(12px); }
.crow__hint { flex: none; color: rgba(255, 255, 255, 0.66); }
.contact__details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  column-gap: var(--gap);
  row-gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.detail { min-width: 0; }
.detail:nth-child(1) { grid-column: 1 / 4; }
.detail:nth-child(2) { grid-column: 4 / 7; }
.detail:nth-child(3) { grid-column: 7 / 10; }
.detail:nth-child(4) { grid-column: 10 / 13; }
.detail dt { font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.detail dd { font-size: 1rem; line-height: 1.5; }
.detail dd + dd { margin-top: 2px; }
.detail .tlink { font-size: 1rem; font-weight: 400; background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)); }
.detail .tlink:hover { color: var(--paper); }
.clock { font-variant-numeric: tabular-nums; }
.foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: 28px;
  border-top: 1px solid var(--hair-w);
}
.foot__logo { height: 26px; width: auto; }
.foot__note { color: rgba(255, 255, 255, 0.66); }
@media (max-width: 1023px) {
  .contact__title { grid-column: 1 / -1; }
  .detail:nth-child(1), .detail:nth-child(2), .detail:nth-child(3), .detail:nth-child(4) { grid-column: span 6; }
  .contact__k { top: 40px; width: 34vw; opacity: 0.5; }
}
@media (max-width: 767px) {
  .detail:nth-child(1), .detail:nth-child(2), .detail:nth-child(3), .detail:nth-child(4) { grid-column: 1 / -1; }
  .crow { flex-direction: column; align-items: flex-start; gap: 6px; }
}
