/* Trisolas company site: a sheet from a drawing set. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* drafting film + logo inks */
  --film: #eef0ea;
  --film-deep: #e3e6de;
  --paper: #f7f8f4;
  --ink: #1c2e4a;
  --ink-2: #45536a;
  --rule: rgba(28, 46, 74, 0.22);
  --blue: #3fa0c0;
  --blue-ink: #1f6f8c;
  --sky: #5bbde8;
  --red: #c23b22;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --frame: clamp(0.5rem, 1.6vw, 1.25rem);
  --max: 88rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--film-deep);
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body.co {
  margin: 0;
  padding: var(--frame);
  background: var(--film-deep);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(91, 189, 232, 0.4);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- sheet frame ---------- */

.sheet {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--film);
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 calc(var(--frame) * 0.5) var(--film-deep), 0 0 0 calc(var(--frame) * 0.5 + 1px) var(--ink);
}

.zones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--ink);
  font-size: 0.6875rem;
  font-stretch: 120%;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  user-select: none;
}
.zones span {
  padding: 0.2rem 0;
  text-align: center;
}
.zones span + span {
  border-left: 1px solid var(--rule);
}

.lettering {
  font-size: 0.72rem;
  font-stretch: 118%;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
}

.sheet-no,
.sheet-tag {
  font-size: 0.6875rem;
  font-stretch: 118%;
  font-weight: 600;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  color: var(--blue-ink);
}

/* ---------- header ---------- */

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.head__logo img {
  width: clamp(8.5rem, 14vw, 11rem);
}

.head__nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.head__nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.2rem 1.1rem;
  border-left: 1px solid var(--rule);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.975rem;
  line-height: 1.25;
}
.head__nav a:hover,
.head__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
}

.head__nav .head__mail {
  margin-left: 0.75rem;
  border: 1.5px solid var(--ink);
  padding: 0.55rem 1rem;
  font-stretch: 110%;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.head__nav .head__mail:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  font-weight: 650;
}

.display {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  font-stretch: 86%;
  font-weight: 680;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.display--page {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  max-width: 20ch;
}

.display--close {
  max-width: 10ch;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 54ch;
  font-size: clamp(1.075rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

main p {
  text-wrap: pretty;
}

/* ---------- buttons & links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.35rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-stretch: 108%;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn__arrow {
  width: 1.25rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 260ms var(--ease-out);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
.btn--large {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  padding: 1.1rem 1.5rem;
  overflow-wrap: anywhere;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.link:hover {
  text-decoration-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: 3rem var(--gutter);
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.span-dim {
  margin: clamp(2.75rem, 5vw, 4.5rem) 0 0;
  max-width: 48rem;
  position: relative;
}

.span-dim__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.span-dim__row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 0.25rem;
}

/* extension line from the dimension down to each outer marker */
.span-dim__row li:first-child::before,
.span-dim__row li:last-child::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 0.35rem);
  left: 50%;
  height: 2.6rem;
  border-left: 1px solid var(--blue-ink);
  transform-origin: bottom;
}

.span-dim__name {
  margin-top: 0.6rem;
  font-weight: 620;
  font-size: 0.95rem;
}
.span-dim__role {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.marker {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--blue);
}
.marker--1 {
  background: var(--sky);
}

/* dimension line: spans marker centre to marker centre (1/8 → 7/8) */
.dim {
  position: relative;
  margin: 0 calc(100% / 8) 1.9rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-ink);
}
.dim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid currentColor;
}
.dim__arrow {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  fill: currentColor;
}
.dim__arrow--l {
  left: 0;
}
.dim__arrow--r {
  right: 0;
}
.dim__label {
  position: relative;
  padding: 0 0.75rem;
  background: var(--film);
  font-size: 0.75rem;
  font-stretch: 118%;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dim__value {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  vertical-align: -0.12em;
  margin-right: 0.15rem;
}

/* ---------- title block ---------- */

.titleblock {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.titleblock th,
.titleblock td {
  border: 1px solid var(--ink);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.titleblock th {
  width: 1%;
  white-space: nowrap;
  font-size: 0.72rem;
  font-stretch: 118%;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.titleblock td {
  white-space: nowrap;
  font-weight: 560;
  font-size: 0.95rem;
}
.titleblock__big {
  font-size: 1.35rem !important;
  font-weight: 680 !important;
  font-stretch: 90%;
  letter-spacing: -0.015em;
}

/* ---------- bands ---------- */

.band {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.band__head {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 62rem;
}
.band__head .sheet-tag {
  grid-row: 1 / span 2;
  padding-top: 0.55rem;
  border-top: 2px solid var(--blue);
  align-self: start;
}
.band__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
  font-stretch: 88%;
  letter-spacing: -0.025em;
}
.band__head p {
  margin: 0;
  grid-column: 2;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.page-head {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink);
}
.page-head .sheet-tag {
  display: inline-block;
  padding-top: 0.45rem;
  border-top: 2px solid var(--blue);
  margin-bottom: 1.25rem;
}

main > :last-child {
  border-bottom: 0;
}

.band__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 34rem);
  gap: 2rem var(--gutter);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.band__top .band__head {
  margin-bottom: 0;
}
.band__top .notes {
  margin: 0;
}

.band__head--page {
  max-width: none;
  margin-bottom: 0;
}
.band__head--page .sheet-tag {
  margin-bottom: 0;
}
.band__head--page > :not(.sheet-tag) {
  grid-column: 2;
}

/* ---------- schedule table ---------- */

.schedule {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.schedule thead th {
  text-align: left;
  font-size: 0.72rem;
  font-stretch: 118%;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--ink);
}
.schedule tbody th,
.schedule tbody td {
  text-align: left;
  vertical-align: top;
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.schedule tbody tr:last-child > * {
  border-bottom: 0;
}
.schedule tbody th {
  font-size: 1.3rem;
  font-weight: 650;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  width: 26%;
}
.schedule tbody td {
  color: var(--ink-2);
}
.schedule tbody td:last-child {
  color: var(--ink);
}
.schedule__mark {
  width: 5.5rem;
}
.schedule__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-stretch: 100%;
  color: var(--ink-2);
}
.schedule__links {
  white-space: nowrap;
}
.schedule__links .link {
  display: block;
  margin-bottom: 0.35rem;
}
.schedule--products {
  margin: clamp(2rem, 4vw, 3rem) var(--gutter) 0;
  width: calc(100% - 2 * var(--gutter));
}
.schedule--products tbody th a {
  text-decoration: none;
}
.schedule--products tbody th a:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue);
}

.tag-hex {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.3rem;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 115%;
  letter-spacing: 0.04em;
}

/* ---------- general notes ---------- */

.notes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-left: auto;
  max-width: 40rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.notes--wide {
  margin-left: 0;
  margin-top: 0;
  max-width: 48rem;
}
.notes h3 {
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}
.notes ol {
  margin: 0;
  padding-left: 1.4rem;
}
.notes li {
  padding-left: 0.35rem;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}
.notes li::marker {
  font-weight: 650;
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}
.notes li strong {
  color: var(--ink);
  font-weight: 620;
}
.notes li:last-child {
  margin-bottom: 0;
}

/* ---------- products detail ---------- */

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

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.detail__fig {
  margin: 0;
}
.detail__fig img {
  border: 1.5px solid var(--ink);
  background: #fff;
}
.detail__fig--wide {
  margin: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: 60rem;
}
.detail__fig figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* detail bubble: circle split by a horizontal rule, number over sheet */
.bubble {
  flex: none;
  display: inline-grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    var(--paper);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bubble span:first-child {
  font-weight: 700;
  font-size: 0.95rem;
  align-self: end;
  padding-bottom: 0.15rem;
  color: var(--ink);
}
.bubble span:last-child {
  font-size: 0.55rem;
  font-weight: 600;
  font-stretch: 115%;
  align-self: start;
  padding-top: 0.2rem;
  color: var(--ink);
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.product-list__item {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.product-list__item h3 {
  margin-top: 0.55rem;
  font-size: 1.6rem;
  font-stretch: 90%;
  letter-spacing: -0.02em;
}
.product-list__item h3 a {
  text-decoration: none;
}
.product-list__item h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue);
}
.product-list__item p {
  margin: 0.5rem 0 0.9rem;
  color: var(--ink-2);
}

.product-list__status {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
}

.lamp {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
  background: transparent;
}
.lamp--on {
  border-color: var(--blue-ink);
  background: var(--blue);
}

/* ---------- columns (clients, team) ---------- */

.columns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.columns li {
  padding: 1.5rem 1.5rem 1.75rem 0;
}
.columns li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}
.columns .marker {
  margin-bottom: 1.1rem;
}
.columns h3 {
  font-size: 1.35rem;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
.columns p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
  max-width: 40ch;
}
.columns .columns__role {
  margin-top: 0.25rem;
  color: var(--blue-ink);
  font-weight: 560;
}

/* ---------- about: text + facts grid ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 1fr);
  gap: 2.5rem var(--gutter);
  align-items: start;
}
.about .band__head {
  margin-bottom: 0;
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}
.facts div {
  padding: 1.1rem 1rem 1.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts div:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}
.facts dt {
  color: var(--ink-2);
}
.facts dd {
  margin: 0.4rem 0 0;
  font-size: 1.3rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ---------- phases: a drawn sequence ---------- */

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.5rem;
  position: relative;
}
.phases::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 0;
  border-top: 1px solid var(--blue-ink);
}
.phases li {
  position: relative;
}
.phases__no {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--film);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}
.phases h3 {
  font-size: 1.3rem;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
.phases p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
  max-width: 34ch;
}

/* ---------- company details ---------- */

.titleblock--company {
  align-self: center;
}
.titleblock--company caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.6rem;
  color: var(--ink-2);
}
.titleblock--company td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.titleblock--company td a {
  text-decoration-color: var(--blue);
}

/* ---------- close ---------- */

.close {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr);
  gap: 3rem var(--gutter);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  border-bottom: 1px solid var(--ink);
}
.close .btn {
  margin-top: 2rem;
}

/* ---------- legal prose ---------- */

.prose {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  max-width: 48rem;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-stretch: 88%;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.prose p {
  color: var(--ink-2);
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  font-size: 0.9rem;
}
.foot__cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem 1.4rem;
  border-left: 1px solid var(--ink);
}
.foot__cell:first-child {
  border-left: 0;
}
.foot__cell .lettering {
  color: var(--ink-2);
  margin-bottom: 0.3rem;
}
.foot__cell a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot__cell a:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue);
}
.foot__cell--brand {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}
.foot__cell--brand img {
  width: 2.6rem;
}
.foot__cell--brand p {
  margin: 0;
  font-weight: 650;
  line-height: 1.3;
}
.foot__cell--brand p span {
  font-weight: 450;
  color: var(--ink-2);
}
.foot__sheet {
  font-size: 1.6rem;
  font-weight: 700;
  font-stretch: 90%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.foot__rev {
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* ---------- plotter: the sheet's linework draws itself once ---------- */

@media (prefers-reduced-motion: no-preference) {
  .dim::before {
    animation: plot-x 1100ms var(--ease-out) 250ms both;
  }
  .dim__arrow {
    animation: fade 300ms ease-out 1100ms both;
  }
  .span-dim__row li:first-child::before,
  .span-dim__row li:last-child::before {
    animation: plot-y 600ms var(--ease-out) 100ms both;
  }
  .titleblock {
    animation: frame 900ms var(--ease-out) 150ms both;
  }
}

@keyframes plot-x {
  from {
    transform: scaleX(0);
  }
}
@keyframes plot-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes frame {
  from {
    clip-path: inset(0 100% 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .titleblock {
    max-width: 30rem;
  }
  .foot {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot__cell--brand {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--ink);
  }
  .foot__cell--brand + .foot__cell {
    border-left: 0;
  }
  .foot__cell--sheet {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--ink);
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .detail,
  .close {
    grid-template-columns: minmax(0, 1fr);
  }
  .band__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .band__head .sheet-tag {
    display: none;
  }
  .band__head p,
  .band__head h2 {
    grid-column: 1;
  }
  .band__head--page > :not(.sheet-tag) {
    grid-column: 1;
  }
  .band__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .columns,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  .columns li,
  .columns li + li {
    padding: 1.35rem 0;
    border-left: 0;
  }
  .columns li + li {
    border-top: 1px solid var(--rule);
  }
  .phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .phases::before {
    top: 1.2rem;
    bottom: 1.2rem;
    left: 1.2rem;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--blue-ink);
  }
  .phases li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 1.1rem;
  }
  .phases__no {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  /* schedules become stacked records */
  .schedule thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .schedule,
  .schedule tbody,
  .schedule tr,
  .schedule tbody th,
  .schedule tbody td {
    display: block;
    width: auto;
  }
  .schedule tbody tr {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .schedule tbody tr:last-child {
    border-bottom: 0;
  }
  .schedule tbody th,
  .schedule tbody td {
    padding: 0.2rem 0;
    border: 0;
  }
  .schedule__mark {
    margin-bottom: 0.5rem;
  }
  .schedule__links {
    margin-top: 0.6rem;
    display: flex !important;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  body.co {
    font-size: 1rem;
  }
  .zones {
    grid-template-columns: repeat(3, 1fr);
  }
  .zones span:nth-child(n + 4) {
    display: none;
  }
  .head {
    flex-wrap: wrap;
    gap: 0.9rem;
  }
  .head__nav {
    width: 100%;
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
  }
  .head__nav a {
    flex: 1;
    padding: 0.1rem 0.6rem;
    font-size: 0.9rem;
  }
  .head__nav a:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .head__nav .head__mail {
    display: none;
  }
  .display {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }
  .span-dim__name {
    font-size: 0.85rem;
  }
  .span-dim__role {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
    padding: 0 0.2rem;
  }
  .dim__label {
    font-size: 0.7rem;
    padding: 0 0.4rem;
  }
  .dim__value {
    font-size: 1.1rem;
  }
  .dim__more {
    display: none;
  }
  .span-dim__name {
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 0 0.15rem;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot__cell,
  .foot__cell--brand + .foot__cell {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .foot__cell--brand {
    border-top: 0;
  }
}
