:root {
  --bg: #0a0b0f;
  --surface: #111319;
  --surface-2: #171a21;
  --text: #f4f4f5;
  --muted: #9ea3ad;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #b8ff65;
  --accent-soft: rgba(184, 255, 101, 0.12);
  --max-width: 1380px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =======================================================
   GLOBAL
======================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%,
      rgba(184, 255, 101, 0.055),
      transparent 28%),
    var(--bg);

  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--accent);
  color: #0a0b0f;
}

/* =======================================================
   PAGE TRANSITION
======================================================= */

.page-transition {
  --transition-left: 50%;
  --transition-top: 50%;
  --transition-width: 0px;
  --transition-height: 0px;

  position: fixed;

  left: var(--transition-left);
  top: var(--transition-top);
  width: var(--transition-width);
  height: var(--transition-height);

  z-index: 9999;
  pointer-events: none;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0;
  overflow: hidden;

  will-change: left, top, width, height, border-radius, transform;

  transition:
    left 0.9s var(--ease),
    top 0.9s var(--ease),
    width 0.9s var(--ease),
    height 0.9s var(--ease),
    border-radius 0.9s var(--ease);
}

/* Transition text */

.page-transition::before {
  content: "IB.";
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);
  color: #0a0b0f;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: -0.06em;
  white-space: nowrap;

  opacity: 0;
  transition: opacity 0.35s ease 0.35s;
}

/* Expanding from clicked element */

body.is-leaving .page-transition {
  opacity: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

body.is-leaving .page-transition::before {
  opacity: 1;
}

/* Prevent destination page flash */

html.transition-pending .page-transition {
  opacity: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  transform: translateY(0);
  transition: none;
}

html.transition-pending .page-transition::before {
  opacity: 1;
}

/* Destination page reveal */

body.page-enter .page-transition {
  opacity: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  transition: none;

  animation: transitionReveal 1.15s var(--ease) forwards;
}

body.page-enter .page-transition::before {
  opacity: 1;

  animation: transitionTextFade 0.75s ease forwards;
}

@keyframes transitionReveal {
  0% {
    transform: translateY(0);
  }

  28% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes transitionTextFade {
  0% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* =======================================================
   SHARED
======================================================= */

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-header,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* =======================================================
   NAVIGATION
======================================================= */

.site-header {
  height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a,
.site-nav span {
  position: relative;
}

.site-nav a {
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav .nav-active {
  color: var(--text);
}

.site-nav .nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}

/* =======================================================
   FOOTER
======================================================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* =======================================================
   HOME PAGE
======================================================= */

.page-home {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Main landing area */

.hero {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: 140px;
}

/* Main text */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  padding-top: 90px;
  margin-bottom: 55px;
}

.hero h1 {
  max-width: 980px;
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 3.8vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

/* Short introduction */

.hero-intro {
  max-width: 720px;
  margin-top: 30px;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.75;
  color: #d6d8dc;
}

/* Additional paragraph */

.hero-copy {
  max-width: 650px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* =======================================================
   READ MORE
======================================================= */

.read-more-button {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.read-more-button:hover {
  opacity: 0.75;
}

.read-more-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Arrow */

.read-more-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.read-more-button.active .read-more-arrow {
  transform: rotate(180deg);
}

/* Hidden text */

.more-about-me {
  max-width: 700px;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;

  transition:
    grid-template-rows 0.55s var(--ease),
    opacity 0.35s ease,
    margin-top 0.55s var(--ease);
}

/* Expanded text */

.more-about-me.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
}

.more-about-me-inner {
  overflow: hidden;
}

.more-about-me-inner p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  margin-bottom: 14px;
  line-height: 1.75;
  color: #d6d8dc;
}

/* =======================================================
   HERO TAGS
======================================================= */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: #c9ccd3;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

/* =======================================================
   HERO BOTTOM
======================================================= */

.hero-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(3%, calc((100vw - 1500px) / 2));
  background: rgba(10, 11, 15, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-footer-copy p {
  font-weight: 600;
  margin-bottom: 5px;
}

.hero-footer-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* =======================================================
   PRIMARY BUTTON
======================================================= */

.primary-button {
  min-width: 205px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 16px 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0b0f;
  font-weight: 700;
  font-size: 0.9rem;

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.primary-button:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 55px rgba(184, 255, 101, 0.16);
}

.button-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0b0f;
  color: var(--accent);
  font-size: 1rem;
}

/* =======================================================
   HERO BACKGROUND GLOW
======================================================= */

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-glow-one {
  width: min(40vw, 550px);
  aspect-ratio: 1;
  right: -13%;
  top: 8%;
  background: radial-gradient(circle,
      rgba(184, 255, 101, 0.1),
      transparent 67%);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  left: -20%;
  bottom: -25%;
  background: radial-gradient(circle,
      rgba(91, 119, 255, 0.09),
      transparent 66%);
}

/* =======================================================
   PROJECTS PAGE
======================================================= */

.work-page {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  padding: 70px 0 110px;
}

.work-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1.3fr) minmax(280px, 0.7fr);

  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.work-heading h1 {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.work-heading>p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
}

/* =======================================================
   PROJECT GRID
======================================================= */

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

/* Project card */

.project-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
  transform: translateZ(0);

  transition:
    transform 0.5s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.5s var(--ease);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.025);
  border-color: rgba(184, 255, 101, 0.38);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.38);
  z-index: 10;
}

/* Project image */

.project-card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition:
    transform 0.8s var(--ease),
    filter 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.075);
  filter: saturate(1.02);
}

/* Dark image overlay */

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
      rgba(7, 8, 10, 0.98) 0%,
      rgba(7, 8, 10, 0.66) 36%,
      rgba(7, 8, 10, 0.1) 72%);
}

/* Card text */

.project-card-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
}

.project-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 7px;
}

.project-card p {
  color: #b9bdc5;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Card arrow */

.project-card-arrow {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0a0b0f;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.7) rotate(-25deg);

  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease);
}

.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* =======================================================
   PROJECT DETAIL PAGE
======================================================= */

.project-page {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  padding: 55px 0 115px;
}

.project-detail-header {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr) minmax(260px, 0.65fr);

  gap: 80px;
  align-items: end;
  margin-bottom: 55px;
}

.project-detail-header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-top: 14px;
}

.project-summary {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* Main project image */

.project-hero-image {
  width: 100%;
  height: clamp(390px, 60vw, 720px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =======================================================
   PROJECT INFORMATION
======================================================= */

.project-information {
  display: grid;

  grid-template-columns:
    minmax(240px, 0.75fr) minmax(0, 1.25fr);

  gap: 90px;
  padding-top: 65px;
}

.project-meta {
  display: grid;
  gap: 24px;
  align-self: start;
  position: sticky;
  top: 30px;
}

.meta-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.meta-item span {
  display: block;
}

.meta-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.meta-value {
  font-size: 0.95rem;
}

/* =======================================================
   PROJECT DESCRIPTION
======================================================= */

.project-description {
  max-width: 760px;
}

.project-description h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.project-description h2:not(:first-child) {
  margin-top: 45px;
}

.project-description p {
  color: #c3c7cf;
  line-height: 1.9;
  margin-bottom: 22px;
}

.project-description ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.project-description li {
  position: relative;
  padding-left: 24px;
  color: #c3c7cf;
  line-height: 1.6;
}

.project-description li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =======================================================
   PLAYABLE site
======================================================= */

.site-section {
  width: 100%;
  margin-top: 70px;
  margin-bottom: 20px;
}

.site-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 20px;
}

.site-section-header h2 {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

/* Open site separately */

.site-external-link {
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--ease);
}

.site-external-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0b0f;
  transform: translateY(-3px);
}

/* site container */

.site-container {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Talimon iframe */

.site-frame {
  display: block;
  width: 100%;
  height: 750px;
  border: none;
  background: #000;
}

.site-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* =======================================================
   TABLET
======================================================= */

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .site-frame {
    height: 600px;
  }
}

@media (max-width: 820px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-information {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .project-meta {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =======================================================
   EXPERIENCE
======================================================= */

.experience-section {
  margin-top: 55px;
  padding-top: 45px;
  border-top: 1px solid var(--border);
}

.experience-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.experience-heading h2 {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}


/* =======================================================
   RESUME LINK
======================================================= */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}


.resume-arrow {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.resume-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background-color: rgba(170, 225, 70, 0.04);
}

.resume-link:hover .resume-arrow {
  transform: translate(2px, -2px);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 40px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.055);
}

.experience-item:focus-visible {
  border-color: var(--accent);
}

/* =======================================================
   EXPERIENCE MAIN INFORMATION
======================================================= */

.experience-main h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.experience-long {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.experience-long-list {
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
  color: #bfc3c9;
  font-size: 0.85rem;
  line-height: 1.65;
}

.experience-company {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.25rem;
  font-weight: 500;
}

/* =======================================================
   EXPERIENCE DATE
======================================================= */

.experience-date {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =======================================================
   EXPERIENCE PERIODS
======================================================= */

.experience-periods {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.experience-period {
  display: block;
}

/* =======================================================
   EXPERIENCE ARROW
======================================================= */

.experience-arrow {
  color: var(--accent);
  transition:
    transform 0.35s ease;
}


.experience-item.open .experience-arrow {
  transform: rotate(180deg);
}

/* =======================================================
   EXPERIENCE EXPANDED CONTENT
======================================================= */

.experience-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.4s ease;
}

.experience-expanded-inner {
  overflow: hidden;
}

.experience-item.open .experience-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 25px;
}

/* EXTRA CONTENT */

.experience-content h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.experience-company {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.experience-content p {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* SKILLS */

.experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.experience-skills span {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.experience-skills span:hover {
  border-color: var(--accent);
  background: rgba(184, 255, 101, 0.06);
  color: var(--accent);
}

/* =======================================================
   REDUCED MOTION
======================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 640px) {
  .page-home {
    overflow-y: auto;
  }

  .hero {
    width: min(calc(100% - 34px), var(--max-width));
    min-height: 100svh;
    height: auto;
    overflow: visible;
  }

  .hero-content {
    padding-top: 78px;
    margin-bottom: 55px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  }

  .hero-intro {
    margin-top: 24px;
  }

  .hero-footer {
    margin-top: 35px;
    padding-bottom: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .site-header,
  .site-footer,
  .work-page,
  .project-page {
    width: min(calc(100% - 34px), var(--max-width));
  }

  .site-header {
    height: 78px;
  }

  .work-page {
    padding-top: 48px;
  }

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

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

  .project-meta {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-frame {
    height: 500px;
  }
}

@media (max-width: 700px) {
  .experience-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 24px;
  }

  .experience-date {
    grid-row: 1;

    justify-content: space-between;
  }

  .experience-main {
    grid-row: 2;
  }

  .experience-expanded {
    grid-row: 3;
  }
}