/*
  The Company page (/company), second version (operator, 19 Nov: "a thoughtfully
  art-directed Company page ... its own character"). Editorial cues from
  Plausible's About page (a small company telling its story plainly, dated and
  named) and Tailscale's company page (a big statement, principles as short
  headings with a paragraph each). The look is ours: light paper, deep ink
  plates, Eriksen green, the four guides, the glass artwork to one side.

  Sections: opening, where the work begins (a ledger), what we believe (deep
  ink), a note from the founder (left for Rolf), so far (a timeline of the
  mark), still at the beginning (deep ink with the glass), and the imprint.
*/

.page--company h1,
.page--company h2,
.page--company h3 {
  margin: 0;
}

.cpy-eyebrow {
  margin: 0 0 18px;
  color: var(--c-green);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-ink .cpy-eyebrow {
  color: var(--c-jade);
}

/* 1. The opening. */
.cpy-open {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 62vw, 760px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cpy-open > .frame {
  width: 100%;
}

.cpy-open__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(50%, 820px);
  pointer-events: none;
}

.cpy-open__art img {
  position: absolute;
  right: 0;
  top: 50%;
  width: auto;
  height: 112%;
  max-width: none;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

.cpy-open__say {
  max-width: 600px;
  padding: clamp(72px, 9vw, 128px) var(--inset);
}

.cpy-open__say h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cpy-open__lede {
  max-width: 30em;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.cpy-open__where {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}

.cpy-open__where span {
  margin-right: 22px;
}

.cpy-open__where span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  border-radius: 1px;
  background: var(--c-green);
}

/* 2. Where the work begins: a ledger of three sentences. */
.cpy-begin {
  padding: clamp(80px, 9vw, 136px) 0 clamp(64px, 7vw, 104px);
}

.cpy-begin__title {
  max-width: 15em;
  padding: 0 var(--inset);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cpy-begin__title span {
  color: var(--c-quiet);
}

.cpy-ledger {
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-lit);
}

.cpy-ledger__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin: 0;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-lit);
}

.cpy-ledger__row::before {
  content: none;
}

.cpy-ledger__line {
  grid-column: 1 / 4;
  max-width: 22em;
  margin: 0;
  padding: 0 var(--inset);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cpy-ledger__app {
  grid-column: 4 / 5;
  padding: 6px var(--inset) 0;
}

.cpy-ledger__app a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cpy-ledger__app a:hover {
  color: var(--c-green);
}

.cpy-ledger__app p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.cpy-tile {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 7px;
  color: var(--c-white);
  flex: none;
}

.cpy-ledger__row--rr .cpy-tile {
  background: var(--c-cobalt);
}

.cpy-ledger__row--it .cpy-tile {
  background: var(--c-green);
}

.cpy-ledger__row--md .cpy-tile {
  background: var(--c-jade-600);
}

.cpy-begin__close {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0 var(--inset);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* 3. What we believe: deep ink. */
.cpy-believe {
  padding: clamp(80px, 9vw, 136px) 0;
  background: var(--c-ink-ground);
}

.cpy-believe .guides i {
  border-color: rgba(255, 255, 255, 0.06);
}

.cpy-believe__head {
  max-width: 900px;
  padding: 0 var(--inset);
}

.cpy-believe__head h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cpy-believe__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.cpy-belief {
  padding: 28px var(--inset) 0;
}

.cpy-belief__mark {
  width: 34px;
  height: 34px;
  color: var(--c-jade);
}

.cpy-belief h3 {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.cpy-belief p {
  margin: 10px 0 0;
  color: var(--c-mist);
  font-size: 16px;
  line-height: 1.55;
}

.cpy-belief a,
.cpy-believe__foot a {
  color: var(--c-jade);
}

.cpy-believe__foot {
  max-width: 44em;
  margin: clamp(48px, 5vw, 72px) 0 0;
  padding: 0 var(--inset);
  color: var(--c-mist);
  font-size: 16px;
  line-height: 1.6;
}

/* 4. A note from the founder. */
.cpy-note {
  padding: clamp(80px, 9vw, 136px) 0;
  background: var(--c-cloud);
}

.cpy-note__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.cpy-note__face {
  grid-column: 1 / 2;
  margin: 0;
  padding: 0 var(--inset);
}

.cpy-note__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--c-warning);
  border-radius: var(--r-l);
  background: var(--c-white);
  color: var(--c-warning);
  font-size: 14px;
  font-weight: 600;
}

.cpy-note__face figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.cpy-note__letter {
  grid-column: 2 / 4;
  padding: 0 var(--inset);
}

.cpy-note__letter h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cpy-draft {
  margin-top: 24px;
  padding: 18px 22px 8px;
  border: 1px dashed var(--c-warning);
  border-radius: var(--r-m);
  background: var(--c-white);
  font-size: 16.5px;
  line-height: 1.6;
}

.cpy-draft p {
  margin: 0 0 10px;
}

.cpy-draft ul {
  margin: 0 0 10px;
  padding: 0;
}

.cpy-draft__tag {
  color: var(--c-warning);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cpy-note__sign {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 5. So far: a line of the mark, dated. */
.cpy-sofar {
  padding: clamp(80px, 9vw, 136px) 0 clamp(72px, 8vw, 112px);
}

.cpy-sofar__head {
  padding: 0 var(--inset);
}

.cpy-sofar__head h2 {
  max-width: 16em;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cpy-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.cpy-line::before {
  content: "";
  position: absolute;
  top: 15px;
  left: var(--inset);
  right: var(--inset);
  height: 1px;
  background: var(--line-lit);
}

.cpy-line__item {
  position: relative;
  margin: 0;
  padding: 0 var(--inset);
}

.cpy-line__item::before {
  content: none;
}

.cpy-line__item svg {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 2px;
  background: var(--c-white);
  color: var(--c-ink);
}

.cpy-line__item--md svg {
  color: var(--c-jade-600);
}

.cpy-line__item--rr svg {
  color: var(--c-cobalt);
}

.cpy-line__item--it svg {
  color: var(--c-green);
}

.cpy-line__item time,
.cpy-line__now {
  display: block;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cpy-line__now {
  color: var(--c-green);
}

.cpy-line__item p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.cpy-line__item--now p {
  color: var(--ink);
  font-weight: 500;
}

/* 6. Still at the beginning: deep ink, the glass on the right. */
.cpy-ahead {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 11vw, 168px) 0;
  background: var(--c-ink-ground);
}

.cpy-ahead .guides i {
  border-color: rgba(255, 255, 255, 0.06);
}

.cpy-ahead__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 900px);
  pointer-events: none;
}

.cpy-ahead__art img {
  position: absolute;
  right: 0;
  top: 50%;
  width: auto;
  height: 110%;
  max-width: none;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}

.cpy-ahead__say {
  position: relative;
  max-width: 600px;
  padding: 0 var(--inset);
}

.cpy-ahead__say h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cpy-ahead__say p {
  margin: 24px 0 0;
  color: var(--c-mist);
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.6;
}

.cpy-ahead__act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* 7. The imprint. */
.cpy-imprint {
  padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.cpy-imprint__title {
  padding: 0 var(--inset);
  color: var(--ink-2);
  font-size: 13.5px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpy-imprint__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
}

.cpy-imprint__grid > div {
  padding: 14px var(--inset) 0;
  border-top: 1px solid var(--line);
}

.cpy-imprint__grid dt {
  color: var(--ink-2);
  font-size: 13.5px;
}

.cpy-imprint__grid dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.cpy-imprint__grid a,
.cpy-imprint__more a {
  color: var(--c-green);
}

.cpy-imprint__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 0 var(--inset);
  font-size: 15px;
}

/* Tablet. */
@media (max-width: 1023px) {
  .cpy-ledger__line {
    grid-column: 1 / 5;
  }

  .cpy-ledger__app {
    grid-column: 1 / 5;
    max-width: 34em;
    padding-top: 16px;
  }

  .cpy-believe__grid {
    grid-template-columns: 1fr;
  }

  .cpy-belief {
    max-width: 36em;
  }

  .cpy-note__face {
    grid-column: 1 / 5;
    max-width: 260px;
    margin-bottom: 32px;
  }

  .cpy-note__letter {
    grid-column: 1 / 5;
    max-width: 40em;
  }

  .cpy-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .cpy-line::before {
    display: none;
  }

  .cpy-imprint__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .cpy-open__art {
    width: 70%;
    opacity: 0.55;
  }

  .cpy-ahead__art {
    opacity: 0.45;
  }
}

/* Phone. */
@media (max-width: 639px) {
  .cpy-open {
    min-height: 0;
  }

  .cpy-open__art {
    inset: 0 0 auto auto;
    width: 100%;
    height: 220px;
    opacity: 1;
  }

  .cpy-open__art img {
    height: 100%;
    top: 0;
    transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  }

  .cpy-open__say {
    padding-top: 220px;
  }

  .cpy-line {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .cpy-line__item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 22px;
  }

  .cpy-line__item svg {
    grid-row: 1 / 3;
  }

  .cpy-line__item time,
  .cpy-line__now {
    margin-top: 4px;
  }

  .cpy-ahead__art {
    display: none;
  }

  .cpy-imprint__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Third pass (Rolf, 19 Nov): the approach, a warmer founder section, a
   more confident close. Rules below take over from the ones above.
   --------------------------------------------------------------------------- */

/* 2. The details we notice, set large and quiet; then how we go about them. */
.cpy-details {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0 var(--inset);
  border-top: 1px solid var(--line-lit);
}

.cpy-details p {
  max-width: 24em;
  margin: 0;
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.028em;
}

.cpy-details p:nth-child(2) {
  padding-left: clamp(0px, 8vw, 120px);
}

.cpy-details p:nth-child(3) {
  padding-left: clamp(0px, 16vw, 240px);
}

.cpy-begin__bridge {
  max-width: 24em;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0 var(--inset);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.cpy-approach {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.cpy-approach li {
  margin: 0;
  padding: 22px var(--inset) 0;
  border-top: 2px solid var(--c-ink);
  counter-increment: step;
}

.cpy-approach li::before {
  content: counter(step);
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 14px;
  border-radius: 0;
  background: none;
  color: var(--c-green);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cpy-approach h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.cpy-approach p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.cpy-approach .cpy-eg {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
}

.cpy-approach .cpy-eg::before {
  content: "For example: ";
  color: var(--ink-2);
}

.cpy-approach a {
  color: var(--c-green);
}

/* 4. From the founder: a letter, set apart on white paper. */
.cpy-note {
  background: var(--c-cloud);
}

.cpy-note__grid {
  align-items: center;
}

.cpy-note__photo {
  border: 0;
  background:
    linear-gradient(135deg, rgba(8, 127, 104, 0.08), rgba(66, 120, 232, 0.08)),
    var(--c-white);
  box-shadow: inset 0 0 0 1px var(--line-lit), 0 30px 60px -36px rgba(16, 44, 54, 0.45);
  color: var(--ink-2);
  font-weight: 500;
}

.cpy-note__face figcaption {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.cpy-note__face figcaption b {
  color: var(--ink);
  font-size: 15.5px;
}

.cpy-note__letter {
  grid-column: 2 / 5;
  max-width: 760px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  margin-left: clamp(16px, 3vw, 48px);
  border-radius: var(--r-l);
  background: var(--c-white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(16, 44, 54, 0.35);
}

.cpy-note__quote {
  font-size: clamp(24px, 2.6vw, 36px) !important;
  font-weight: 500;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
}

.cpy-note__body {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.65;
}

.cpy-note__body p {
  margin: 0 0 1em;
}

/* Where Rolf's words go: shown as a quiet outline, never as invented text. */
.cpy-slot {
  color: var(--ink-2);
  background-image: linear-gradient(transparent 92%, rgba(154, 91, 0, 0.45) 92%);
  background-size: 100% 1.65em;
}

.cpy-note__quote .cpy-slot {
  background-size: 100% 1.2em;
}

.cpy-note__sign {
  display: grid;
  gap: 4px;
  margin: 32px 0 0;
}

.cpy-note__name {
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cpy-note__role {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 400;
}

/* 6. The close. */
.cpy-ahead__lede {
  color: var(--c-white) !important;
  font-size: clamp(20px, 1.9vw, 26px) !important;
  font-weight: 500;
  line-height: 1.35 !important;
  letter-spacing: -0.015em;
}

@media (max-width: 1023px) {
  .cpy-approach {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .cpy-note__letter {
    grid-column: 1 / 5;
    margin-left: 0;
  }
}

@media (max-width: 639px) {
  .cpy-approach {
    grid-template-columns: 1fr;
  }

  .cpy-details p:nth-child(2),
  .cpy-details p:nth-child(3) {
    padding-left: 0;
  }
}

/* ---------------------------------------------------------------------------
   Final pass (Rolf, 19 Nov): the founder section as a finished note, with a
   deep ink card beside it in place of a photo frame. A photograph can take the
   card's place later without changing the layout.
   --------------------------------------------------------------------------- */
.cpy-note__grid {
  align-items: stretch;
}

.cpy-card {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  margin: 0 var(--inset);
  padding: 28px 24px;
  border-radius: var(--r-l);
  background: var(--c-ink-ground);
  box-shadow: 0 30px 60px -36px rgba(16, 44, 54, 0.6);
}

.cpy-card__mark {
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  color: var(--c-jade);
}

.cpy-card p {
  margin: 0;
}

.cpy-card__name {
  margin-top: 40px !important;
  color: var(--c-white);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cpy-card__role,
.cpy-card__place {
  color: var(--c-mist);
  font-size: 15px;
}

.cpy-note__letter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cpy-note__quote {
  max-width: 18em;
}

.cpy-note__body {
  max-width: 34em;
  color: var(--ink);
}

.cpy-note__body p:last-child {
  margin-bottom: 0;
}

.cpy-note__sign {
  margin-top: 28px;
}

.cpy-note__name {
  font-size: 34px;
}

@media (max-width: 1023px) {
  .cpy-card {
    grid-column: 1 / 5;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 20px;
    padding: 20px 22px;
  }

  .cpy-card__mark {
    width: 40px;
    height: 40px;
    margin: 0 8px 0 0;
  }

  .cpy-card__name {
    margin-top: 0 !important;
    font-size: 19px;
  }
}

/* The founder card carries the ink glass, with the name over a soft fade. */
.cpy-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 32, 41, 0) 35%, rgba(11, 32, 41, 0.92) 78%),
    url("/assets/home/home-ink-square.9f70d0f5.webp") center / cover no-repeat,
    var(--c-ink-ground);
}

.cpy-card__mark {
  display: none;
}

@media (max-width: 1023px) {
  .cpy-card {
    min-height: 220px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .cpy-card__name {
    font-size: 21px;
  }
}

/* Rolf's note (approved 19 Nov): a letter's rhythm. The opening sentence a
   little larger, the closing sentence given its weight, the signature in two lines. */
.cpy-note__quote {
  max-width: 16em;
  font-size: clamp(28px, 3vw, 42px) !important;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.cpy-note__body {
  max-width: 36em;
  margin-top: 30px;
  font-size: 17.5px;
  line-height: 1.7;
}

.cpy-note__body p {
  margin: 0 0 1.05em;
}

.cpy-note__body p:first-child {
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.cpy-note__body .cpy-note__last {
  margin: 1.5em 0 0;
  font-weight: 500;
}

.cpy-note__sign {
  display: grid;
  gap: 2px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cpy-note__name {
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.cpy-note__role {
  display: block;
  color: var(--ink-2);
  font-size: 14.5px;
  font-style: normal;
}
