/* Concept A. Warm editorial, two worlds.
   Bone paper, near-black ink, a serif display voice, and one full-bleed
   spread per product that borrows that product's own palette. */

@font-face {
  font-family: "Inter Variable";
  src: url("/about/assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/about/assets/fonts/JetBrainsMono-Variable.ttf")
    format("truetype-variations");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* Paper and ink */
  --bone: #f4f1ea;
  --bone-deep: #e9e4d9;
  --ink: #14110f;
  --ink-soft: #56504a;
  --rule: #d4cec1;

  /* AXYN borrows its own cool navy */
  --axyn-bg: #0f2739;
  --axyn-fg: #e7eef3;
  --axyn-soft: #a3bccd;
  --axyn-rule: #2b4a61;

  /* Sable Thread borrows its own wine */
  --sable-bg: #2a1a1f;
  --sable-fg: #f2e6e1;
  --sable-soft: #c8a9a5;
  --sable-rule: #55383d;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  /* Display face. If this direction is chosen, bundle a licensed
     display serif and swap it in ahead of the system stack. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, serif;
  --font-sans: "Inter Variable", -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;

  /* Required: the width/height attributes on the markup are presentational
     hints, and without this the height attribute defeats aspect-ratio. */
  height: auto;
}

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

a {
  color: inherit;
}

/* Focus rings are coloured against the PAGE, not against the control.
   currentColor is wrong here: the ink-filled controls (skip link, CTA, submit)
   have bone text, so a currentColor ring is bone, and a bone ring on the bone
   page is invisible. Ink by default, inverted only on the dark grounds. The
   offset leaves a bone gap so the ring stays readable against an ink button. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.spread :focus-visible,
.footer :focus-visible {
  outline-color: var(--bone);
}

.shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Display type. Scale contrast is the whole hierarchy strategy: one large
   voice, one medium, and small precise text. Nothing in between. */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-wrap: balance;
}

.display--mid {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
}

.eyebrow,
.rubric,
.spread__index,
figcaption,
.masthead__meta,
.tags,
.ledger__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

/* The sprite must never render. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Mark 03 needs its full drawing at 24px and up; below that the corner ticks
   break down and the small variant is used instead. Both placements here sit
   above that threshold, so both use the full mark. */
.wordmark__mark {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--ink);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__mark {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--bone);
}

.masthead__nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
  margin-right: auto;
  font-size: 0.85rem;
}

.masthead__nav a {
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: border-color 200ms var(--ease);
}

.masthead__nav a:hover {
  border-bottom-color: var(--ink);
}

.masthead__meta {
  color: var(--ink-soft);
}

/* Opening. Asymmetric: type left, an uncropped 16:9 product shot right that
   overlaps the section rule so the composition is layered, not stacked. */
.opening {
  padding-block: clamp(3.5rem, 8vw, 7rem) 0;
}

.opening__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.opening__copy > * + * {
  margin-top: 1.5rem;
}

.eyebrow {
  color: var(--ink-soft);
}

.opening__lede {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}

.cta span {
  transition: transform 220ms var(--ease);
}

.cta:hover span {
  transform: translateX(0.25rem);
}

/* The opening pair. Offset from each other so the composition is layered
   rather than a tidy row of two equal boxes. */
.opening__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin-bottom: -3rem;
}

.plate {
  margin: 0;
}

.plate:first-child {
  margin-top: 2.75rem;
}

.plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--rule);
}

.plate figcaption {
  padding-top: 0.55rem;
  color: var(--ink-soft);
}

/* Statement. A single wide editorial paragraph with a hanging rubric. */
.statement {
  padding-block: clamp(6rem, 12vw, 9rem) clamp(3.5rem, 7vw, 6rem);
}

.statement__grid {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.rubric {
  padding-top: 0.55rem;
  color: var(--ink-soft);
}

.statement__body {
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.32;
  text-wrap: pretty;
}

/* Product spreads. Full-bleed, each in its own product's colours, mirrored
   against each other so the page has a left-right rhythm. */
.spread {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.spread--axyn {
  background: var(--axyn-bg);
  color: var(--axyn-fg);
}

.spread--sable {
  background: var(--sable-bg);
  color: var(--sable-fg);
}

.spread__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.spread__grid--mirror .spread__copy {
  order: 2;
}

.spread__index {
  color: var(--axyn-soft);
}

.spread--sable .spread__index {
  color: var(--sable-soft);
}

.spread__copy > * + * {
  margin-top: 1.15rem;
}

.spread__descriptor {
  font-size: 1rem;
  font-weight: 650;
}

.spread__body {
  max-width: 42ch;
  color: var(--axyn-soft);
}

.spread--sable .spread__body {
  color: var(--sable-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--axyn-rule);
  list-style: none;
  color: var(--axyn-soft);
}

.spread--sable .tags {
  border-top-color: var(--sable-rule);
  color: var(--sable-soft);
}

.spread__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.spread__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--axyn-rule);
}

.spread--sable .spread__figure img {
  border-color: var(--sable-rule);
}

/* Services ledger. Hairline rows, hanging numbers, two items per row. */
.services {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.services__head,
.approach__head {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services__head h2,
.approach__head h2 {
  max-width: 26ch;
}

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

.ledger__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
  transition: background-color 220ms var(--ease);
}

.ledger__row:hover {
  background: var(--bone-deep);
}

.ledger dt {
  display: contents;
}

.ledger__num {
  color: var(--ink-soft);
}

.ledger__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.15;
}

.ledger dd {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.aside {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.aside__copy {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.aside__link {
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

/* Approach. Numbered marginalia, two across. */
.approach {
  padding-block: 0 clamp(4.5rem, 9vw, 7.5rem);
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
  margin: 0;
  padding: 0;
  counter-reset: principle;
  list-style: none;
}

.principles li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  counter-increment: principle;
}

.principles li::before {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  content: "0" counter(principle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.principles h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.principles p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--bone-deep);
  border-top: 1px solid var(--rule);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__intro > * + * {
  margin-top: 1rem;
}

.contact__intro > p:last-child {
  max-width: 34ch;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  padding: 0.55rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: inherit;
  font: inherit;
  transition: border-color 200ms var(--ease);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-width: 2px;
  outline: none;
}

/* Turnstile reserves its own height so the submit button does not jump when the
   widget finishes rendering. 65px is the standard managed-widget height. */
.turnstile {
  min-height: 65px;
}

.submit {
  justify-self: start;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  border: 0;
  color: var(--bone);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: opacity 200ms var(--ease);
}

.submit:hover {
  opacity: 0.85;
}

.submit:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* Status is a live region, so it must not be display:none when empty or the
   announcement is lost. It collapses to zero height instead. */
.form-status:empty {
  margin: 0;
}

.form-status {
  font-size: 0.88rem;
  font-weight: 650;
}

.form-status[data-state="success"] {
  color: #1f5130;
}

.form-status[data-state="error"] {
  color: #8c2018;
}

.form-legal {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.form-legal a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.form-legal a:hover {
  color: var(--ink);
}

/* Footer */
.footer {
  padding-block: 2rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer nav {
  display: flex;
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .opening__grid,
  .spread__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .opening__grid {
    align-items: start;
  }

  .opening__pair {
    margin-bottom: 0;
  }

  .plate:first-child {
    margin-top: 0;
  }

  .spread__grid--mirror .spread__copy {
    order: 0;
  }

  .statement__grid,
  .services__head,
  .approach__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .rubric {
    padding-top: 0;
  }

  .ledger__row {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .ledger dd {
    grid-column: 2;
  }

  .masthead__meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .masthead__inner {
    flex-wrap: wrap;
    padding-block: 0.85rem;
  }

  .masthead__nav {
    order: 3;
    width: 100%;
  }
}

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