/* ===== SECTION 1: WORK HERO — Statement-based, spacious ===== */
.work-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--bg-base);
}

.work-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.work-hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(61, 155, 155, 0.10) 0%, transparent 65%);
  filter: blur(40px);
}

/* VISUAL MOTIF: The Path — subtle teal line */
.work-hero-path {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
}

.work-hero-path svg {
  width: 100%;
  height: 100%;
}

.work-hero-container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.work-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  padding: 6px 14px;
  background: rgba(61, 155, 155, 0.08);
  border-radius: var(--radius-button);
  border: 1px solid rgba(61, 155, 155, 0.15);
}

.work-hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Typographic Anchor: large Fraunces statement */
.work-hero-statement {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.hero-emphasis {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* Subtitle: the question that frames the work */
.work-hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 620px;
}

.work-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== SECTION 2 & 3: PROJECT SECTIONS — Alternating layouts ===== */

/* Alternating layout: two-column grid */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

/* Oakdale: story left, images right */
.project-layout-story-left {
  grid-template-areas: "story images";
}

.project-layout-story-left .project-story { grid-area: story; }
.project-layout-story-left .project-images { grid-area: images; }

/* Clean & Polish: images left, story right (reversed) */
.project-layout-image-left {
  grid-template-areas: "images story";
}

.project-layout-image-left .project-story { grid-area: story; }
.project-layout-image-left .project-images { grid-area: images; }

/* Project story column */
.project-story {
  max-width: 500px;
}

.project-category {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Typographic Anchor: project name in large Fraunces */
.project-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.project-url-line {
  margin-bottom: 36px;
}

.project-live-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(61, 155, 155, 0.3);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.project-live-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.project-live-arrow {
  transition: transform var(--transition-fast);
}

.project-live-link:hover .project-live-arrow {
  transform: translateX(3px);
}

/* Story blocks: Problem → Approach → What We Built */
.project-story-block {
  margin-bottom: 28px;
}

.project-story-block:last-child {
  margin-bottom: 0;
}

.story-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.story-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Project images column */
.project-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===== BROWSER FRAME MOTIF (Frame motif — consistent with Home) ===== */
.browser-frame {
  width: 100%;
  max-width: 720px;
  background: var(--bg-elevated);
  border-radius: 12px 12px 8px 8px;
  overflow: hidden;
  box-shadow: var(--shadow-far);
  border: 1px solid var(--border-standard);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.browser-frame:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-standard);
}

.browser-frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-quaternary);
  flex-shrink: 0;
}

.browser-frame-dot:nth-child(1) {
  background: #5a5048;
}

.browser-frame-dot:nth-child(2) {
  background: #4a5048;
}

.browser-frame-dot:nth-child(3) {
  background: #3a5050;
}

.browser-frame-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame-content {
  overflow: hidden;
  background: var(--bg-deepest);
}

.browser-frame-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile frame — phone outline */
.mobile-frame {
  width: 200px;
  flex-shrink: 0;
  border: 4px solid var(--bg-elevated);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-far);
  transition: transform var(--transition-smooth);
}

.mobile-frame:hover {
  transform: translateY(-3px);
}

.mobile-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== SECTION 4: REFLECTION — Typography-led ===== */
.reflection-container {
  max-width: 880px;
}

.reflection-statement {
  margin-bottom: 56px;
}

.reflection-statement .section-label {
  margin-bottom: 24px;
}

.reflection-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
}

.reflection-headline .text-accent {
  font-style: italic;
}

/* Reflection list */
.reflection-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 56px;
}

.reflection-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}

.reflection-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.reflection-item-anchor {
  flex-shrink: 0;
  width: 160px;
}

.reflection-item-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.reflection-item-lesson {
  flex: 1;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}

.reflection-transition {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: center;
}

/* ===== SECTION 5: CONTACT / NEXT STEP ===== */
.contact-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  border-radius: 24px;
  padding: 64px 48px;
  overflow: hidden;
  transition: border-color var(--transition-smooth);
}

.contact-wrapper:hover {
  border-color: var(--border-accent);
}

.contact-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(61, 155, 155, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content .section-label {
  justify-content: center;
}

.contact-content .section-label::before {
  display: none;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px 0 20px;
}

.contact-title .text-accent {
  font-style: italic;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-panel);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}

.contact-method:hover {
  background: rgba(61, 155, 155, 0.06);
  border-color: var(--border-accent);
  transform: translateX(4px);
  color: var(--text-primary);
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(61, 155, 155, 0.1);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-method-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-method-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Andrew attribution */
.contact-attribution {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-signature {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.contact-role {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Cross-navigation explore links */
.contact-explore {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-explore-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-explore-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.contact-explore-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

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

.contact-explore-link:hover::after {
  width: 100%;
}


/* ===== PAGE-SPECIFIC RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */

/* Tablet / smaller desktop (1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .project-layout {
    gap: 48px;
    grid-template-columns: 1fr 1fr;
  }

  .browser-frame {
    max-width: 100%;
  }

  .reflection-item {
    gap: 24px;
  }

  .reflection-item-anchor {
    width: 120px;
  }
}

/* Mobile (768px and below — nav collapse, significant editing) */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }







  /* Hero — intentionally edited for mobile */
  .work-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .work-hero-statement {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .work-hero-subtitle {
    font-size: 1.25rem;
  }

  .work-hero-cta {
    flex-direction: column;
  }

  .work-hero-cta .btn {
    width: 100%;
  }

  /* Project layouts — stack: story first, images below */
  .project-layout,
  .project-layout-story-left,
  .project-layout-image-left {
    grid-template-columns: 1fr;
    grid-template-areas: "story" "images";
    gap: 48px;
  }

  .project-story {
    max-width: 100%;
  }

  .project-name {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  /* Story blocks — shortened spacing on mobile */
  .project-story-block {
    margin-bottom: 20px;
  }

  .story-text {
    font-size: 0.95rem;
  }

  /* Images — large on mobile, not shrunk to thumbnails */
  .project-images {
    gap: 24px;
  }

  .browser-frame {
    max-width: 100%;
  }

  .mobile-frame {
    width: 180px;
  }

  /* Reflection — stack items */
  .reflection-statement {
    margin-bottom: 40px;
  }

  .reflection-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .reflection-item {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .reflection-item-anchor {
    width: auto;
  }

  .reflection-item-lesson {
    font-size: 0.95rem;
  }

  .reflection-transition {
    font-size: 1.35rem;
  }

  /* Contact — tightened */
  .contact-wrapper {
    padding: 40px 24px;
    border-radius: 16px;
  }

  .contact-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .contact-methods {
    gap: 12px;
  }

  .contact-method {
    padding: 14px 18px;
  }

  .contact-explore {
    margin-top: 28px;
    padding-top: 24px;
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small mobile (375px) */
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .work-hero-label {
    font-size: 11px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  .project-name {
    font-size: 1.5rem;
  }

  .project-story-block {
    margin-bottom: 16px;
  }

  .story-heading {
    font-size: 11px;
  }

  .story-text {
    font-size: 0.9rem;
  }

  .mobile-frame {
    width: 160px;
    border-width: 3px;
  }

  .reflection-item-name {
    font-size: 1.15rem;
  }

  .reflection-transition {
    font-size: 1.2rem;
  }

  .contact-method-icon {
    width: 40px;
    height: 40px;
  }

  .contact-method-value {
    font-size: 0.9rem;
  }
}
