:root {
  --paper: #f4f0e8;
  --paper-deep: #ebe5d9;
  --ink: #1f2023;
  --muted: #66615a;
  --rule: rgba(31, 32, 35, 0.58);
  --hairline: rgba(31, 32, 35, 0.18);
  --accent: #c7471d;
  --accent-soft: rgba(199, 71, 29, 0.12);
  --available: #2f9e44;
  --available-soft: rgba(47, 158, 68, 0.34);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(255, 255, 255, 0.72),
      transparent 26rem
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.42),
      transparent 30rem
    ),
    linear-gradient(
      135deg,
      var(--paper) 0%,
      #f8f5ee 48%,
      var(--paper-deep) 100%
    );
  color: var(--ink);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.42;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(31, 32, 35, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 32, 35, 0.018) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.4));
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
.pending-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 32px;
}

.topbar,
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
  font-size: 12px;
}

.intro-active .topbar,
.intro-active .hero,
.intro-active .hero p,
.intro-active .scroll-link,
.intro-active .folio-section,
.intro-active .footer {
  border-color: transparent;
}

.intro-active .topbar,
.intro-active .hero p,
.intro-active .scroll-link,
.intro-active .folio-section,
.intro-active .footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero,
.topbar,
.hero p,
.scroll-link,
.folio-section,
.footer {
  transition:
    border-color 1.35s ease,
    opacity 1.35s ease,
    visibility 0s linear 1.35s;
}

body:not(.intro-active) .topbar,
body:not(.intro-active) .hero p,
body:not(.intro-active) .scroll-link,
body:not(.intro-active) .folio-section,
body:not(.intro-active) .footer {
  transition-delay: 0s;
}

.mark,
.wordmark,
.status-line,
.footer {
  font-weight: 500;
}

.mark {
  justify-self: start;
  text-decoration: none;
}

.wordmark {
  justify-self: center;
}

.status-line {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--available);
}

.status-dot::after {
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: var(--available-soft);
  content: "";
  opacity: 0;
  transform: scale(0.35);
  animation: availability-pulse 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: opacity, transform;
}

@keyframes availability-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.35);
  }

  80% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero {
  min-height: 330px;
  padding: clamp(34px, 6vw, 64px) 0 26px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  width: fit-content;
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(60px, 10vw, 104px);
  font-weight: 500;
  line-height: 0.92;
  text-transform: uppercase;
}

.typing-line {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
}

.typing-title.typing-hover-ready {
  cursor: crosshair;
}

.name-letter {
  display: inline-block;
  transition:
    color 160ms ease,
    transform 160ms ease;
  transition-delay: calc(var(--letter-index) * 18ms);
  will-change: color, transform;
}

.typing-title.typing-hover-ready:hover .name-letter,
.name-letter.is-flipping {
  color: var(--accent);
  transform: translateY(-0.08em);
}

.name-letter.is-flipping {
  transition-duration: 90ms;
}

.typing-cursor {
  display: inline-block;
  width: 0;
  height: 0.82em;
  margin-left: 0.08em;
  border-left: 0.08em solid currentColor;
  vertical-align: -0.05em;
  visibility: hidden;
}

.typing-title.typing-first-line .typing-cursor-first,
.typing-title.typing-second-line .typing-cursor-second,
.typing-title.typing-complete .typing-cursor-second {
  visibility: visible;
}

@keyframes typing-cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes typing-cursor-hide {
  to {
    visibility: hidden;
  }
}

.typing-title.typing-complete .typing-cursor-second {
  animation: typing-cursor-blink 0.85s steps(1) 3;
}

.typing-title.typing-caret-hidden .typing-cursor-second {
  animation: none;
  visibility: hidden;
}

.typing-title.typing-caret-hidden .typing-cursor {
  margin-left: 0;
  border-left-width: 0;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(12px, 1.4vw, 14px);
}

.scroll-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.scroll-link span {
  position: relative;
  display: inline-grid;
  width: 12px;
  height: 14px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  place-items: center;
}

.scroll-link span::before {
  grid-area: 1 / 1;
  color: var(--accent);
  content: "↓";
  font-size: 12px;
  line-height: 1;
  animation: scroll-arrow-drop 1.75s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: opacity, transform;
}

.scroll-link:hover span::before {
  animation-duration: 1.1s;
}

@keyframes scroll-arrow-drop {
  0% {
    opacity: 0;
    transform: translateY(-85%);
  }

  42%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(85%);
  }
}

.folio-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  text-transform: uppercase;
}

.section-label h2,
.section-label span {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.section-content {
  min-width: 0;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 0;
  padding: 15px 0 13px;
  border-bottom: 1px dashed var(--hairline);
  cursor: pointer;
}

.entry:last-child {
  border-bottom: 0;
}

.entry h3,
.entry p {
  margin: 0;
}

.entry h3 {
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.entry p {
  max-width: 720px;
  color: var(--ink);
  font-size: 12px;
}

.entry p + p {
  margin-top: 2px;
}

.entry p:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.entry time {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}

.entry-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  place-items: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.entry.entry-expanded .entry-toggle {
  transform: rotate(45deg);
}

.entry-detail {
  grid-column: 1 / -1;
  max-width: 720px;
  max-height: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry.entry-expanded .entry-detail {
  opacity: 1;
  transform: translateY(0);
}

.entry-detail h4 {
  margin: 18px 0 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

.entry-detail h4:first-child {
  margin-top: 14px;
}

.entry-detail p,
.entry-detail ul {
  padding: 14px 0;
  color: var(--muted);
}

.entry-detail ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.entry-detail li {
  position: relative;
  padding-left: 18px;
}

.entry-detail li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "–";
}

.entry-detail li + li {
  margin-top: 7px;
}

.compact .entry {
  padding: 12px 0;
}

.single-line {
  align-items: baseline;
}

.single-line h3 {
  margin: 0;
  text-transform: none;
  font-weight: 400;
}

.contact-section {
  align-items: stretch;
}

.contact-links {
  display: grid;
  grid-template-columns: max-content max-content max-content max-content max-content 1fr;
  align-items: center;
  column-gap: clamp(18px, 4.8vw, 54px);
  padding: 18px 0;
  text-transform: uppercase;
}

.contact-links a,
.pending-link {
  font-size: 12px;
  font-weight: 500;
}

.contact-separator {
  color: var(--accent);
  text-decoration: none;
}

.pending-link {
  color: var(--muted);
  cursor: default;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-links > span:last-child {
  justify-self: end;
  color: var(--accent);
  font-size: 18px;
}

.footer {
  margin-top: 0;
  border-top: 0;
  border-bottom: 0;
  color: var(--ink);
}

.footer span:first-child {
  justify-self: start;
}

.footer span:last-child {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--max-width));
    padding-top: 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
  }

  .wordmark {
    display: none;
  }

  .status-line {
    gap: 18px;
  }

  .hero {
    min-height: 300px;
  }

  .folio-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-label {
    padding-bottom: 6px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .entry time {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    color: var(--accent);
    font-size: 12px;
  }

  .entry-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .contact-links {
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
  }

  .contact-separator {
    display: none;
  }

  .contact-links > span:last-child {
    justify-self: end;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 18px;
  }

  .footer span:last-child {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 13px;
  }

  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 14px;
  }

  .status-line {
    justify-self: start;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(52px, 20vw, 86px);
  }

  .hero p br {
    display: none;
  }

  .section-label h2,
  .section-label span {
    font-size: 14px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}

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

  .status-dot::after,
  .scroll-link span::before,
  .typing-cursor {
    animation: none;
  }
}
