/* Carbon & Jade. Fonts load from each page's <link>; Archivo's wdth axis gives the condensed display. */
:root {
  color-scheme: dark;
  --carbon: #0b0c0c;
  --graphite: #1c1f1e;
  --graphite-raised: #242827;
  --seam: #2f3432;
  --bone: #e9ece8;
  --muted: #9aa29d;
  --jade: #3fa37a;
  --jade-bright: #5cc293;
  --signal: var(--jade);
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--seam) var(--carbon);
  scroll-padding-top: 72px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--carbon);
  caret-color: var(--jade);
}

::selection {
  color: var(--carbon);
  background: var(--jade);
}

:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 3px;
}

/* Headings focused by script after a tab change need no ring. */
[tabindex='-1']:focus {
  outline: none;
}

a {
  color: inherit;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  font-variation-settings: 'wdth' 62;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
}

h2 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

/* Data, not decoration: dates, stacks and figures. */
.career-timeline__date,
.initiative-card__label,
.initiative-card__stack,
.techpack figcaption span,
.techpack b,
.techpack__core,
.phone {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Background motion ---------- */
.orb-network {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Slow, soft glows behind the hero and contact bands. Only transform and opacity animate,
   so the work stays on the compositor and never triggers layout or paint. */
.hero,
.portfolio-header,
.portfolio-section--contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after,
.portfolio-header::before,
.portfolio-section--contact::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(63 163 122 / 0.16), rgb(63 163 122 / 0.05) 55%, transparent);
  will-change: transform;
}

.hero::before,
.portfolio-header::before {
  top: -30vmax;
  right: -18vmax;
}

.hero::after {
  bottom: -34vmax;
  left: -20vmax;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(closest-side, rgb(120 214 190 / 0.1), transparent);
}

.portfolio-section--contact::before {
  bottom: -36vmax;
  left: 20%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before,
  .portfolio-header::before {
    animation: drift-a 38s ease-in-out infinite alternate;
  }

  .hero::after,
  .portfolio-section--contact::before {
    animation: drift-b 46s ease-in-out infinite alternate;
  }
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  to { transform: translate3d(-12vmax, 8vmax, 0) scale(1.15); opacity: 1; }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); opacity: 1; }
  to { transform: translate3d(10vmax, -6vmax, 0) scale(0.95); opacity: 0.7; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--carbon) 92%, transparent);
  border-bottom: 1px solid var(--seam);
  backdrop-filter: blur(10px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--bone);
}

.site-nav svg,
.app-bar,
.portfolio-header__avatar {
  display: none;
}

/* ---------- Hero (business card and page header) ---------- */
.hero,
.portfolio-header {
  position: relative;
  padding: clamp(40px, 9vh, 120px) var(--gutter) clamp(40px, 7vh, 88px);
  border-bottom: 1px solid var(--seam);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-content: end;
  align-items: end;
  min-height: calc(100vh - 53px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  max-width: 32ch;
  margin: 28px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.details {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.details span {
  padding: 0 6px;
  color: var(--jade);
}

.slogan {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero .slogan {
  grid-column: 1 / -1;
  margin: 0;
}

.role-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  border-bottom: 1px solid var(--jade);
  color: var(--bone);
  text-decoration: none;
}

.role-trigger::after {
  content: '  →';
  color: var(--jade);
}

.role-trigger:hover {
  color: var(--jade-bright);
}

/* ---------- Tech pack: the signature callout ---------- */
.techpack {
  margin: 0;
  padding: 24px;
  background: rgb(28 31 30 / 0.72);
  border: 1px solid var(--seam);
}

.techpack figcaption {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.techpack figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--jade);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.techpack__body {
  --leader: 20px;
  display: grid;
  grid-template-columns: auto var(--leader) minmax(0, 1fr);
  align-items: center;
}

.techpack__core {
  grid-area: 1 / 1;
  margin: 0;
  padding: 18px 16px;
  font-size: 0.85rem;
  line-height: 1.7;
  border: 1px solid var(--jade);
}

.techpack__parts {
  grid-area: 1 / 3;
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}

/* The spine every leader line hangs from. */
.techpack__parts::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 20px;
  border-left: 1px solid var(--jade);
}

.techpack__parts li {
  position: relative;
  font-size: 0.95rem;
}

.techpack__parts li::before {
  content: '';
  position: absolute;
  top: 0.75em;
  left: -20px;
  width: 14px;
  border-top: 1px solid var(--jade);
  transform-origin: left;
}

.techpack__body::before {
  content: '';
  grid-area: 1 / 2;
  border-top: 1px solid var(--jade);
}

.techpack b {
  display: inline-block;
  width: 1.6em;
  color: var(--jade);
  font-weight: 400;
}

.techpack .text-link {
  display: inline-block;
  margin-top: 22px;
}

@media (prefers-reduced-motion: no-preference) {
  .techpack__parts::before {
    animation: draw-y 700ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both;
    transform-origin: top;
  }

  .techpack__parts li::before {
    animation: draw-x 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .techpack__parts li:nth-child(1)::before { animation-delay: 450ms; }
  .techpack__parts li:nth-child(2)::before { animation-delay: 520ms; }
  .techpack__parts li:nth-child(3)::before { animation-delay: 590ms; }
  .techpack__parts li:nth-child(4)::before { animation-delay: 660ms; }
  .techpack__parts li:nth-child(5)::before { animation-delay: 730ms; }

  html {
    scroll-behavior: smooth;
  }
}

@keyframes draw-x {
  from { transform: scaleX(0); }
}

@keyframes draw-y {
  from { transform: scaleY(0); }
}

/* ---------- Actions and links ---------- */
.contact-actions,
.initiative-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions {
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--bone);
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-link:hover {
  color: var(--carbon);
  background: var(--bone);
}

.button-link:first-child {
  border-color: var(--signal);
  color: var(--carbon);
  background: var(--signal);
}

.button-link:first-child:hover {
  filter: brightness(1.12);
}

.button-link--pending,
.button-link--pending:first-child,
.button-link--pending:hover {
  border-style: dashed;
  border-color: var(--seam);
  color: var(--muted);
  background: transparent;
  filter: none;
  cursor: default;
}

.text-link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--jade-bright);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--bone);
}

.phone {
  color: var(--bone);
  text-decoration: none;
}

/* ---------- Portfolio page ---------- */
.portfolio-header {
  border-bottom: 1px solid var(--seam);
}

.portfolio-header .eyebrow {
  margin-top: 24px;
}

.portfolio-section {
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  border-bottom: 1px solid var(--seam);
  scroll-margin-top: 53px;
}

.portfolio-section > h2 {
  margin-bottom: 20px;
}

.portfolio-section__intro {
  max-width: var(--measure);
  margin: 0 0 40px;
  color: var(--muted);
}

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

#initiatives-list {
  display: grid;
  border-top: 1px solid var(--seam);
}

/* Each initiative is a full-width band, not a card in a card. */
.initiative-card {
  --signal: var(--jade);
  border-bottom: 1px solid var(--seam);
}

.initiative-card--clementine {
  --signal: #ff8038;
}

.initiative-card--coldfriend {
  --signal: #56b8dc;
}

.initiative-card--tangerine {
  --signal: #ff7a2b;
}

.initiative-card--cca {
  --signal: #f1b15e;
}

.initiative-card__header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 32px 0 20px;
}

/* Cards without a mark: give the heading the full width instead of the 56px mark column. */
.initiative-card__header:not(:has(.initiative-card__mark)) {
  grid-template-columns: minmax(0, 1fr);
}

.initiative-card__mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--seam);
}

.initiative-card__label {
  margin: 0 0 8px;
  color: var(--signal);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.initiative-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
  line-height: 1;
  text-transform: uppercase;
}

.initiative-card__role {
  margin: 8px 0 0;
  color: var(--muted);
}

.initiative-card__highlight {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 1.1rem;
  line-height: 1.45;
}

.initiative-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--signal);
  font-size: 0.9rem;
}

.initiative-card__status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.initiative-card__details {
  margin-left: 76px;
  interpolate-size: allow-keywords;
}

.initiative-card__details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 320ms cubic-bezier(0.16, 1, 0.3, 1), content-visibility 320ms allow-discrete;
}

.initiative-card__details[open]::details-content {
  block-size: auto;
}

.initiative-card summary {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  color: var(--bone);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.initiative-card summary::-webkit-details-marker {
  display: none;
}

.initiative-card summary::after {
  content: '+';
  color: var(--signal);
  font-size: 1.3rem;
  line-height: 1;
}

.initiative-card__details[open] summary::after {
  content: '−';
}

.initiative-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  max-width: 1100px;
  padding: 0 0 36px;
}

.initiative-card__block h4 {
  margin: 0 0 8px;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.initiative-card__block p {
  margin: 0;
  line-height: 1.6;
}

.initiative-card__capabilities {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.initiative-card__capabilities strong {
  font-weight: 600;
}

.initiative-card__stack {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.initiative-card__actions,
.initiative-card__body > .text-link {
  grid-column: 1 / -1;
}

.initiative-card__body > .text-link {
  justify-self: start;
}

/* ---------- Career timeline (page and dialog) ---------- */
.career-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-timeline--page {
  border-top: 1px solid var(--seam);
}

.career-timeline__item {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: 4px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--seam);
}

.career-timeline__item > :not(.career-timeline__date) {
  grid-column: 2;
}

.career-timeline__date {
  grid-row: 1 / span 3;
  color: var(--muted);
  font-size: 0.85rem;
}

.career-timeline__item--current .career-timeline__date {
  color: var(--jade);
}

.career-timeline h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.career-timeline p {
  margin: 0;
  color: var(--muted);
}

.career-timeline__highlights {
  display: grid;
  gap: 8px;
  max-width: var(--measure);
  margin: 14px 0 0;
  padding-left: 1.1em;
  line-height: 1.55;
}

.career-timeline__highlights li::marker {
  color: var(--jade);
}

.career-timeline__status {
  padding: 24px 0;
  color: var(--muted);
}

#experience > .text-link {
  display: inline-block;
  margin-top: 28px;
}

/* ---------- Contact ---------- */
.cta-wrap {
  position: relative;
  max-width: 820px;
  margin-bottom: 32px;
}

.cta-eyebrow {
  margin: 0 0 10px;
  color: var(--jade);
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-title {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  line-height: 0.92;
  margin-bottom: 24px;
}

.button-link--linkedin {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--carbon);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(63, 163, 122, 0.22);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-link--linkedin:hover {
  transform: translateY(-2px);
  background: var(--jade-bright);
  border-color: var(--jade-bright);
  color: var(--carbon);
  box-shadow: 0 4px 24px rgba(92, 194, 147, 0.4);
}

.button-arrow {
  margin-left: 8px;
  display: inline-block;
  transition: transform 160ms ease;
}

.button-link--linkedin:hover .button-arrow {
  transform: translateX(4px);
}
.portfolio-section--contact .portfolio-section__intro {
  color: var(--bone);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.portfolio-section--contact .contact-actions {
  margin: 0 0 28px;
}

.portfolio-section--contact > .phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.portfolio-section--contact > p {
  margin: 28px 0 0;
}

/* ---------- Career dialog ---------- */
.career-modal {
  width: min(100% - 32px, 760px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
}

.career-modal::backdrop {
  background: rgb(0 0 0 / 0.72);
}

.career-modal__window {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 40px);
  background: var(--graphite);
  border: 1px solid var(--seam);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.5);
}

.career-modal__window .eyebrow {
  margin: 0 0 8px;
  color: var(--jade);
  font-size: 0.8rem;
}

.career-modal__window h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.career-modal .career-timeline__item {
  grid-template-columns: minmax(0, 1fr);
  padding: 24px 0;
}

.career-modal .career-timeline__item > * {
  grid-column: 1;
  grid-row: auto;
}

.career-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  background: none;
  cursor: pointer;
}

.career-modal__close:hover {
  color: var(--bone);
}

/* ---------- Tablet and below: stack the hero ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

    .initiative-card__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .initiative-card__details {
    margin-left: 0;
  }

  .career-timeline__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .career-timeline__item > :not(.career-timeline__date),
  .career-timeline__date {
    grid-column: 1;
    grid-row: auto;
  }

  .techpack__parts {
    padding-left: 28px;
  }

  .techpack__parts::before {
    left: 12px;
  }

  .techpack__parts li::before {
    left: -16px;
    width: 12px;
  }

  .techpack__body {
    --leader: 12px;
  }

  /* App layout: top bar, one section at a time, bottom tab bar. */
  body.portfolio {
    --bar-h: 52px;
    --tab-h: 60px;
    min-height: 100dvh;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 20px);
  }

  .app-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    height: calc(var(--bar-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0;
    background: color-mix(in srgb, var(--carbon) 92%, transparent);
    border-bottom: 1px solid var(--seam);
    backdrop-filter: blur(12px);
  }

  .app-bar__back {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--bone);
  }

  .app-bar svg,
  .site-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-bar__title {
    position: absolute;
    inset: env(safe-area-inset-top) 0 0;
    display: grid;
    margin: 0;
    place-items: center;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
  }

  body.portfolio .site-nav {
    position: fixed;
    inset: auto 0 0;
    top: auto;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--graphite) 94%, transparent);
    border-top: 1px solid var(--seam);
    border-bottom: 0;
  }

  body.portfolio .site-nav a {
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-height: 48px;
    font-size: 0.7rem;
  }

  body.portfolio .site-nav a[aria-current='page'] {
    color: var(--jade-bright);
  }

  body.portfolio .site-nav svg {
    display: block;
  }

  .portfolio-header {
    padding-top: 28px;
  }

  .portfolio-header__avatar {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--jade);
  }

  body[data-tab='experience'] .portfolio-header,
  body[data-tab='contact'] .portfolio-header {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Without JavaScript data-tab is never set, so every section stays visible. */
  body[data-tab] .portfolio-section {
    display: none;
  }

  body[data-tab='initiatives'] #initiatives,
  body[data-tab='experience'] #experience,
  body[data-tab='contact'] #contact {
    display: block;
  }

  .portfolio-section {
    padding: 24px var(--gutter);
    border: 0;
  }

  .portfolio-section > h2 {
    font-size: 2.4rem;
  }

  .contact-actions {
    display: grid;
  }

  .portfolio-section--contact .social-links {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--seam);
  }

  .portfolio-section--contact .social-links a,
  .portfolio-section--contact > .phone {
    display: flex;
    min-height: 56px;
    border-bottom: 1px solid var(--seam);
    color: var(--bone);
    font-size: 1rem;
  }

  .portfolio-section--contact .social-links {
    margin-top: 0;
  }

  .portfolio-section--contact > .phone {
    border-top: 1px solid var(--seam);
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  body[data-tab='initiatives'] #initiatives,
  body[data-tab='experience'] #experience,
  body[data-tab='contact'] #contact {
    animation: tab-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes tab-in {
    from { opacity: 0.4; transform: translateY(8px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .initiative-card__details::details-content {
    transition: none;
  }
}


/* ========================================= */
/* Blueprint Aesthetic — Gorelli-Inspired     */
/* ========================================= */

/* ---------- Blueprint grid overlay ---------- */
body.portfolio {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(47, 52, 50, 0.45) 59px,
      rgba(47, 52, 50, 0.45) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(47, 52, 50, 0.45) 59px,
      rgba(47, 52, 50, 0.45) 60px
    ),
    var(--carbon);
}

/* ---------- Section index labels ---------- */
.section-index {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade);
}

/* ---------- Hero two-column split ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px 56px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--seam);
}

.hero-meta .details {
  margin: 0;
}

.hero-meta .slogan {
  margin: 20px 0 0;
}

.hero-bio {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--jade), var(--jade-bright));
  pointer-events: none;
  z-index: 1;
}

/* ---------- Contact coordinates ---------- */
.contact-coordinates {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: -8px 0 28px;
}

/* ---------- Timeline vertical accent ---------- */
.career-timeline--page .career-timeline__item {
  border-left: 2px solid var(--seam);
  padding-left: 28px;
  margin-left: 4px;
}

.career-timeline--page .career-timeline__item--current {
  border-left-color: var(--jade);
}

/* ---------- Scroll reveal — static sections ---------- */
.js-scroll-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.js-scroll-reveal [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Scroll reveal — dynamic cards/items ---------- */
.js-scroll-reveal #initiatives-list .initiative-card,
.js-scroll-reveal #experience-list .career-timeline__item {
  opacity: 0;
  transform: translateY(24px);
}

.js-scroll-reveal #initiatives-list .initiative-card.revealed,
.js-scroll-reveal #experience-list .career-timeline__item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Blueprint responsive overrides ---------- */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .scroll-progress {
    display: none;
  }

  [data-reveal],
  #initiatives-list .initiative-card,
  #experience-list .career-timeline__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-index {
    margin-bottom: 12px;
    font-size: 0.7rem;
  }

  .contact-coordinates {
    margin: 0 0 20px;
  }

  .career-timeline--page .career-timeline__item {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  #initiatives-list .initiative-card,
  #experience-list .career-timeline__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========================================= */
/* Terminal & Docker Compose Effects          */
/* ========================================= */

.terminal-box-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--jade);
  color: transparent;
  margin-left: 3px;
  vertical-align: -0.1em;
  animation: cursor-blink 650ms steps(2, start) infinite;
}

@keyframes cursor-blink {
  to { opacity: 0; }
}

.docker-compose-terminal {
  margin-top: 10px;
  padding: 14px 18px;
  background: #090b0a;
  border: 1px solid var(--seam);
  border-left: 3px solid var(--signal);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.docker-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--seam);
  font-size: 0.78rem;
}

.docker-cli-prompt {
  color: var(--bone);
  font-weight: 600;
}

.docker-status-tag {
  color: var(--signal);
  font-weight: 700;
}

.docker-compose-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.docker-compose-row {
  display: grid;
  grid-template-columns: 16px 74px 145px 65px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 12px;
  color: var(--bone);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.docker-compose-row.docker-row--active {
  opacity: 1;
  transform: translateX(0);
}

.docker-icon {
  color: var(--signal);
  font-weight: 700;
}

.docker-kind {
  color: var(--muted);
  font-size: 0.78rem;
}

.docker-slug {
  color: var(--bone);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docker-state {
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docker-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .docker-compose-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 4px 8px;
  }

  .docker-kind {
    display: none;
  }

  .docker-slug {
    display: inline-block;
  }

  .docker-state {
    display: inline-block;
    margin-left: 6px;
  }

  .docker-desc {
    grid-column: 2;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docker-compose-row {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .terminal-box-cursor {
    display: none;
  }
}

/* Terminal glow: a soft phosphor halo on the monospace, terminal-style text. text-shadow inherits,
   so everything inside the compose terminal glows too. */
:root {
  --terminal-glow: 0 0 3px rgba(92, 194, 147, 0.7), 0 0 12px rgba(63, 163, 122, 0.45);
}

.section-index,
.cta-eyebrow,
.contact-coordinates,
.phone,
.docker-compose-terminal,
.techpack__core,
.techpack figcaption span,
.techpack b {
  text-shadow: var(--terminal-glow);
}

.terminal-box-cursor {
  box-shadow: 0 0 6px rgba(92, 194, 147, 0.7), 0 0 14px rgba(63, 163, 122, 0.35);
}

/* ---------- Hover effects (CSS only; the old text shuffle is gone) ---------- */
:root {
  --terminal-glow-strong: 0 0 4px rgba(92, 194, 147, 0.9), 0 0 16px rgba(92, 194, 147, 0.6), 0 0 32px rgba(63, 163, 122, 0.3);
}

/* Glow brighten: nav links, section labels, eyebrow text and role titles light up. The text itself never changes. */
.site-nav a,
.section-index,
.cta-eyebrow,
.role-trigger {
  transition: color 200ms ease, text-shadow 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.section-index:hover,
.cta-eyebrow:hover,
.role-trigger:hover,
.role-trigger:focus-visible {
  color: var(--jade-bright);
  text-shadow: var(--terminal-glow-strong);
}

/* Underline sweep: a bright line draws in from the left under buttons and text links. */
.button-link {
  position: relative;
}

.button-link:not(.button-link--pending)::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-link:not(.button-link--pending):hover::after,
.button-link:not(.button-link--pending):focus-visible::after {
  transform: scaleX(1);
}

.text-link {
  background: linear-gradient(var(--jade-bright), var(--jade-bright)) no-repeat 0 100% / 0 2px;
  transition: color 200ms ease, background-size 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover,
.text-link:focus-visible {
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .section-index,
  .cta-eyebrow,
  .role-trigger,
  .button-link::after,
  .text-link {
    transition: none;
  }
}
