/* ============================================================
   SUSANNA SMITH PORTFOLIO — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --accent: #15ABAB;
  --accent-dark: #0e8a8a;
  --accent-light: #e6f7f7;
  --dark: #0f1923;
  --heading: #1a2332;
  --body: #2d3748;
  --muted: #4a5568;
  --border: #e2e8f0;
  --bg: #f8f9fa;
  --white: #ffffff;
  --pill-bg: #edf2f7;
  --pill-text: #4a5568;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 68px;
  --max-width: 1100px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: var(--body);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--body);
  line-height: 1.75;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity .2s;
  text-decoration: none;
}

.nav-logo:hover {
  opacity: .85;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -.2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn-nav {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}

.btn-nav:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transition: left .35s cubic-bezier(.4, 0, .2, 1);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer.open {
  left: 0;
}

.mobile-drawer a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.mobile-drawer a:hover {
  color: var(--accent);
}

.mobile-drawer .btn-nav {
  margin-top: 16px;
  text-align: center;
  background: var(--accent);
  color: var(--white) !important;
  padding: 14px 24px !important;
  border-radius: 10px !important;
  border-bottom: none !important;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1050;
}

.drawer-overlay.open {
  display: block;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 171, 171, .3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Pills (non-clickable) ──────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: default;
  user-select: none;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card-image img {
  transform: none;
}

.card-body {
  padding: 24px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
}

.card-tag+.card-tag::before {
  content: " | ";
  color: var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.card-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.card-company {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--white);
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
}

/* ── Work Grid ──────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.about-skills {
  padding-top: 0;
}

.about-skills .skills-section:first-child {
  margin-top: 0;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
}

.skills-section {
  margin-top: 32px;
}

.skills-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrapper h2 {
  margin-bottom: 12px;
}

.contact-wrapper .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--heading);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 171, 171, .12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding: 16px;
  font-size: 16px;
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 171, 171, .3);
}

.contact-direct {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-direct p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color .2s;
}

.contact-links a:hover {
  color: var(--accent);
}

/* ── Case Study ─────────────────────────────────────────────── */
.case-study-hero {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color .2s;
}

.back-link:hover {
  color: var(--accent);
}

.case-study-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.case-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
}

.case-meta-item {
  font-size: 16px;
  color: var(--body);
}

.case-meta-item strong {
  color: var(--heading);
  font-weight: 600;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16/7;
  background: #e8edf2;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  margin-top: 32px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case-content {
  max-width: 780px;
  margin: 0 auto;
}

.case-section {
  margin-bottom: 64px;
}

.case-section h2 {
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--heading);
  letter-spacing: -0.02em;
}

/* Section label above h2 */
.case-section h2::before {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  content: attr(data-label);
}

.case-section p {
  margin-bottom: 14px;
}

.case-section ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-section ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-section ul li,
.case-section ol li {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.75;
}

/* Base callout */
.callout {
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.callout h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent);
}

/* Key insight callout — teal tint, stronger */
.callout-insight {
  background: #e6f7f7;
  border: 1px solid rgba(21, 171, 171, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout-insight h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e6b6b;
  margin-bottom: 10px;
}

/* Decision callout — dark, stands out */
.callout-decision {
  background: #1a2332;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-decision h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.callout-decision p,
.callout-decision li {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  line-height: 1.7;
}

/* Outcome callout — warm amber */
.callout-outcome {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout-outcome h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 10px;
}

.callout-outcome p,
.callout-outcome li {
  color: #78350f !important;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

/* Each cell stacks image then caption with consistent spacing */
.image-grid>div {
  display: flex;
  flex-direction: column;
}

/* The image wrapper — no padding, no dashed border when a real image is present */
.image-placeholder {
  width: 100%;
  background: #f0f3f6;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: block;
  position: relative;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  line-height: 0;
  /* collapse any inline gap */
}

.image-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

/* Image sizes itself naturally — full width, auto height, no blank space */
.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ── Tall images: cap height, scroll inside, click for full view ── */
.image-placeholder.img-tall {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: ns-resize;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .15) transparent;
}

.image-placeholder.img-tall::-webkit-scrollbar {
  width: 4px;
}

.image-placeholder.img-tall::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .2);
  border-radius: 4px;
}

/* Caption sits 10px below the image, never negative-margined */
.image-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Mobile app screen strip ─────────────────────────────────
   Horizontal scrolling row of phone screenshots.
   Images show at natural narrow width, capped height.
   Feels like a proper mobile showcase, not a stretched mess.
──────────────────────────────────────────────────────────── */
.mobile-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 4px 16px;
  margin: 24px 0 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* subtle inset shadow to hint at scroll */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

.mobile-strip::-webkit-scrollbar {
  height: 4px;
}

.mobile-strip::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.mobile-strip-img {
  flex-shrink: 0;
  height: 520px;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: block;
}

.mobile-strip-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

/* Caption below the strip */
.mobile-strip-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.skills-highlighted h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.case-nav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--white);
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-icons {
  display: flex;
  gap: 16px;
}

.footer-icons a {
  color: var(--muted);
  transition: color .2s;
}

.footer-icons a:hover {
  color: var(--accent);
}

/* ── Lightbox ───────────────────────────────────────────────── */

/* Clickable image cursor + hover hint */
.lb-trigger {
  cursor: zoom-in;
  position: relative;
}

/* Overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  animation: lbFadeIn .25s ease;
}

/* Content box */
.lb-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lbSlideIn .28s ease;
}

/* Image wrapper — fits viewport; tall-mode overrides to scroll */
.lb-img-wrap {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tall image mode — scroll vertically through the full image */
.lb-img-wrap.lb-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.lb-img-wrap.lb-scroll::-webkit-scrollbar {
  width: 5px;
}

.lb-img-wrap.lb-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .3);
  border-radius: 4px;
}

.lb-img {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* In scroll mode, image renders at full natural height */
.lb-img-wrap.lb-scroll .lb-img {
  max-height: none;
  height: auto;
}

.lb-caption {
  color: #ffffff;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  margin: 0;
  max-width: 680px;
  background: rgba(0, 0, 0, .55);
  padding: 10px 20px;
  border-radius: 6px;
  line-height: 1.5;
}

/* Close button — hidden by default, shown only inside an open lightbox */
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
}

#lightbox.open .lb-close,
#dash-lightbox.open .lb-close,
#step3-lightbox.open .lb-close,
#tcp-lightbox.open .lb-close,
#wf-lightbox.open .lb-close {
  display: flex;
}

.lb-close:hover {
  background: rgba(255, 255, 255, .25);
}

/* Prev / Next arrows */
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .12);
  border: none;
  color: white;
  font-size: 36px;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
  line-height: 1;
}

#lightbox.open .lb-prev,
#lightbox.open .lb-next {
  display: flex;
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, .25);
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lbSlideIn {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Animations ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .case-meta {
    gap: 16px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ── Competitor Analysis ─────────────────────────────── */
.competitor-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.competitor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  border-left: 4px solid var(--accent);
}

.competitor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.competitor-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.competitor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 2px;
}

.competitor-segment {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.competitor-desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.competitor-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.comp-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.comp-strength {
  color: #38a169;
}

.comp-gap {
  color: #e53e3e;
}

.competitor-card ul {
  padding-left: 18px;
  margin: 0;
}

.competitor-card ul li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 10px;
}

.competitor-takeaway {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-top: 16px;
}

.competitor-takeaway strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
  letter-spacing: .1px;
}

.competitor-takeaway span,
.competitor-takeaway>*:not(strong) {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  display: block;
}

@media (max-width: 700px) {
  .competitor-cols {
    grid-template-columns: 1fr;
  }

  .competitor-card {
    padding: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE — heading row + Making Things anchor
══════════════════════════════════════════════════════════════ */

/* "About Me" heading + "Making Things ↓" link side by side */
.about-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* The anchor link that scrolls to Making Things */
.mt-anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: var(--accent-light);
  border: 1.5px solid rgba(21, 171, 171, .3);
  padding: 8px 16px;
  border-radius: 100px;
  transition: background .2s, border-color .2s, gap .2s;
  white-space: nowrap;
}

.mt-anchor-link svg {
  animation: anchorBounce 2s ease-in-out infinite;
  flex-shrink: 0;
}

.mt-anchor-link:hover {
  background: rgba(21, 171, 171, .14);
  border-color: rgba(21, 171, 171, .5);
  gap: 11px;
}

@keyframes anchorBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ══════════════════════════════════════════════════════════════
   MAKING THINGS — hobbies section
══════════════════════════════════════════════════════════════ */
.making-things-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 50px;
}

.mt-header {
  margin-bottom: 48px;
}

.mt-header-text {
  max-width: 780px;
}

.mt-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.mt-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.mt-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  max-width: 780px;
}

/* 3-column grid of category cards */
.mt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mt-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Square photo frame */
.mt-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.mt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

/* Cards with photos get a pointer + hover effect */
.mt-has-photo .mt-photo {
  cursor: pointer;
}

.mt-has-photo .mt-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  border-color: var(--accent);
}

.mt-has-photo .mt-photo:hover img {
  transform: scale(1.04);
}

/* Expand icon badge — always visible on cards with photos */
.mt-expand-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.mt-has-photo .mt-photo .mt-expand-hint {
  opacity: .8;
}

.mt-has-photo .mt-photo:hover .mt-expand-hint {
  opacity: 1;
}

/* Placeholder state */
.mt-placeholder {
  background: #f0f7f7;
  border: 2px dashed rgba(21, 171, 171, .3);
  cursor: default;
}

.mt-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  opacity: .5;
}

.mt-placeholder-inner span {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}

.mt-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
  letter-spacing: -.1px;
}

/* ══════════════════════════════════════════════════════════════
   HOBBY GALLERY LIGHTBOX
   Opens when clicking a card that has data-gallery photos.
══════════════════════════════════════════════════════════════ */
#hobby-gallery {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

#hobby-gallery.hg-open {
  opacity: 1;
  pointer-events: all;
}

/* Dark backdrop */
.hg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, .92);
  cursor: pointer;
}

/* Main panel */
.hg-panel {
  position: relative;
  z-index: 1;
  background: #111820;
  border-radius: 16px;
  width: min(96vw, 1200px);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .25s;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}

#hobby-gallery.hg-open .hg-panel {
  transform: none;
}

/* Header bar */
.hg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.hg-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.2px;
}

.hg-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .5px;
}

.hg-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255, 255, 255, .85);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.hg-close:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Big image area */
.hg-main {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #111820;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hg-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}

.hg-img.hg-loading {
  opacity: 0;
}

/* Prev / Next arrows */
.hg-prev,
.hg-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  transition: background .2s;
  z-index: 2;
}

.hg-prev {
  left: 18px;
}

.hg-next {
  right: 18px;
}

.hg-prev:hover,
.hg-next:hover {
  background: rgba(255, 255, 255, .28);
}

.hg-prev[hidden],
.hg-next[hidden] {
  display: none;
}

/* Caption */
.hg-caption {
  padding: 12px 24px 4px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
  min-height: 36px;
  flex-shrink: 0;
  text-align: center;
}

/* Thumbnail strip */
.hg-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px 18px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.hg-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
  opacity: .45;
}

.hg-thumb.hg-thumb-active {
  border-color: var(--accent);
  opacity: 1;
}

.hg-thumb:hover {
  opacity: .8;
}

.hg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 720px) {
  .mt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hg-panel {
    width: 96vw;
    border-radius: 14px;
  }

  .hg-img {
    max-height: 42vh;
  }
}

@media (max-width: 480px) {
  .mt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .making-things-section {
    padding: 64px 0;
  }
}

/* ── Phone scroll mockup ─────────────────────────────────── */
.phone-mockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px 0 40px;
}

.phone-mockup {
  position: relative;
  width: 260px;
}

.phone-mockup::before {
  content: '';
  display: block;
  padding-top: calc(2000 / 1038 * 100%);
}

.phone-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  top: 8.75%;
  left: 10.02%;
  width: 79.87%;
  height: 85.95%;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
  background: #fff;
}

.phone-scroll-content {
  width: 100%;
  display: block;
  animation: phoneScroll 16s ease-in-out infinite;
}

@keyframes phoneScroll {
  0% {
    transform: translateY(0);
  }

  8% {
    transform: translateY(0);
  }

  88% {
    transform: translateY(-86.21%);
  }

  96% {
    transform: translateY(-86.21%);
  }

  100% {
    transform: translateY(0);
  }
}

/* Impact list — Option D badge style */
/* Impact list — Option D badge style */
.impact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;

  /* adjust this once based on your longest badge */
  --badge-col-width: 110px;
}

.impact-row {
  display: grid;
  grid-template-columns: var(--badge-col-width) 1fr;
  align-items: start;
  gap: 10px;
}

.impact-badge {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;

  /* ensures badge doesn't stretch */
  justify-self: start;
}

.impact-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.9;
  margin: 0;
}

.constraints-container {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 0;
  max-width: 600px;
  font-family: 'Open Sans', sans-serif;
  color: #1f2937;
  /* text color applied here for container */
  align-items: center;
}

.constraints-label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f2937;
  /* updated from slate gray to dark slate */
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  height: 100%;
}

.constraints-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.constraint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: #1f2937;
  /* make sure individual rows have the same text color */
}

.icon {
  width: 18px;
  height: 18px;
  stroke: #bb5500;
  /* warm amber icon color remains */
  flex-shrink: 0;
}
/* ── Connect / CTA section (shared across all pages) ───────── */
.connect-section {
  background: var(--dark);
  padding: 50px 0;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}
.connect-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(21,171,171,.12) 0%, transparent 70%);
  pointer-events: none;
}
.connect-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.cta-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: block;
}
.connect-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800; color: #fff;
  letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 12px;
}
.connect-sub {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
}
.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.btn-connect-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 15px 36px; border-radius: 100px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(21,171,171,.4);
}
.btn-connect-primary:hover { background: #0e8a8a; transform: translateY(-2px); }
.btn-connect-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(255,255,255,.7);
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: 100px;
  border: 2px solid rgba(255,255,255,.2);
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-connect-ghost:hover { border-color: rgba(255,255,255,.55); color: #fff; }
@media (max-width: 820px) {
  .connect-inner { grid-template-columns: 1fr; gap: 32px; }
  .connect-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .connect-actions { flex-direction: column; width: 100%; }
  .btn-connect-primary, .btn-connect-ghost { width: 100%; }
}

/* Non-expandable image container for work-02 */
.image-static {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: block;
  position: relative;
  cursor: default;
  line-height: 0;
}
.image-static img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
