.hero {
  text-align: center;
  min-height: min(720px, calc(100vh - 118px));
  padding-top: 9vh;
  padding-bottom: 5vh;
}

.hero-center {
  position: relative;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(36px);
}

.hero-center .eyebrow {
  transform: rotate(-1deg);
  margin-bottom: 34px;
}

.hero-center h1 {
  max-width: none;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: clamp(54px, 7.5vw, 112px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  animation: title-drift 6.5s ease-in-out infinite;
}

.hero-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 28px 0 0;
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 500;
}

.printed-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: role-print 1.9s steps(24, end) .45s forwards;
}

.hero-role i {
  width: 1px;
  height: 1.15em;
  background: #77776f;
}

.hero-role strong {
  font-weight: 600;
}

.role-cursor {
  width: 2px;
  height: 1.15em;
  margin-left: 0;
  background: var(--ink);
  animation: role-blink .85s steps(1) infinite;
}

.hero-chip {
  position: absolute;
  padding: 8px 13px;
  border: 1px solid #bbbcb3;
  background: #f9faf5;
  box-shadow: 2px 3px 0 #191919;
  font-size: 10px;
  font-weight: 600;
  transform: rotate(-2deg);
  animation: chip-float 4.5s ease-in-out infinite;
}

.chip-product { left: 7%; top: 5%; }
.chip-data { left: 13%; bottom: -4%; animation-delay: -1.3s; transform: rotate(2deg); }
.chip-code { right: 8%; bottom: 4%; animation-delay: -2.6s; transform: rotate(-1deg); }

.hero-footer {
  text-align: left;
}

.decorative-footer {
  min-height: 62px;
  align-items: center;
}

.theme-doodle {
  display: flex;
  align-items: center;
  gap: 9px;
  transform: rotate(-2deg);
  opacity: .72;
}

.theme-doodle span {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
}

.theme-doodle .doodle-circle { border-radius: 50%; }
.theme-doodle .doodle-diamond { transform: rotate(45deg) scale(.72); }
.theme-doodle .doodle-square { border-style: dashed; }
.theme-doodle i { width: 38px; height: 2px; background: var(--ink); }
.theme-doodle b { margin-left: 10px; font: 26px/1 "Permanent Marker", cursive; }

.about {
  margin-bottom: 38px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.hero { margin-bottom: 44px; }
.work-section { padding-top: 52px; padding-bottom: 86px; }
.section-head { margin-bottom: 58px; }
.tape-label { margin-bottom: 58px; }
.projects { gap: 118px; }
.experience { margin-bottom: 40px; }
.contact { padding-top: 62px; padding-bottom: 108px; }
.contact { scroll-margin-top: 36px; }
.filters a {
  display: inline-block;
  color: var(--muted);
  padding: 8px 14px;
  cursor: pointer;
}
.filters a.active { color: #fff; background: var(--ink); }
#daily-english, #petmind { scroll-margin-top: 34px; }

.extras {
  position: relative;
  margin: 0 0 40px;
  padding: 98px 6% 88px;
  background: #f7f7f0;
  border: 1px solid #c7c7bd;
  clip-path: polygon(0 2%, 10% .4%, 22% 1.8%, 35% .5%, 48% 1.6%, 62% .3%, 76% 1.7%, 89% .5%, 100% 1.8%, 99.5% 98%, 87% 99.4%, 73% 98%, 59% 99.5%, 45% 98.2%, 30% 99.3%, 15% 98%, .4% 99%);
}

.extras-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: 940px;
  margin: 0 auto 55px;
}
.extras-head h2 {
  margin: 0;
  font: 700 52px/1.1 "Noto Serif SC", serif;
}
.extras-head > p {
  max-width: 280px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.tarot-deck {
  min-height: 390px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  perspective: 1000px;
}
.tarot-card {
  position: relative;
  width: 220px;
  aspect-ratio: 2 / 3;
  padding: 24px 20px;
  border: 2px solid #1b1b19;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  background: #efefe7;
  box-shadow: 6px 8px 0 #1a1a18;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}
.tarot-card::before,
.tarot-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #9b9b91;
  pointer-events: none;
}
.tarot-card::after {
  inset: 17px;
  border-style: dashed;
  opacity: .48;
}
.tarot-one { transform: rotate(-7deg) translateY(15px); }
.tarot-two { transform: translateY(-8px); z-index: 2; background: #faf9f1; }
.tarot-three { transform: rotate(7deg) translateY(15px); }
.tarot-one:hover { transform: rotate(-4deg) translateY(-7px); }
.tarot-two:hover { transform: translateY(-22px); }
.tarot-three:hover { transform: rotate(4deg) translateY(-7px); }
.tarot-card:hover { box-shadow: 9px 12px 0 #1a1a18; }
.tarot-index { align-self: flex-start; font: 600 9px "DM Sans"; letter-spacing: 1.4px; }
.tarot-card strong { margin-top: auto; font: 700 25px "Noto Serif SC", serif; }
.tarot-card small { margin: 8px 0 3px; font: 600 8px "DM Sans"; letter-spacing: 1.4px; }

.tarot-symbol {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
}
.symbol-sun { border: 2px solid #222; border-radius: 50%; box-shadow: 0 0 0 9px #f7f6ed, 0 0 0 11px #222; }
.symbol-sun::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 31px; }
.symbol-eye { width: 82px; height: 48px; border: 2px solid #222; border-radius: 70% 8%; transform: translate(-50%, -50%) rotate(45deg); }
.symbol-eye::after { content: ""; position: absolute; width: 22px; height: 22px; left: 28px; top: 11px; border-radius: 50%; background: #222; }
.symbol-star::before { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 76px; }

.extra-dialog {
  width: min(440px, calc(100vw - 40px));
  padding: 18px 18px 30px;
  border: 2px solid #1b1b19;
  border-radius: 0;
  color: var(--ink);
  background: #faf9f1;
  box-shadow: 10px 12px 0 #1a1a18;
}
.extra-dialog::backdrop { background: #181816a8; backdrop-filter: blur(3px); }
.dialog-close {
  position: absolute;
  z-index: 2;
  right: 25px;
  top: 25px;
  width: 34px;
  height: 34px;
  border: 1px solid #191919;
  border-radius: 50%;
  background: #faf9f1;
  font-size: 22px;
  cursor: pointer;
}
.extra-image-placeholder {
  aspect-ratio: 4 / 3;
  margin-bottom: 27px;
  display: grid;
  place-items: center;
  color: #aaa99f;
  background: repeating-linear-gradient(45deg, #e8e8df 0 1px, transparent 1px 10px);
  border: 1px solid #c6c6bd;
}
.extra-image-placeholder span { font: 600 40px "DM Sans"; }
.extra-dialog .eyebrow { margin-bottom: 10px; }
.extra-dialog h3 { margin: 0 0 14px; font: 700 30px "Noto Serif SC", serif; }
.extra-dialog > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

@media (max-width: 800px) {
  .extras { padding: 76px 6% 68px; margin-bottom: 28px; }
  .extras-head { display: block; margin-bottom: 42px; }
  .extras-head h2 { font-size: 40px; }
  .extras-head > p { margin-top: 15px; }
  .tarot-deck { min-height: 315px; gap: 8px; }
  .tarot-card { width: 30%; min-width: 0; padding: 16px 7px; box-shadow: 3px 5px 0 #1a1a18; }
  .tarot-card::before { inset: 6px; }
  .tarot-card::after { inset: 11px; }
  .tarot-card strong { font-size: 15px; }
  .tarot-card small { font-size: 6px; letter-spacing: .6px; }
  .tarot-index { font-size: 6px; }
  .tarot-symbol { transform: translate(-50%, -50%) scale(.68); }
  .symbol-eye { transform: translate(-50%, -50%) rotate(45deg) scale(.68); }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card { transition: none; }
}

.tarot-deck-five { gap: 0; }
.tarot-deck-five .tarot-card { width: 190px; }
.tarot-deck-five .tarot-one { transform: rotate(-11deg) translate(44px, 25px); }
.tarot-deck-five .tarot-two { transform: rotate(-5deg) translate(20px, 3px); z-index: 2; }
.tarot-deck-five .tarot-three { transform: translateY(-10px); z-index: 3; }
.tarot-deck-five .tarot-four { transform: rotate(5deg) translate(-20px, 3px); z-index: 2; }
.tarot-deck-five .tarot-five { transform: rotate(11deg) translate(-44px, 25px); }
.tarot-deck-five .tarot-one:hover { transform: rotate(-8deg) translate(44px, -1px); }
.tarot-deck-five .tarot-two:hover { transform: rotate(-3deg) translate(20px, -20px); }
.tarot-deck-five .tarot-three:hover { transform: translateY(-30px); }
.tarot-deck-five .tarot-four:hover { transform: rotate(3deg) translate(-20px, -20px); }
.tarot-deck-five .tarot-five:hover { transform: rotate(8deg) translate(-44px, -1px); }
.tarot-deck-five .tarot-symbol { top: 50%; }

.symbol-moon { width: 68px; height: 68px; border: 2px solid #222; border-radius: 50%; }
.symbol-moon::after { content: ""; position: absolute; width: 58px; height: 58px; left: 16px; top: -7px; border-radius: 50%; background: #efefe7; border-left: 2px solid #222; }
.symbol-orbit { width: 76px; height: 48px; border: 2px solid #222; border-radius: 50%; transform: translate(-50%, -50%) rotate(-22deg); }
.symbol-orbit::before,.symbol-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.symbol-orbit::before { width: 18px; height: 18px; left: 27px; top: 13px; background: #222; }
.symbol-orbit::after { width: 8px; height: 8px; right: -5px; top: 2px; background: #222; }

.extra-image { aspect-ratio: 4 / 3; margin-bottom: 27px; overflow: hidden; border: 1px solid #c6c6bd; background: #e8e8df; }
.extra-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.extra-dialog { max-height: calc(100vh - 40px); overflow-y: auto; }

@media (max-width: 800px) {
  .tarot-deck-five { min-height: 285px; }
  .tarot-deck-five .tarot-card { width: 24%; }
  .tarot-deck-five .tarot-one { transform: rotate(-10deg) translate(27px, 17px); }
  .tarot-deck-five .tarot-two { transform: rotate(-5deg) translate(13px, 3px); }
  .tarot-deck-five .tarot-three { transform: translateY(-6px); }
  .tarot-deck-five .tarot-four { transform: rotate(5deg) translate(-13px, 3px); }
  .tarot-deck-five .tarot-five { transform: rotate(10deg) translate(-27px, 17px); }
}

@keyframes role-blink {
  50% { opacity: 0; }
}

@keyframes role-print {
  from { width: 0; }
  to { width: var(--printed-width, 19ch); }
}

@keyframes chip-float {
  50% { translate: 0 -6px; }
}

@media (max-width: 800px) {
  .hero {
    min-height: 650px;
    padding-top: 10vh;
    padding-bottom: 6vh;
  }
  .hero-center h1 {
    font-size: clamp(38px, 12vw, 58px);
    white-space: normal;
  }
  .hero-center { transform: translateY(20px); }
  .hero-role { margin-top: 20px; }
  .hero-chip { font-size: 8px; padding: 6px 9px; }
  .chip-product { left: 0; top: -12%; }
  .chip-data { left: 2%; bottom: -24%; }
  .chip-code { right: 0; bottom: -18%; }
  .about { margin-bottom: 28px; padding-top: 82px; padding-bottom: 82px; }
  .hero { margin-bottom: 30px; }
  .work-section { padding-top: 48px; padding-bottom: 72px; }
  .projects { gap: 88px; }
  .experience { margin-bottom: 28px; }
  .contact { padding-top: 52px; padding-bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-center h1, .hero-chip, .role-cursor { animation: none; }
  .printed-role { width: auto; animation: none; }
}

.visual-pet.pet-carousel {
  padding: 0;
  background: #e8e4db;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.carousel-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 13px;
  padding: 7px 10px;
  color: #fff;
  background: #191919e8;
  font-size: 9px;
  letter-spacing: .8px;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid #aaa69b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #181818;
  background: #fffdf1e8;
  font: 25px/1 serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}

.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 13px; }
.carousel-next { right: 13px; }

.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 13px;
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  background: #fffdf1d9;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #2a2a28;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dots button.active { background: #20201e; }

@media (max-width: 800px) {
  .carousel-arrow { width: 30px; height: 30px; }
  .carousel-slide figcaption { left: 9px; bottom: 9px; }
  .carousel-dots { bottom: 9px; }
}

/* Contact note */
.contact {
  padding: 72px 0 94px;
}
.contact-note {
  position: relative;
  min-height: 430px;
  padding: 70px 8% 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8f7ef;
  border: 1px solid #c8c7bd;
  filter: drop-shadow(7px 9px 0 #171717);
  clip-path: polygon(0 7%, 7% 4%, 15% 6%, 24% 3%, 33% 5%, 43% 2%, 52% 5%, 62% 3%, 72% 6%, 82% 3%, 91% 5%, 100% 2%, 100% 94%, 91% 97%, 81% 94%, 70% 98%, 60% 95%, 49% 98%, 39% 94%, 28% 97%, 18% 94%, 8% 97%, 0 95%);
}
.contact-note::before {
  content: "";
  position: absolute;
  inset: 28px 34px;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(#77776f .75px, transparent .75px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 20%, transparent 38% 65%, #000 82%);
  mask-image: linear-gradient(to bottom, #000 0 20%, transparent 38% 65%, #000 82%);
}
.contact-kicker {
  position: relative;
  margin: 0 0 22px;
  color: var(--muted);
  font: 600 10px "DM Sans", sans-serif;
  letter-spacing: 1.8px;
}
.contact-star {
  position: absolute;
  top: 72px;
  right: 11%;
  font-size: 28px;
  transform: rotate(12deg);
}
.contact-note h2 {
  position: relative;
  margin: 0;
  font: 700 clamp(62px, 9vw, 126px)/.92 "DM Sans", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  transform: rotate(-2deg);
}
.contact-copy {
  position: relative;
  max-width: 560px;
  margin: 30px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.contact-email,
.contact-phone {
  position: relative;
  min-width: min(420px, 100%);
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid #aaa99f;
  border-bottom: 1px solid #aaa99f;
  transition: background .2s ease, transform .2s ease;
}
.contact-phone { border-top: 0; }
.contact-email:hover,
.contact-phone:hover {
  background: #ebeae1;
  transform: translateY(-2px);
}
.contact-email span,
.contact-phone span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
}
.contact-email strong,
.contact-phone strong {
  font-size: 14px;
  font-weight: 500;
}
.contact-email i,
.contact-phone i {
  font-size: 19px;
  font-style: normal;
}

@media (max-width: 800px) {
  .contact { padding: 48px 0 74px; }
  .contact-note { min-height: 390px; padding: 68px 8% 58px; filter: drop-shadow(4px 6px 0 #171717); }
  .contact-note::before { inset: 24px 18px; }
  .contact-star { top: 62px; right: 9%; font-size: 22px; }
  .contact-copy { margin: 25px 0 28px; font-size: 13px; }
  .contact-email,
  .contact-phone { min-width: 100%; grid-template-columns: 1fr auto; gap: 8px; }
  .contact-email span,
  .contact-phone span { grid-column: 1 / -1; text-align: left; }
  .contact-email strong,
  .contact-phone strong { text-align: left; overflow-wrap: anywhere; }
}
