.about {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  background: white;
  isolation: isolate;
  overflow: clip;
  z-index: 5;
  scroll-margin-top: 80px;
}

@media (max-width: 600px) {
  .about {
    scroll-margin-top: 100px;
  }
}



/* =========================
   About Text Block
   ========================= */
.about-text {
  text-align: center;
  width: 100%;
  padding-top: clamp(6vh, 10vh, 12vh);
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
  mix-blend-mode: difference;
  position: relative;
  z-index: 10;
}

.about-text ::selection {
  background: white;
  color: black;
}

.about-text ::-moz-selection {
  background: white;
  color: black;
}

.about-text h5 {
  color: white;
}

.about-text h2 {
  color: white;
}

.about-text p {
  color: white;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(8vh, 16vh, 22vh);
  text-align: center;
}

.exp-intro-text {
  text-align: center;
  width: 100%;
  padding-top: clamp(10vh, 16vh, 20vh);
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
  position: relative;
  z-index: 10;
}

.exp-intro-text ::selection {
  background: #0f0f0f;
  color: white;
}

.exp-intro-text ::-moz-selection {
  background: #0f0f0f;
  color: white;
}

.exp-intro-text h5 {
  color: #0f0f0f;
}

.exp-intro-text h2 {
  color: #0f0f0f;
}

.exp-intro-text p {
  color: #0f0f0f;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(8vh, 16vh, 22vh);
  text-align: center;
}

/* =========================
   Cards
   ========================= */
.about-cards {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  padding-top: clamp(4vh, 8vh, 12vh);
  padding-bottom: clamp(8vh, 12vh, 18vh);
  padding-left: clamp(1.5rem, 5%, 5rem);
  padding-right: clamp(1.5rem, 5%, 5rem);
}

.about-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 6rem);
  background-color: transparent;
  color: black;
  box-sizing: border-box;
  cursor: pointer;
  padding: clamp(3rem, 6vh, 7rem) 0;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
}

.about-card:first-child {
  border-top: 2px dashed rgba(0, 0, 0, 0.2);
}

.about-card:last-child {
  border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
}

.about-card-img {
  overflow: hidden;
  will-change: transform;
  position: relative;
  flex: 0 0 clamp(220px, 50%, 520px);
  height: clamp(180px, 25vw, 360px);
  align-self: center;
  transition: transform 0.5s cubic-bezier(0.25, 0, 0, 1);
}

.about-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.about-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  text-align: left;
  flex: 1;
  padding: 0;
}

.about-card-content .about-card-number {
  font-family: "sohne";
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0f0f0f;
  opacity: 0.5;
}

.right-card .card-badge {
  align-self: flex-end;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: "sohne-bold";
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  white-space: nowrap;
  color: #0f0f0f;
  background: transparent;
  border: 2px dashed #0f0f0f;
  border-radius: 0.3em;
  line-height: 1;
}


.about-card-content .about-code {
  text-transform: uppercase;
  font-family: "sohne-bold";
  font-size: clamp(26px, 3.1vw, 46px);
  color: #0f0f0f;
  line-height: 1;
  letter-spacing: -0.02em;
}

.right-card .about-card-content .about-code {
  flex-direction: row-reverse;
}

@media (min-width: 601px) {
  .right-card .about-card-content .card-arrow {
    transform: scaleX(-1);
  }

  .right-card:hover .about-card-content .card-arrow {
    transform: scaleX(-1) translate(3px, -3px);
  }
}

.about-card-content .about-description {
  display: block;
  font-family: "sohne";
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: #0f0f0f;
  opacity: 0.75;
  max-width: 36ch;
  flex: 1;
}

.right-card {
  flex-direction: row-reverse;
}

.right-card .about-card-content {
  text-align: right;
}


.right-card .about-description {
  margin-left: auto;
}

/* =========================
   Experience Cards (experience.html)
   ========================= */
.exp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: clamp(4vh, 8vh, 12vh) clamp(1.5rem, 5%, 5rem) clamp(8vh, 12vh, 18vh);
}

.exp-card {
  display: flex;
  flex-direction: column;
  border: 2px dashed #0f0f0f;
  border-radius: 0.6em;
  overflow: hidden;
  background: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 #0f0f0f;
}

.exp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.1em 0.7em;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}

.exp-card-category {
  font-family: "sohne-bold";
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f0f0f;
  line-height: 1;
  white-space: nowrap;
}

.exp-card-date {
  font-family: "sohne";
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f0f0f;
}

.exp-card-img {
  overflow: hidden;
  will-change: transform;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.exp-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.exp-card-body {
  padding: 1.2em 1.2em 0.8em;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.exp-card-title {
  font-family: "sohne-bold";
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0f0f0f;
  line-height: 1.1;
}

.exp-card-desc {
  font-family: "sohne";
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
}

.exp-card-footer {
  padding: 0.9em 1.2em 1.1em;
  border-top: 2px dashed rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: flex-end;
}

.exp-view-btn {
  --fg: #0f0f0f;
  width: auto;
  display: inline-block;
  text-align: center;
}

@media (max-width: 900px) {
  .exp-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .exp-cards {
    grid-template-columns: 1fr;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .exp-card-footer {
    justify-content: flex-end;
  }

  .exp-view-btn {
    width: auto;
  }
}

/* =========================
   Principle Section
   ========================= */
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: black;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.principle {
  position: relative;
  z-index: 8;
  width: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(3vh, 5vh, 7vh);
  margin-top: -2px;
}

.principle-bridge {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: white;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 10;
}

.principle .marquee-track img {
  filter: none;
}

.principle-text {
  mix-blend-mode: normal;
}

.principle-text h5,
.principle-text h2,
.principle-text p {
  color: black;
}

.principle ::selection {
  background: black;
  color: white;
}

.principle ::-moz-selection {
  background: black;
  color: white;
}

@media (max-width: 768px) {
  .about:not(.about--exp) {
    background: linear-gradient(to bottom, white 20%, black 20%);
  }
}

@media (max-width: 600px) {
  .about-card {
    width: 82%;
    flex-direction: column;
    border-top: none;
    border-bottom: none;
    align-items: center;
  }

  .about-card:first-child {
    padding-top: clamp(2rem, 4vh, 3rem);
  }

  .about-card:last-child {
    border-bottom: none;
  }

  .right-card {
    flex-direction: column;
  }

  .about-card-img {
    flex: none;
    width: 100%;
    height: 220px;
    padding-top: 0;
  }

  .about-card {
    padding: clamp(1.5rem, 3vh, 2.5rem) 0;
    gap: 0.8rem;
  }

  .about-card-content {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .about-cards {
    padding-top: 0;
    padding-bottom: clamp(3vh, 5vh, 8vh);
    align-items: center;
  }

  .about-card {
    padding-bottom: clamp(1.5rem, 3vh, 3rem);
  }

  .about-card-content .about-code {
    font-size: clamp(18px, 5vw, 26px);
    text-align: center;
    display: block;
    width: 100%;
  }

  .about-card-content .about-description {
    display: none;
  }

  .about-card-content .about-card-number {
    display: none;
  }

  .about-card-content {
    text-align: center;
    align-items: center;
  }

  .right-card .about-card-content {
    text-align: center;
    align-items: center;
  }

  .about-card-content .footer-btn,
  .right-card .about-card-content .footer-btn {
    align-self: center;
    margin-top: 0.5em;
  }
}

/* =========================
   Hobbies
   ========================= */
.about .hobbies ::selection {
  background: #fff;
  color: #0f0f0f;
}

.about .hobbies ::-moz-selection {
  background: #fff;
  color: #0f0f0f;
}

.about .hobbies {
  width: calc(100% - 4em);
  margin: 0 auto clamp(6vh, 12vh, 18vh);
  display: flex;
  gap: 1em;
  padding: 0;
  position: relative;
  z-index: 20;
}

.about .hobby {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  aspect-ratio: 4 / 3;
  border: 2px dashed #fff;
  border-radius: 1em;
  padding: clamp(1rem, 2vw, 1.5rem);
  text-decoration: none;
  position: relative;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.about .hobby:hover {
  box-shadow: 6px 6px 0 0 #fff;
  transform: translate(-3px, -3px);
}

.about .hobby h4 {
  color: #fff;
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(22px, 2.8vw, 42px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.hobby-arrow {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
  border-radius: 50%;
  border: 2px dashed #fff;
  color: #fff;
  flex-shrink: 0;
  transition: animation 0s;
}

.about .hobby:hover .hobby-arrow {
  animation: spin-border 3s linear infinite;
}

.about .hobby:hover .hobby-arrow svg {
  animation: spin-border 3s linear infinite reverse;
}

@media (max-width: 1000px) {
  .about .hobbies {
    width: calc(100% - 2.5em);
  }
}

@media (max-width: 768px) {
  .about .hobbies {
    flex-direction: column;
    gap: 1.25em;
  }

  .about .hobby {
    aspect-ratio: 5 / 3;
  }
}

/* =========================
   About Footer Bar
   ========================= */
.about-footer-bar ::selection {
  background: #fff;
  color: #0f0f0f;
}

.about-footer-bar ::-moz-selection {
  background: #fff;
  color: #0f0f0f;
}

.about-footer-bar {
  width: calc(100% - 4em);
  margin: 0 auto clamp(3vh, 5vh, 7vh);
  padding-top: 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 2px dashed #fff;
  position: relative;
  z-index: 20;
}

@media (max-width: 1000px) {
  .about-footer-bar {
    width: calc(100% - 2.5em);
  }
}

.about-footer-bar p {
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(0.55rem, 2vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
}

/* =========================
   Directory list
   ========================= */
.dir-list-box {
  width: calc(100% - clamp(3rem, 8vw, 6rem));
  margin: 0 auto clamp(8vh, 12vh, 18vh);
  box-sizing: border-box;
  border: 2px dashed #fff;
  border-radius: 1em;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 20;
}

.dir-list {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.dir-list__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) 150px 72px;
  align-items: center;
  padding: 0 0 0.75rem;
  border-bottom: 2px dashed #fff;
}


.dir-list__header .dir-col {
  font-family: "sohne";
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) 150px 72px;
  align-items: center;
  column-gap: 0;
  text-decoration: none;
  color: #fff;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
  border-bottom: 2px dashed #fff;
  background: transparent;
  cursor: pointer;
}

.dir-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dir-col--name {
  font-family: "sohne-bold";
  font-size: clamp(28px, 3.3vw, 46px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  padding-right: 1.5rem;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dir-row:hover .dir-col--name {
  transform: translateX(1.2rem);
}

.dir-col--desc {
  font-family: "sohne";
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.65;
  color: #fff;
  padding-right: 2rem;
  max-width: 42ch;
}

.dir-col--meta {
  font-family: "sohne";
  font-size: clamp(9px, 0.78vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

@keyframes spin-border {
  to {
    transform: rotate(360deg);
  }
}

.dir-col--arrow {
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed #fff;
  color: #fff;
}

.dir-row:hover .dir-col--arrow {
  animation: spin-border 3s linear infinite;
}

.dir-col--arrow svg {
  display: block;
  width: 26px;
  height: 26px;
}

.dir-row:hover .dir-col--arrow svg {
  animation: spin-border 3s linear infinite reverse;
}

/* Tablet */
@media (max-width: 900px) {

  .dir-list__header {
    display: none;
  }

  .dir-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .dir-row:first-of-type {
    padding-top: 0;
  }

  .dir-col--desc,
  .dir-col--meta {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .dir-list-box {
    width: calc(100% - 2rem);
    padding: 1rem;
  }

  .dir-row {
    grid-template-columns: 1fr 60px;
    padding: 1.2rem 0;
  }

  .dir-col--name {
    font-size: clamp(22px, 7vw, 34px);
    padding-right: 0.75rem;
  }
}

/* =========================
   About Code hover label
   ========================= */
.about-code {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25em;
  text-align: left;
}

.code-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-bottom: 1.5px solid black;
}

.card-arrow {
  display: inline-flex;
  align-items: flex-start;
  font-size: 0.65em;
  transition: transform 0.3s ease;
}

.about-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

.code-visible,
.code-animated {
  display: inline-block;
  will-change: transform;
}

.code-animated {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.about-card-content .code-animated {
  left: 0;
  transform: none;
}

.right-card .about-card-content .code-animated {
  left: auto;
  right: 0;
  transform: none;
}

.about-card-content .footer-btn {
  --fg: #0f0f0f;
  margin-top: auto;
  align-self: flex-start;
}

.right-card .about-card-content .footer-btn {
  align-self: flex-end;
}