/* =============================================================
   ABOUT.CSS — About page layout and components
   ============================================================= */

/* Lock page to viewport — no scroll */
body, .page {
  height: 100dvh;
  overflow: hidden;
}

/* -------------------------------------------------------------
   Two-column layout — sticky sidebar left, bio right
   ------------------------------------------------------------- */
.about-layout {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* -------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------- */
.about-sidebar {
  width: 380px;
  flex-shrink: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* One card holding the photo and the details, like the other page's cards:
   the image is inset inside the card with its own radius, and the meta,
   name and links sit underneath on the card's surface. Previously the photo
   was a separate element above the card and the details were a two-column
   row inside it. */
.about-card {
  --about-pad: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--about-pad);
  display: flex;
  flex-direction: column;
}

.about-card__media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /* Same edge the pictures on the other pages carry */
  box-shadow: var(--shadow-image);
  /* Outer radius less the inset, so the photo's curve runs parallel to the
     card's rather than looking tighter than it. */
  border-radius: calc(var(--border-radius-xl) - var(--about-pad));
}

.about-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-card__info {
  flex-shrink: 0;
  padding: 16px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Location left, local time hard right, sitting under the name as its
   subtitle rather than as a label above it. */
.about-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.about-name {
  font-family: var(--font-accent);
  font-size: var(--scale-5);   /* 24.88px */
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.about-location,
.about-clock {
  font-family: var(--font-primary);
  font-size: var(--scale-1);   /* 12px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: normal;
}

.about-clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Separates who this is from what you can do about it */
.about-divider {
  height: 1px;
  flex-shrink: 0;
  background: var(--color-border);
  margin: 10px 0 4px;
}

/* Card section — label + content grouped tightly */
.about-card__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-section-label {
  font-family: var(--font-primary);
  font-size: var(--scale-1);   /* 12px */
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Skills tag row */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.about-skill-tag {
  font-family: var(--font-primary);
  font-size: var(--scale-1);   /* 12px */
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  line-height: 1.4;
}

/* Actions — horizontal icon-pill row */
.about-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.about-action {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  font-family: var(--font-primary);
  font-size: var(--scale-2);
  font-weight: 600;
  color: var(--color-text-inactive);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: color 150ms ease;
}

/* Colour shift only, and only where a real pointer can hover. On touch
   there is no hover state to leave, so the style would stick after a tap
   and read as a stuck selection. */
@media (hover: hover) and (pointer: fine) {
  .about-action:hover {
    color: var(--color-active);
  }
}

.about-action svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Icon-only buttons: the label stays collapsed and exists purely as the
   accessible name. It used to slide open on hover, which made the row
   reflow on every pass of the cursor. */
.about-action__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------
   Bio — right column, flows naturally with page scroll
   ------------------------------------------------------------- */
.about-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px var(--space-7) var(--space-7);
  overflow-y: auto;
}

.about-bio-greeting {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.about-bio-name {
  font-family: var(--font-accent);
  font-size: var(--scale-7);   /* 35.83px */
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.about-bio-divider {
  height: 1px;
  min-height: 1px;
  flex-shrink: 0;
  background: var(--color-border);
  margin-bottom: 8px;
}

.about-bio-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-bio-label {
  font-family: var(--font-primary);
  font-size: var(--scale-2);   /* 14.4px */
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-bio-text {
  font-family: var(--font-primary);
  font-size: var(--scale-3);   /* 17.28px */
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.about-bio-text strong {
  font-weight: 700;
  color: var(--color-text-dark);
}

.about-bio-text .about-ref {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.about-bio-text .about-ref:hover {
  color: var(--color-active);
}

/* Link-preview tooltip */
.about-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  width: max-content;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              0 1px 2px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 140ms ease;
}

.about-tooltip.is-visible {
  opacity: 1;
}

.about-tooltip__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.about-tooltip__name {
  font-family: var(--font-accent);
  font-size: var(--scale-3);
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  white-space: nowrap;
}

.about-tooltip__arrow {
  flex-shrink: 0;
  color: #999;
  margin-top: 4px;
}

.about-tooltip__url {
  font-family: var(--font-primary);
  font-size: var(--scale-1);
  font-weight: 400;
  color: #777;
  white-space: nowrap;
}

/* -------------------------------------------------------------
   Resume modal overlay
   ------------------------------------------------------------- */
.resume-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.resume-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resume-modal {
  position: relative;
  width: min(700px, 90vw);
  height: 88vh;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.resume-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--scale-2);
  color: var(--color-text-dark);
  transition: background var(--transition-fast);
  line-height: 1;
}

.resume-close:hover {
  background: var(--color-surface);
}


/* =============================================================
   Machine mode — light aesthetic, monospace terminal feel
   ============================================================= */

html[data-mode="machine"] .about-headshot {
  opacity: 0.85;
  filter: grayscale(20%);
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

html[data-mode="machine"] .about-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
  border-radius: 4px;
}

html[data-mode="machine"] .about-body {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
  border-radius: 4px;
}

html[data-mode="machine"] .about-name,
html[data-mode="machine"] .about-bio-name,
html[data-mode="machine"] p,
html[data-mode="machine"] h1,
html[data-mode="machine"] h2,
html[data-mode="machine"] h3,
html[data-mode="machine"] li {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.80);
}

html[data-mode="machine"] .about-name,
html[data-mode="machine"] .about-bio-name {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.90);
}

html[data-mode="machine"] .about-location {
  font-family: 'Courier New', monospace;
  color: var(--color-active);
}

html[data-mode="machine"] .about-clock {
  font-family: 'Courier New', monospace;
}

html[data-mode="machine"] .about-divider {
  background: rgba(0, 0, 0, 0.08);
}

html[data-mode="machine"] .about-action {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.80);
}

@media (hover: hover) and (pointer: fine) {
  html[data-mode="machine"] .about-action:hover {
    color: var(--color-active);
  }
}

html[data-mode="machine"] .about-action svg {
  width: 14px;
  height: 14px;
}

html[data-mode="machine"] .about-section-label {
  font-family: 'Courier New', monospace;
  color: rgba(0, 0, 0, 0.50);
  letter-spacing: 0.12em;
}

html[data-mode="machine"] .about-section-label::before {
  content: '// ';
  color: rgba(0, 0, 0, 0.30);
}

html[data-mode="machine"] .about-bio-label {
  font-family: 'Courier New', monospace;
  color: rgba(0, 0, 0, 0.50);
  letter-spacing: 0.12em;
}

html[data-mode="machine"] .about-skill-tag {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  border-radius: 2px;
  background: transparent;
  color: rgba(0, 0, 0, 0.70);
}
