:root {
  --white: #ffffff;
  --grey-light: #f7f4f0;
  --grey-mid: #9a8a88;
  --grey-dark: #4a3a38;
  --text: #1e1010;
  --burgundy: #4a1020;
  --purple: #31174B;
  --purple-dark: #1e0e2f;
  --amber: #b87820;
  --border: #e8ddd8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* ── HERO TOP ── */
.hero-top {
  display: block;
  position: relative;
  width: 100%;
  line-height: 0;
  margin-bottom: -4px;
}

.hero-top__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav__link {
  text-decoration: none;
  color: var(--grey-dark);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--purple);
}

.nav__link--icon {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.nav__menu {
  display: none;
}

.nav__links--mobile {
  display: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--grey-dark);
  text-transform: uppercase;
}

.btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn--primary {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.btn--primary:hover {
  border-color: white;
  color: white;
}

.btn--outline {
  border-color: var(--border);
  color: var(--grey-dark);
}

.btn--outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── SECTION COMMON ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 3rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  overflow: visible;
  background-image: url('./assets/images/hero2.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding-top: calc(1124 / 2880 * 100%);
  height: 0;
}

.hero__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 9% 3rem 6%;
  text-align: right;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero__name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__cta .btn {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}

.hero__cta .btn:hover {
  color: white;
  border-color: white;
}

/* ── ABOUT ── */
.about {
  background: transparent;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
  margin-top: -10rem;
}

.about__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 5rem;
  align-items: start;
}

.deco-title-wrap {
  position: relative;
  display: inline-block;
}

.deco-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(4.7rem, 9.5vw, 8.1rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: none;
  letter-spacing: 0.01em;
}

.deco-title--outline {
  position: relative;
  z-index: 2;
  color: transparent;
}

.deco-title--fill {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  -webkit-text-stroke: 0 !important;
}

.deco-title--mauve.deco-title--outline { -webkit-text-stroke: 0.5px rgba(192, 144, 136, 0.2); }
.deco-title--mauve.deco-title--fill    { color: rgba(192, 144, 136, 0.2); }

.deco-title--amber.deco-title--outline { -webkit-text-stroke: 0.5px rgba(184, 120, 32, 0.2); }
.deco-title--amber.deco-title--fill    { color: rgba(184, 120, 32, 0.2); }

.deco-title--purple.deco-title--outline { -webkit-text-stroke: 0.5px rgba(49, 23, 75, 0.2); }
.deco-title--purple.deco-title--fill    { color: rgba(49, 23, 75, 0.2); }

.deco-title--contact.deco-title--outline { -webkit-text-stroke: 0.5px rgba(74, 16, 32, 0.2); }
.deco-title--contact.deco-title--fill    { color: rgba(74, 16, 32, 0.15); }

.about__title-col {
  padding-top: 12rem;
}

.about__content {
  background: #C38075;
  padding: 2.5rem;
}

.about__text {
  color: var(--white);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about__links .btn {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.about__links .btn:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── CAROUSEL ── */
.carousel {
  background: var(--grey-light);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.carousel__track-wrap {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  cursor: grab;
}

.carousel__track:active {
  cursor: grabbing;
}

.carousel__img {
  height: 260px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.carousel__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.carousel__controls .carousel__btn {
  pointer-events: all;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel__btn:hover {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

/* ── SKILLS ── */
.skills {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.skills__layout {
  display: grid;
  grid-template-columns: 0.9fr 260px;
  gap: 0 3rem;
  align-items: start;
}

.skills__header-col {
  padding: 2rem 0 2.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem;
}

.skills__block {
  background: var(--amber);
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(230, 170, 80, 0.18);
  transition: all 0.2s;
}

.skill-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.skill-pill i {
  color: var(--white);
}

/* ── PROJECTS ── */
.projects {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.projects__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.projects__left .deco-title-wrap {
  margin-bottom: 1.5rem;
}

.projects__intro {
  font-size: 0.95rem;
  color: var(--grey-mid);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  display: block;
}

.project-card--featured .project-card__number {
  color: rgba(255,255,255,0.2);
}

.project-card {
  background: var(--white);
  border: 1px solid var(--purple);
  border-top: 3px solid var(--purple);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-top-color 0.2s;
}

.project-card:hover {
  border-top-color: var(--amber);
}

.project-card--featured {
  background: var(--purple);
  border-color: var(--purple);
  border-top: 3px solid var(--purple-dark);
  color: white;
}

.project-card.project-card--featured:hover {
  border-top-color: var(--amber);
}

.project-card--featured .project-card__desc {
  color: rgba(255,255,255,0.75);
}

.project-card--featured .project-card__tech span {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}

.project-card .btn {
  border: 1px solid var(--border);
  color: var(--purple);
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  background: transparent;
  align-self: flex-start;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
}

.project-card .btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.project-card--featured .btn {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.project-card--featured .btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.project-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card--featured .project-card__title {
  color: white;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card__tech span {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--grey-mid);
  background: var(--grey-light);
}

/* ── CONTACT ── */
.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__form {
  background: var(--burgundy);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.6;
  max-width: 340px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.contact__field input,
.contact__field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: rgba(255,255,255,0.5);
}

.contact__submit {
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 0.6rem 1.5rem;
  background: transparent;
}

.contact__submit:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* ── FOOTER ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--grey-mid);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  font-size: 1.2rem;
}

.footer__links a {
  color: var(--grey-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--purple);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
    height: 44px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav__menu.active {
    display: flex;
  }

  .nav__links--mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
  }

  .hero__content {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .hero__cta {
    display: none;
  }

  .hero__eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .section-inner {
    padding: 5rem 1.5rem;
  }

  .about {
    margin-top: 0;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .about__title-col {
    padding-top: 0;
  }

  .carousel__img {
    height: 180px;
  }

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

  .skills__header-col {
    order: -1;
    padding: 0 0 1rem 0;
    justify-content: flex-start;
    text-align: left;
  }

  .deco-title {
    font-size: 3.5rem;
  }

  .deco-title--fill {
    top: 3px;
    left: 3px;
  }

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

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

  .project-card--featured {
    grid-column: 1;
  }

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

  .contact__right {
    order: -1;
  }

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

  .footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
