/* Homepage — hero + skills strip only */

#hero { scroll-margin-top: 72px; }

.hero-v6 {
  position: relative;
  isolation: isolate;
  padding: 120px 24px 96px;
  background: linear-gradient(180deg, var(--bg) 0%, #111827 55%, var(--bg) 100%);
  overflow: hidden;
}
.hero-v6__bg-radial {
  position: absolute;
  left: 50%;
  top: 28%;
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-v6__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2.2vw, 24px);
}
.hero-v6__photo-wrap {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  padding: calc(2px * 148 / 128);
  background: var(--accent-soft);
  box-shadow: 0 0 calc(40px * 148 / 128) var(--accent-soft);
  flex-shrink: 0;
}
.hero-v6__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.hero-v6__eyebrow {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-v6__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.hero-v6__slogan {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  max-width: min(20em, 92vw);
  margin: 0;
  text-wrap: balance;
}
.hero-v6__slogan-a {
  color: var(--text);
}
.hero-v6__slogan-b {
  display: block;
  color: var(--accent);
}
.hero-v6__support {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}
.hero-v6__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.hero-v6__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hero-v6__btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid transparent;
}
.hero-v6__btn--primary:hover {
  background: var(--accent-strong);
}
.hero-v6__btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.hero-v6__btn--secondary:hover {
  border-color: var(--accent);
}

/* Entrance */
.hero-v6__reveal {
  opacity: 0;
  transform: translateY(16px);
}
.hero-v6__photo-wrap.hero-v6__reveal {
  transform: translateY(16px) scale(0.94);
}
.hero-v6__reveal.is-in {
  animation: hero-v6-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-v6-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 809.98px) {
  .hero-v6 {
    padding: 96px 20px 72px;
  }
  .hero-v6__photo-wrap {
    width: 116px;
    height: 116px;
    padding: calc(2px * 116 / 128);
    box-shadow: 0 0 calc(40px * 116 / 128) var(--accent-soft);
  }
}

@media (max-width: 420px) {
  .hero-v6__name {
    white-space: normal;
  }
  .hero-v6__name-break {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v6__reveal {
    opacity: 1;
    transform: none;
  }
  .hero-v6__reveal.is-in {
    animation: none;
  }
}

/* Skills strip */
.skills-strip {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 0;
}
.skills-strip__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.skills-strip__track {
  display: flex;
  width: max-content;
  animation: skills-strip-marquee 45s linear infinite;
}
.skills-strip:hover .skills-strip__track {
  animation-play-state: paused;
}
.skills-strip__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  flex-shrink: 0;
}
.skills-strip__list li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.skills-strip__list li:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: 40px;
}
@media (prefers-reduced-motion: reduce) {
  .skills-strip__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .skills-strip__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    gap: 12px 40px;
  }
  .skills-strip__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
  }
  .skills-strip__list[aria-hidden="true"] {
    display: none;
  }
}
@keyframes skills-strip-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Statement — word-by-word scroll reveal */
.statement-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px;
  box-sizing: border-box;
}

.statement-section .statement {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 1200px;
  margin: 0;
  text-align: left;
}

.statement.is-ready .w {
  color: rgba(237, 237, 240, 0.18);
  transition: color 200ms ease-out;
}

.statement.is-ready .w.is-lit {
  color: var(--text);
}

@media (max-width: 899.98px) {
  .statement-section {
    padding: 80px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement.is-ready .w {
    color: var(--text);
    transition: none;
  }
}

/* About short — two translucent boxes */
.about-short {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
  box-sizing: border-box;
}

.about-short__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.about-short__box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-short__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.4;
}

.about-short__text {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

@media not (prefers-reduced-motion: reduce) {
  html.js .about-short__box.reveal:nth-child(2) {
    transition-delay: 80ms;
  }
}

@media (max-width: 899.98px) {
  .about-short {
    padding: 64px 20px;
  }

  .about-short__grid {
    grid-template-columns: 1fr;
  }

  .about-short__box {
    padding: 28px;
  }

  .about-short__text {
    font-size: 18px;
  }
}

/* UI design — compact horizontal cards (#ui-design only) */
#ui-design .selected-work__grid--compact {
  column-gap: 48px;
  row-gap: 48px;
}

#ui-design .work-card--compact {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 28px;
  align-items: center;
  position: relative;
  flex-direction: unset;
}

#ui-design .work-card--compact .work-card__content {
  min-width: 0;
}

#ui-design .work-card--compact .work-card__media {
  margin: 0;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

#ui-design .work-card--compact .work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center);
}

#ui-design .work-card--compact .work-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#ui-design .work-card--compact .work-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 8px 0 0;
  white-space: normal;
  transition: color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

#ui-design .work-card--compact .work-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 0;
}

#ui-design a.work-card--compact {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#ui-design a.work-card--compact:focus {
  outline: none;
}

#ui-design a.work-card--compact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 20px;
}

#ui-design .work-card--compact:hover .work-card__media,
#ui-design a.work-card--compact:hover .work-card__media {
  transform: translateY(-3px);
}

#ui-design .work-card--compact:hover .work-card__title,
#ui-design a.work-card--compact:hover .work-card__title {
  color: var(--accent);
}

@media (max-width: 899.98px) {
  #ui-design .selected-work__grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599.98px) {
  #ui-design .work-card--compact {
    grid-template-columns: 1fr;
    row-gap: 16px;
    align-items: start;
  }

  #ui-design .work-card--compact .work-card__media {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ui-design .work-card--compact .work-card__media,
  #ui-design .work-card--compact .work-card__title {
    transition: none !important;
  }

  #ui-design .work-card--compact:hover .work-card__media {
    transform: none !important;
  }

  #ui-design .work-card--compact:hover .work-card__title {
    color: var(--text);
  }
}

/* UI design — Behance link spacing */
#ui-design > .work-card__link {
  display: inline-block;
  margin-top: 56px;
}

@media (max-width: 899.98px) {
  #ui-design > .work-card__link {
    margin-top: 40px;
  }
}

/* ── Proof stats, contact strip, footer (homepage) ── */
.proof-strip {
  background: var(--bg);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.proof-strip__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 32px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  box-sizing: border-box;
}

.proof-strip__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: background 0.2s ease;
}

.proof-strip__link:hover {
  background: var(--accent-soft);
}

.proof-strip__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.proof-strip__item--static {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.proof-strip__num {
  font-family: var(--font-body);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.proof-strip__label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--muted);
}

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

.footer-strip {
  position: relative;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  box-sizing: border-box;
}

.footer-strip h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-style: normal;
  white-space: normal;
  text-wrap: balance;
  max-width: 640px;
  margin: 0 auto 16px;
}

.footer-strip p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 32px;
}

.footer-strip__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 14px 28px;
  min-width: min(100%, 200px);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-strip__cta:hover {
  background: var(--accent-strong);
  transform: none;
  opacity: 1;
}

.footer-strip__cta:active {
  transform: none;
}

.footer-strip a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: transparent;
}

.footer-social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-social__beh svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 680px) {
  .footer-strip {
    padding: 56px 32px 72px;
  }

  footer {
    padding: 24px 32px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Proof stats, contact heading, footer rule (homepage overrides) ── */
.proof-strip__list {
  align-items: stretch;
  padding-left: 8px;
  padding-right: 32px;
}

.proof-strip__list > li {
  display: flex;
  min-width: 0;
}

.proof-strip__num {
  font-size: clamp(28px, 3vw, 40px);
  white-space: nowrap;
}

.proof-strip__label {
  font-size: 16px;
  margin-top: 8px;
}

.proof-strip__link,
.proof-strip__item--static {
  flex: 1;
  width: 100%;
  min-width: 0;
  gap: 0;
  padding: 20px 24px;
  border-radius: 16px;
  box-sizing: border-box;
  background: transparent;
}

.proof-strip__link:hover {
  background: var(--accent-soft);
}

.footer-strip {
  padding-top: 120px;
  padding-bottom: 120px;
}

.footer-strip h2 {
  font-size: clamp(32px, 3.6vw, 48px);
}

.footer-strip p {
  font-size: 17px;
}

footer {
  border-top: none;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  pointer-events: none;
}

@media (max-width: 809.98px) {
  .proof-strip__list {
    padding-left: 0;
    padding-right: 16px;
    gap: 8px;
  }

  .proof-strip__link,
  .proof-strip__item--static {
    padding: 16px 8px;
  }

  .proof-strip__list > li:first-child .proof-strip__link,
  .proof-strip__list > li:first-child.proof-strip__item--static {
    padding-left: 20px;
  }

  .proof-strip__num {
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .footer-strip {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
