@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #fefefe;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

a,
a:visited,
a:focus,
a:active,
a:hover {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* ---------------- NAVIGATION ---------------- */

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 25px;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  gap: 22px;
  margin-right: 10px;
}

ul li a {
  position: relative;
  text-decoration: none;
  color: #555555;
  font-size: 0.75em;
  font-weight: 500;
  padding: 6px 0;
  transition: color 200ms ease-in-out;
}

ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #777777;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease-in-out;
}

ul li a:hover {
  color: #111111;
}

ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------------- INTRO ---------------- */

.intro {
  text-align: center;
  max-width: 700px;
  margin: 300px auto;
  font-size: 0.9em;
  color: #777777;
  line-height: 1.4em;
  padding: 0 30px;
}

/* ---------------- PROJECT GRID ---------------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  padding: 35px;
  gap: 45px;
  place-items: center;
}

.project {
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background-color: #eeeeee;
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  position: relative;
  max-width: 540px;
  width: 100%;
  transition: 300ms ease-in-out;
  will-change: transform;
  user-select: none;
}

/* ---------------- PROJECT DESCRIPTION ---------------- */

.project-desc {
  color: #777777;
  font-weight: 600;
  font-size: 0.75em;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, 0);
  transition: 400ms ease-in-out;
  will-change: transform;
  opacity: 0;
}

.project:hover > .project-desc {
  transform: translate(-30%, 100px);
  opacity: 1;
}

/* ---------------- PROJECT IMAGE ---------------- */

.project-img-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 300ms ease-in-out;
  will-change: transform;
  perspective: 1000px;
  pointer-events: none;
  user-select: none;
}

.project-img {
  transform: translateY(-40px);

  width: 88%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 16 / 8;
  /* object-fit: cover; */

  border-radius: 3px;

  transition:
    transform 300ms ease-in-out,
    box-shadow 300ms ease-in-out;

  transform-style: preserve-3d;
  user-select: none;
}

/* ---------------- PROJECT HOVER ---------------- */

.project:hover {
  background-color: #dedede;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.2),
    0 2px 4px -2px rgb(0 0 0 / 0.2);
}

.project:hover > .project-img-container > .project-img {
  transform: translateY(-45px) rotateY(25deg) translateX(-40px) scale(0.92)
    scale(1.1);

  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------------- PROJECT BUTTONS ---------------- */

.github-btn-container,
.share-btn-container,
.img-expand-btn-container {
  opacity: 0;
  position: absolute;
  top: 8px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms ease-in-out;
  border-radius: 5px;
  will-change: transform;
}

.github-btn-container {
  right: 8px;
}

.share-btn-container {
  right: 48px;
}

.img-expand-btn-container {
  right: 88px;
}

.project:hover > .github-btn-container,
.project:hover > .share-btn-container,
.project:hover > .img-expand-btn-container {
  opacity: 0.6;
  background-color: #777777;
}

.github-btn-container:hover,
.share-btn-container:hover,
.img-expand-btn-container:hover {
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.2),
    0 2px 4px -2px rgb(0 0 0 / 0.2);

  background-color: #ffffff !important;
  opacity: 1 !important;
}

.github-btn,
.share-btn,
.img-expand-btn {
  width: 25px;
  height: 25px;
}

/* ---------------- PROJECT INFO ---------------- */

.project-info {
  display: flex;
  justify-self: flex-end;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 25px;
  font-size: 0.9em;
  color: #999999;
}

.project-title {
  font-weight: 600;
}

/* ---------------- EXTRO ---------------- */

.extro {
  text-align: center;
  max-width: 700px;
  margin: 300px auto;
  font-size: 0.9em;
  color: #777777;
  line-height: 1.4em;
  padding: 0 30px;
}

/* ---------------- FOOTER ---------------- */

footer {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  text-align: center;
  font-size: 0.75em;
  color: #777777;
}

/* ---------------- CONTACT BUTTON ---------------- */

.get-in-touch-button {
  color: #555555;
  font-size: 0.9em;
  border: none;
  outline: none;
  background-color: #ffffff;

  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.2),
    0 2px 4px -2px rgb(0 0 0 / 0.2);

  padding: 14px 20px;
  border-radius: 3px;

  position: fixed;
  bottom: 20px;
  left: 50%;

  transform: translateX(-50%);
  transition: 300ms ease-in-out;
  will-change: transform;
}

.get-in-touch-button:hover {
  background-color: #555555;
  color: #ffffff;
  scale: 1.025;
}

/* ---------------- TOUCH / JS TRANSFORM STATE ---------------- */

.project.transform > .project-desc {
  transform: translate(-50%, 65px);
  opacity: 1;
}

.project.transform {
  background-color: #dedede;

  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.2),
    0 2px 4px -2px rgb(0 0 0 / 0.2);
}

.project.transform > .project-img-container > .project-img {
  transform: translateY(-40px) rotateY(25deg) translateX(-40px) scale(0.92);

  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.project.transform > .github-btn-container,
.project.transform > .share-btn-container,
.project.transform > .img-expand-btn-container {
  opacity: 0.6;
  background-color: #777777;
}

/* ---------------- RESPONSIVE GRID ---------------- */

@media (min-width: 1050px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project {
    max-width: none;
  }
}

@media (min-width: 1500px) {
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 2026 PORTFOLIO REFINEMENT — EDITORIAL SYSTEM ===== */

:root {
  --paper: #fefefe;
  --ink: #252525;
  --muted: #777;
  --rule: #e8e7e4;
  --soft: #f8f8f7;
}

body {
  color: var(--ink);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  max-width: 1500px;
  margin: auto;
  padding: 25px clamp(24px, 5vw, 78px);
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--ink);
}

.site-brand span {
  color: #aaa;
}

.site-nav .nav-links {
  margin: 0;
  gap: clamp(12px, 2.4vw, 34px);
  flex-wrap: wrap;
}

.site-nav .nav-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #666;
}

.site-nav .nav-links a:hover {
  color: #111;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #555 !important;
  outline-offset: 5px;
}

.portfolio-hero {
  max-width: 1500px;
  margin: auto;
  padding: clamp(100px, 12vw, 195px) clamp(24px, 5vw, 78px) 38px;
  min-height: min(780px, 90svh);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.eyebrow-line {
  display: inline-block;
  height: 1px;
  width: 34px;
  background: #a8a8a8;
  flex: none;
}

.portfolio-hero h1,
.section-heading h2,
.next-steps h2,
.closing h2 {
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.portfolio-hero h1 {
  font-size: clamp(54px, 7.3vw, 112px);
  margin: 30px 0 24px;
}

.portfolio-hero h1 span,
.section-heading h2 span,
.next-steps h2 span,
.closing h2 span {
  color: #aaa;
}

.portfolio-hero .intro {
  margin: 0;
  padding: 0;
  max-width: 640px;
  text-align: left;
  color: #737373;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 20px;
  border: 1px solid #d4d4d4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.action-link:hover {
  background: #f1f1f0;
  border-color: #aaa;
  transform: translateY(-2px);
}

.action-link-primary {
  background: #252525;
  color: #fff !important;
  border-color: #252525;
}

.action-link-primary:hover {
  background: #444;
}

.hero-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 90px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.work-section {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-top: 95px;
}

.section-heading {
  max-width: 1500px;
  margin: auto;
  padding: 0 clamp(24px, 5vw, 78px) 55px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 {
  font-size: clamp(38px, 4vw, 64px);
  margin-top: 22px;
}

.section-heading > p {
  max-width: 400px;
  color: #777;
  font-size: 13px;
  line-height: 1.9;
}

.work-section .projects {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px clamp(18px, 3.5vw, 55px) 115px;
  gap: clamp(22px, 3vw, 45px);
}

/* Keep the existing image-first card design; refine its surface and typography. */

.work-section .project {
  background: #f5f5f4;
  border: 1px solid #efefed;
  border-radius: 2px;
}

.work-section .project:hover,
.work-section .project.transform {
  background: #ebebea;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.065);
}

.work-section .project-info {
  color: #777;
  gap: 12px;
}

.work-section .project-title {
  color: #333;
  font-weight: 600;
}

.work-section .project-github {
  font-size: 0.9em;
  text-align: right;
}

.work-section .project-desc {
  color: #666;
}

.next-steps {
  background: var(--soft);
  border-top: 1px solid var(--rule);
  padding: 105px clamp(24px, 5vw, 78px) 120px;
}

.next-steps > .eyebrow,
.next-steps > h2,
.pathways {
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps h2 {
  font-size: clamp(38px, 4.3vw, 66px);
  margin-top: 26px;
  margin-bottom: 55px;
}

.pathways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pathway {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 310px;
  padding: clamp(26px, 4vw, 55px);
  background: #fff;
  border: 1px solid var(--rule);
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.pathway:hover {
  transform: translateY(-4px);
  border-color: #ccc;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.035);
}

.pathway-number {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.22em;
}

.pathway h3 {
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-top: 30px;
}

.pathway p {
  color: #777;
  font-size: 13px;
  line-height: 1.9;
  max-width: 460px;
  margin: 18px 0 35px;
}

.pathway-link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #aaa;
  padding-bottom: 7px;
}

.closing {
  padding: 130px 24px 145px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing h2 {
  font-size: clamp(40px, 5vw, 75px);
  margin-top: 28px;
}

.closing .extro {
  margin: 26px auto 35px;
  padding: 0;
  max-width: 570px;
  font-size: 14px;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: #fefefe;
  padding: 70px clamp(24px, 5vw, 78px) 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 50px;
}

.site-footer > div:first-child p {
  max-width: 350px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.9;
  text-align: left;
}

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

.footer-links a {
  font-size: 11px;
  color: #555;
}

.footer-links a:hover {
  color: #111;
}

.footer-bottom {
  grid-column: 1/-1;
  width: 100%;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 0.13em;
}

@media (max-width: 760px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 22px 20px;
  }

  .site-nav .nav-links {
    gap: 14px;
  }

  .portfolio-hero {
    min-height: 690px;
    padding: 95px 24px 30px;
  }

  .portfolio-hero h1 {
    font-size: clamp(49px, 11vw, 76px);
  }

  .hero-bottom {
    font-size: 9px;
  }

  .section-heading {
    display: block;
    padding: 0 24px 40px;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  .work-section {
    padding-top: 75px;
  }

  .work-section .projects {
    padding-bottom: 85px;
  }

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

  .next-steps {
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-link,
  .pathway {
    transition: none;
  }

  .action-link:hover,
  .pathway:hover {
    transform: none;
  }
}
