:root {
  --bg: #dde7e7;
  --ink: #171717;
  --paper: #f8f8f2;
  --muted: #5a6464;
  --line: #171717;
  --red: #ef3b2d;
  --yellow: #f7c52b;
  --blue: #1dadeb;
  --green: #157a64;
  --purple: #2d2478;
  --shadow: rgba(23, 23, 23, 0.16);
  --max: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% -10%, rgba(248, 248, 242, 0.75), transparent 32rem);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  gap: 18px;
}

.brand-chip,
.top-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 3px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--line);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-chip {
  justify-self: start;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  text-transform: none;
}

.brand-mark {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-weight: 900;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 248, 242, 0.72);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--yellow);
  outline: 0;
}

.top-button {
  justify-self: end;
  padding: 8px 15px;
}

.button {
  min-width: 164px;
  padding: 12px 16px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible,
.top-button:hover,
.top-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
  outline: 0;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: var(--yellow);
}

.button-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.hero-section {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 10px auto 0;
  padding: 24px 0 48px;
  text-align: center;
}

.hero-meta {
  position: absolute;
  top: 16px;
  display: grid;
  gap: 3px;
  font-size: 0.72rem;
  text-align: left;
  text-transform: uppercase;
}

.hero-meta span {
  color: var(--muted);
  font-weight: 800;
}

.hero-meta strong {
  font-weight: 900;
}

.hero-meta-left {
  left: 2px;
}

.hero-meta-right {
  right: 2px;
  text-align: right;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
}

.eyebrow,
.mini-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title-wrap .eyebrow {
  margin-top: 6px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 8px auto 0;
  max-width: 940px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 7.3rem;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.ticker {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 120vw;
  max-width: 1480px;
  overflow: hidden;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--paper);
  transform: translateX(-50%);
}

.ticker-tilt {
  top: 174px;
  transform: translateX(-50%) rotate(-4deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.ticker-track span {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-right: 3px solid var(--line);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 16px auto 0;
}

.hero-visual img {
  width: 100%;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 0 rgba(23, 23, 23, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin: 18px auto 0;
}

.hero-copy h2,
.section-heading h2,
.intro-grid h2,
.contact-card h2 {
  margin: 8px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.8rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p,
.intro-grid p,
.work-card p,
.timeline p,
.contact-card p,
.contact-sticker p,
.skill-list p {
  color: #273232;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.intro-band,
.feature-section,
.work-section,
.experience-section,
.contact-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-rule {
  height: 3px;
  margin-bottom: 42px;
  background: var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.section-label {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.section-label span,
.card-topline span,
.section-label strong,
.card-topline strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 3px solid var(--line);
  background: var(--paper);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-label strong,
.card-topline strong {
  background: var(--red);
  color: var(--paper);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 30px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.sticker-device {
  position: relative;
  min-height: 280px;
  border: 5px solid var(--line);
  border-radius: 8px;
  background: var(--red);
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(-8deg);
}

.sticker-device::before {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 38px;
  height: 150px;
  border: 5px solid var(--line);
  border-radius: 8px;
  content: "";
  background: var(--blue);
}

.sticker-device::after {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 34px;
  height: 38px;
  border: 5px solid var(--line);
  border-radius: 999px;
  content: "";
  background: var(--yellow);
}

.device-face::before,
.device-face::after {
  position: absolute;
  top: 98px;
  z-index: 2;
  width: 12px;
  height: 24px;
  border-radius: 999px;
  content: "";
  background: var(--line);
}

.device-face::before {
  left: 106px;
}

.device-face::after {
  right: 106px;
}

.device-smile {
  position: absolute;
  left: 50%;
  top: 134px;
  z-index: 2;
  width: 58px;
  height: 28px;
  border-bottom: 6px solid var(--line);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.sticker-device span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--green);
}

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px;
  border-top: 3px solid var(--line);
}

.skill-list article:last-child {
  border-bottom: 3px solid var(--line);
}

.skill-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.skill-list h3,
.work-card h3,
.timeline h3,
.contact-sticker h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skill-list p,
.work-card p,
.timeline p {
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  display: grid;
  align-content: start;
  min-height: 340px;
  padding: 20px;
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
}

.yellow-card {
  background: var(--yellow);
}

.blue-card {
  background: var(--blue);
}

.green-card {
  background: var(--green);
  color: var(--paper);
}

.green-card p {
  color: var(--paper);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.work-card ul {
  display: flex;
  align-self: end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.work-card li {
  padding: 7px 9px;
  border: 3px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 3px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  padding: 22px 0;
  border-bottom: 3px solid var(--line);
}

.timeline time {
  display: inline-flex;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: center;
  padding-bottom: 72px;
}

.contact-card {
  padding: 28px;
  border: 4px solid var(--line);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.contact-form textarea {
  resize: vertical;
  min-height: 136px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 4px solid var(--yellow);
}

.form-submit {
  width: 100%;
}

.contact-sticker {
  display: grid;
  gap: 9px;
  padding: 22px;
  border: 4px solid var(--line);
  background: var(--purple);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
  transform: rotate(4deg);
}

.contact-sticker a,
.contact-sticker p {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.contact-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.5rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 3px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-chip,
  .top-button {
    justify-self: center;
  }

  .nav-links {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-meta {
    position: static;
    display: inline-grid;
    margin: 6px 10px 10px;
    text-align: center;
  }

  .hero-meta-right {
    text-align: center;
  }

  h1 {
    font-size: 5.2rem;
  }

  .ticker-tilt {
    top: 205px;
  }

  .intro-grid,
  .feature-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .sticker-device {
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .skill-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .skill-list p {
    grid-column: 2;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 270px;
  }

  .contact-sticker {
    transform: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero-section,
  .intro-band,
  .feature-section,
  .work-section,
  .experience-section,
  .contact-section,
  .footer {
    width: min(100% - 22px, var(--max));
  }

  .brand-chip {
    width: 100%;
  }

  .nav-links {
    width: 100%;
  }

  .top-button {
    width: 100%;
  }

  .hero-section {
    padding-top: 10px;
  }

  h1 {
    font-size: 3.55rem;
  }

  .ticker-tilt {
    top: 192px;
    transform: translateX(-50%) rotate(-6deg);
  }

  .hero-copy h2,
  .section-heading h2,
  .intro-grid h2,
  .contact-card h2 {
    font-size: 2.15rem;
  }

  .hero-copy {
    margin-top: 4px;
  }

  .button {
    width: 100%;
  }

  .skill-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-list p {
    grid-column: auto;
  }

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

  .contact-card {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
