:root {
  --vanilla: #fff4d6;
  --vanilla-soft: #fffaf1;
  --orange: #fc6c26;
  --orange-deep: #de5b20;
  --ink: #1e1b19;
  --muted: #6a625d;
  --card: #fffdfb;
  --paper: rgba(255, 255, 255, 0.7);
  --line: rgba(30, 27, 25, 0.1);
  --shadow: 0 12px 30px rgba(30, 27, 25, 0.04);
  --dark-panel: #1c1b1a;
  --dark-panel-2: #2a2521;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf4 0%, #f5efe7 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page-shell {
  max-width: 1240px;
  margin: 18px auto 72px;
  padding: 0 22px;
}

.section {
  padding: 52px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, #ffb280 100%);
  color: #fffaf4;
  font-size: 0.9rem;
  box-shadow: 0 14px 22px rgba(252, 108, 38, 0.18);
}

.brand-text {
  font-size: 0.8rem;
}

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

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  margin: 5px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  align-items: center;
  gap: 54px;
  padding: 42px 0 36px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

/* These sections use CSS grid/flex for their layout. Reset Bootstrap's row
   gutters and column widths so they do not constrain an item inside a grid track. */
.hero > *,
.about-grid > *,
.footer-card > * {
  width: auto;
  max-width: none;
  margin-top: 0;
  padding-right: 0;
  padding-left: 0;
  min-width: 0;
}

.hero > *,
.about-grid > * {
  flex: none;
}

.hero,
.about-grid,
.footer-card {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-right: 0;
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.footer-card h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 540px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: inline-block;
  color: var(--orange);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 600px;
  margin-top: 24px;
  line-height: 1.75;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8a5d 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(252, 108, 38, 0.18);
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

.mini-stats {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.mini-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.mini-stats strong {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  letter-spacing: -0.06em;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.visual-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.photo-card {
  padding: 0;
  transform: none;
}

.portrait-frame {
  border-radius: 0;
  border: 1px solid var(--line);
  padding: 0;
  background: transparent;
}

.portrait-placeholder {
  min-height: 360px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fffaf3 0%, #f1dfc5 100%);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  border: 1px solid var(--line);
}

.profile-meta {
  padding: 18px 8px 6px;
}

.profile-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 8px;
}

.profile-meta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.06em;
}

.metric-card {
  padding: 18px 1vw 0;
  width: 100%;
  align-self: end;
  transform: none;
}

.metric-card p {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 1vw;
}

.tech-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(252, 108, 38, 0.08);
  border: 1px solid rgba(252, 108, 38, 0.18);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.about {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2,
.footer-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
  max-width: 760px;
}

.narrow h2 {
  max-width: 620px;
}

.bio-card,
.details-card,
.service-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


.details-card div {
  padding: 2%;
}

.bio-card {
  padding: 28px;
}

.bio-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.bio-card p:last-child {
  margin-bottom: 0;
}

.details-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.details-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.details-card div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.services {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card {
  padding: 2vw;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-top: 1px solid var(--line);
}

.service-card:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
  letter-spacing: -0.05em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 54ch;
}

.projects {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
}

.project-image {
  position: relative;
  min-height: 260px;
  height: 100%;
  border: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 0;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

#img-changeable {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#dafrance-img-changeable {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#rentahub-img-changeable {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}



.image-one {
  background:
    linear-gradient(135deg, rgba(252, 108, 38, 0.18), rgba(17, 17, 17, 0.1)),
    linear-gradient(135deg, #f2d9c1 0%, #d9cfc4 100%);
}

.image-two {
  background:
    linear-gradient(135deg, rgba(54, 45, 38, 0.15), rgba(252, 108, 38, 0.12)),
    linear-gradient(135deg, #ebe4dc 0%, #d9d0c2 100%);
}

.image-three {
  background:
    linear-gradient(135deg, rgba(18, 26, 23, 0.16), rgba(252, 108, 38, 0.12)),
    linear-gradient(135deg, #e6ddd4 0%, #cfc2b0 100%);
}

.project-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy {
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.project-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 38ch;
}

.resume {
  padding-top: 0;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.resume-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.resume-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding-bottom: 20px;
}

.footer-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}

.footer-card h2,
.footer-card .eyebrow {
  color: var(--ink);
}

.footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
  }

  .portrait-placeholder {
    min-height: clamp(280px, 55vw, 360px);
  }

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

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

  .resume-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: calc(100% - 20px);
    max-width: 1200px;
    padding: 0;
  }

  .topbar {
    position: relative;
    padding-bottom: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 20;
  }

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

  .nav a {
    width: 100%;
    padding: 7px 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .lead {
    font-size: 0.98rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

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

  .mini-stats li {
    min-width: 0;
  }

  .bio-card,
  .project-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-image {
    min-height: 220px;
    height: 220px;
  }

  .project-topline {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footnote {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .topbar {
    gap: 12px;
  }

  .section {
    padding: 34px 0;
  }

  .hero {
    gap: 28px;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 14.5vw, 3.25rem);
  }

  .hero-actions {
    gap: 12px;
  }

  .btn {
    padding: 13px 18px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 250px;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-stack span {
    padding: 8px 10px;
  }

  .bio-card,
  .project-copy {
    padding: 18px;
  }

  .project-image {
    min-height: 190px;
    height: 190px;
  }

  .socials {
    gap: 14px;
  }
}
