/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #111111;
  --line: rgba(17, 17, 17, 0.10);
  --line-strong: rgba(17, 17, 17, 0.18);
  --bg: #f4f1ec;
  --container: min(1300px, calc(100% - 48px));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  background-image: url('/difrancesco/images/background.png');
  background-repeat: repeat;
  background-size: cover;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
  padding-top: 34px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.45);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 0.65;
}

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

.method-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.method-hero__background {
  position: absolute;
  inset: 0;
}

.method-hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 28%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.method-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-hero .container {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.method-hero__content {
  max-width: 820px;
  color: #ffffff;
  padding: 40px 0;
}

.eyebrow {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.method-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.method-hero__line {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  margin: 24px 0 28px;
}

.method-hero__text {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.45;
  font-weight: 400;
  max-width: 480px;
}

/* =========================
   SECTION HEADING
========================= */

.section-heading {
  text-align: center;
  padding: 26px 0 30px;
}

.section-heading__label {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading__line {
  width: 56px;
  height: 1px;
  background: rgba(17, 17, 17, 0.35);
  margin: 16px auto 0;
}

/* ===============================================================
   TEAM
================================================================== */

.team {
  padding: 20px 0 0px;
}

.team__intro {
  text-align: center;
  margin-bottom: 46px;
}

.team__title {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1.05;
}

.team__subtitle {
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.5;
  font-weight: 400;
}

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

.team-card {
  min-height: 100%;
  padding: 26px 24px;

  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  display: flex;
  flex-direction: column;

  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 17, 17, 0.35);
  background: rgba(255, 255, 255, 0.48);
}

.team-card__top {
  margin-bottom: 18px;
}

.team-card__company {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.team-card__role {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.72);
}

.team-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.85);
}

.team-card__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 22px;
  padding-left: 16px;
  list-style: disc;
}

.team-card__list li {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(17, 17, 17, 0.86);
}

.team-card__person {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===============================================================
   TEAM RESPONSIVE
================================================================== */

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .team {
    padding: 0px 0 0px;
  }

  .team__intro {
    margin-bottom: 30px;
  }

  .team-card {
    padding: 18px 16px 20px;
  }

  .team-card__text {
    font-size: 14px;
  }

  .team-card__list li {
    font-size: 13px;
  }
}

/* =========================
   BANNER
========================= */
.method-banner {
  margin: 50px 0px 30px 0px;
}

.method-banner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* =========================
   CTA
========================= */
.method-cta {
  padding: 34px 0 70px;
}

.method-cta__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.method-cta__text {
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.method-cta__box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding-left: 34px;
  border-left: 1px solid var(--line-strong);
}

.method-cta__box-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.method-cta__eyebrow {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.method-cta__copy {
  max-width: 440px;
  font-size: 20px;
  line-height: 1.38;
  color: rgba(17, 17, 17, 0.78);
  margin-bottom: 22px;
}

.method-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #111111;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.method-cta__button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.footer-main {
  padding: 42px 0 56px;
}

.footer-brand {
  text-align: center;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  margin-bottom: 26px;
  padding-bottom: 16px;
}

.footer-logo {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

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

.footer-column {
  text-align: center;
}

.footer-title {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-column p,
.footer-column a {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.88);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social a {
  position: relative;
}

.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(17, 17, 17, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-social a:hover::after {
  transform: scaleX(1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-card:nth-child(2n)::after {
    display: none;
  }

  .pillar-card:nth-child(4n)::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .main-nav ul {
    gap: 22px;
  }

  .main-nav a {
    font-size: 17px;
  }

  .method-cta__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    margin: 0 auto;
  }

  .main-nav ul {
    justify-content: center;
  }

  .method-hero {
    min-height: 560px;
  }

  .method-hero .container {
    min-height: 560px;
  }

  .method-hero__title {
    font-size: clamp(54px, 11vw, 84px);
  }

  .method-hero__text {
    font-size: 24px;
  }

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

  .pillar-card::after {
    display: none;
  }

  .method-banner img {
    height: 260px;
  }

  .method-cta__box {
    padding-left: 0;
    border-left: none;
  }

  .footer-banner img {
    height: 250px;
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100%, calc(100% - 28px));
  }

  .site-header {
    padding-top: 22px;
  }

  .logo {
    font-size: 18px;
  }

  .main-nav ul {
    gap: 14px 18px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .method-hero {
    min-height: 480px;
  }

  .method-hero .container {
    min-height: 480px;
  }

  .method-hero__content {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .method-hero__title {
    font-size: clamp(46px, 14vw, 70px);
  }

  .method-hero__line {
    margin: 18px 0 20px;
  }

  .method-hero__text {
    font-size: 20px;
    line-height: 1.5;
  }

  .pillar-card {
    padding: 22px 18px 24px;
    min-height: auto;
  }

  .pillar-card__number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .pillar-card__title {
    min-height: auto;
    font-size: 22px;
  }

  .pillar-card__icon img {
    width: 26px;
    height: 26px;
  }

  .pillar-card__list li {
    font-size: 16px;
  }

  .method-banner img {
    height: 180px;
  }

  .method-cta {
    padding: 24px 0 44px;
  }

  .method-cta__text {
    font-size: 32px;
  }

  .method-cta__box {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .method-cta__copy {
    font-size: 18px;
  }

  .method-cta__button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-banner img {
    height: 180px;
  }

  .footer-main {
    padding: 32px 0 42px;
  }

  .footer-brand {
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 15px;
    line-height: 1.6;
  }

  .footer-social {
    gap: 14px;
  }
}