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

:root {
  --bg: #ECEAE5;
  --bg2: #E4E1DB;
  --text: #1a1a18;
  --muted: #7e7c75;
  --border: #d0cdc7;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 52px;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(236, 234, 229, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.image-crop {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  /* Remove: width: 100%; top: 100px; bottom: -100px; — those do nothing */
}

.white-logo {
  display: block;
  /* Total height = desired nav logo height + the 31px of vertical whitespace in the image */
  height: 67px;
  /* → 67 - 31 = 36px visible logo height */
  width: auto;
  margin-top: -15.5px;
  /* crop top half of the 31px vertical whitespace */
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.55;
  transition: opacity 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.5;
}

/* HERO */
#home {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-sidebar-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  z-index: 2;
}

.hero-line {
  position: absolute;
  left: 46px;
  top: 130px;
  bottom: 80px;
  width: 1px;
  background: var(--border);
  z-index: 2;
}

.hero-year {
  position: absolute;
  left: 20px;
  bottom: 48px;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #5e5c56;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

.hero-stats {
  position: absolute;
  top: 118px;
  left: 130px;
  display: flex;
  gap: 48px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.stat-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 44px;
  font-weight: 200;
  line-height: 1;
}

.stat-number sup {
  font-size: 20px;
  font-weight: 200;

}


.stat-label {
  font-size: 15px;
  font-weight: 300;
  color: #7e7c75;
  ;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

@font-face {
  font-family: 'Josefin Sans';
  src: url('fonts/JosefinSans-Regular.woff2') format('woff2'),
    url('fonts/JosefinSans-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

.hero-hello,
.hero-matthew {
  font-family: 'Josefin Sans', sans-serif;
}

.hero-hello {
  position: absolute;

  top: 45%;
  /* Adjust as needed */
  left: 80px;
  /* Adjust as needed */
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(110px, 17vw, 250px);
  font-weight: 180;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: var(--text);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
  user-select: none;
}

.hero-matthew {
  position: absolute;
  /* Change from relative to absolute */
  top: 66%;
  /* Adjust as needed */
  left: 80px;
  /* Adjust as needed */
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(55px, 8.5vw, 250px);
  font-weight: 180;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
  user-select: none;
}

.hero-sub {
  position: absolute;
  bottom: 94px;
  left: 100px;
  font-size: 26px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.01em;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 46px;
  left: 80px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.photo-area {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54%;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.05s forwards;
}

.photo-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: linear-gradient(to right, var(--bg), transparent);
  z-index: 1;
  pointer-events: none;
}

.photo-area::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #d9d6d0 0%, #c4c0b8 50%, #b3afa8 100%);
  /* ← add this back */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-placeholder img {
  height: 100%;
  width: auto;
  display: block;
}

.photo-placeholder p {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a7872;
  font-weight: 300;
}

/* SECTION BASE */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 80px 120px 130px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-first {
  width: 100%;
  height: 3px;
  background: var(--border)
}

.section-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6e6c67;
  margin-bottom: 12px;
}

.section-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-right: 12px;
}

.section-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 100;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 64px;
}

/* ABOUT */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: startre;
  padding-top: 26px;
}

.about-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}

.about-body em {
  font-style: italic;
  color: var(--muted);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pill {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text);
}

.about-values {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.value-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 26px;
  font-weight: 100;
  letter-spacing: -0.02em;
}

.value-label {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.down {
  padding-top: 26px;
}


.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 1;
  /* keeps it perfectly square */
  margin-top: 32px;
  border-radius: 6px;
  overflow: hidden;
}

/* F1 spans the full top row */
.collage-item:nth-child(1) {
  grid-column: 1 / -1;
}

.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.collage-item:hover img {
  transform: scale(1.06);
}

.collage-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collage-item:hover .collage-label {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .about-collage {
    margin-top: 24px;
  }
}


/* SKILLS */
#skills {
  background: var(--bg2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.skill-col {
  border-left: 1px solid var(--border);
  padding: 0 32px;
}

.skill-col:first-child {
  border-left: none;
  padding-left: 0;
}

.skill-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 400;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-list li:hover {
  color: var(--muted);
}

.skill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

/* PROJECTS */
#projects {
  background: var(--bg);
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.projects-header .section-heading {
  margin-bottom: 0;
}

.view-all {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--text);
}

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

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 200;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.project-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 21px;
  font-weight: 200;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: #5a5854;
  margin-bottom: 24px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

.project-link {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}

.project-link:hover {
  opacity: 1;
}

.projects-more {
  text-align: center;
  margin-top: 40px;
  /* Add spacing above the button */
}

.more-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: var(--text);
  /* Use your text color variable or replace with a color like #1a1a18 */
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}



.more-button:hover {
  background-color: var(--muted);
  /* Use a lighter color for hover effect */
}


/* EXPERIENCE */
#experience {
  background: var(--bg2);
}

.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.exp-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--bg2);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  font-size: 10.5px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.timeline-role {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: #5a5854;
}

/* CONTACT */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 340px;
}

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

.contact-link-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.contact-link-item:first-child {
  border-top: 1px solid var(--border);
}

.contact-link-label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.contact-link-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.contact-link-value:hover {
  opacity: 0.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form-wrapper {
  padding-top: 160px;
}

.form-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.form-group:first-child {
  border-top: 1px solid var(--border);
}

.form-label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  width: 100%;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--border);
}

.form-textarea {
  min-height: 96px;
}

.form-submit {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

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

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 80px 36px 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 200;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.footer-links a {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-about {
  transition-delay: 0.2s;
  padding-top: 175px;
}

.delay-contact {
  transition-delay: 0.2s;
  padding-top: 238px;


}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ORG LOGO */
.timeline-org-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.org-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  overflow: hidden;
}

.org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

/* CONTACT alignment fix */
.contact-form-wrapper {
  padding-top: 54px;
}




/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
}

/* Mobile menu — hidden on desktop */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 16px 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

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

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
  }

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

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

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

  /* MOBILE MENU OVERLAY */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 250;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 36px;
    font-weight: 100;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .mobile-menu a:hover {
    opacity: 1;
  }

  .mobile-menu .mobile-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    margin-top: 8px;
    opacity: 1;
  }

  /* HERO */
  #home {
    height: 100svh;
  }

  .hero-sidebar-label,
  .hero-line,
  .hero-year {
    display: none;
  }

  .hero-stats {
    top: 76px;
    left: 24px;
    gap: 32px;
  }

  .stat-number {
    font-size: 30px;
  }

  .stat-number sup {
    font-size: 14px;
  }

  .stat-label {
    font-size: 11px;
  }

  .hero-hello {
    top: auto;
    bottom: 210px;
    left: 24px;
    font-size: clamp(72px, 17vw, 120px);
  }

  .hero-matthew {
    top: auto;
    bottom: 120px;
    left: 24px;
    font-size: clamp(38px, 9vw, 65px);
  }

  .hero-sub {
    bottom: 82px;
    left: 24px;
    font-size: 15px;
  }

  .scroll-hint {
    bottom: 44px;
    left: 24px;
  }

  /* Photo fills full width on mobile, text sits over it */
  .photo-area {
    width: 100%;
  }

  .photo-area::before {
    width: 100%;
    background: linear-gradient(to right, var(--bg) 25%, transparent 80%);
  }

  .photo-area::after {
    height: 55%;
  }

  .photo-placeholder img {
    height: 100%;
    width: auto;
    object-position: right center;
  }

  /* SECTION WRAP */
  .section-wrap {
    padding: 64px 24px;
  }

  .section-heading {
    font-size: clamp(34px, 10vw, 52px);
    margin-bottom: 40px;
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-body {
    font-size: 14px;
  }

  /* SKILLS */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
  }

  .skill-col {
    padding: 0 16px 32px 16px;
    border-bottom: 1px solid var(--border);
  }

  .skill-col:first-child {
    border-left: none;
    padding-left: 0;
  }

  /* 3rd col — starts new row, no left border */
  .skill-col:nth-child(3) {
    border-left: none;
    padding-left: 0;
    padding-top: 32px;
    border-bottom: none;
  }

  .skill-col:nth-child(4) {
    padding-top: 32px;
    border-bottom: none;
  }

  .skill-col-title {
    margin-bottom: 20px;
  }

  /* PROJECTS */
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }

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

  .project-card {
    padding: 24px;
  }

  /* EXPERIENCE */
  .exp-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding-top: 0;
  }

  .contact-intro {
    max-width: 100%;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 24px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-col {
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 0;
    border-bottom: 1px solid var(--border);
  }

  .skill-col:last-child {
    border-bottom: none;
  }

  .skill-col:nth-child(3),
  .skill-col:nth-child(4) {
    padding-top: 0;
  }

  .hero-hello {
    font-size: clamp(64px, 16vw, 90px);
  }

  .hero-matthew {
    font-size: clamp(32px, 9vw, 55px);
  }
}