@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,300;1,400&family=IBM+Plex+Serif:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f9f9f7;
  --fg: #111111;
  --muted: #9a9a9a;
  --border: #e2e2de;
  --font: 'IBM Plex Mono', 'Courier New', monospace;
}

html {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.85;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* ── Loader ── */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.5s ease;
}

#loader.loader-out {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 340px;
}


.loader-ascii {
  position: absolute;
  inset: 0;
  font-family: "Courier New", monospace;
  font-size: 1.1vw;
  line-height: 1;
  white-space: pre;
  color: var(--fg);
  opacity: 0.5;
  text-align: center;
  user-select: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.loader-question {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  white-space: nowrap;
  min-height: 1.85em;
  transition: opacity 0.28s ease;
}

.loader-question.loader-q-fade {
  opacity: 0;
}

.loader-bar-track {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.loader-bar {
  height: 1px;
  width: 0%;
  background: var(--fg);
  transition: width 0.025s linear;
}

/* ── Animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

header {
  animation: fadeUp 0.4s ease both;
}

main {
  display: flex;
  flex-direction: column;
  gap: 52px;
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.07s;
}

footer {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.12s;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Links ── */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── Nav ── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 35px 0 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

header.scrolled {
  border-color: var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.home-link {
  font-family: var(--font);
}

.home-link:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  display: inline-block;
  position: relative;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  text-decoration: none;
}

.nav-links a svg[data-nav-circle] {
  position: absolute;
  left: 0;
  top: -50%;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
  overflow: visible;
}

.nav-links a svg[data-nav-circle] path {
  transition: stroke-dashoffset 300ms linear;
  stroke-width: 0.7;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
}

.nav-links a:hover svg[data-nav-circle] path {
  stroke-dashoffset: 0;
}

/* ── Banner ── */

.banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Profile photo ── */

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--fg);
}

/* ── Intro ── */

.intro {
  overflow: hidden;
}

.intro-sidebar {
  float: left;
  width: 160px;
  margin-right: 40px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.sidebar-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

.sidebar-links svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.intro-text p + p {
  margin-top: 18px;
}

.intro-text p.clear {
  clear: left;
}

p.ps {
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

/* ── Ticker (currently) ── */

.ticker-track {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ticker-text {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ticker-logo {
  height: 22px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.5;
  object-fit: contain;
}

.ticker-item .ticker-role {
  color: var(--muted);
}

/* ── Timeline ── */

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:first-child {
  border-top: 1px solid var(--border);
}

.timeline-date {
  color: var(--muted);
  font-size: 12px;
  padding-top: 1px;
}

/* ── Section label ── */

.label {
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* ── Muted text ── */

.muted {
  color: var(--muted);
}

/* ── Interest list ── */

.interest-list {
  list-style-type: square;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Now list ── */

.now-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.now-list li {
  display: grid;
  grid-template-columns: 148px 1fr;
}

/* ── Links section (contact) ── */

.links-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  color: var(--muted);
}

/* ── Photo grid (photography page) ── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

/* ── Work list ── */

.work-list {
  list-style: none;
}

.work-entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.work-list .work-entry:first-child {
  border-top: 1px solid var(--border);
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.work-role {
  font-size: 12px;
}

/* ── Archive list ── */

.archive-list {
  list-style: none;
}

.archive-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.archive-entry:first-child {
  border-top: 1px solid var(--border);
}

.archive-date {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
}

/* ── Page description ── */

.page-desc {
  color: var(--muted);
  max-width: 480px;
}

/* ── Coming soon ── */

.coming-soon {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coming-soon-text {
  text-align: center;
  font-style: italic;
}

/* ── Empty state ── */

.empty-state {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Acknowledgements ── */

.ack-section { font-size: 10.5px; }
.ack-nowrap  { white-space: nowrap; }

/* ── Footer ── */

footer {
  margin-top: 88px;
  font-size: 12px;
}

/* ── Mobile ── */

@media (max-width: 520px) {
  body {
    padding: 40px 20px 72px;
  }

  header {
    padding-top: 28px;
    margin-bottom: 32px;
  }

  nav {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .intro-sidebar {
    float: none;
    width: auto;
    margin-right: 0;
    margin-bottom: 24px;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .photo {
    width: 140px;
    flex-shrink: 0;
  }

  .sidebar-links {
    gap: 8px;
  }

  .sidebar-links svg {
    width: 16px;
    height: 16px;
  }

  .now-list li {
    grid-template-columns: 120px 1fr;
  }

  .work-row {
    flex-direction: column;
    gap: 1px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .loader-inner {
    width: 85vw;
  }

  .loader-question {
    white-space: normal;
    font-size: 12.5px;
  }

  .loader-ascii {
    font-size: 2.13vh;
  }

  .ack-section { font-size: 14px; }
  .ack-nowrap  { white-space: normal; }
}
