/* Fynalto, a piano tuning and restoration workshop in Aarhus.
   Graphite bands in shifting tones, mint type, one hot orange. A geometric display
   face set large, a humanist body, oversized numerals marking every band. */

:root {
  --g0: #23272A;
  --g1: #2B3034;
  --g2: #333A3F;
  --g3: #1C1F22;
  --mint: #BFEBD8;
  --mint-soft: #8DB8A6;
  --rule: #4A5359;
  --hot: #FF5A1F;

  --display: Futura, "Futura PT", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --band: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--g0);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--g0);
  color: var(--mint);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

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

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

a {
  color: inherit;
}

::selection {
  background: var(--hot);
  color: var(--g3);
}

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

.fa-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--mint);
  color: var(--g3);
  text-decoration: none;
}

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

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

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

/* Text links: a thin mint rule that turns hot on hover. */
.fa-main p a,
.fa-main li a,
.fa-main dd a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: var(--mint-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}

.fa-main p a:hover,
.fa-main li a:hover,
.fa-main dd a:hover {
  color: #FFFFFF;
  text-decoration-color: var(--hot);
}

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

.fa-head {
  position: relative;
  z-index: 40;
  background: var(--g3);
  border-bottom: 1px solid var(--rule);
}

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

.fa-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  text-decoration: none;
}

.fa-mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hot);
  flex: none;
}

.fa-nav {
  display: none;
}

.fa-nav-list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.fa-nav-link {
  position: relative;
  padding: 8px 0;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--mint-soft);
  text-decoration: none;
  transition: color 200ms ease;
}

.fa-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

.fa-nav-link:hover,
.fa-nav-link[aria-current="page"] {
  color: var(--mint);
}

.fa-nav-link:hover::after,
.fa-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.fa-menu {
  position: static;
}

.fa-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

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

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

.fa-menu-lines {
  position: relative;
  width: 18px;
  height: 8px;
}

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

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

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

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

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

.fa-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 8px var(--pad) 26px;
  background: var(--g3);
  border-bottom: 1px solid var(--rule);
}

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

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

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

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

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

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

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

.fa-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: 860px) {
  .fa-nav {
    display: block;
  }

  .fa-menu {
    display: none;
  }
}

/* ---------- The opening: a statement over one key's action ---------- */

.fa-open {
  padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px);
  background: var(--g0);
}

.fa-open-kicker {
  margin-bottom: clamp(16px, 2vw, 28px);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-open-title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--mint);
}

.fa-action {
  position: relative;
  margin-top: clamp(-36px, -2.4vw, -8px);
  overflow: hidden;
}

.fa-action .fa-draw {
  width: 100%;
}

.fa-action figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-action figcaption b {
  font-weight: 500;
  color: var(--hot);
}

@media (max-width: 639px) {
  .fa-action {
    margin-top: 20px;
  }

  /* On a phone the drawing shows the middle of the action, from the tuning pin to the damper. */
  .fa-action .fa-draw {
    width: 140%;
    max-width: none;
    margin-left: -24%;
  }
}

/* ---------- The three things the workshop does ---------- */

.fa-three {
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--g3);
}

.fa-three-title {
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: 0.875rem;
  font-family: var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-three-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.fa-three-item {
  border-top: 2px solid var(--hot);
}

.fa-main .fa-three-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding-top: clamp(16px, 2vw, 24px);
  color: var(--mint);
  text-decoration: none;
}

.fa-three-name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}

.fa-three-note {
  color: var(--mint-soft);
}

.fa-three-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fa-three-go .fa-chev {
  width: 0.6rem;
  color: var(--hot);
  transition: transform 260ms var(--ease);
}

.fa-three-link:hover .fa-three-name,
.fa-three-link:focus-visible .fa-three-name {
  color: var(--hot);
}

.fa-three-link:hover .fa-chev {
  transform: translateX(4px);
}

@media (max-width: 859px) {
  .fa-three-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.fa-marquee {
  overflow: hidden;
  background: var(--g3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.fa-marquee-label {
  padding: 14px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hot);
}

.fa-marquee-track {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0 16px;
}

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

.fa-marquee-run li {
  padding-right: 48px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  white-space: nowrap;
  color: var(--mint);
}

.fa-marquee-run li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 18px;
  border-radius: 50%;
  background: var(--hot);
  vertical-align: middle;
}

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

/* With the script and motion allowed, the list runs as one slow line. Without either,
   it simply wraps, so nothing is cut off. */
@media (prefers-reduced-motion: no-preference) {
  .fa-js .fa-marquee-track {
    flex-wrap: nowrap;
    width: max-content;
    animation: fa-marquee 70s linear infinite;
  }

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

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

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

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

/* ---------- Bands ---------- */

.fa-band {
  position: relative;
  padding: var(--band) 0;
  border-top: 1px solid var(--rule);
}

.fa-band--1 { background: var(--g1); }
.fa-band--2 { background: var(--g2); }
.fa-band--3 { background: var(--g0); }
.fa-band--4 { background: var(--g3); }

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

.fa-band-num {
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--rule);
  user-select: none;
}

.fa-band-num--hot {
  color: var(--hot);
}

.fa-band-body {
  min-width: 0;
  max-width: 46rem;
}

.fa-eyebrow {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-h2 {
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  line-height: 1.04;
  color: #FFFFFF;
}

.fa-h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.fa-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--mint);
}

.fa-prose > * + * {
  margin-top: 1.1em;
}

.fa-prose p {
  max-width: 40em;
}

@media (min-width: 960px) {
  .fa-band-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: start;
  }

  .fa-band-num {
    position: sticky;
    top: 40px;
  }
}

.fa-band--open {
  border-top: 0;
  padding-top: clamp(56px, 7vw, 112px);
}

/* ---------- Method steps ---------- */

.fa-steps {
  counter-reset: fa-step;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.fa-step {
  counter-increment: fa-step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 4px 18px;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--rule);
}

.fa-step::before {
  content: counter(fa-step, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 0.25em;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--hot);
}

.fa-step-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  color: #FFFFFF;
}

.fa-step p {
  color: var(--mint);
}

/* ---------- Price rows ---------- */

.fa-prices {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

.fa-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--rule);
}

.fa-price-name {
  min-width: 0;
  color: var(--mint);
}

.fa-price-fig {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #FFFFFF;
  white-space: nowrap;
  text-align: right;
}

.fa-price-note {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--mint-soft);
}

/* ---------- Facts, lists, notes ---------- */

.fa-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.fa-fact {
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--rule);
}

.fa-fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-fact dd {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: #FFFFFF;
}

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

.fa-list li {
  position: relative;
  padding: 15px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  transition: transform 260ms var(--ease);
}

.fa-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 14px;
  height: 1px;
  background: var(--hot);
}

@media (hover: hover) {
  .fa-list li:hover {
    transform: translateX(6px);
  }
}

.fa-note {
  margin-top: 36px;
  padding: 28px 0 0 28px;
  border-left: 3px solid var(--hot);
}

.fa-voice {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--mint);
  max-width: 38em;
}

.fa-sign {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--hot);
}

/* ---------- Drawings ---------- */

.fa-fig {
  margin-top: 40px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--rule);
}

.fa-fig figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-fig figcaption b {
  font-weight: 500;
  color: var(--hot);
}

.fa-draw .fa-ln {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fa-draw .fa-ln--soft {
  stroke: var(--mint-soft);
  stroke-width: 0.9;
}

.fa-draw .fa-ln--hot {
  stroke: var(--hot);
  stroke-width: 1.6;
}

.fa-draw .fa-ln--dash {
  stroke: var(--rule);
  stroke-dasharray: 4 5;
}

.fa-draw .fa-fill-hot {
  fill: var(--hot);
}

.fa-draw .fa-lab {
  fill: var(--mint);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fa-draw .fa-lab--hot {
  fill: var(--hot);
}

@media (max-width: 639px) {
  .fa-draw .fa-lab {
    font-size: 17px;
  }
}

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

.fa-mail {
  display: inline-block;
  max-width: 100%;
  margin: 8px 0 24px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 10px;
  transition: border-color 220ms ease, color 220ms ease;
}

.fa-mail:hover {
  border-bottom-color: var(--hot);
  color: var(--mint);
}

.fa-hours {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}

.fa-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--rule);
}

.fa-hours-row span:last-child {
  font-family: var(--display);
  color: #FFFFFF;
  text-align: right;
  white-space: nowrap;
}

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

.fa-next-list {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

.fa-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 23px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: #FFFFFF;
  text-decoration: none;
}

.fa-next-link .fa-chev {
  width: 0.6em;
  color: var(--hot);
  transition: transform 240ms var(--ease);
}

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

.fa-next-link small {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--mint-soft);
}

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

.fa-foot-line {
  margin-top: 14px;
  max-width: 30em;
}

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

.fa-foot {
  padding: 64px 0 32px;
  background: var(--g3);
  border-top: 1px solid var(--rule);
}

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

.fa-foot-head {
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

.fa-foot p {
  color: var(--mint-soft);
  font-size: 1rem;
}

.fa-foot-list a {
  display: inline-block;
  padding: 4px 0;
  color: var(--mint);
  text-decoration: none;
}

.fa-foot-list a:hover {
  color: #FFFFFF;
}

.fa-foot-list a[aria-current="page"] {
  color: var(--hot);
}

.fa-foot-mail {
  font-family: var(--display);
  font-size: 1.4rem;
  color: #FFFFFF;
  text-decoration: none;
}

.fa-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--mint-soft);
}

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

/* ---------- Reveals: blocks are visible by default; the script hides only the ones
   below the fold and shows them as they arrive. ---------- */

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

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

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

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

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

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