/*!
 * Atelier — Bootstrap 6 portfolio template
 * Theme layer. Loads after base.css; both are intentionally unlayered.
 */

/* Brand — base.css rebuilds the whole --bs-primary-* family from this token. */
:root {
  --brand: oklch(46% 0.13 285);
  --kit-section-y: 5rem;
}

@media (width >= 768px) {
  :root { --kit-section-y: 7rem; }
}

/* --------------------------------------------------------------- Intro */

.intro-name {
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.intro-role {
  font-size: 1.0625rem;
  color: var(--bs-fg-2);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 550;
}

.availability::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--bs-radius-pill);
  background: var(--bs-success-base);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--bs-success-base), transparent 78%);
}

/* --------------------------------------------------------------- Work */

.work-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-media {
  border-radius: var(--bs-radius-6);
  overflow: hidden;
  margin-bottom: 1rem;
}

.work-media .ph {
  transition: transform 0.5s ease;
}

.work-item:hover .work-media .ph {
  transform: scale(1.04);
}

.work-title {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}

.work-item:hover .work-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--bs-fg-3);
}

/* --------------------------------------------------------------- Timeline */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding-inline-start: 1.75rem;
  padding-bottom: 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.4rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--bs-radius-pill);
  background: var(--bs-primary-base);
}

.timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.28rem;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--bs-border-color);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

/* --------------------------------------------------------------- Skills */

.skill-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------- Case study */

.case-figure {
  border-radius: var(--bs-radius-6);
  overflow: hidden;
}

.case-facts {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (width >= 768px) {
  .case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.case-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  color: var(--bs-fg-3);
  margin-bottom: 0.375rem;
}

.case-facts dd {
  margin: 0;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .work-media .ph { transition: none; }
  .work-item:hover .work-media .ph { transform: none; }
}
