/* Dim Tech Studio — profile pages (loaded after home.css) */

/* HERO */
.profile-hero {
  padding-top: clamp(48px, 9vh, 104px);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(28px, 5vh, 56px);
}

.profile-title {
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.profile-title > span {
  display: block;
  color: var(--ink-3);
}

.profile-intro {
  margin-top: clamp(28px, 4vh, 40px);
  max-width: 44ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.profile-copy .hero-actions {
  margin-top: 32px;
}

.profile-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.12);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease);
}

.profile-photo:hover img {
  filter: grayscale(0);
}

.profile-facts {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--ink-2);
}

.profile-facts dd {
  font-weight: 500;
  text-align: right;
}

/* SECTIONS */
.profile-section {
  padding-top: clamp(88px, 14vh, 160px);
}

.profile-section:last-of-type {
  padding-bottom: clamp(96px, 16vh, 180px);
}

/* EXPERIENCE + EDUCATION */
.entries {
  border-top: 1px solid var(--line);
}

.entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px 32px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.entry-period {
  padding-top: 6px;
  color: var(--ink-2);
}

.entry-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease);
}

.entry-logo:hover {
  transform: translateY(-2px);
}

.entry-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.entry-org {
  margin-top: 4px;
  color: var(--ink-2);
}

.entry-points {
  display: grid;
  gap: 8px;
  max-width: 64ch;
  margin-top: 18px;
  color: var(--ink-2);
}

.entry-points li {
  position: relative;
  padding-left: 22px;
}

.entry-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 10px;
  height: 1px;
  background: var(--ink-3);
}

/* APPS / PROJECTS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 1px var(--line);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--night);
  box-shadow: 0 0 0 1px var(--line);
}

.card-icon-fit {
  object-fit: contain;
  padding: 6px;
}

.card-tag {
  color: var(--ink-2);
  text-align: right;
}

.card h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.card p {
  margin-top: 10px;
  color: var(--ink-2);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: auto;
  padding-top: 4px;
  font-weight: 500;
}

.card-links a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.card-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.card-links .muted {
  color: var(--ink-3);
}

/* SKILLS */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.skill-groups h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.skill-groups ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-groups li {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}

/* CONTACT */
.contact-title-sm {
  max-width: 20ch;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1;
  text-wrap: balance;
}

.contact .contact-sub {
  max-width: 52ch;
}

.nowrap {
  white-space: nowrap;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 32px;
}

.contact-links a {
  color: var(--on-night-2);
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--on-night);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-aside {
    max-width: 440px;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-period {
    padding-top: 0;
  }
}
