/* ==========================================================================
   2026 REFRESH — sticker hero, folder-stack cards, tool chips, resume accordion
   Loaded after styles.css + theme-d.css
   ========================================================================== */

/* ── Pastel tints (shared by home stack + work cards) ──────────────────── */
.tint-blue     { background-color: #dbeafe; }
.tint-peach    { background-color: #ffe3cf; }
.tint-lavender { background-color: #e9e3f8; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn--dark {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-full);
}
.btn--dark:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Section subtitle ──────────────────────────────────────────────────── */
.section__sub {
  margin-top: var(--space-2);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ══ HERO — sticker style ═══════════════════════════════════════════════ */
.hero--sticker {
  min-height: 100vh;
}
@supports (min-height: 100svh) {
  .hero--sticker { min-height: 100svh; }
}

.hero--sticker .hero__inner {
  position: relative;
  width: 100%;
  padding-block: var(--space-9);
}

.hero__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-text);
  background: var(--color-bg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-6);
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.12);
}

.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: var(--letter-spacing-tight);
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* Figma-selection style highlight around the last words */
.hero__highlight {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--color-accent);
  padding: 0 var(--space-2);
  border: 2px solid var(--color-accent);
  background: rgba(15, 98, 254, 0.05);
}
.hero__highlight::before,
.hero__highlight::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 2px solid var(--color-accent);
}
.hero__highlight::before { top: -6px; left: -6px; }
.hero__highlight::after  { bottom: -6px; right: -6px; }

/* Cursor name pill (Figma multiplayer style) */
.hero__cursor {
  position: absolute;
  right: -28px;
  bottom: -42px;
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-style: normal;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
}
.hero__cursor::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--color-accent);
  transform: rotate(-18deg);
}

.hero__sub {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-7);
}

/* Floating tool stickers */
.hero__stickers { position: static; }
.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
  transform: rotate(var(--rot, 0deg));
  animation: sticker-float 6s ease-in-out infinite;
}
.sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes sticker-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}
.sticker--1 { top: 4%;  left: 16%;  --rot: -8deg; animation-duration: 5.2s; }                       /* ChatGPT */
.sticker--2 { top: 38%; left: 5%;   --rot: 7deg;  animation-duration: 6.4s; animation-delay: 0.8s; } /* Claude */
.sticker--3 { top: 72%; left: 14%;  --rot: -6deg; animation-duration: 5.8s; animation-delay: 1.6s; } /* Copilot */
.sticker--4 { top: 6%;  right: 15%; --rot: 9deg;  animation-duration: 6.8s; animation-delay: 0.4s; } /* Figma */
.sticker--5 { top: 40%; right: 5%;  --rot: -7deg; animation-duration: 5.5s; animation-delay: 1.2s; } /* Google Analytics */
.sticker--6 { top: 74%; right: 13%; --rot: 6deg;  animation-duration: 6.1s; animation-delay: 2s; }   /* Adobe Analytics */

@media (max-width: 900px) {
  .hero__stickers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }
  .sticker {
    position: static;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .sticker img { width: 100%; height: 100%; }
  .sticker--1, .sticker--3, .sticker--5 { --rot: -5deg; }
  .sticker--2, .sticker--4, .sticker--6 { --rot: 5deg; }
  .hero__cursor { right: 0; }
}

/* ══ FOLDER STACK — home "How I work with AI" ═══════════════════════════ */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.folder-card {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: center;
  border-radius: 24px;
  padding: var(--space-8);
  min-height: 420px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.stack .folder-card:nth-child(1) { top: 104px; }
.stack .folder-card:nth-child(2) { top: 132px; }
.stack .folder-card:nth-child(3) { top: 160px; }

/* Folder tab */
.folder-card::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 36px;
  width: 150px;
  height: 34px;
  background-color: inherit;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}

.folder-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.folder-card__desc {
  color: #334155;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.folder-card .card__tags { margin-bottom: 0; }

.folder-card .btn {
  margin-top: var(--space-5);
  align-self: flex-start;
}

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

.folder-card__media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .folder-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
    min-height: 0;
  }
  .stack .folder-card:nth-child(1) { top: 88px; }
  .stack .folder-card:nth-child(2) { top: 104px; }
  .stack .folder-card:nth-child(3) { top: 120px; }
}

/* ══ TOOL CHIPS ═════════════════════════════════════════════════════════ */
.tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tools__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-secondary);
  margin-right: var(--space-1);
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
}
.tool-chip img { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }

/* ══ WORK PAGE — pastel folder cards (image left, text right) ═══════════ */
.card--folder {
  border: 1px solid var(--color-border);
  background-color: #ffffff;
}
.card--folder .card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-5) var(--space-5) 0;
  width: auto; /* stacked layouts: fit inside the card despite the side margins */
}
.card--folder .card__description {
  color: var(--color-text-secondary);
}
@media (min-width: 1024px) {
  .card--folder.card--horizontal .card__image {
    margin: var(--space-6) 0 var(--space-6) var(--space-6);
    align-self: stretch;
  }
}

/* ══ RESUME ACCORDION — about page ══════════════════════════════════════ */
.resume {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}

.resume__group {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 800px) {
  .resume__group { grid-template-columns: 1fr; gap: var(--space-3); }
}

.resume__group-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  padding-top: var(--space-5);
}

.resume__list {
  display: flex;
  flex-direction: column;
}

.resume-item {
  border-bottom: 1px solid var(--color-border);
}

.resume-item__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  text-align: left;
}

.resume-item__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.resume-item__info { min-width: 0; }

.resume-item__role {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
}
.resume-item__role strong { font-weight: var(--font-weight-bold); }

.resume-item__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.resume-item__toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base), background-color var(--transition-fast), color var(--transition-fast);
}
.resume-item__toggle svg { width: 14px; height: 14px; }

.resume-item__head:hover .resume-item__toggle {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.resume-item.is-open .resume-item__toggle {
  transform: rotate(45deg);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.resume-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}
.resume-item.is-open .resume-item__body {
  grid-template-rows: 1fr;
}
.resume-item__body-inner {
  overflow: hidden;
}
.resume-item__body ul {
  list-style: disc;
  padding-left: calc(44px + var(--space-4) + 1.1em);
  padding-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.resume-item__body li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}
@media (max-width: 800px) {
  .resume-item__body ul { padding-left: 1.1em; }
}

/* Toolbox grid */
.toolbox {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-5);
}
.toolbox__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.toolbox__item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Nav: right-aligned menu ── */
.nav__links { margin-left: auto; }

/* Anchored sections clear the fixed nav */
section[id] { scroll-margin-top: 90px; }

/* ── Resume accordion: logo containers + expand galleries ── */
.resume-item__logo {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.resume-item__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-left: calc(44px + var(--space-4));
  margin-bottom: var(--space-4);
}
.resume-item__gallery img {
  width: 170px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}
@media (max-width: 800px) {
  .resume-item__gallery { padding-left: 0; }
  .resume-item__gallery img { width: calc(50% - var(--space-3) / 2); }
}

/* ══ LANDING PAGE POLISH ════════════════════════════════════════════════ */

/* 1. Hero CTAs: fully rounded */
.hero__actions .btn { border-radius: var(--radius-full); }

/* 2. Figma-canvas grid background on the hero (fades out on scroll) */
.hero--sticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 500ms ease;
}
body.is-scrolled .hero--sticker::before { opacity: 0; }
.hero--sticker { position: relative; }
.hero--sticker .container { position: relative; z-index: 1; }

/* 4. Home nav: taller on landing, no bottom line until scroll, keeps grid pattern */
.nav {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
html[data-page="home"] .nav {
  padding: var(--space-6) 0;
  border-bottom-color: transparent;
  transition: padding var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
html[data-page="home"] .nav.is-scrolled {
  padding: var(--space-4) 0;
  border-bottom-color: var(--color-border);
}

/* 3. Bottom dock — macOS style */
.dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 68px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow-xl);
  z-index: 95;
}
.dock__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: #475569;
  transition: width 220ms cubic-bezier(0.34, 1.56, 0.64, 1), height 220ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--transition-fast);
  transform-origin: bottom center;
}
.dock__item svg { width: 50%; height: 50%; }
.dock__item:hover {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  transform: translateY(-6px);
  background: #ffffff;
  color: var(--color-text);
  z-index: 2;
}
/* neighbours grow a little, like the macOS dock */
.dock__item:hover + .dock__item,
.dock__item:has(+ .dock__item:hover) {
  width: 56px;
  height: 56px;
  transform: translateY(-3px);
}
/* tooltip chip above the hovered icon */
.dock__item::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 4px;
  padding: 4px 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), translate var(--transition-fast);
}
.dock__item:hover::after { opacity: 1; translate: -50% 0; }
@media (max-width: 600px) {
  .dock { bottom: 14px; gap: var(--space-2); height: 58px; padding: 8px 10px; }
  .dock__item { width: 42px; height: 42px; }
}


/* ── Hero pointer icon (replaces the Siluo pill) ── */
.hero__pointer {
  position: absolute;
  right: -30px;
  bottom: -34px;
  display: inline-block;
  width: 34px;
  height: 34px;
  color: var(--color-accent);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.25));
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.hero__pointer svg { width: 100%; height: 100%; }
.hero__pointer:hover,
.hero__pointer:active {
  transform: translate(9px, 10px) rotate(-10deg);
}
@media (max-width: 900px) {
  .hero__pointer { right: -6px; bottom: -30px; width: 28px; height: 28px; }
}

/* ── Footer: light grid-canvas design ── */
.footer {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}
.footer__brand p { color: var(--color-text-secondary); }
.footer__heading { color: var(--color-text-secondary); }
.footer__link { color: var(--color-text-secondary); }
.footer__link:hover,
.footer__bottom a:hover { color: var(--color-accent) !important; }
.footer__social-link {
  border-color: var(--color-border-hover);
  color: var(--color-text-secondary);
  background: #ffffff;
}
.footer__social-link:hover {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  background-color: var(--color-accent-subtle) !important;
}
.footer__bottom {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  text-align: center;
  border-top-color: var(--color-border) !important;
  color: var(--color-text-secondary);
}

/* ── Section header row with CTA (home "How I Work with AI") ── */
.section__header--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Dock hides once you scroll past the hero ── */
.dock {
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}
.dock--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(18px);
  pointer-events: none;
}


/* ── Footer refinements: no nav column, no divider above copyright ── */
.footer { border-top: 1px solid var(--color-border); }
.footer__bottom {
  border-top: none !important;
  margin-top: var(--space-6);
  padding-top: 0;
}

/* ── Footer: single centered column (logo → blurb → Connect → copyright) ── */
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__brand p {
  max-width: 520px;
  margin-inline: auto;
}
.footer__social {
  justify-content: center;
}


/* ── Home folder cards: soft tinted backgrounds (lighter than the originals) ── */
.folder-card.tint-blue     { background-color: #eff6ff; }
.folder-card.tint-peach    { background-color: #fff4ea; }
.folder-card.tint-lavender { background-color: #f5f2fc; }

/* ── Work cards: same soft tints as the home stack ── */
.card--folder.tint-blue     { background-color: #eff6ff; }
.card--folder.tint-peach    { background-color: #fff4ea; }
.card--folder.tint-lavender { background-color: #f5f2fc; }
.card--folder .card__description { color: #334155; }

/* ── WCAG AA contrast fixes ─────────────────────────────────────────────
   skip-link: 3.62:1 → white on accent = 5.0:1
   tags: #0f62fe on tinted chips 4.12:1 → #0043ce = 6.4:1
   tools label: #64748b on tinted cards 4.37:1 → #475569 = 7.0:1
   nav logo: 4.47:1 on its chip → #0043ce = 6.9:1                        */
.skip-link { color: #ffffff; }
.tag, .tag--neutral { color: var(--color-accent-hover); }
.tools__label { color: #475569; }

/* ── Responsive card media ── */
@media (min-width: 1024px) {
  /* image column scales with the viewport instead of a fixed 360px */
  .card--folder.card--horizontal .card__image {
    width: clamp(260px, 34vw, 420px);
  }
}
