/* Post-hero branded cards — scoped to .site-main / .landing */

.landing {
  background-color: #5c374c !important;
  color: #faa275;
  align-items: stretch !important;
  min-height: 100vh;
  min-height: 100svh;
}

.landing ::selection {
  background-color: #ff8c61;
  color: #5c374c;
}

.site-main {
  --ink: #5c374c;
  --panel: #985277;
  --peach: #faa275;
  --coral: #ff8c61;
  --blush: #ce6a85;
  --cream: var(--peach);
  --white: var(--peach);
  --muted: rgba(250, 162, 117, 0.86);
  /* 16% panel over ink: deep enough for peach body text to pass 4.5:1 */
  --card-fill: #663b53;
  --silver: var(--blush);
  --red-deep: var(--ink);
  --red-dark: var(--blush);
  --red: var(--blush);
  --red-bright: var(--coral);
  --violet: var(--coral);
  --cyan: var(--blush);
  --rose: var(--peach);
  --panel-edge: rgba(250, 162, 117, 0.26);
  --serif: "Libre Bodoni", "Bodoni MT", "Didot", Georgia, serif;
  --sans-display: "Archivo Black", "Impact", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  filter: none;
  flex: 1 0 auto;
}

.site-main * {
  box-sizing: border-box;
}

.site-main a {
  color: inherit;
  text-decoration: none;
}

.site-stack {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

/* —— Section / card shells —— */
.brand-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.5rem 0 0.25rem;
}

.site-main .brand-section__kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-card {
  width: 100%;
  background: var(--card-fill);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  /* Secondary text leans on size and case for hierarchy; dimming it fails contrast */
  --muted: var(--peach);
}

.brand-card--cream { --accent: var(--cream); }
.brand-card--violet { --accent: var(--violet); }
.brand-card--cyan { --accent: var(--peach); }
.brand-card--rose { --accent: var(--rose); }

.brand-card__label {
  margin: 0;
  font-family: var(--sans-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent, var(--cream));
}

.brand-card__body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: var(--peach);
  max-width: 42rem;
}

.brand-card__body + .brand-card__body {
  margin-top: -0.35rem;
}

/* Embedded canvas photograph beside the About copy. */
.site-main .brand-card--about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.site-main .about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.about-copy .brand-card__label:empty {
  display: none;
}

.about-copy .brand-card__body {
  width: 100%;
  max-width: none;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  image-rendering: pixelated;
}

.about-photo[hidden] {
  display: none;
}

@media (max-width: 719px) {
  .site-main .brand-card--about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    max-width: 15rem;
  }
}

/* —— Contact —— */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.site-main .contact-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  background: var(--coral);
  color: var(--ink);
  outline: none;
  text-decoration: none;
}

/* —— Experience list —— */
.exp-list,
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  text-align: left;
  align-items: stretch;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--panel-edge);
}

.project-item:first-child {
  padding-top: 0;
}

.project-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Company timeline: rail stretches with each item; spine auto-connects nodes */
.exp-list {
  --exp-rail: 1.25rem;
  --exp-node: 0.75rem;
  --exp-node-top: 0.38rem;
  --exp-dash: rgba(206, 106, 133, 0.55);
  position: relative;
}

.exp-item {
  display: grid;
  grid-template-columns: var(--exp-rail) minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0;
  margin: 0;
  border: 0;
  position: relative;
}

.exp-item:not(:last-child) .exp-item__main {
  padding-bottom: 1.35rem;
}

.exp-item__rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: var(--exp-rail);
  padding-top: var(--exp-node-top);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Continuous dashed spine through the stretched rail */
.exp-item__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--exp-dash) 0 3px,
    transparent 3px 8px
  );
  pointer-events: none;
  z-index: 0;
}

.exp-item:first-child .exp-item__rail::after {
  top: calc(var(--exp-node-top) + var(--exp-node) / 2);
}

.exp-item:last-child .exp-item__rail::after {
  bottom: auto;
  height: calc(var(--exp-node-top) + var(--exp-node) / 2);
}

.exp-item:only-child .exp-item__rail::after {
  display: none;
}

.exp-item__node {
  width: var(--exp-node);
  height: var(--exp-node);
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--card-fill);
  box-shadow: 0 0 0 3px rgba(255, 140, 97, 0.18);
  flex: 0 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.exp-item__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.exp-item__org,
.project-item__name {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--cream);
}

.project-item__name a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-item__name a:hover,
.project-item__name a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.4rem;
  margin: 0.1rem 0 0.15rem;
  width: 100%;
  text-align: left;
}

/* Soft meta chips: ink fill + peach text (readable on card-fill); outline variants for secondary fields */
.exp-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 0.28em 0.72em;
  border-radius: 999px;
  color: var(--peach);
  background: var(--ink);
  border: 1px solid transparent;
  white-space: nowrap;
}

.exp-pill--title {
  font-weight: 600;
  background: var(--ink);
  border-color: transparent;
  white-space: normal;
  text-align: left;
}

.exp-pill--type,
.exp-pill--location,
.exp-pill--dates {
  font-weight: 500;
  background: transparent;
  border-color: rgba(250, 162, 117, 0.38);
  color: var(--peach);
}

.exp-role .exp-pill--title {
  font-size: 0.7rem;
  font-weight: 600;
}

.exp-bullets {
  list-style: disc;
  margin: 0.15rem 0 0;
  padding: 0 0 0 1.15rem;
  width: 100%;
  max-width: 48rem;
  text-align: left;
}

.exp-bullets li {
  margin: 0.25rem 0;
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  line-height: 1.5;
  color: var(--peach);
}

.exp-item__body,
.project-item__body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  color: var(--peach);
  max-width: 48rem;
}

.exp-roles {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
}

.exp-role {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.site-main a.exp-role__link {
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--peach);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-main a.exp-role__link:hover,
.site-main a.exp-role__link:focus-visible {
  color: var(--coral);
  outline: none;
}

.exp-role__body {
  margin: 0.05rem 0 0;
  font-family: var(--sans);
  font-size: clamp(0.86rem, 1.35vw, 0.95rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--peach);
  max-width: 40rem;
}

/* —— Personal projects grid —— */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 720px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  border: 0;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--cream);
  isolation: isolate;
}

.work-tile__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(14, 10, 12, 0.78) 0%,
    rgba(14, 10, 12, 0.6) 38%,
    rgba(14, 10, 12, 0.24) 68%,
    rgba(14, 10, 12, 0.05) 100%
  );
  transition: background 0.35s ease;
}

.work-tile__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 0 0.9rem;
  pointer-events: none;
  --work-pad-x: 1.1rem;
}

.work-tile__title {
  margin: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding-left: var(--work-pad-x);
  box-sizing: border-box;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(14, 10, 12, 0.7), 0 2px 18px rgba(14, 10, 12, 0.5);
}

.work-tile__title-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.work-tile__desc {
  margin: 0;
  padding: 0.15rem var(--work-pad-x) 0.1rem;
  max-width: min(34rem, 92%);
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(14, 10, 12, 0.7), 0 2px 14px rgba(14, 10, 12, 0.5);
}

.work-tile:hover,
.work-tile:focus-visible {
  outline: none;
  text-decoration: none;
}

.work-tile:hover .work-tile__img,
.work-tile:focus-visible .work-tile__img {
  filter: blur(4px) brightness(0.58);
  transform: scale(1.03);
}

.work-tile:hover::after,
.work-tile:focus-visible::after {
  background: linear-gradient(
    to bottom,
    rgba(14, 10, 12, 0.82) 0%,
    rgba(14, 10, 12, 0.66) 48%,
    rgba(14, 10, 12, 0.34) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .work-tile__img {
    transition: none;
  }

  .work-tile:hover .work-tile__img,
  .work-tile:focus-visible .work-tile__img {
    filter: brightness(0.7);
    transform: none;
  }
}

/* —— Footer social icons —— */
.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.site-footer__inner {
  width: 100%;
  max-width: 72rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.15rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.site-footer__link img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: brightness(0);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  opacity: 1;
  outline: none;
}

/* Accordion unfold entrance (driven by scirpt.js) */
.fold-ready .brand-card:not(.is-unfolded),
.fold-ready .work-tile:not(.is-unfolded) {
  opacity: 0;
}

.fold-ready .brand-card.is-unfolding,
.fold-ready .work-tile.is-unfolding {
  opacity: 1;
  visibility: hidden;
}

.card-fold {
  position: absolute;
  z-index: 5;
  visibility: visible;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 50% 0;
  will-change: transform, filter;
}

.card-fold__shadow {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.card-fold__strip {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  transform-origin: 50% 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.card-fold__strip > .card-fold__clone {
  position: absolute;
  left: 0;
  margin: 0;
  box-shadow: none;
  visibility: visible;
}

.card-fold__shade {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(92, 55, 76, 0.2), rgba(40, 18, 32, 0.85));
}

/* —— Beat global style.css rules inside the landing stack —— */
.site-main,
.site-main div,
.site-main section,
.site-main article,
.site-main nav,
.site-main header,
.site-main footer,
.site-main figure {
  height: auto;
}

.site-main .brand-card,
.site-main .works-grid,
.site-main .site-stack,
.site-main .brand-section,
.site-main .brand-section__head,
.site-main .contact-actions,
.site-main .exp-list,
.site-main .exp-item__rail {
  justify-content: flex-start;
  align-items: stretch;
}

.site-main .exp-item__rail {
  align-items: center;
}

.site-main .brand-section__head,
.site-main .brand-card,
.site-main .site-stack,
.site-main .brand-section {
  align-items: flex-start;
}

.site-main .works-cat__thumbs,
.site-main .contact-actions {
  align-items: center;
  justify-content: flex-start;
}

.site-main p.brand-card__body,
.site-main p {
  padding: 0;
  font-size: inherit;
}

.site-main .work-tile__desc {
  padding: 0.15rem var(--work-pad-x) 0.1rem;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
}

.site-main h2,
.site-main h3 {
  font-weight: inherit;
}

.site-main .work-tile {
  display: block;
  width: 100%;
}

.site-main #experience .brand-card {
  overflow: visible !important;
  align-items: flex-start;
  text-align: left;
}

.site-main #experience .exp-item__main,
.site-main #experience .exp-roles,
.site-main #experience .exp-role,
.site-main #experience .exp-meta {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
}
