/*
 * Content sections: experience, technical projects, skills, education, the
 * press grid + quote card, and contact.
 */

/* ---------- experience + current role ---------- */
.role-list {
  display: grid;
  gap: 14px;
}

/* Section head variant with a short note beside the kicker. */
.section-head.split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px clamp(28px, 6vw, 80px);
  align-items: baseline;
}

.section-note {
  max-width: 54ch;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.role-card .role-meta {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}
.role-card .role-bullets {
  grid-column: 1 / -1;
}

.role-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

/* Featured treatment for the single current-role card. */
.role-card-feature {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.role-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.logo-box {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(0.97 0.01 86);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 800;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.role-card h3,
.system-card h3,
.education-grid h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

.role-identity p,
.system-head p,
.education-grid p {
  margin-top: 3px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.role-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-3);
}

.role-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.role-meta a span {
  color: var(--accent);
}

.role-meta a:hover {
  color: var(--text);
}

.role-bullets,
.system-card ul,
.education-grid ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-2);
  line-height: 1.58;
}
.role-bullets strong,
.system-card strong {
  color: var(--text);
  font-weight: 600;
}
.role-bullets::marker {
  color: var(--accent);
}

/* ---------- technical projects ---------- */
.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.system-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.system-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.system-card-main {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.system-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.system-head > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}
.system-card > p {
  color: var(--text-2);
  line-height: 1.6;
}
.system-card ul {
  padding-left: 1.1rem;
}
.system-card ul::marker,
.education-grid ul::marker {
  color: var(--accent);
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text);
  padding-top: 6px;
  border-bottom: 1px solid var(--line-2);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.card-link span {
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.card-link:hover {
  border-color: var(--accent);
}
.card-link:hover span {
  transform: translateX(3px);
}

/* ---------- skills ---------- */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-cloud span {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--text-2);
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.skill-cloud span:hover {
  border-color: var(--line-2);
  color: var(--text);
}

/* ---------- education ---------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.education-grid article {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.school-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.school-head img {
  border-radius: 10px;
}

/* ---------- press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

.press-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.press-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.press-card.feature {
  grid-column: span 2;
}
.press-card.feature img {
  height: 300px;
}

.press-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  border-bottom: 1px solid var(--line);
}

.press-card .press-date {
  margin: 16px 16px 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.press-card strong {
  margin: 9px 16px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--text);
}
.press-card small {
  margin: auto 16px 16px;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-2);
}
.press-card.no-image {
  justify-content: flex-end;
}
.press-card.no-image .press-mark {
  margin: 16px 16px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-2);
}

.press-card.quote {
  grid-column: span 2;
  justify-content: center;
  gap: 14px;
  padding: 30px 32px;
  background: var(--surface-2);
}
.press-card.quote .press-date {
  margin: 0;
}
.press-card.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.press-card.quote blockquote::before {
  content: "\201C";
  color: var(--accent);
  margin-right: 2px;
}
.press-card.quote small {
  margin: 0;
}

/* ---------- contact ---------- */
/* Business-card panel in the site's own dark surface language. */
.contact-card {
  --card-ink: var(--text);
  --card-muted: var(--text-2);
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--card-ink);
  box-shadow:
    inset 0 3px 0 var(--accent),
    0 24px 70px oklch(0 0 0 / 0.35);
}

.contact-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(30px, 5vw, 56px);
}

.contact-card-topline > span {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--card-ink);
}

.contact-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 24px clamp(28px, 5vw, 64px);
  align-items: center;
}

.contact-portrait {
  margin: 0;
  width: clamp(96px, 12vw, 136px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}

.contact-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-identity h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--card-ink);
}

.contact-identity > p {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  color: var(--card-muted);
}

.contact-identity .contact-purpose {
  max-width: 44ch;
  margin-top: 10px;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text-3);
}

.contact-direct {
  display: grid;
  align-self: center;
  gap: 18px;
  font-style: normal;
}

.contact-detail {
  display: grid;
  gap: 7px;
}

.contact-detail > span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.contact-value-row > a {
  width: fit-content;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--card-ink);
  border-bottom: 1px solid var(--line-3);
  transition: border-color 0.2s var(--ease);
}

.contact-value-row > a:hover {
  border-bottom-color: var(--accent);
}

.copy-button {
  display: inline-flex;
  min-width: 74px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: transparent;
  color: var(--card-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.copy-button:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
  color: var(--card-ink);
}

.copy-button[data-state="copied"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.copy-icon-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.copy-icon {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease);
}

.copy-icon-check {
  opacity: 0;
  transform: translateY(4px);
}

.copy-button[data-state="copied"] .copy-icon-default {
  opacity: 0;
  transform: translateY(-4px);
}

.copy-button[data-state="copied"] .copy-icon-check {
  opacity: 1;
  transform: translateY(0);
}

.copy-button[data-state="copied"] .copy-button-label {
  animation: copy-label-in 0.3s var(--ease);
}

@keyframes copy-label-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-button,
  .copy-icon {
    transition: none;
  }

  .copy-button[data-state="copied"] .copy-button-label {
    animation: none;
  }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card-muted);
  transition: color 0.2s var(--ease);
}

.contact-links a:hover {
  color: var(--card-ink);
}

.contact-links svg,
.contact-links img {
  width: 19px;
  height: 19px;
  flex: none;
}

.contact-links svg {
  fill: currentColor;
}

.contact-links img {
  border-radius: 4px;
  object-fit: contain;
}
