/* ═══════════════════════════════════════════════════════
   ABOUT · CONTACT · FOOTER
   Depends on: tokens.css, base.css
   NOTE: Work item (.work-item) styles live in work-page.css
   ═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   WORK SECTION — scroll track layout only
   (card styles are in work-page.css)
   ══════════════════════════════════════════════════════ */
.work {
  background: var(--bg-work);
  overflow: hidden;
}

.work__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}

.work__header { flex: 1; min-width: 200px; }

/* Horizontal scroll track */
.work__scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 2rem;
}
.work__scroll-wrap::-webkit-scrollbar { display: none; }
.work__scroll-wrap.is-dragging        { cursor: grabbing; }

.work__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  width: max-content;
  padding-inline: var(--gutter);
}

/* ══════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════ */
.about {
  background: var(--bg-about);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

@media (max-width: 768px) {
  .about__inner { grid-template-columns: 1fr; }
}

/* Subtle frosted backing — softens geo shapes behind the bio text.
   Two intersecting linear gradients create a 4-sided feathered edge
   that fades ONLY within the 40px padding zone — text stays fully opaque.
   mask-composite: intersect (standard) / source-in (WebKit) = per-axis multiply */
.about__text {
  background: rgba(22, 26, 34, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 40px;
  padding: 2.5rem;
  margin: -2.5rem;
  mask-image:
    linear-gradient(to right,  transparent 0px, black 40px, black calc(100% - 40px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0px, black 40px, black calc(100% - 40px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-composite: source-in;
}
[data-theme="light"] .about__text {
  background: rgba(236, 234, 223, 0.78);
}

.about__text p {
  color: var(--text-muted);
  font-size: 1.025rem;
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about__text p:last-child { margin-bottom: 0; }

.about__tools {
  padding-top: clamp(12px, 2vw, 24px);
}

.about__tools-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.tools-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tools-list li {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(196, 149, 106, 0.18);
  border-radius: 2px;
  background: rgba(196, 149, 106, 0.04);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: default;
}
.tools-list li:hover {
  color: var(--text);
  border-color: rgba(196, 149, 106, 0.45);
  background: rgba(196, 149, 106, 0.08);
}

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.contact {
  background: var(--bg-contact);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Violet glow blob */
.contact::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(155,123,181,0.1) 0%, rgba(90,70,140,0.05) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.contact .section-label { color: var(--c-music); }

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.contact__sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--c-music);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s;
  margin-bottom: 3.5rem;
}
.contact__email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-music), transparent);
  opacity: 0.4;
  transition: opacity 0.3s;
}
.contact__email:hover       { color: var(--text); }
.contact__email:hover::after { opacity: 0.7; }

.contact__social {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
}
.contact__social a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.contact__social a:hover { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 52px);
  padding-inline: var(--gutter);
  position: relative;
  background: var(--bg-contact);
}

/* Top divider */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196, 149, 106, 0.2) 30%,
    rgba(196, 149, 106, 0.2) 70%,
    transparent 100%
  );
}

.footer__inner {
  max-width: var(--content-w);
  margin-inline: auto;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}

.footer__wordmark {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--accent);
  padding-bottom: 0.2em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer__back {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer__back:hover { color: var(--accent); }

/* ── Light mode overrides — Terracotta Studio ─────────── */
/* work-item light mode is in work-page.css */

/* Contact blob → warm clay instead of dark violet */
[data-theme="light"] .contact::before {
  background: radial-gradient(circle,
    rgba(198,123,92,0.08) 0%,
    rgba(140,69,53,0.04) 40%,
    transparent 70%);
}

[data-theme="light"] .tools-list li {
  border-color: rgba(124,85,53,0.16);
  background: rgba(124,85,53,0.04);
}
[data-theme="light"] .tools-list li:hover {
  border-color: rgba(124,85,53,0.36);
  background: rgba(124,85,53,0.07);
}
[data-theme="light"] .footer__bottom {
  border-top-color: rgba(124,85,53,0.10);
}
