:root {
  --bg: #fff6e6;
  --bg-2: #dff1ff;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #4b5568;
  --line: #1f2430;
  --accent: #ff6b3d;
  --accent-2: #1f9bff;
  --accent-3: #20b56f;
  --radius: 20px;
  --shadow: 8px 8px 0 rgba(31, 36, 48, 0.16);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 61, 0.2), rgba(255, 107, 61, 0) 30%),
    radial-gradient(circle at 88% 12%, rgba(31, 155, 255, 0.22), rgba(31, 155, 255, 0) 34%),
    repeating-linear-gradient(
      -18deg,
      rgba(31, 36, 48, 0.025) 0 12px,
      rgba(31, 36, 48, 0) 12px 28px
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.bg-shape-a {
  width: 420px;
  height: 420px;
  top: -170px;
  right: -130px;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.42), rgba(255, 107, 61, 0));
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(31, 155, 255, 0.38), rgba(31, 155, 255, 0));
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.1rem auto 0;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.hero,
.panel,
.split {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero {
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  background:
    linear-gradient(125deg, rgba(255, 107, 61, 0.14), rgba(31, 155, 255, 0.15)),
    rgba(255, 255, 255, 0.95);
}

.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 130px;
  height: 130px;
  transform: rotate(14deg);
  border: 2px dashed rgba(31, 36, 48, 0.3);
  border-radius: 18px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.56rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
}

.hero-copy {
  max-width: 44ch;
  margin-bottom: 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-image-wrap {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0.45rem;
  background: #ffffff;
  width: min(325px, 100%);
  justify-self: end;
  transform: rotate(-2.2deg);
  box-shadow: 6px 6px 0 rgba(31, 36, 48, 0.2);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.panel,
.split {
  padding: clamp(1rem, 2vw, 1.6rem);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.work-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
  transition: transform 180ms ease;
}

.work-card:nth-child(odd) {
  background: linear-gradient(180deg, rgba(31, 155, 255, 0.08), #fff);
}

.work-card:nth-child(even) {
  background: linear-gradient(180deg, rgba(255, 107, 61, 0.08), #fff);
}

.work-card:hover {
  transform: translate(-2px, -2px);
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
}

.work-date {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.work-company {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.work-card p {
  color: var(--muted);
}

.meta {
  margin-top: 0.65rem;
  margin-bottom: 0;
  display: inline-block;
  padding: 0.2rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-list li {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  background: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
}

.skills-list li:nth-child(3n) {
  background: rgba(255, 107, 61, 0.12);
}

.skills-list li:nth-child(3n + 1) {
  background: rgba(31, 155, 255, 0.13);
}

.skills-list li:nth-child(3n + 2) {
  background: rgba(32, 181, 111, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
  align-items: start;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.facts li {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.72rem;
  background: #fff;
  display: grid;
  gap: 0.14rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding: 0.2rem 0.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.footer-email {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 36, 48, 0.4);
}

.footer-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    justify-self: start;
    transform: rotate(0deg);
    width: min(280px, 100%);
  }

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

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

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }

  .work-head {
    display: block;
  }

  .work-date {
    margin-top: 0.12rem;
  }
}
