/* Plain Figures — a ReWork design concept for a fictional accountancy firm.
   Swiss grid, one signal red, and the accountant's double rule under totals. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --soft: #f4f4f1;
  --ink: #0b0b0b;
  --grey: #5a5a5a;
  --rule: #dcdcd8;
  --red: #d72b18;
  --red-on-ink: #ff6a55;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 3.4vw, 52px);
  --gap: clamp(16px, 1.8vw, 28px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.8, 0.1, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1;
}
b {
  color: var(--red);
  font-weight: inherit;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.tab {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Bar, header ---------- */
.concept-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font: 12px/1.4 var(--mono);
}
.concept-bar a {
  text-underline-offset: 3px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.logo svg {
  width: 30px;
  height: 30px;
  fill: var(--ink);
}
.logo .mark-bar {
  fill: var(--paper);
}
.logo .mark-bar.red {
  fill: var(--red);
}
.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
  font-size: 15px;
  font-weight: 520;
}
.nav a {
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1.5px no-repeat;
  padding: 4px 0;
  transition: background-size 0.4s var(--ease);
}
.nav a:hover {
  background-size: 100% 1.5px;
}
.top > .btn {
  justify-self: end;
}
.menu-button {
  display: none;
}
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 49;
  display: grid;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* ---------- Shared ---------- */
.label {
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label span {
  color: var(--red);
  margin-right: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn span {
  transition: transform 0.35s var(--ease);
}
.btn:hover span {
  transform: translateX(4px);
}
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14.5px;
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--red);
}
.btn-red {
  background: var(--red);
  color: var(--paper);
}
.btn-red:hover {
  background: var(--ink);
}
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.link:hover {
  color: var(--red);
}
section {
  position: relative;
}
.services,
.fees,
.deadlines,
.steps,
.team,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter) 0;
}
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 22px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .label {
  grid-column: 1 / -1;
}
.section-head h2,
.calc h2,
.fees h2,
.contact h2 {
  grid-column: 1 / 10;
  font-size: clamp(42px, 5.8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.section-head > p:last-child:not(.label) {
  grid-column: 10 / -1;
  align-self: end;
  color: var(--grey);
}

/* The statement: a page of accounts, with a double rule under the total. */
.statement {
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.statement-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.statement dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
}
.statement dt {
  font-size: 15.5px;
}
.statement dd {
  font: 400 15.5px var(--mono);
  font-variant-numeric: tabular-nums;
}
.statement .total {
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 0;
}
.statement .total dt {
  font-weight: 650;
}
.statement .total dd {
  padding-bottom: 3px;
  border-bottom: 4px double var(--ink);
  font-size: 22px;
  font-weight: 500;
}
.statement-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--rule);
  color: var(--grey);
  font: 12px/1.4 var(--mono);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    rgba(11, 11, 11, 0.06) 1px,
    transparent 1px
  );
  background-size: calc((100% + var(--gap)) / 12) 100%;
}
.hero-label {
  grid-column: 1 / -1;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero h1 {
  grid-column: 1 / 9;
  grid-row: 2;
  font-size: clamp(62px, 10.4vw, 172px);
  font-weight: 650;
  line-height: 0.86;
  letter-spacing: -0.062em;
}
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.mask > span {
  display: block;
  animation: up 1.05s var(--ease) both;
}
.mask:nth-child(2) > span {
  animation-delay: 0.08s;
}
.mask:nth-child(3) > span {
  animation-delay: 0.16s;
}
@keyframes up {
  from {
    transform: translateY(105%);
  }
}
.hero-statement {
  grid-column: 9 / 13;
  grid-row: 2 / span 2;
  align-self: end;
  animation: lift 1.1s 0.35s var(--ease) both;
}
@keyframes lift {
  from {
    transform: translateY(32px);
    opacity: 0;
  }
}
.hero-copy {
  grid-column: 1 / 8;
  grid-row: 3;
  margin-top: clamp(32px, 4vw, 56px);
}
.lede {
  max-width: 44ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 34px;
}
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: clamp(64px, 8vw, 112px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}
.stats li {
  padding: 22px 0 clamp(48px, 6vw, 84px);
}
.stats strong {
  display: block;
  font-size: clamp(40px, 4.6vw, 70px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stats li:nth-child(3) strong {
  color: var(--red);
}
.stats span {
  display: block;
  margin-top: 12px;
  color: var(--grey);
  font: 12.5px/1.4 var(--mono);
}

/* ---------- Calculator ---------- */
.calc {
  background: var(--ink);
  color: var(--paper);
}
.calc :focus-visible {
  outline-color: var(--paper);
}
.calc-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter);
}
.calc .label span,
.calc b {
  color: var(--red-on-ink);
}
.calc-controls {
  grid-column: 1 / 6;
}
.calc h2 {
  margin: 22px 0 22px;
}
.calc-intro {
  max-width: 38ch;
  color: #c4c4c0;
}
.profit {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.profit label {
  display: block;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4c4c0;
}
.profit-value {
  display: block;
  margin: 12px 0 18px;
  font-size: clamp(52px, 5.2vw, 80px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background:
    linear-gradient(var(--red-on-ink), var(--red-on-ink)) 0 0 / var(--fill, 25%)
      100% no-repeat,
    rgba(255, 255, 255, 0.35);
}
input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--red-on-ink);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -11px;
  background: var(--red);
  border: 2px solid var(--paper);
  border-radius: 0;
  transition: transform 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--red);
  border: 2px solid var(--paper);
  border-radius: 0;
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.presets button,
.period span {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  font: 500 13px var(--mono);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.presets button:hover,
.period label:hover span {
  border-color: var(--paper);
}
.presets [aria-pressed="true"],
.period input:checked + span {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.period {
  display: flex;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}
.period label {
  position: relative;
}
.period input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.period span {
  display: inline-flex;
  align-items: center;
}
.period label + label span {
  border-left: 0;
}
.period input:focus-visible + span {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.calc-result {
  grid-column: 7 / -1;
  align-self: end;
}
.keep-label {
  font: 500 12.5px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4c4c0;
}
.keep {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 22px;
}
.keep-value {
  padding-bottom: 4px;
  border-bottom: 6px double var(--paper);
  font-size: clamp(64px, 8.2vw, 132px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.keep-period {
  font: 500 14px var(--mono);
  color: #c4c4c0;
}
.rate {
  font-size: 18px;
  color: #e6e6e2;
}
.rate-value {
  color: var(--red-on-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.bar {
  display: flex;
  gap: 3px;
  height: 56px;
  margin: 34px 0 6px;
}
.seg {
  flex: 1 1 0;
  min-width: 3px;
  transition: flex-grow 0.7s var(--ease);
}
.seg-keep,
.key-keep {
  background: var(--paper);
}
.seg-it,
.key-it {
  background: var(--red);
}
.seg-usc,
.key-usc {
  background: #a3a39e;
}
.seg-prsi,
.key-prsi {
  background: #5e5e5a;
}
.breakdown {
  margin-top: 18px;
}
.breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.breakdown dt {
  display: flex;
  align-items: center;
  gap: 12px;
}
.key {
  width: 12px;
  height: 12px;
}
.breakdown dd {
  font: 400 16px var(--mono);
  font-variant-numeric: tabular-nums;
}
.assumptions {
  grid-column: 1 / -1;
  max-width: 100ch;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #ababa6;
  font: 12.5px/1.65 var(--mono);
}

/* ---------- Services index ---------- */
.index {
  margin: 0;
  padding: 0;
  list-style: none;
}
.index li {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.6fr) 150px;
  column-gap: var(--gap);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition:
    background 0.3s,
    padding 0.4s var(--ease);
}
.index li:not(.index-head)::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.index li:not(.index-head):hover {
  padding-left: 22px;
  background: var(--soft);
}
.index li:not(.index-head):hover::before {
  transform: scaleY(1);
}
.index-head {
  padding: 0 0 14px;
  border-bottom: 1.5px solid var(--ink) !important;
  color: var(--grey);
  font: 500 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.index-head span:last-child,
.from {
  text-align: right;
}
.no {
  color: var(--red);
  font: 500 14px var(--mono);
}
.index h3 {
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -0.04em;
}
.index p {
  color: var(--grey);
}
.from {
  font: 500 14.5px var(--mono);
}

/* ---------- Fees ---------- */
.fees {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.fees-controls {
  grid-column: 1 / 7;
}
.fees h2 {
  margin: 22px 0 22px;
}
.fees-intro {
  max-width: 42ch;
  color: var(--grey);
}
.choice {
  margin: 48px 0 0;
  padding: 0;
  border: 0;
}
.choice legend,
.stepper > span {
  margin-bottom: 14px;
  padding: 0;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.choice legend {
  grid-column: 1 / -1;
}
.choice label {
  position: relative;
}
.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition:
    background 0.25s,
    color 0.25s;
}
.choice label + label span {
  border-left: 0;
}
.choice input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.toggles {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border: 1.5px solid var(--ink);
  transition: background 0.3s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: var(--ink);
  transition:
    transform 0.35s var(--ease),
    background 0.3s;
}
.toggle input:checked + .switch {
  background: var(--red);
  border-color: var(--red);
}
.toggle input:checked + .switch::after {
  background: var(--paper);
  transform: translateX(20px);
}
.toggle input:focus-visible + .switch {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
}
.stepper > span {
  margin: 0;
  font: 400 17px var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.stepper-controls {
  display: flex;
  align-items: center;
}
.step {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.step:hover {
  background: var(--ink);
  color: var(--paper);
}
.stepper output {
  min-width: 56px;
  text-align: center;
  font: 500 22px var(--mono);
  font-variant-numeric: tabular-nums;
}
.fees-statement {
  grid-column: 8 / -1;
  align-self: start;
  position: sticky;
  top: 100px;
}
.fee-lines > div {
  animation: line-in 0.45s var(--ease);
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.fee-cta {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
}

/* ---------- Deadlines ---------- */
.year {
  position: relative;
}
.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  font: 500 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.months span {
  padding: 0 0 10px 8px;
  border-left: 1px solid var(--rule);
}
.track {
  position: relative;
  height: 160px;
  border-bottom: 1.5px solid var(--ink);
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.tick {
  position: absolute;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px) scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.year.in .tick {
  transform: translateX(-1px) scaleY(1);
}
.tick-paye {
  height: 26px;
  background: #a3a39e;
}
.tick-vat {
  height: 56px;
  background: var(--ink);
}
.tick-ct {
  height: 92px;
  width: 3px;
  background: var(--ink);
}
.tick-tax {
  height: 126px;
  width: 5px;
  background: var(--red);
}
.tick span {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  white-space: nowrap;
  font: 500 11.5px var(--mono);
  transform: translateX(-50%);
}
.tick-tax span {
  left: -8px;
  color: var(--red);
  transform: translateX(-100%);
}
.today {
  position: absolute;
  top: -8px;
  bottom: -14px;
  border-left: 1.5px dashed var(--red);
}
.today span {
  position: absolute;
  bottom: -26px;
  left: 0;
  padding: 2px 6px;
  background: var(--red);
  color: var(--paper);
  font: 500 11px var(--mono);
  transform: translateX(-50%);
  white-space: nowrap;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  font: 12.5px var(--mono);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mk {
  display: inline-block;
  width: 12px;
  height: 12px;
}
.mk-tax {
  background: var(--red);
}
.mk-ct,
.mk-vat {
  background: var(--ink);
}
.mk-vat {
  height: 8px;
}
.mk-paye {
  height: 5px;
  background: #a3a39e;
}
.upcoming {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(56px, 6vw, 88px);
}
.upcoming h3 {
  grid-column: 1 / 4;
  font-size: 30px;
}
.next-list {
  grid-column: 4 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}
.next-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2fr) auto;
  column-gap: var(--gap);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.next-list li > :first-child {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
}
.next-list .in-days {
  color: var(--red);
  font: 500 13.5px var(--mono);
  text-align: right;
}
.next-list li.soon > :first-child {
  color: var(--red);
}
.ros {
  grid-column: 4 / -1;
  margin-top: 18px;
  color: var(--grey);
  font: 12.5px/1.6 var(--mono);
}

/* ---------- Steps ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-grid li {
  position: relative;
  padding-top: 24px;
}
.big {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: clamp(110px, 12vw, 190px);
  font-weight: 250;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.step-grid h3 {
  font-size: clamp(26px, 2.3vw, 34px);
  letter-spacing: -0.035em;
}
.step-grid p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--grey);
}

/* A rule that draws itself across the top of a row or column. */
[data-rule]::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) var(--d, 0ms);
}
[data-rule].in::after {
  transform: scaleX(1);
}
.index [data-rule]::after {
  height: 1px;
  background: var(--rule);
}

/* ---------- Team ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
}
.portrait span {
  position: absolute;
  left: 20px;
  top: 16px;
  z-index: 1;
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 650;
  letter-spacing: -0.06em;
}
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  transition: transform 0.9s var(--ease);
}
.p1 {
  background: var(--ink);
  color: var(--paper);
}
.p1::before {
  right: -22%;
  bottom: -18%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
}
.p1::after {
  left: 20px;
  bottom: 24px;
  width: 38%;
  height: 10px;
  background: var(--paper);
}
.p2 {
  background: var(--red);
  color: var(--paper);
}
.p2::before {
  left: 50%;
  bottom: -60%;
  width: 120%;
  aspect-ratio: 1;
  margin-left: -60%;
  border-radius: 50%;
  background: var(--paper);
}
.p2::after {
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 46%;
  background: var(--ink);
}
.p3 {
  background: var(--soft);
  color: var(--ink);
}
.p3::before {
  right: 0;
  top: 0;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 0 0 0 100%;
  background: var(--ink);
}
.p3::after {
  left: 20px;
  bottom: 24px;
  width: 30%;
  height: 30%;
  background: var(--red);
}
.people li:hover .p1::before {
  transform: translate(-8%, -6%);
}
.people li:hover .p2::before {
  transform: translateY(-8%);
}
.people li:hover .p3::before {
  transform: scale(1.08);
  transform-origin: top right;
}
.people h3 {
  font-size: 28px;
}
.role {
  margin: 8px 0 14px;
  color: var(--red);
  font: 500 12.5px var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.people p:not(.role):not(.ask) {
  color: var(--grey);
}
.ask {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font: 12.5px var(--mono);
}

/* ---------- Quote ---------- */
.quote {
  margin-top: clamp(80px, 10vw, 150px);
  padding: clamp(80px, 9vw, 136px)
    max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: var(--soft);
}
.quote blockquote p {
  max-width: 20ch;
  font-size: clamp(42px, 5.6vw, 90px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.quote figcaption {
  margin-top: 28px;
  color: var(--grey);
  font: 13px/1.5 var(--mono);
}
.quote figcaption a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 4px;
}
.quote-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}
.quote-stats li {
  padding-top: 22px;
}
.quote-stats strong {
  display: block;
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.quote-stats span {
  display: block;
  max-width: 24ch;
  margin-top: 12px;
  color: var(--grey);
  font: 13px/1.5 var(--mono);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  padding-bottom: clamp(80px, 10vw, 150px);
}
.contact-info {
  grid-column: 1 / 6;
}
.contact h2 {
  margin: 22px 0 40px;
}
.details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.details dt {
  color: var(--grey);
  font: 500 12.5px/1.9 var(--mono);
  text-transform: uppercase;
}
.contact-form {
  grid-column: 7 / -1;
  display: grid;
  gap: 26px;
  align-content: start;
}
.field label {
  display: block;
  margin-bottom: 4px;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 20px;
  letter-spacing: -0.02em;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0b0b' stroke-width='1.6'/%3E%3C/svg%3E")
    right 4px center / 12px 8px no-repeat;
  cursor: pointer;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 1.5px 0 var(--red);
}
.contact-form .btn {
  justify-self: start;
}
.form-status {
  min-height: 1.5em;
  font: 13.5px/1.5 var(--mono);
}

/* ---------- Footer ---------- */
.foot {
  padding: clamp(48px, 6vw, 80px) var(--gutter) 28px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.foot :focus-visible {
  outline-color: var(--paper);
}
.foot-word {
  font-size: clamp(56px, 18.2vw, 300px);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.foot-word b {
  color: var(--red-on-ink);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font: 12.5px/1.5 var(--mono);
  color: #d0d0cc;
}
.foot-row nav {
  display: flex;
  gap: 22px;
}
.foot a {
  color: var(--paper);
  text-underline-offset: 3px;
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 {
    grid-column: 1 / -1;
  }
  .hero-statement {
    grid-column: 7 / -1;
    grid-row: 3;
    margin-top: clamp(32px, 4vw, 56px);
  }
  .hero-copy {
    grid-column: 1 / 7;
  }
  .index li {
    grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.3fr) 120px;
  }
}
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr auto;
  }
  .nav,
  .top > .btn {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    cursor: pointer;
  }
  .hero-statement,
  .hero-copy,
  .calc-controls,
  .calc-result,
  .fees-controls,
  .fees-statement,
  .contact-info,
  .contact-form,
  .upcoming h3,
  .next-list,
  .ros,
  .section-head h2,
  .section-head > p:last-child:not(.label) {
    grid-column: 1 / -1;
  }
  .hero-statement {
    grid-row: 4;
  }
  .hero-copy {
    grid-row: 3;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 5;
  }
  .stats li {
    padding-bottom: 32px;
  }
  .fees-statement {
    position: static;
  }
  .index-head {
    display: none !important;
  }
  .index li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    row-gap: 8px;
  }
  .index p {
    grid-column: 2 / -1;
  }
  .index .from {
    grid-row: 1;
    grid-column: 3;
  }
  .step-grid,
  .people,
  .quote-stats {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }
  .upcoming h3 {
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .months span {
    padding-left: 3px;
    font-size: 9.5px;
    letter-spacing: 0;
  }
  .tick span {
    display: none;
  }
  .next-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }
  .next-list li > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--grey);
  }
  .next-list .in-days {
    grid-row: 1;
    grid-column: 2;
  }
  .people {
    grid-template-columns: minmax(0, 1fr);
  }
  .portrait {
    aspect-ratio: 16 / 11;
  }
  .details > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .contact-form .btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
