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

:root {
  --black: #0b0b0b;
  --ink: #161616;
  --gray: #f1f1ef;
  --mid: #8a8a86;
  --white: #ffffff;
  --line: #d9d9d5;

  /* Compatibility variables for existing sections */
  --border: var(--line);
  --bg: var(--white);
  --muted: #777;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

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

.nav {
  height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  font: 800 25px "Manrope", sans-serif;
  letter-spacing: -1px;
}

.brand span {
  color: var(--mid);
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

.nav nav a:hover {
  color: var(--mid);
}

.nav-cta {
  background: var(--black);
  color: white;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 650px;
  background: var(--gray);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6vw;
  align-items: center;
  padding: 90px 10vw;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(52px, 7vw, 94px);
  line-height: 0.98;
  letter-spacing: -4px;
  max-width: 900px;
}

h1 span {
  color: #777;
}

.hero-text {
  max-width: 620px;
  font-size: 18px;
  color: #555;
  margin: 28px 0;
}

.buttons {
  display: flex;
  gap: 12px;
}

.button {
  padding: 14px 21px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--black);
}

.button-dark {
  background: var(--black);
  color: white;
}

.button-light {
  background: transparent;
}

.hero-card {
  min-height: 410px;
  background: #191919;
  color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 24px 24px 0 #d4d4d0;
}

.card-top {
  font-size: 11px;
  letter-spacing: 2px;
  color: #aaa;
}

.metric {
  border-top: 1px solid #444;
  padding-top: 14px;
}

.metric span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #999;
}

.metric strong {
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 110px 10vw;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 7vw;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #777;
}

.section h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 30px;
  max-width: 800px;
}

.about p {
  max-width: 760px;
  margin-bottom: 18px;
  color: #555;
  font-size: 17px;
}

/* =========================
   SERVICES / CAPABILITIES
========================= */

.services {
  background: var(--gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #ccc;
}

.service-grid article {
  padding: 30px 25px 34px 0;
  border-bottom: 1px solid #ccc;
}

.service-grid article:nth-child(odd) {
  border-right: 1px solid #ccc;
  padding-right: 35px;
}

.service-grid article:nth-child(even) {
  padding-left: 35px;
}

.service-grid span {
  font-size: 11px;
  color: #888;
}

.service-grid h3 {
  font-size: 24px;
  margin: 18px 0 8px;
}

.service-grid p {
  color: #666;
  font-size: 14px;
  max-width: 390px;
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.portfolio-head p {
  max-width: 370px;
  color: #666;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 35px;
}

.project {
  border: 1px solid var(--line);
  background: #fff;
}

.project-image {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #f2f2f2;
}

.project-image a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

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

.project-info {
  padding: 22px;
}

.project-info p:first-child {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #888;
}

.project-info h3 {
  font-size: 22px;
  margin: 9px 0;
}

.project-info p:last-of-type {
  color: #666;
  font-size: 13px;
}

.project-scope {
  margin-top: 14px;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
}

.project-scope strong {
  color: #222;
  font-weight: 700;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-tags span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #666;
  background: #fff;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.project-gallery a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: #f2f2f2;
  transition: transform 0.25s ease;
}

.project-gallery a:hover img {
  transform: scale(1.02);
}

.project-image .image-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: block;
  padding: 7px 10px;
  border: 0;
  background: #111 !important;
  color: #fff !important;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.8px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.project-image a:hover .image-hint {
  opacity: 1;
}

.note {
  margin-top: 22px;
  color: #999;
  font-size: 12px;
}

/* Portfolio sub-sections (Others/Local, Mock-up) */
.portfolio-subsection {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 55px;
}

.portfolio-subsection:first-of-type {
  margin-top: 40px;
}

.portfolio-subhead {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.portfolio-subhead h3 {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.portfolio-subhead p {
  margin: 0;
  color: #888;
  font-size: 13px;
  max-width: 480px;
}

/* Placeholder / "coming soon" project card */
.project-placeholder {
  border: 1px dashed var(--line);
  background: #fafaf9;
}

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f0;
}

.placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #aaa;
}

.project-placeholder .project-info h3 {
  color: #999;
}

.project-placeholder .project-info p {
  color: #aaa;
}

@media (max-width: 700px) {
  .portfolio-subhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

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

.experience {
  background: #111;
  color: white;
  border-top: 0;
}

.experience .section-label {
  color: #777;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 35px;
  padding: 30px 0;
  border-top: 1px solid #333;
}

.timeline-item span {
  color: #777;
  font-size: 11px;
  letter-spacing: 1px;
}

.timeline-item h3 {
  font-size: 24px;
}

.timeline-item div p {
  color: #aaa;
  margin-top: 5px;
  font-size: 14px;
}

.timeline-item div > p:last-child {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

/* =========================
   WHAT I CAN SUPPORT
========================= */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--border);
  background: var(--border);
}

.capability {
  background: var(--bg);
  padding: 32px;
  min-height: 230px;
}

.capability span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 35px;
}

.capability h3 {
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.capability p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   TOOLS — SIMPLE VISUAL GRID
========================================= */

.tools {
  background: #f1f1ef;
}

.tools-content {
  width: 100%;
}

.tools-intro {
  max-width: 700px;
  margin-bottom: 38px;
}

.tools-kicker {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
}

.tools-intro h2 {
  margin-bottom: 14px;
}

.tools-intro > p:last-child {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Software grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 185px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #d2d2cd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.tool-mark {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #d6d6d1;
  background: #fafaf8;
}

.tool-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tool-card h3 {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.tool-status {
  display: inline-block;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 6px;
  border: 1px solid #d0d0ca;
  color: #777;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Tablet */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 700px) {
  .tools-intro {
    margin-bottom: 28px;
  }

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

  .tool-card {
    min-height: 165px;
  }

  .tool-mark {
    width: 78px;
    height: 78px;
  }
}
/* =========================
   CONTACT
========================= */

.contact {
  background: var(--black);
  color: white;
  padding: 100px 10vw;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
}

.contact h2 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -3px;
  max-width: 750px;
}

.contact .eyebrow {
  color: #888;
}

.contact > div:first-child p:last-child {
  color: #aaa;
  max-width: 650px;
  margin-top: 25px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 320px;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid #444;
  color: #ddd;
  transition: all 0.2s ease;
}

.contact-links a:first-child {
  border-top: 1px solid #444;
}

.contact-links a:hover {
  color: #fff;
  padding-left: 8px;
}

.contact-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #777;
}

.contact-value {
  font-size: 14px;
  color: #ddd;
}

.contact-links a:hover .contact-value {
  color: #fff;
}

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

footer {
  background: #080808;
  color: #666;
  padding: 24px 10vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

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

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav nav.mobile-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 7vw 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .nav nav.mobile-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .nav nav.mobile-open a:last-child {
    border-bottom: 0;
  }
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 75px 7vw;
  }

  .hero-card {
    max-width: 600px;
    width: 100%;
  }

  .section {
    grid-template-columns: 1fr;
    padding: 80px 7vw;
    gap: 35px;
  }

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

  .portfolio-head,
  .contact {
    flex-direction: column;
    align-items: start;
  }

  .contact {
    padding: 80px 7vw;
  }

  .cv-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  footer {
    padding: 24px 7vw;
    gap: 20px;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 70px 7vw;
    min-height: auto;
  }

  h1 {
    font-size: clamp(44px, 13vw, 68px);
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 16px;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
    width: 100%;
  }

  .hero-card {
    min-height: 340px;
    padding: 26px;
    box-shadow: 14px 14px 0 #d4d4d0;
  }

  .section {
    padding: 75px 7vw;
    gap: 28px;
  }

  .section-label {
    margin-bottom: 0;
  }

  .portfolio-head {
    gap: 20px;
  }

  .project-image {
    height: 300px;
  }

  .project-info {
    padding: 20px;
  }

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

  .project-gallery img {
    height: 300px;
  }

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

  .capability {
    padding: 26px;
    min-height: auto;
  }

  .cv-section .section-content {
    max-width: 100%;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .contact {
    padding: 75px 7vw;
  }

  .contact-links {
    width: 100%;
    min-width: 0;
  }

  .contact-value {
    overflow-wrap: anywhere;
  }

  .image-hint {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article:nth-child(odd),
  .service-grid article:nth-child(even) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
```
/* =========================
   CONTACT FINAL OVERRIDE
========================= */

section.contact {
  background-color: #0b0b0b !important;
  color: #ffffff !important;
  border-top: 0 !important;
}

section.contact h2 {
  color: #ffffff !important;
}

section.contact > div:first-child p:last-child {
  color: #aaaaaa !important;
}

section.contact .eyebrow {
  color: #888888 !important;
}

section.contact .contact-links a {
  color: #dddddd !important;
  border-color: #444444 !important;
}

section.contact .contact-label {
  color: #777777 !important;
}

section.contact .contact-value {
  color: #dddddd !important;
}

section.contact .contact-links a:hover,
section.contact .contact-links a:hover .contact-value {
  color: #ffffff !important;
}
.tools {
  background-color: #f1f1ef !important;
}

section.contact {
  background-color: #0b0b0b !important;
  color: #ffffff !important;
  min-height: 420px;
}

section.contact h2,
section.contact p,
section.contact .eyebrow {
  color: #ffffff !important;
}

section.contact > div:first-child p:last-child {
  color: #aaaaaa !important;
}

section.contact .contact-value {
  color: #dddddd !important;
}

section.contact .contact-label {
  color: #888888 !important;
}

section.contact .contact-links a {
  color: #dddddd !important;
  border-color: #444444 !important;
}
/* Final section backgrounds */
section.tools {
  background-color: #f1f1ef !important;
}

section.contact {
  background-color: #0b0b0b !important;
  color: #ffffff !important;
}

section.contact h2 {
  color: #ffffff !important;
}

section.contact > div:first-child p:last-child {
  color: #aaaaaa !important;
}

section.contact .eyebrow {
  color: #888888 !important;
}
/* Header visual contrast */
.nav {
  background: #f1f1ef;
  border-bottom: 1px solid #d0d0cc;
}

.nav nav a {
  color: #222;
}

.nav nav a:hover {
  color: #777;
}
/* Hero background */
.hero {
  background: #f1f1ef;
}
/* Hero buttons */
.buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}

.buttons .button-dark {
  background-color: #0b0b0b !important;
  color: #ffffff !important;
  border: 1px solid #0b0b0b !important;
}

.buttons .button-light {
  background-color: transparent;
  color: #0b0b0b;
  border: 1px solid #0b0b0b;
}

.buttons .button-dark:hover {
  background-color: #333 !important;
}

.buttons .button-light:hover {
  background-color: #0b0b0b;
  color: #ffffff;
}
/* Hero spacing refinement */
.hero {
  min-height: 560px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero-text {
  margin-bottom: 22px;
}
/* Navigation refinement */
.nav {
  border-bottom: 1px solid #cfcfca;
}

.nav nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #0b0b0b;
  transition: width 0.2s ease;
}

.nav nav a:hover::after {
  width: 100%;
}
/* Hero profile */
.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-profile strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.hero-profile span {
  display: block;
  font-size: 13px;
  color: #aaa;
}
/* Portfolio header refinement */
.portfolio-head {
  display: block;
}

.portfolio-head h2 {
  margin: 0 0 18px;
  max-width: 700px;
}

.portfolio-head p {
  max-width: 620px;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}
.project-gallery-primary {
  margin-top: 10px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.project-gallery-primary img {
  height: 150px;
  background: #f2f2f2;
}

/* About portrait */
.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 60px;
  align-items: center;
}

.about-text {
  max-width: 760px;
}

.about-photo {
  width: 280px;
  justify-self: end;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(15%);
  background: #f1f1ef;
}

/* Mobile */
@media (max-width: 700px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-photo {
    width: min(280px, 100%);
    justify-self: start;
  }
}
/* About section refinement */
.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 45px;
  align-items: center;
}

.about-text {
  max-width: 720px;
}

.about-photo {
  width: 330px;
  justify-self: end;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f1f1ef;
  filter: grayscale(8%);
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }

  .about-photo {
    width: 280px;
  }
}

@media (max-width: 700px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-photo {
    width: min(280px, 100%);
    justify-self: start;
  }
}
.about-photo {
  width: 330px;
  justify-self: end;
  border: 1px solid #d9d9d5;
  padding: 8px;
  background: #f1f1ef;
}
/* Capabilities visual refinement */
.service-grid {
  gap: 0;
}

.service-grid article {
  min-height: 220px;
  padding: 32px 30px 36px 0;
  transition: background 0.2s ease;
}

.service-grid article:hover {
  background: rgba(255, 255, 255, 0.45);
}

.service-grid article:nth-child(even) {
  padding-left: 30px;
}

.service-grid span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 30px;
}

.service-grid h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.service-grid p {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

/* =========================================
   CAPABILITIES — CONSTRUCTION STYLE
========================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #cfcfca;
}

.service-card {
  position: relative;
  min-height: 215px;
  padding: 26px 28px 28px;
  background: #f8f8f6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* Subtle drafting/grid background */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(to right, transparent 49.5%, #deded9 49.5%, #deded9 50.5%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, #deded9 49.5%, #deded9 50.5%, transparent 50.5%);
  background-size: 100% 100%, 100% 100%;
  pointer-events: none;
}

/* Large background number */
.service-card::after {
  content: attr(data-number);
  position: absolute;
  right: 18px;
  bottom: -12px;
  font-family: "Manrope", sans-serif;
  font-size: 95px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -8px;
  color: #e9e9e5;
  pointer-events: none;
}

/* Content stays above graphics */
.service-card > * {
  position: relative;
  z-index: 2;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #777;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6c6c1;
  background: rgba(255,255,255,0.65);
}

.service-icon svg {
  width: 27px;
  height: 27px;
  stroke: #111;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 10px;
  max-width: 420px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.service-card p {
  max-width: 430px;
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

/* Accent line */
.service-card h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 12px;
  background: #111;
}

/* Hover */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover .service-icon {
  border-color: #111;
}

.service-card:hover::after {
  color: #deded9;
}

/* Mobile */
@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .service-card::after {
    font-size: 105px;
  }
}
/* About section - mobile refinement */
@media (max-width: 700px) {
  .about-text p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.75;
  }

  .about-photo {
    justify-self: center;
    margin: 0 auto;
  }
}
/* =========================
   ESTIMATING PORTFOLIO GRID
========================= */

.portfolio {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4vw;
}

.portfolio-head {
  grid-column: 2;
  display: block;
}

.portfolio-head h2 {
  margin: 0 0 18px;
  max-width: 700px;
}

.portfolio-head p {
  max-width: 620px;
  margin: 0;
}

.portfolio .project-grid {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 45px;
}

@media (max-width: 1200px) {
  .portfolio .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .portfolio {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-head {
    grid-column: 1;
  }

  .portfolio .project-grid {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }
}
/* =========================================
   PROJECT IMAGE + SUPPORTING THUMBNAILS
========================================= */

.project-image-with-gallery {
  position: relative;
}

.project-image-with-gallery > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery-primary {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;

  display: flex;
  gap: 8px;

  margin: 0;
  padding: 0;
}

.project-gallery-primary a {
  display: block;
  width: 72px;
  height: 72px;

  border: 2px solid #ffffff;
  background: #f2f2f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-gallery-primary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f2f2f2;
}

.project-gallery-primary a:hover {
  transform: translateY(-3px);
}

/* Make sure project descriptions start at the same height */
.project {
  display: flex;
  flex-direction: column;
}

.project-info {
  flex: 1;
}

/* Mobile */
@media (max-width: 700px) {
  .project-gallery-primary {
    left: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .project-gallery-primary a {
    width: 64px;
    height: 64px;
  }
}
/* Keep estimating projects aligned in one row */
.portfolio .project-grid {
  align-items: start;
}

.portfolio .project {
  min-width: 0;
  height: 100%;
}

.portfolio .project-image {
  height: 300px;
}

.portfolio .project-info {
  min-height: 250px;
}

.portfolio .project-gallery-primary {
  position: absolute;
}
/* Justify main project descriptions */
.project-info > p:nth-of-type(2) {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .project-info > p:nth-of-type(2) {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.75;
  }
}
/* =========================================
   WHAT I CAN SUPPORT
========================================= */

.capabilities {
  background: #ffffff;
}

.support-content {
  width: 100%;
}

.support-intro {
  max-width: 760px;
  margin-bottom: 45px;
}

.support-kicker {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
}

.support-intro h2 {
  margin-bottom: 18px;
}

.support-intro > p:last-child {
  max-width: 650px;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}

.support-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Connecting line */
.support-flow::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: #c8c8c3;
  z-index: 0;
}

.support-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  background: #f8f8f6;
  z-index: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.support-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.support-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 58px;
}

.support-number {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  color: #c9c9c4;
}

.support-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8c8c3;
  background: #ffffff;
}

.support-icon svg {
  width: 28px;
  height: 28px;
  stroke: #111;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-card h3 {
  max-width: 300px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.support-list {
  display: grid;
  gap: 8px;
}

.support-list span {
  position: relative;
  padding-left: 15px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.support-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border: 1px solid #888;
  transform: translateY(-50%);
}

/* Tablet */
@media (max-width: 900px) {
  .support-flow {
    grid-template-columns: 1fr;
  }

  .support-flow::before {
    display: none;
  }

  .support-card {
    min-height: auto;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .support-intro {
    margin-bottom: 30px;
  }

  .support-card {
    padding: 24px;
  }

  .support-top {
    margin-bottom: 42px;
  }

  .support-number {
    font-size: 30px;
  }
}
/* =========================================
   CV SECTION — REFINED
========================================= */

.cv-section {
  background: #ffffff;
}

.cv-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: center;
  width: 100%;
}

.cv-copy {
  max-width: 680px;
}

/* Aligned with the CV section content */
.cv-kicker {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
}

.cv-copy h2 {
  margin: 0 0 18px;
}

.cv-description {
  max-width: 600px;
  margin: 0 0 28px;
  color: #666;
  font-size: 15px;
  line-height: 1.75;
}

/* CV download button */
.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.download-btn:hover {
  background: #222;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 #d4d4d0;
}

.download-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #555;
  background: #191919;
}

.download-icon svg {
  width: 19px;
  height: 19px;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.download-text strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.download-text small {
  font-size: 9px;
  color: #999;
  letter-spacing: 1px;
}

.download-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CV visual card */

.cv-card {
  position: relative;
  min-height: 340px;
  padding: 28px;
  background: #111;
  color: #fff;
  overflow: hidden;
  box-shadow: 16px 16px 0 #d4d4d0;
}

.cv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    linear-gradient(
      to right,
      transparent 49.5%,
      #777 49.5%,
      #777 50.5%,
      transparent 50.5%
    ),
    linear-gradient(
      to bottom,
      transparent 49.5%,
      #777 49.5%,
      #777 50.5%,
      transparent 50.5%
    );
  pointer-events: none;
}

.cv-card::after {
  content: "CV";
  position: absolute;
  right: -15px;
  bottom: -42px;
  font-family: "Manrope", sans-serif;
  font-size: 170px;
  font-weight: 800;
  line-height: 1;
  color: #1b1b1b;
  letter-spacing: -12px;
  pointer-events: none;
}

.cv-card > * {
  position: relative;
  z-index: 2;
}

.cv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #888;
}

.cv-card-main {
  margin-top: 65px;
}

.cv-initials {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid #555;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cv-card-main h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0.5px;
}

.cv-card-main p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

.cv-card-bottom {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cv-card-bottom span {
  padding: 5px 7px;
  border: 1px solid #444;
  font-size: 8px;
  letter-spacing: 1px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 900px) {
  .cv-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .cv-card {
    width: min(360px, 100%);
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .cv-card {
    min-height: 320px;
    padding: 24px;
    box-shadow: 10px 10px 0 #d4d4d0;
  }

  .cv-card-main {
    margin-top: 55px;
  }

  .cv-card-bottom {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }

  .download-btn {
    width: 100%;
  }
}
body {
  background: transparent;
}

body {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.92)
    ),
    url("jma-logo-1.png");

  /* Prevent the logo from becoming enormous */
  background-size: auto, 520px auto;

  /* Center the logo in the viewport */
  background-position: center, center;

  /* Keep the logo frozen while scrolling */
  background-attachment: fixed, fixed;

  background-repeat: no-repeat, no-repeat;
}

/* =========================================
   LIGHT SECTIONS
   Allow the logo to show through
========================================= */

.hero,
.services,
.portfolio,
.capabilities,
.tools,
.cv-section {
  background-color: transparent !important;
}

/* =========================================
   DARK SECTIONS
   Hide the watermark
========================================= */

.experience,
.contact,
footer {
  background-color: #0b0b0b !important;
}

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

@media (max-width: 768px) {

  body {
    background-image: none;
  }

  body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;

    transform: translate(-50%, -50%);

    background-image: url("jma-logo-1.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.08;

    pointer-events: none;
    z-index: 0;
  }

  body > * {
    position: relative;
    z-index: 1;
  }

}
