/* Fonts — self-hosted variable fonts (SIL Open Font License) */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens — brand colours from the logo README */
:root {
  --lime: #c4f042;
  --black: #0b0b0c;
  --stone: #f3f3f0;
  --grey: #5e5e58;
  --white: #ffffff;
  --line: #e4e4df;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(1.125rem, 5vw, 3.5rem);
  --radius: 1.5rem;
  --nav-space: 6.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] {
  scroll-margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.625rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover {
  background: #26262a;
}
.btn--lime {
  background: var(--lime);
  color: var(--black);
}
.btn--lime:hover {
  background: #d3f76b;
}
.btn--lime:focus-visible {
  outline-color: var(--lime);
}
.btn--ghost {
  padding-inline: 0.875rem;
  color: var(--grey);
  font-weight: 500;
}
.btn--ghost:hover {
  color: var(--black);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.hero__content {
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 3rem;
}

.logo {
  display: inline-block;
}
.logo svg {
  width: 6.75rem;
  height: auto;
}

.hero__copy {
  margin-top: 2.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__title span {
  display: block;
}

.hero__lede {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--grey);
  font-size: clamp(1.0625rem, 1.2vw + 0.6rem, 1.25rem);
  line-height: 1.6;
}

.hero__prompt {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.8vw + 0.8rem, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.hero__tags {
  display: none;
}

.hero__panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(92vw, 34rem);
  padding: 1.5rem var(--gutter) var(--nav-space);
  background: var(--lime);
}

.hero__stack {
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__mark {
  width: min(62%, 17rem);
  height: auto;
  color: var(--black);
}

/* Service pages */
.hero--page .hero__panel {
  min-height: min(60vw, 20rem);
}
.hero--page .hero__title {
  font-size: clamp(2.25rem, 9.5vw, 3.5rem);
  text-wrap: balance;
}
.hero--page .hero__title span {
  display: inline;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--grey);
  font-size: 0.9375rem;
  font-weight: 500;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}
.breadcrumb a:hover {
  color: var(--black);
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem) 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.rows {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.row {
  display: grid;
  gap: 0.375rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.row p {
  color: var(--grey);
  font-size: 1.0625rem;
}
.row h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}
.row__arrow {
  display: inline-block;
  color: var(--grey);
  transition: transform 0.2s var(--ease);
}
.row h3 a:hover .row__arrow {
  transform: translateX(0.2em);
}
.row__num {
  margin-right: 0.75em;
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.5em;
}

/* About */
.about__body {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 1.0625rem;
}
.about__lead {
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

/* Contact */
.section--contact {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.cta {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
}
.cta__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.cta__text {
  margin-top: 0.75rem;
  color: #b9b9b2;
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  padding-bottom: calc(var(--nav-space) + env(safe-area-inset-bottom));
  color: var(--grey);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.site-footer__mark {
  width: 1.75rem;
  color: var(--black);
}
.site-footer a {
  margin-left: auto;
}
.site-footer a:hover {
  color: var(--black);
}

/* Floating nav */
.nav {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  gap: 0.125rem;
  padding: 0.3125rem;
  border-radius: 999px;
  background: var(--black);
  box-shadow: 0 10px 30px -12px rgb(11 11 12 / 0.45);
  transform: translateX(-50%);
}
.nav a {
  padding: 0.625rem 1rem;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--lime);
}
.nav a:focus-visible {
  outline-color: var(--lime);
  outline-offset: -2px;
}
.nav .nav__cta {
  background: var(--lime);
  color: var(--black);
}
.nav .nav__cta:hover,
.nav .nav__cta[aria-current="true"] {
  background: #d3f76b;
  color: var(--black);
}

/* Tablet + */
@media (min-width: 40rem) {
  .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 2rem;
    padding-block: 2rem;
  }
  .cta {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .nav a {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* Desktop — split hero */
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__content {
    padding: 2rem var(--gutter) 1.75rem;
  }
  .logo svg {
    width: 7.5rem;
  }
  .hero__copy {
    margin-block: auto;
    padding-block: 3rem;
  }
  .hero__title {
    font-size: clamp(3.25rem, 5.1vw, 6rem);
  }
  .hero--page .hero__title {
    font-size: clamp(2.75rem, 4.2vw, 5rem);
  }
  .hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.25rem;
    min-height: 3.5rem;
    align-items: center;
    color: var(--grey);
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .hero__panel {
    min-height: 0;
    padding: 2rem var(--gutter);
  }
  .hero__stack {
    top: 2.75rem;
    left: auto;
    right: var(--gutter);
  }
  .hero__mark {
    width: min(68%, 34rem);
  }
  .row p {
    font-size: 1.1875rem;
  }
  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .about__body {
    margin-top: 0.5rem;
  }
}

/* Entrance motion — only for users who haven't asked for less */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span,
  .hero__lede,
  .hero__prompt,
  .hero__actions {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__title span:nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero__title span:nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero__title span:nth-child(4) {
    animation-delay: 0.18s;
  }
  .hero__lede {
    animation-delay: 0.2s;
  }
  .hero__prompt {
    animation-delay: 0.24s;
  }
  .hero__actions {
    animation-delay: 0.28s;
  }
  .hero__mark {
    animation: mark-in 1s var(--ease) 0.15s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.88) rotate(-8deg);
  }
}
