/* Secure Outboxment, steel storage boxes from Tilburg.
   Set out like a laboratory report: numbered sections, specimen labels, data tables
   and figure captions. Warm bone canvas, charcoal text, one oxblood accent, and full
   bleed panels that interrupt narrow columns of text. */

:root {
  --bone: #EFE8DA;
  --bone-2: #E6DDCB;
  --ink: #2A2A28;
  --ink-soft: #5E5A52;
  --rule: #C9BFAC;
  --ox: #6E1F23;
  --ox-deep: #561619;
  --char: #34332F;

  --display: Optima, Candara, "Segoe UI", "Gill Sans", "Gill Sans MT", sans-serif;
  --label: "Gill Sans", "Gill Sans MT", Seravek, "Trebuchet MS", Calibri, sans-serif;
  --body: Seravek, "Gill Sans Nova", "Gill Sans", Calibri, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --col: 34rem;
  --pad: clamp(20px, 5vw, 64px);
  --air: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.25, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bone);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  text-wrap: balance;
}

ul, ol {
  padding: 0;
  list-style: none;
}

p, li, dd, td {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--ox);
  color: var(--bone);
}

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

.so-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--label);
  text-decoration: none;
}

.so-skip:focus {
  top: 12px;
}

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

.so-wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.so-main p a,
.so-main li a,
.so-main td a,
.so-main dd a {
  color: var(--ox);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 180ms ease, text-decoration-thickness 180ms ease;
}

.so-main p a:hover,
.so-main li a:hover,
.so-main td a:hover,
.so-main dd a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.so-panel p a,
.so-panel li a {
  color: var(--bone);
}

/* ---------- Header ---------- */

.so-head {
  position: relative;
  z-index: 40;
  background: var(--bone);
  border-bottom: 1px solid var(--ink);
}

.so-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.so-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.so-mark-box {
  width: 26px;
  height: 20px;
  border: 2px solid var(--ink);
  border-top-width: 5px;
  flex: none;
}

.so-mark-name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.so-mark-ref {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.so-nav {
  display: none;
}

.so-nav-list {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
}

.so-nav-link {
  display: inline-flex;
  gap: 6px;
  padding: 8px 0;
  font-family: var(--label);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}

.so-nav-num {
  color: var(--ink-soft);
}

.so-nav-link:hover,
.so-nav-link[aria-current="page"] {
  border-bottom-color: var(--ox);
}

.so-menu {
  position: static;
}

.so-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.so-menu-btn::-webkit-details-marker {
  display: none;
}

.so-menu-btn::marker {
  content: "";
}

.so-menu-lines {
  position: relative;
  width: 16px;
  height: 8px;
}

.so-menu-lines::before,
.so-menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms var(--ease), top 180ms var(--ease);
}

.so-menu-lines::before {
  top: 0;
}

.so-menu-lines::after {
  top: 6.5px;
}

.so-menu[open]:not(.is-closing) .so-menu-lines::before {
  top: 3.25px;
  transform: rotate(45deg);
}

.so-menu[open]:not(.is-closing) .so-menu-lines::after {
  top: 3.25px;
  transform: rotate(-45deg);
}

.so-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 6px var(--pad) 24px;
  background: var(--bone);
  border-bottom: 1px solid var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .so-menu[open] .so-menu-panel {
    animation: so-drop-in 200ms var(--ease) both;
  }

  .so-menu.is-closing .so-menu-panel {
    animation: so-drop-out 200ms var(--ease) both;
  }
}

@keyframes so-drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes so-drop-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px); }
}

.so-menu-list li + li {
  border-top: 1px solid var(--rule);
}

.so-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

.so-menu-link[aria-current="page"] {
  color: var(--ox);
}

.so-chev {
  flex: none;
  width: 0.55em;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  .so-nav {
    display: block;
  }

  .so-menu {
    display: none;
  }
}

/* ---------- Report furniture ---------- */

.so-label {
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.so-sec {
  padding: var(--air) 0 0;
}

.so-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.so-sec-num {
  font-family: var(--label);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--ox);
}

.so-h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.so-h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.so-col {
  max-width: var(--col);
}

.so-col > * + * {
  margin-top: 1em;
}

.so-lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .so-sec-head {
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: baseline;
  }

  .so-sec-body {
    margin-left: 9rem;
  }
}

/* ---------- Opening: the labelled drawing ---------- */

.so-open {
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 72px);
}

.so-open-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.so-open-title {
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.so-open-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--ink);
}

.so-open-meta div {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}

.so-open-meta dt {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.so-open-meta dd {
  font-family: var(--display);
  font-size: 1.15rem;
}

@media (min-width: 1000px) {
  .so-open-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 48px;
  }
}

/* ---------- Figures ---------- */

.so-fig {
  margin: 0;
  min-width: 0;
}

.so-fig-frame {
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--ink);
  background: var(--bone);
}

.so-fig figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin-top: 12px;
  font-family: var(--label);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.so-fig figcaption b {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ox);
}

.so-draw .so-ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.so-draw .so-ln--thin {
  stroke-width: 0.8;
  stroke: var(--ink-soft);
}

.so-draw .so-ln--ox {
  stroke: var(--ox);
  stroke-width: 1.8;
}

.so-draw .so-ln--dash {
  stroke: var(--ink-soft);
  stroke-width: 0.8;
  stroke-dasharray: 4 4;
}

.so-draw .so-fill-bone {
  fill: var(--bone);
}

.so-draw .so-fill-ox {
  fill: var(--ox);
}

.so-draw .so-lead-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.so-draw .so-tag rect {
  fill: var(--bone);
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.so-draw .so-tag text {
  fill: var(--ink);
  font-family: var(--label);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.so-draw .so-tag .so-tag-n {
  fill: var(--ox);
  font-weight: 600;
}

.so-draw .so-chip {
  display: none;
}

.so-draw .so-chip circle {
  fill: var(--ox);
}

.so-draw .so-chip text {
  fill: var(--bone);
  font-family: var(--label);
  font-size: 20px;
  text-anchor: middle;
  dominant-baseline: central;
}

.so-legend {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 12px;
  font-family: var(--label);
  font-size: 0.875rem;
}

.so-legend b {
  margin-right: 6px;
  color: var(--ox);
}

@media (max-width: 719px) {
  .so-draw .so-tag {
    display: none;
  }

  .so-draw .so-chip {
    display: inline;
  }

  .so-legend {
    display: grid;
  }
}

/* ---------- Marquee of what is in stock ---------- */

.so-marquee {
  overflow: hidden;
  background: var(--char);
  color: var(--bone);
}

.so-marquee-head {
  padding-top: 12px;
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #CDBFA6;
}

.so-marquee-track {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 0 14px;
}

.so-marquee-run {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  padding-inline: var(--pad);
}

.so-marquee-run li {
  padding-right: 40px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  white-space: nowrap;
}

.so-marquee-run li::before {
  content: "\25A0";
  margin-right: 14px;
  font-size: 0.6em;
  vertical-align: 0.2em;
  color: #B5585D;
}

.so-marquee-run--copy {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .so-js .so-marquee-track {
    flex-wrap: nowrap;
    width: max-content;
    animation: so-marquee 80s linear infinite;
  }

  .so-js .so-marquee-run {
    flex-wrap: nowrap;
    flex: none;
    padding-inline: 0;
  }

  .so-js .so-marquee-run--copy {
    display: flex;
  }

  .so-marquee:hover .so-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes so-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Full bleed panels ---------- */

.so-panel {
  margin-top: var(--air);
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--ox);
  color: var(--bone);
}

.so-panel--char {
  background: var(--char);
}

.so-panel .so-label,
.so-panel .so-sec-num {
  color: #E3CFB8;
}

.so-panel .so-sec-head {
  border-top-color: rgba(239, 232, 218, 0.6);
}

.so-panel-quote {
  max-width: 28ch;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}

.so-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px;
}

@media (min-width: 900px) {
  .so-panel-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

.so-sign {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
}

.so-draw .so-dim {
  fill: var(--ink-soft);
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- Data tables ---------- */

.so-table-wrap {
  overflow-x: auto;
}

.so-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.so-table caption {
  padding-bottom: 10px;
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
}

.so-table th,
.so-table td {
  padding: 11px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.so-table thead th {
  border-bottom: 1px solid var(--ink);
  font-family: var(--label);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.so-table tbody th {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  white-space: nowrap;
}

.so-table .so-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.so-table tbody tr {
  transition: background-color 160ms ease;
}

.so-table tbody tr:hover {
  background: var(--bone-2);
}

@media (max-width: 719px) {
  .so-table--stack thead {
    display: none;
  }

  .so-table--stack tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 0 11px;
    border-bottom: 1px solid var(--rule);
  }

  .so-table--stack th,
  .so-table--stack td {
    padding: 0;
    border: 0;
  }

  .so-table--stack td::before {
    content: attr(data-k) " ";
    font-family: var(--label);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .so-table--stack .so-num {
    text-align: left;
  }
}

/* Tables inside a dark panel: light rules and labels. */
.so-panel .so-table caption,
.so-panel .so-table thead th {
  color: #CDBFA6;
}

.so-panel .so-table th,
.so-panel .so-table td {
  border-bottom-color: rgba(239, 232, 218, 0.28);
}

.so-panel .so-table thead th {
  border-bottom-color: rgba(239, 232, 218, 0.7);
}

.so-panel .so-table tbody tr:hover {
  background: rgba(239, 232, 218, 0.06);
}

@media (max-width: 719px) {
  .so-panel .so-table--stack td::before {
    color: #E3CFB8;
  }

  .so-panel .so-table--stack tr {
    border-bottom-color: rgba(239, 232, 218, 0.28);
  }
}

/* ---------- Specimen cards ---------- */

.so-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 900px) {
  .so-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.so-spec {
  padding: 22px 0 0;
  border-top: 3px solid var(--ink);
}

.so-spec-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1px solid var(--ox);
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ox);
}

.so-spec dl {
  margin-top: 14px;
  border-top: 1px solid var(--rule);
}

.so-spec dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--rule);
}

.so-spec dt {
  color: var(--ink-soft);
}

.so-spec dd {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- Lists ---------- */

.so-list {
  border-top: 1px solid var(--rule);
}

.so-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--rule);
}

.so-list-k {
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ox);
  padding-top: 0.2em;
}

.so-result {
  display: block;
  margin-top: 4px;
  font-family: var(--label);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.so-mail {
  display: inline-block;
  max-width: 100%;
  margin: 14px 0 18px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--ox);
  padding-bottom: 6px;
  transition: color 200ms ease;
}

.so-mail:hover {
  color: var(--ox);
}

/* ---------- Next ---------- */

.so-next {
  margin-top: var(--air);
}

.so-next-list {
  border-top: 1px solid var(--ink);
}

.so-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
}

.so-next-link small {
  display: block;
  margin-top: 4px;
  font-family: var(--label);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.so-next-link .so-chev {
  width: 0.55em;
  color: var(--ox);
  transition: transform 220ms var(--ease);
}

.so-next-link:hover .so-chev {
  transform: translateX(5px);
}

/* ---------- Footer ---------- */

.so-foot {
  margin-top: var(--air);
  padding: 56px 0 28px;
  background: var(--char);
  color: var(--bone);
}

.so-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.so-foot .so-label {
  margin-bottom: 10px;
  color: #CDBFA6;
}

.so-foot p {
  font-size: 0.9375rem;
  color: #D9CFBE;
}

.so-foot-list a {
  display: inline-block;
  padding: 3px 0;
  color: var(--bone);
  text-decoration: none;
}

.so-foot-list a:hover {
  text-decoration: underline;
}

.so-foot-list a[aria-current="page"] {
  color: #E3A7A9;
}

.so-foot-mail {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--bone);
}

.so-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 232, 218, 0.3);
  font-family: var(--label);
  font-size: 0.8125rem;
  color: #CDBFA6;
}

@media (min-width: 900px) {
  .so-foot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.so-gap {
  margin-top: 28px;
}

/* ---------- Reveals: visible by default; only blocks below the fold wait ---------- */

.so-rv {
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.so-rv.is-waiting {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .so-rv.is-waiting {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .so-head,
  .so-marquee {
    display: none !important;
  }

  .so-rv.is-waiting {
    opacity: 1 !important;
    transform: none !important;
  }
}
