:root {
  --ink: #111111;
  --paper: #ffffff;
  --border: #dedede;
  --gold: #ffd84d;
  --muted: #666666;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(17, 17, 17, 0.13) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

.home-body {
  --bounce-offset: 26px;
  overflow: hidden;
}

.home-body .page {
  transition: transform 480ms cubic-bezier(0.2, 0.85, 0.2, 1);
  will-change: transform;
}

.home-body.is-bouncing-start .page {
  transform: translateY(var(--bounce-offset));
  transition-duration: 140ms;
}

.home-body.is-bouncing-end .page {
  transform: translateY(calc(var(--bounce-offset) * -1));
  transition-duration: 140ms;
}

.page {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
}

.hero,
.content-shell {
  position: relative;
  width: min(1120px, 100%);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero {
  height: 100%;
  max-height: 760px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 3vw, 44px) clamp(74px, 11vh, 120px) auto;
  width: clamp(210px, 20vw, 300px);
  aspect-ratio: 1.32;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) 0 40px / 100% 1px no-repeat,
    linear-gradient(90deg, var(--gold) 0 18%, transparent 18% 100%) 28px 76px / calc(100% - 56px) 18px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)) 28px 122px / 46% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)) 28px 154px / 70% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)) 28px 186px / 58% 2px no-repeat,
    rgba(255, 255, 255, 0.04);
  opacity: 0.42;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(20px, 4vw, 54px);
  top: clamp(76px, 15vh, 138px);
  width: clamp(44px, 7vw, 84px);
  aspect-ratio: 1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 2px 58% no-repeat,
    linear-gradient(90deg, var(--gold), var(--gold)) center / 58% 2px no-repeat;
  opacity: 0.86;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(13px, 2.4vw, 24px) clamp(16px, 3.2vw, 38px);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.93rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.brand,
.desktop-nav a {
  color: inherit;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.desktop-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--paper);
  outline: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(22px, 6vw, 78px) clamp(18px, 6vw, 72px);
}

h1 {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 7.8vw, 6.6rem);
  line-height: 1.02;
}

.accent {
  color: var(--gold);
}

.mobile-and {
  display: none;
}

.content-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
}

.content-shell {
  min-height: min(760px, calc(100dvh - clamp(24px, 6vw, 72px)));
  display: grid;
  grid-template-rows: auto 1fr;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  padding: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-label {
  display: flex;
  align-items: flex-start;
}

.page-label span {
  display: inline-flex;
  min-width: 92px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--gold);
}

.copy-panel {
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
}

.copy-panel h1 {
  max-width: 15ch;
  margin-bottom: clamp(20px, 2.8vw, 30px);
  font-size: clamp(2rem, 4.6vw, 3.55rem);
}

.copy-panel p {
  max-width: 64ch;
  margin: 0;
  color: #333333;
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.52;
}

.copy-panel p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--border);
}

.contact-list {
  margin-top: clamp(24px, 4vw, 40px);
  border-top: 2px solid var(--ink);
}

.contact-list a {
  display: grid;
  grid-template-columns: minmax(86px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover strong,
.contact-list a:focus-visible strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-list span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.92rem, 1.9vw, 1.2rem);
  letter-spacing: 0;
}

.linkedin-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--ink) !important;
  font-size: 0.84rem !important;
  text-transform: none !important;
}

@media (max-width: 700px) {
  body {
    background: var(--paper);
  }

  .home-body {
    --bounce-offset: 18px;
    background: var(--ink);
  }

  .home-body .page {
    padding: 0;
    place-items: stretch;
  }

  .home-body .hero {
    width: 100%;
    max-height: none;
    border: 0;
  }

  .home-body .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.92rem, 12.1vw, 5rem);
    line-height: 1;
  }

  .desktop-and {
    display: none;
  }

  .mobile-and {
    display: inline;
  }

  .mobile-lead {
    white-space: nowrap;
  }

  .hero::before {
    right: 18px;
    bottom: 104px;
    width: min(66vw, 270px);
    opacity: 0.3;
  }

  .hero::after {
    top: auto;
    right: 24px;
    bottom: 96px;
    width: 48px;
  }

  .topbar {
    gap: 12px;
    font-size: 0.88rem;
  }

  .desktop-nav {
    gap: 14px;
    margin-left: auto;
  }

  .brand {
    max-width: 14ch;
    line-height: 1.18;
  }

  .content-page {
    min-height: 100dvh;
    padding: 0;
    place-items: stretch;
  }

  .content-shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .page-label span {
    min-width: 76px;
  }

  .copy-panel {
    padding: 22px;
  }

  .copy-panel h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .copy-panel p {
    font-size: 1.1rem;
  }

  .contact-list a {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .contact-list span {
    font-size: 0.94rem;
  }

  .contact-list strong {
    overflow-wrap: normal;
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

@media (min-width: 375px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 0.9rem;
  }
}

@media (min-width: 380px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 0.92rem;
  }
}

@media (min-width: 390px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 0.96rem;
  }
}

@media (min-width: 400px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 1rem;
  }
}

@media (min-width: 414px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 1.05rem;
  }
}

@media (min-width: 430px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 1.1rem;
  }
}

@media (min-width: 440px) and (max-width: 700px) {
  .contact-list strong {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-body .page {
    transition: none;
    will-change: auto;
  }

  .home-body.is-bouncing-start .page,
  .home-body.is-bouncing-end .page {
    transform: none;
  }
}

@media (max-height: 520px) {
  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 4rem);
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .hero::before,
  .hero::after {
    display: none;
  }
}
