:root {
  --paper: #f2efe8;
  --paper-deep: #e8e3d8;
  --ink: #17201d;
  --ink-soft: #5d6561;
  --line: rgba(23, 32, 29, 0.18);
  --signal: #de4f2f;
  --dark: #17201d;
  --white: #fffdf8;
  --radius: 1.5rem;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(222, 79, 47, 0.08), transparent 27rem),
    var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

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

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

.site-header,
main,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--white);
  background: var(--dark);
  border-radius: 50%;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
}

.header-link,
.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 650;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.header-link {
  font-size: 0.86rem;
}

.header-link span,
.text-link span,
.project-link span,
.button span {
  transition: transform 180ms ease;
}

.header-link:hover span,
.text-link:hover span,
.project-card:hover .project-link span,
.button:hover span {
  transform: translate(0.18rem, -0.18rem);
}

.hero {
  display: flex;
  min-height: calc(100svh - 97px);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label,
.project-type {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  color: var(--signal);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 1050px;
  margin: 1.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 5.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 span {
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 680px;
  margin: 2.5rem 0 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 2rem 0 0 auto;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  padding: 0.8rem 1.35rem;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark);
  border-radius: 999px;
  font-weight: 680;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--dark);
}

.button-primary:hover {
  background: #2a3531;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--dark);
}

.approach {
  display: grid;
  padding: clamp(5rem, 11vw, 9rem) 0;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.approach > p {
  align-self: end;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.jiu-jitsu {
  display: grid;
  min-height: 540px;
  margin-bottom: 1.5rem;
  padding: clamp(3rem, 7vw, 6rem);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 82%, rgba(255, 255, 255, 0.08), transparent 22rem),
    var(--dark);
  border-radius: var(--radius);
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.jiu-jitsu .section-label {
  color: #e7836c;
}

.jiu-jitsu h2 {
  max-width: 780px;
}

.jiu-jitsu-school {
  margin: 1.4rem 0 0;
  color: #e7836c;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jiu-jitsu-meaning {
  max-width: 650px;
  margin: 3rem 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 1.1rem;
}

.belt {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 0.2;
  justify-self: center;
  background: #080b0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.3);
  transform: rotate(7deg);
}

.belt::before {
  position: absolute;
  top: 10%;
  right: -1px;
  left: -1px;
  height: 22%;
  background: #a72f26;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
}

.belt span {
  position: absolute;
  top: 11%;
  right: 18%;
  width: 2px;
  height: 20%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 9px 0 0 rgba(255, 255, 255, 0.7);
}

.work {
  padding: clamp(5rem, 11vw, 9rem) 0 1.5rem;
}

.section-header {
  display: flex;
  gap: 3rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-header h2 {
  max-width: 720px;
}

.section-header > p {
  max-width: 280px;
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  min-height: 480px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  box-shadow: 0 1.5rem 3rem rgba(23, 32, 29, 0.12);
  transform: translateY(-0.3rem);
}

.project-card-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 253, 248, 0.11), transparent 15rem),
    var(--dark);
}

.project-card-light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 60%),
    var(--paper-deep);
}

.project-number {
  align-self: flex-end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.3;
}

.project-type {
  opacity: 0.68;
}

.project-card h3 {
  margin: 0.75rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-card p:not(.project-type) {
  max-width: 400px;
  margin: 0;
  opacity: 0.72;
  font-size: 1.05rem;
}

.project-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact {
  margin-bottom: 1.5rem;
  padding: clamp(4rem, 9vw, 8rem);
  color: var(--white);
  background: var(--signal);
  border-radius: var(--radius);
}

.contact .section-label {
  color: var(--white);
  opacity: 0.72;
}

.contact h2 {
  max-width: 820px;
}

.contact p:not(.section-label) {
  max-width: 600px;
  margin: 1.75rem 0;
  font-size: 1.1rem;
  opacity: 0.86;
}

.text-link {
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

a:focus-visible {
  outline: 3px solid #23709e;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 4.25rem);
    letter-spacing: -0.055em;
    text-wrap: wrap;
  }

  .eyebrow {
    max-width: 30rem;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .hero-lead,
  .hero-actions {
    margin-left: 0;
  }

  .hero-lead {
    text-wrap: wrap;
  }

  .approach,
  .jiu-jitsu,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .approach {
    gap: 2.5rem;
  }

  .section-header {
    display: block;
  }

  .section-header > p {
    margin-top: 1.5rem;
  }

  .jiu-jitsu {
    min-height: auto;
    padding-inline: 1.5rem;
    gap: 2.5rem;
  }

  .belt {
    width: 42px;
    height: 210px;
  }

  .jiu-jitsu-meaning {
    margin-top: 2rem;
  }

  .project-card {
    min-height: 410px;
  }

  .contact {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 440px) {
  .wordmark > span:last-child {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
