/* Portfolio site layout — uses tokens from colors_and_type.css */

.page-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: var(--sp-16) 0 var(--sp-12);
}
.page-hero h1 {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: var(--sp-4);
}
.page-hero h1 .blue { color: var(--tl-blue); }
.page-hero .lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 680px; margin: 0; color: var(--fg-body); }

.pf-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(closest-side, rgba(12,155,255,0.22), rgba(12,155,255,0) 70%) right -120px top -180px / 640px 640px no-repeat,
    linear-gradient(180deg, #08121F 0%, #0E1B2C 100%);
  color: #fff;
  padding: var(--sp-20) 0 var(--sp-16);
}
.pf-hero h1 {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  max-width: 820px;
  margin-bottom: var(--sp-5);
}
.pf-hero h1 .blue { color: var(--tl-blue); }
.pf-hero .lead { color: #C7D2DF; max-width: 620px; font-size: 18px; line-height: 1.6; margin-bottom: var(--sp-8); }
.pf-hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.pf-meta { margin-top: var(--sp-8); font-size: 13px; color: #8EA0B5; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat-row .card { padding: var(--sp-6) var(--sp-6); }
.stat-row b {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: 34px;
  line-height: 1;
  color: var(--tl-blue);
  margin-bottom: 6px;
}
.stat-row span { font-size: var(--fs-sm); color: var(--fg-muted); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.cat {
  display: flex; flex-direction: column; gap: 8px;
  padding: var(--sp-6);
  text-decoration: none !important;
  color: inherit;
  min-height: 220px;
}
.cat .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tl-blue);
  font-weight: var(--w-semibold);
}
.cat h3 { font-family: var(--font-display); font-size: 17px; margin: 0; color: var(--fg); }
.cat p { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); margin: 0; flex: 1; }
.cat .go { font-family: var(--font-display); font-weight: var(--w-semibold); font-size: 13px; color: var(--tl-blue); }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.case { padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-3); }
.kicker {
  font-family: var(--font-body);
  font-weight: var(--w-bold);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 8px;
}
.link {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 14px;
  color: var(--tl-blue);
  text-decoration: none;
}
.case .kicker { margin: 0; }
.case h3 { font-family: var(--font-display); font-weight: var(--w-bold); font-size: 24px; margin: 0; color: var(--fg); }
.case p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.metrics { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-2); }
.metrics div b { display: block; font-family: var(--font-display); font-weight: var(--w-black); font-size: 26px; color: var(--tl-blue); line-height: 1; }
.metrics div span { font-size: 12.5px; color: var(--fg-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.pills li, .chip {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: var(--w-medium);
  color: var(--ink-700);
  background: var(--ink-100);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.case .link {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 14px;
  color: var(--tl-blue);
  text-decoration: none;
}

.product-mini { display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-5); align-items: center; padding: var(--sp-5); text-decoration: none !important; color: inherit; }
.product-mini img { width: 140px; height: 96px; object-fit: cover; object-position: top left; border-radius: var(--r-md); border: 1px solid var(--ink-200); }
.product-mini h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.product-mini p { margin: 0; font-size: var(--fs-sm); color: var(--fg-muted); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.quote { padding: var(--sp-6); }
.quote .stars { color: var(--tl-blue); letter-spacing: 2px; font-size: 13px; margin-bottom: var(--sp-3); }
.quote p { font-size: 15px; line-height: 1.6; margin: 0 0 var(--sp-4); }
.quote cite { font-style: normal; font-size: 13px; color: var(--fg-muted); }
.quote cite b { display: block; color: var(--fg); font-family: var(--font-display); font-style: normal; }

.cta-box { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-box h2 {
  font-family: var(--font-brand);
  font-weight: var(--w-semibold);
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: var(--sp-4);
}
.cta-box .lead { font-size: var(--fs-lead); margin-bottom: var(--sp-8); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); align-items: start; }
.prose p { font-size: 17px; line-height: 1.7; }

.anchor-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-6); }
.anchor-nav a {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 8px 14px;
}
.anchor-nav a:hover { border-color: var(--tl-blue); color: var(--tl-blue); }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 0 0 var(--sp-3);
}

.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.svc { padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-3); }
.svc h3 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.svc p { margin: 0; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc li { display: flex; gap: 8px; font-size: var(--fs-sm); line-height: 1.45; }
.svc li .lucide { width: 16px; height: 16px; color: var(--tl-blue); flex-shrink: 0; margin-top: 2px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

.shot-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-10); align-items: center; }
.shot-row img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--ink-200); box-shadow: var(--sh-md); }
.shot-row.flip .media { order: 2; }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .stat-row, .work-grid, .svc-grid, .split, .shot-row, .bento, .feature, .feature.flip { grid-template-columns: 1fr; }
  .shot-row.flip .media { order: 0; }
  .product-mini { grid-template-columns: 1fr; }
  .cat { min-height: 0; }
  .bento a:first-child { grid-column: auto; grid-row: auto; }
  .photo-hero { min-height: 78vh; }
}

/* ---------- Photo hero ---------- */
.photo-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #08121F;
}
.photo-hero img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.photo-hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,18,31,0.92) 0%, rgba(8,18,31,0.55) 48%, rgba(8,18,31,0.25) 100%),
    linear-gradient(180deg, rgba(8,18,31,0.15) 0%, rgba(8,18,31,0.72) 100%);
}
.photo-hero .container { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 140px; }
.photo-hero h1 {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 0.96;
  color: #fff;
  max-width: 760px;
  margin: 0 0 18px;
}
.photo-hero h1 .blue { color: #5EC4FF; }
.photo-hero .lead { color: #D5E2EE; max-width: 520px; font-size: 18px; line-height: 1.55; }
.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stats b { display: block; font-family: var(--font-display); font-size: 28px; color: #fff; line-height: 1; }
.hero-stats span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #F2C14E; }

.marquee {
  background: #0C9BFF;
  color: #08121F;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.marquee-track { display: inline-block; padding: 12px 0; animation: tick 28s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee span { margin: 0 18px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.bento a {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  background: #08121F;
}
.bento a:first-child { grid-row: span 2; min-height: 460px; }
.bento img.art {
  position: absolute; right: -8px; top: -8px;
  width: 168px; height: 168px;
  border-radius: 0 22px 0 40px;
}
.bento a:first-child img.art { width: 240px; height: 240px; }
.bento .num { font-family: var(--font-mono); color: #F2C14E; font-size: 12px; letter-spacing: 0.14em; }
.bento h3 { font-family: var(--font-display); font-size: 26px; margin: 8px 0 6px; position: relative; max-width: 220px; }
.bento a:first-child h3 { font-size: 40px; max-width: 280px; }
.bento p { margin: 0; color: #B7C6D6; font-size: 14.5px; max-width: 240px; position: relative; }

.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #08121F;
  color: #D5E2EE;
  margin-bottom: 18px;
}
.feature.flip { grid-template-columns: 0.85fr 1.15fr; }
.feature.flip .feature-copy { order: 2; }
.feature img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.feature-copy { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-copy h3 { color: #fff; font-family: var(--font-display); font-size: 32px; margin: 6px 0 10px; }
.feature .metrics div b { color: #5EC4FF; }
.feature .link { color: #7DD3FF; }

.art-ico { width: 72px; height: 72px; border-radius: 18px; display: block; }
.svc .art-ico { margin-bottom: 4px; }
