/* ============================================================
   TaleNScale — Sub-page styles (Portfolio · About · Contact)
   Loaded alongside styles.css. Same tokens & vocabulary.
   ============================================================ */

/* active nav state */
.nav-links a.active { color: var(--purple); background: var(--purple-tint); }

/* ---------- Generic sub-page header ---------- */
.page-hero { position: relative; padding: 78px 0 56px; overflow: hidden; }
.page-hero .hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 84% 0%, rgba(242,183,5,.16), transparent 60%),
    radial-gradient(50% 60% at 6% 12%, rgba(109,59,204,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-lav), var(--bg) 78%);
}
.page-hero .wrap { max-width: 880px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em;
}
.page-hero p.lede { margin-top: 22px; max-width: 620px; }
.page-hero .crumb { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero .crumb a:hover { color: var(--purple); }

/* ============================================================
   PORTFOLIO / WORK
   ============================================================ */
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.work-chip {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  background: #fff; transition: all .2s var(--ease);
}
.work-chip:hover { border-color: var(--purple); color: var(--purple); }
.work-chip.active { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 10px 22px -12px rgba(109,59,204,.6); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-tint); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-media .cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple-deep); background: rgba(255,255,255,.92);
  padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.work-body .desc { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; flex: 1; }
.work-metrics { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.work-metrics .m .v { font-weight: 800; font-size: 21px; color: var(--purple); letter-spacing: -.02em; line-height: 1; }
.work-metrics .m:nth-child(2) .v { color: var(--gold-deep); }
.work-metrics .m .l { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 5px; }

/* swap hint for the user (only visible on hover, gentle) */
.work-media .swap-hint {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgba(78,34,166,.42); color: #fff; opacity: 0; transition: opacity .3s var(--ease);
  font-size: 13px; font-weight: 700; letter-spacing: .03em; text-align: center; padding: 16px;
}
.work-media .swap-hint span { background: rgba(255,255,255,.16); border: 1px dashed rgba(255,255,255,.6); padding: 10px 16px; border-radius: 12px; backdrop-filter: blur(2px); }
.work-card:hover .work-media .swap-hint { opacity: 1; }

/* portfolio CTA band */
.work-cta { text-align: center; margin-top: 60px; }

/* ============================================================
   FEATURED WORK (home teaser strip)
   ============================================================ */
.feat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.feat-head .section-title { max-width: 620px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--purple); white-space: nowrap; transition: gap .2s var(--ease); }
.feat-link:hover { gap: 13px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-lead { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-lead .about-portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--purple-tint);
}
.about-lead .about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-lead h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem,3.4vw,2.8rem); line-height: 1.08; margin-bottom: 20px; }
.about-lead p { color: var(--ink-2); margin-bottom: 16px; font-size: 1.06rem; }
.about-sign { font-family: var(--font-script); font-size: 1.9rem; color: var(--purple); margin-top: 8px; }
.about-sign + span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* values */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; margin-bottom: 18px; }
.value-card:nth-child(even) .ic { background: var(--gold-soft); color: var(--gold-deep); }
.value-card .ic svg { width: 25px; height: 25px; }
.value-card h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* timeline */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--purple), var(--gold)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 0 0 4px var(--bg-lav); }
.tl-item:last-child::before { border-color: var(--gold-deep); }
.tl-item .yr { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--purple); line-height: 1; margin-bottom: 6px; }
.tl-item h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.tl-item p { font-size: 15px; color: var(--muted); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card { text-align: center; }
.team-card .av { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--purple-soft), var(--gold-soft)); border: 1px solid var(--line); margin-bottom: 16px; display: grid; place-items: center; }
.team-card .av img { width: 100%; height: 100%; object-fit: cover; }
.team-card .av .initials { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; color: var(--purple); }
.team-card h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; }
.team-card .role { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; }
.info-card.wa .ic { background: #E4F8EC; color: var(--wa-deep); }
.info-card.gold .ic { background: var(--gold-soft); color: var(--gold-deep); }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: 15px; color: var(--muted); }
.info-card a { font-weight: 600; color: var(--ink-2); }
.info-card a:hover { color: var(--purple); }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; }
.contact-form-card h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.9rem; margin-bottom: 6px; }
.contact-form-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 15.5px; }

.map-ph { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; position: relative; background:
  repeating-linear-gradient(45deg, var(--purple-tint), var(--purple-tint) 12px, #fff 12px, #fff 24px); }
.map-ph .pin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--purple-deep); font-weight: 700; }
.map-ph .pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 6px rgba(109,59,204,.18); }
.map-ph .pin span { background: #fff; padding: 6px 14px; border-radius: 100px; font-size: 14px; box-shadow: var(--shadow-sm); }

/* ============================================================
   CASE STUDY (work inner page)
   ============================================================ */
.cs-hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.cs-hero .hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 88% 0%, rgba(242,183,5,.16), transparent 60%),
    radial-gradient(46% 56% at 4% 8%, rgba(109,59,204,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-lav), var(--bg) 86%);
}
.cs-top { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 820px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cs-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--purple-deep); background: var(--purple-soft); padding: 7px 14px; border-radius: 100px; }
.cs-tag.gold { color: var(--gold-deep); background: var(--gold-soft); }
.cs-hero h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
.cs-hero .tagline { margin-top: 18px; font-size: 1.18rem; color: var(--ink-2); max-width: 600px; }

/* hero cover */
.cs-cover { margin-top: 48px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; position: relative; aspect-ratio: 16 / 8; border: 1px solid var(--line); border-bottom: none; box-shadow: var(--shadow-lg); }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }

/* quick facts bar */
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--purple-deep); color: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.cs-fact { padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.cs-fact:last-child { border-right: none; }
.cs-fact .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 7px; }
.cs-fact .v { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }

/* body layout */
.cs-body { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.cs-main h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem,3vw,2.3rem); margin: 0 0 16px; line-height: 1.1; }
.cs-main h2:not(:first-child) { margin-top: 48px; }
.cs-main p { color: var(--ink-2); font-size: 1.07rem; line-height: 1.7; margin-bottom: 18px; }
.cs-main ul { list-style: none; margin: 8px 0 18px; display: grid; gap: 12px; }
.cs-main ul li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; }
.cs-main ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236D3BCC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* sticky side card */
.cs-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.cs-result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.cs-result-card h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.cs-result { padding: 16px 0; border-top: 1px dashed var(--line); }
.cs-result:first-of-type { border-top: none; padding-top: 0; }
.cs-result .big { font-family: var(--font-sans); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--purple); }
.cs-result:nth-of-type(2) .big { color: var(--gold-deep); }
.cs-result:nth-of-type(3) .big { color: var(--wa-deep); }
.cs-result .lab { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.cs-cta-card { background: linear-gradient(160deg, var(--purple), var(--purple-deep)); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.cs-cta-card p { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; margin-bottom: 18px; }

/* gallery */
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cs-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; background: var(--purple-tint); }
.cs-shot.tall { grid-row: span 2; }
.cs-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-shot .swap-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(78,34,166,.42); opacity: 0; transition: opacity .3s var(--ease); }
.cs-shot .swap-hint span { background: rgba(255,255,255,.16); border: 1px dashed rgba(255,255,255,.6); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(2px); }
.cs-shot:hover .swap-hint { opacity: 1; }

/* big pull quote */
.cs-quote { text-align: center; max-width: 820px; margin: 0 auto; }
.cs-quote blockquote { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.28; color: var(--ink); letter-spacing: -.01em; }
.cs-quote blockquote .mark { color: var(--gold); }
.cs-quote .by { margin-top: 24px; font-weight: 700; color: var(--purple); }
.cs-quote .by span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* next project */
.cs-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--bg-cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 44px; }
.cs-next .lbl { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cs-next h3 { font-family: var(--font-serif); font-weight: 600; font-size: 2rem; line-height: 1; }
.cs-next .arrow { width: 58px; height: 58px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .25s var(--ease); }
.cs-next:hover .arrow { transform: translateX(6px); }

@media (max-width: 980px) {
  .cs-body { grid-template-columns: 1fr; gap: 40px; }
  .cs-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .cs-aside > * { flex: 1; min-width: 240px; }
  .cs-facts { grid-template-columns: repeat(2, 1fr); }
  .cs-fact:nth-child(2) { border-right: none; }
  .cs-fact:nth-child(1), .cs-fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .work-grid, .feat-grid, .values-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .about-lead { grid-template-columns: 1fr; gap: 36px; }
  .about-lead .about-portrait { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .work-grid, .feat-grid, .values-grid { grid-template-columns: 1fr; }
  .work-metrics { gap: 16px; }
  .contact-form-card { padding: 28px 22px; }
  .feat-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-shot.tall { grid-row: span 1; }
  .cs-facts { grid-template-columns: 1fr; }
  .cs-fact { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cs-fact:last-child { border-bottom: none; }
  .cs-next { padding: 28px 26px; }
}
