/* ===================================================
   hmm.art — styles.css
   Shared across all pages. No frameworks, no build tools.
=================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg:                  #e7e7e7;
  --text:                #333333;
  --nav-text:            #222222;
  --accent-purple:       #8146ce;
  --accent-purple-light: #c098e7;
  --accent-green:        #dae9a0;
  --accent-yellow:       #e3f172;
  --footer-bg:           #000000;
  --footer-text:         #c9c9c9;
  --project-intro-bg:    #ececec;
  --border:              0.5px solid #000000;
  --border-light:        0.5px solid #333333;
  --font-sans:           'Manrope', sans-serif;
  --font-mono:           'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===================================================
   NAVIGATION
=================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: var(--border);
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(231, 231, 231, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--nav-text);
}

.nav-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--nav-text);
  text-align: center;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--nav-text);
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ===================================================
   FOOTER
=================================================== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 40px 40px;
}

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

.footer-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--footer-text);
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--footer-text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--footer-text);
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.footer-email:hover { opacity: 0.7; }

.footer-nav-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--footer-text);
  margin-bottom: 16px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--footer-text);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-nav-links a:hover { opacity: 1; }

.footer-bottom {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--footer-text);
  opacity: 0.5;
  margin-bottom: 12px;
}

.footer-back-top {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--footer-text);
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-back-top:hover { opacity: 1; }

.footer-linkedin {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--footer-text);
  opacity: 0.7;
  transition: opacity 0.2s ease;
  display: block;
  margin-top: 8px;
}

.footer-linkedin:hover { opacity: 1; }

/* ===================================================
   SHARED SECTION COMPONENTS
=================================================== */

.section-header {
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 20px;
  border-bottom: var(--border);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.6;
}

.paragraph-header {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.large-paragraph {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 32px;
}

.link-arrow {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-arrow:hover .arrow { transform: translateX(6px); }

/* ===================================================
   BUTTONS
=================================================== */

.btn-primary {
  display: inline-block;
  background: var(--accent-purple);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 9px 40px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.btn-primary:hover { opacity: 0.85; }

.text-arrow-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}
.text-arrow-link:hover { opacity: 0.5; }

/* ===================================================
   HOMEPAGE — HERO
=================================================== */

.hero {
  padding: 60px 40px 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 80vh;
}

.hero-text {
  grid-column: 1 / 8;
  padding-top: 40px;
}

.hero-heading {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-images {
  grid-column: 8 / 13;
  position: relative;
  height: 300px;
  align-self: center;
}

.hero-img {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-img:nth-child(1) { z-index: 3; }
.hero-img:nth-child(2) { z-index: 2; }
.hero-img:nth-child(3) { z-index: 1; }

/* ===================================================
   PROJECT CARDS (homepage + work page)
=================================================== */

/* 2-column grid wrapper */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--border);
}

.project-grid .project-card {
  border-right: var(--border);
  border-bottom: var(--border);
}

.project-grid .project-card:nth-child(even) {
  border-right: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-bottom: var(--border);
  cursor: pointer;
}

.project-card-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 36px 40px;
  border-bottom: var(--border);
  transition: background 0.2s ease;
}

.project-card:hover .project-card-header {
  background: var(--accent-purple-light);
}

.project-card-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.project-card-tag {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.6;
  flex-shrink: 0;
  margin-left: 40px;
}

.project-card-image {
  display: block;
  overflow: hidden;
  height: 420px;
  background: #ccc;
  flex: 1;
}

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

.project-card:hover .project-card-image img {
  transform: scale(1.02);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: #c8c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-placeholder span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================================
   EXPERIENCE ROWS
=================================================== */

.experience-section { padding: 84px 0; }

.experience-list { display: flex; flex-direction: column; }

.experience-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 40px;
  border-bottom: var(--border);
  gap: 16px;
}

.experience-row {
  transition: background 0.15s ease;
}

.experience-row:hover {
  background: var(--accent-purple-light);
}

.experience-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  flex: 0 0 72px;
}

.experience-role {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}

.experience-dates {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  flex: 0 0 240px;
}

.experience-company {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  flex: 0 0 240px;
  text-align: right;
}

/* ===================================================
   ABOUT BLURB (homepage section 4)
=================================================== */

.about-blurb {
  padding: 84px 40px;
  border-top: var(--border);
}

.about-blurb-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}

.about-blurb-left { grid-column: 1 / 9; }

.about-blurb-right {
  grid-column: 10 / 13;
  padding-top: 8px;
}

.about-blurb-right img {
  width: 100%;
  border-radius: 3px;
}

/* ===================================================
   CONTACT SECTION
=================================================== */

.contact-section {
  background: var(--accent-green);
  padding: 60px 40px;
}

.contact-heading {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  max-width: 640px;
}

.contact-email-text {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.form-input,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: var(--border-light);
  padding: 16px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom: 1.5px solid #333;
}

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

.form-submit {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  text-align: left;
  letter-spacing: 0.5px;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.form-submit:hover { opacity: 0.55; }

.form-success,
.form-error {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 10px 0;
  display: none;
}

.form-success { color: #2a6a2a; }
.form-error { color: #900; }

/* ===================================================
   WORK PAGE — end banner
=================================================== */

.work-end-banner {
  background: var(--accent-yellow);
  padding: 60px;
}

.work-end-banner p {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

/* ===================================================
   SERVICE PILLS
=================================================== */

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

.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 6px 20px;
  border: var(--border-light);
  border-radius: 42px;
  background: #ffffff;
  color: var(--text);
  white-space: nowrap;
}

.pill--secret {
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill--secret:hover { background: #000; color: #fff; }

/* ===================================================
   ABOUT PAGE
=================================================== */

.about-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: var(--border);
}

.about-selfie {
  grid-column: 1 / 6;
  overflow: hidden;
  min-height: 500px;
  background: #ccc;
}

.about-selfie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.about-bio {
  grid-column: 6 / 13;
  padding: 60px 40px;
}

.about-bio h4 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 32px;
}

.about-bio p {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
}

.about-services {
  margin-top: 40px;
}

.about-services-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* About page simple contact */
.about-contact {
  padding: 80px 40px;
  border-top: var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.about-contact-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  padding-top: 20px;
}

.about-contact-links {
  display: flex;
  flex-direction: column;
}

.about-contact-link {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: var(--border);
  transition: opacity 0.2s ease;
}

.about-contact-link:last-child {
  border-bottom: var(--border);
}

.about-contact-link .arrow {
  display: inline-block;
  font-size: 22px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.about-contact-link:hover { opacity: 0.5; }
.about-contact-link:hover .arrow { transform: translateX(6px); }

/* About page experience */
.about-experience { padding: 0; }

.about-exp-row {
  display: grid;
  grid-template-columns: 72px 200px 1fr 180px;
  gap: 16px;
  padding: 40px;
  border-bottom: var(--border);
  align-items: start;
}

.about-exp-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

.about-exp-company strong {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.about-exp-company span {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
}

.about-exp-bullets ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-exp-bullets ul li {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.about-exp-date {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
  text-align: right;
}


/* ===================================================
   PROJECT PAGES
=================================================== */

.project-header {
  padding: 120px 40px 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: end;
  border-bottom: var(--border);
}

.project-title {
  grid-column: 1 / 8;
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.project-meta {
  grid-column: 10 / 13;
  display: flex;
  flex-direction: column;
}

.project-meta-item {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding: 20px 0;
  border-top: var(--border-light);
}

.project-main-image {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  display: block;
  background-color: var(--bg); /* overridden per-image via data-bg */
  aspect-ratio: 16 / 9;
}

/* Project introduction (ecec bg) */
.project-introduction {
  background: var(--project-intro-bg);
  padding: 80px 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-intro-label { grid-column: 1 / 3; }

.project-intro-summary { grid-column: 3 / 9; }

.project-intro-summary p {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.project-intro-details {
  grid-column: 10 / 13;
  display: flex;
  flex-direction: column;
}

.project-intro-detail-item {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding: 20px 0;
  border-top: var(--border-light);
}

/* Impact strip */
.project-impact {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  border-bottom: var(--border);
}

.project-impact-label { grid-column: 1 / 3; }

.project-impact-metrics {
  grid-column: 3 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-impact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-impact-stat {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.project-impact-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.6;
  line-height: 1.5;
}

/* Key decisions */
.project-decisions {
  padding: 80px 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-decisions-label { grid-column: 1 / 3; }

.project-decisions-content {
  grid-column: 3 / 10;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-decision-item { }

.project-decision-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.project-decision-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
}

/* Dark section */
.project-dark-section {
  background: #000000;
  padding: 100px 40px;
}

.project-dark-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 120px;
}

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

.project-dark-counter {
  grid-column: 12 / 13;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  padding: 20px 0;
  border-top: 0.5px solid #444;
  text-align: right;
}

.project-dark-label {
  grid-column: 1 / 12;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c9c9c9;
  padding: 20px 0;
  border-top: 0.5px solid #444;
  margin-bottom: 0;
}

.project-dark-text {
  grid-column: 2 / 7;
  margin-top: 40px;
}

.project-dark-text-right {
  grid-column: 7 / 12;
  margin-top: 40px;
}

.project-dark-text p,
.project-dark-text-right p {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: #e7e7e7;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-dark-text h5,
.project-dark-text-right h5 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  margin-top: 40px;
}

.project-dark-text ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-dark-text ol li {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: #e7e7e7;
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.project-dark-text ol li::before {
  content: counter(list-item, decimal-leading-zero) ". ";
  counter-increment: list-item;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #888;
  position: absolute;
  left: 0;
  top: 4px;
}

.project-dark-text ol { counter-reset: list-item; }

.project-dark-text ol li strong {
  font-weight: 700;
  color: #ffffff;
}

/* ul lists inside dark section (mirrors ol styling without numbers) */
.project-dark-text ul,
.project-dark-text-right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0 0 24px;
}

.project-dark-text ul li,
.project-dark-text-right ul li {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #e7e7e7;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.project-dark-text ul li::before,
.project-dark-text-right ul li::before {
  content: "—";
  font-family: var(--font-sans);
  font-size: 14px;
  color: #888;
  position: absolute;
  left: 0;
  top: 2px;
}

.project-dark-text ul li strong,
.project-dark-text-right ul li strong {
  font-weight: 700;
  color: #ffffff;
}

/* ol lists in right column */
.project-dark-text-right ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: list-item;
}

.project-dark-text-right ol li {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #e7e7e7;
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.project-dark-text-right ol li::before {
  content: counter(list-item, decimal-leading-zero) ". ";
  counter-increment: list-item;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #888;
  position: absolute;
  left: 0;
  top: 4px;
}

.project-dark-text-right ol li strong {
  font-weight: 700;
  color: #ffffff;
}

/* Blockquotes inside dark section */
.project-dark-text blockquote,
.project-dark-text-right blockquote {
  border-left: 2px solid #444;
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
}

.project-dark-text blockquote p,
.project-dark-text-right blockquote p {
  font-size: 16px;
  color: #aaa;
  font-style: italic;
  margin-bottom: 0;
}

/* Project images */
.project-images { display: flex; flex-direction: column; margin-top: 0; }

.project-images--row { flex-direction: row; align-items: flex-start; }
.project-images--row .project-image-item { flex: 1; border-top: var(--border); border-left: none; }
.project-images--row .project-image-item + .project-image-item { border-left: var(--border); }

.project-image-item { border-top: var(--border); }

.project-image-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.45;
  padding: 16px 40px;
}

.project-image-item img { width: 100%; display: block; }

/* Next project */
.next-project-section {
  padding: 100px 40px;
  border-top: var(--border);
}

.next-project-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: center;
}

.next-project-label {
  grid-column: 1 / 3;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.next-project-link {
  grid-column: 3 / 11;
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s ease;
}

.next-project-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 40px;
}

.next-project-link:hover { opacity: 0.65; }
.next-project-link:hover .arrow { transform: translateX(6px); }

/* ===================================================
   ANIMATIONS
=================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ===================================================
   HAMBURGER — hidden on desktop, shown at ≤991px
=================================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--nav-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===================================================
   RESPONSIVE — 991px  (tablet: nav collapses)
=================================================== */

@media (max-width: 991px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 20px 24px;
    position: relative;
  }

  .nav-tagline { display: none; }

  /* Hide links, show as dropdown when open */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 32px;
    gap: 20px;
    z-index: 999;
  }

  .nav.nav-open .nav-links { display: flex; }

  .nav-hamburger { display: flex; }

  /* Animate to × when open */
  .nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ===================================================
   RESPONSIVE — 767px  (mobile: all layout collapses)
=================================================== */

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    min-height: auto;
    gap: 0;
  }

  .hero-text { grid-column: 1 / -1; }
  .hero-heading { font-size: 32px; }

  .hero-images {
    grid-column: 1 / -1;
    height: 260px;
    margin-top: 40px;
    overflow: hidden;
  }

  .section-header {
    padding: 24px;
    flex-direction: column;
    gap: 6px;
  }

  .section-title { font-size: 40px; }

  .project-card-header {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-grid { grid-template-columns: 1fr; }
  .project-grid .project-card { border-right: none; }

  .project-card-tag { margin-left: 0; }
  .project-card-image { height: 260px; }

  .experience-row {
    flex-direction: column;
    gap: 6px;
    padding: 24px;
  }

  .experience-company { text-align: left; flex: none; }
  .experience-dates { flex: none; }
  .experience-number { flex: none; }

  .about-blurb { padding: 60px 24px; }

  .about-blurb-inner { grid-template-columns: 1fr; }
  .about-blurb-left,
  .about-blurb-right { grid-column: 1 / -1; }

  .large-paragraph { font-size: 22px; }

  .contact-section { padding: 40px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 40px 24px; }

  .about-intro { grid-template-columns: 1fr; }
  .about-selfie { grid-column: 1 / -1; min-height: 280px; }
  .about-bio { grid-column: 1 / -1; padding: 40px 24px; }

  .about-exp-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .about-exp-number { display: none; }

  .about-exp-company {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }

  .about-exp-bullets { grid-column: 1 / -1; }

  .about-exp-date {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 14px;
    opacity: 0.5;
  }

  .about-contact {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 16px;
  }

  .about-contact-link { font-size: 20px; }

  .project-header {
    grid-template-columns: 1fr;
    padding: 80px 24px 40px;
    gap: 32px;
  }

  .project-title {
    grid-column: 1 / -1;
    font-size: 48px;
  }

  .project-meta { grid-column: 1 / -1; }

  .project-introduction {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 24px;
  }

  .project-intro-label,
  .project-intro-summary,
  .project-intro-details { grid-column: 1 / -1; }

  .project-impact {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .project-impact-label { grid-column: 1 / -1; }

  .project-impact-metrics {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-decisions {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .project-decisions-label { grid-column: 1 / -1; }
  .project-decisions-content { grid-column: 1 / -1; }

  .project-dark-section { padding: 60px 24px; }

  .project-dark-block { grid-template-columns: 1fr; }

  .project-dark-counter,
  .project-dark-label,
  .project-dark-text,
  .project-dark-text-right {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .project-dark-text { margin-top: 24px; }

  .next-project-section { padding: 60px 24px; }
  .next-project-inner { grid-template-columns: 1fr; gap: 16px; }
  .next-project-label,
  .next-project-link { grid-column: 1 / -1; }
  .next-project-link { font-size: 32px; }

  .project-image-counter { padding: 12px 24px; }

  .work-end-banner { padding: 40px 24px; }
  .work-end-banner p { font-size: 16px; }
}

/* ===================================================
   RESPONSIVE — 479px  (small mobile)
=================================================== */

@media (max-width: 479px) {
  .project-card-image { height: 200px; }
  .hero-heading { font-size: 28px; }
  .project-title { font-size: 36px; }
}

/* ===================================================
   CUSTOM CURSOR
=================================================== */

@media (hover: hover) {
  body, body * { cursor: none !important; }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  margin-left: -7px;
  margin-top: -7px;
  transition: width 0.12s ease, height 0.12s ease, margin 0.12s ease,
              border-radius 0.12s ease, background 0.12s ease;
}

.cursor--sparkle {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.85);
  clip-path: polygon(50% 0%, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0% 50%, 44% 44%);
  animation: cursor-sparkle 0.65s linear infinite;
}

@keyframes cursor-sparkle {
  to { transform: rotate(360deg); }
}

.cursor--skull {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 0;
  background: transparent;
  clip-path: none;
  animation: none;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor--skull::after { content: '☠️'; }

/* ===================================================
   PASSWORD PROTECTION
=================================================== */

/* Hide page content until authenticated */
body[data-protected]:not(.auth-ok) > *:not(.pw-overlay):not(.nav):not(.cursor) {
  visibility: hidden;
}

.pw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.pw-overlay--fade { opacity: 0; }

.pw-box {
  text-align: center;
  max-width: 360px;
  width: 100%;
  padding: 0 24px;
}

.pw-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
}

.pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-input {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px 16px;
  border: var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  outline: none;
  text-align: center;
  letter-spacing: 0.05em;
}

.pw-input:focus { border-color: var(--text); }

.pw-submit {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  border: var(--border);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pw-submit:hover { opacity: 0.8; }

.pw-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c0392b;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pw-shake { animation: pw-shake 0.4s ease; }

/* Lock icon on project cards */
.project-card-lock {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================
   LOADING STATES & SCROLL REVEALS
=================================================== */

/* Image fade-in on load (applied via JS) */
.img-reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.img-reveal.is-loaded {
  opacity: 1;
}

/* Scroll-triggered reveal (applied via JS) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger even project cards */
.project-grid .reveal-on-scroll:nth-child(even) {
  transition-delay: 0.1s;
}

/* ===================================================
   PAGE TRANSITIONS
=================================================== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.page-transition.is-hidden {
  opacity: 0;
}
.page-transition.is-exiting {
  opacity: 1;
}
