/* ===========================================================
   Philip Lowe — portfolio site
   Shared stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #14161a;
  --paper: #faf9f6;
  --line: #e2e3e2;
  --muted: #6b6d70;
  --accent: #ff5a1f;       /* pop orange — used for all highlights */
  --accent-blue: #ff5a1f;  /* alias kept for existing rules — same orange, no blue */
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header / nav ---------- */

header {
  padding: 28px 0 0;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
}

.wordmark {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav a {
  text-decoration: none;
  margin-left: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color .15s ease;
}

nav a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ---------- hero ---------- */

.hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
  margin: 0 0 22px;
  max-width: 820px;
}

.hero h1 a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hero .location {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 26px;
}

.hero p.sub {
  max-width: 620px;
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.hero p.sub .placeholder-text {
  background: #fff2cc;
  padding: 0 3px;
}

/* ---------- section labels ---------- */

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin: 70px 0 34px;
}

/* ---------- work flyover cards ---------- */

.case {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.case:first-of-type { padding-top: 0; }

.case .meta {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  padding-top: 2px;
}

.case .meta .role {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.case .body p {
  margin: 0 0 16px;
  max-width: 640px;
}

.case .read-more {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .15s ease;
}

.case .read-more:hover { color: var(--accent-blue); }

.case .read-more.disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
  pointer-events: none;
}

/* ---------- placeholder media block ---------- */

.placeholder-media {
  margin-top: 22px;
  border: 1.5px dashed #f5c2a8;
  background: repeating-linear-gradient(
    135deg, rgba(255,90,31,0.045), rgba(255,90,31,0.045) 10px,
    transparent 10px, transparent 20px
  );
  border-radius: 6px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.placeholder-media span {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.02em;
}

.placeholder-media.video::before {
  content: "▶";
  display: block;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}

.placeholder-media.wide { min-height: 320px; }
.placeholder-media.short { min-height: 140px; }

/* ---------- selected work (lighter grid) ---------- */

.selected-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 20px;
}

.selected-item h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  margin: 16px 0 6px;
}

.selected-item .credit {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.selected-item p.blurb {
  font-size: 14px;
  margin: 0;
  color: var(--ink);
}

.selected-item .placeholder-media {
  min-height: 160px;
}

/* keep image, video, and embed tiles the same height within Selected Work */
.selected-item .cs-hero-media,
.selected-item .video-embed {
  aspect-ratio: 4 / 3;
  height: auto;
  padding-top: 0;
  overflow: hidden;
  border-radius: 6px;
}

.selected-item .cs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-item .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* fast auto-cycling slideshow for gallery-style Selected Work tiles */
.tile-slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.tile-slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.tile-slideshow img.active {
  opacity: 1;
}

@media (max-width: 900px) {
  .selected-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .selected-grid { grid-template-columns: 1fr; }
}

/* ---------- capabilities / how I work ---------- */

.capabilities p {
  max-width: 720px;
  font-size: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
}

/* ---------- featured / recognition ---------- */

.recognition {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.recognition .row {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 19px;
  color: var(--muted);
  max-width: 780px;
}

/* ---------- say hello ---------- */

.hello {
  padding: 70px 0 60px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
}

.hello h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.3;
  margin: 0 0 16px;
  max-width: 640px;
}

.hello h2 a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hello .aside {
  font-size: 14px;
  color: var(--muted);
}

.hello .portrait {
  border-radius: 6px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hello .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hello .portrait span {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 0 16px;
}

/* ---------- footer ---------- */

footer {
  padding: 28px 0 50px;
  font-size: 13px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { text-decoration: underline; }

/* ---------- case study page ---------- */

.cs-header {
  padding: 100px 0 40px;
  border-bottom: 1px solid var(--line);
}

.cs-back {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 30px;
}

.cs-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 800px;
}

.cs-header .tags {
  font-size: 14px;
  color: var(--muted);
}

.cs-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.cs-section:last-of-type { border-bottom: none; }

.cs-section h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.cs-section .content p {
  margin: 0 0 16px;
  max-width: 680px;
}

.cs-section .content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.cs-section .content li {
  margin-bottom: 8px;
  max-width: 640px;
}

.stat-row {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stat {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--accent);
}

.stat:nth-child(even) { color: var(--accent-blue); }

.stat small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- case study hero media (real images) ---------- */

.cs-hero-media {
  margin-top: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.cs-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* reserve a consistent hero-band height for video heroes so they don't render undersized while loading */
.cs-header .video-native.hero-spot video,
.cs-header .loop-video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.loop-video {
  margin-top: 22px;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.loop-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- campaign photography grid ---------- */

.photo-set {
  margin-top: 26px;
}

.photo-set .set-label,
.content .set-label {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- app mockup triptych ---------- */

.app-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.app-triptych img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .app-triptych { grid-template-columns: 1fr; }
}

/* ---------- real video embed ---------- */

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed + .video-caption,
.video-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.video-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

.video-pair .video-embed { margin-top: 0; }

.video-native {
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.video-native.hero-spot {
  margin-top: 28px;
}

.video-native video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .video-pair { grid-template-columns: 1fr; }
}

/* ---------- vertical social video grid ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.social-grid .video-native video,
.social-grid .loop-video video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.social-grid .loop-video {
  margin-top: 0;
}

.social-grid .video-caption {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- press quote ---------- */

blockquote.press {
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}

blockquote.press cite {
  display: block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- placeholder text highlight ---------- */

.fill-me {
  background: #fff2cc;
  padding: 0 3px;
  border-radius: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .case, .hello, .cs-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  nav a { margin-left: 16px; }
  .hero { padding: 60px 0 40px; }
  .cs-header { padding: 70px 0 30px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .wordmark { font-size: 17px; }
  nav a { margin-left: 12px; font-size: 12px; }
  .stat-row { gap: 28px; }
  .selected-grid { gap: 22px; }
  .hero h1, .cs-header h1 { max-width: 100%; }
}
