/* =========================================================
   ALESSANDRO BIGARDI — CREATIVE DIRECTOR
   One-page portfolio
   ========================================================= */

/* 1. VARIABLES */

:root {
  --bg: #050505;
  --text: #f2f2f2;
  --soft: #cdcdcd;
  --muted: #929292;
  --line: #262626;
  --accent: #ff7a00;

  --max-width: 1480px;
  --outer: 30px;

  --space-section: 82px;
  --space-large: 110px;

  --font-display: "Urbanist", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}


/* 2. RESET / BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

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

figure {
  margin: 0;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* 3. LAYOUT */

.page {
  width: min(calc(100% - (var(--outer) * 2)), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-label {
  margin: 0 0 28px;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}


/* 4. HERO / BRAND */

.site-header {
  padding-block: 34px 70px;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: block;
}

.brand {
  display: inline-block;
  font-family: var(--font-display);
  line-height: 0.95;
}

.brand-name {
  display: block;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.95;
  white-space: nowrap;
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

.brand-role {
  margin-top: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-fields {
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #858585;
}

.brand-role,
.brand-fields {
  display: block;
}

.professional-intro {
  max-width: 680px;
  margin: 58px 0 0;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--soft);
}


/* 5. PROJECTS */

.project-entry + .project-entry {
  margin-top: var(--space-large);
  padding-top: var(--space-large);
  border-top: 1px solid var(--line);
}

.project-block {
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: start;
}

.project-main-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.project-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy {
  padding-top: 2px;
}

.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  font-weight: 300;
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.project-description {
  max-width: clamp(22rem, 55%, 34ch);
  margin: 42px 0 0;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft);
}

.project-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid #666;
  font-size: 0.95rem;
  color: var(--text);
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* 6. FEATURED PROJECT — CESTISTICA 26/27 */

.project-featured-media {
  max-width: 980px;
  margin-top: 54px;
}

.project-featured-hero {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-featured-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-featured-vertical {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.project-featured-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 7. CLIENTS */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 22px;
  margin-top: 64px;

  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--soft);
}

.clients-grid span {
  display: block;
}


/* 8. ABOUT */

.about-grid {
  max-width: 950px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.about-photo {
  width: 120px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111;
}

.about-copy {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft);
}


.about-membership {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 48px;
}

.about-membership-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.about-membership a {
  display: inline-block;
}

.about-membership img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.about-membership a:hover img {
  opacity: 1;
}


/* 9. CONTACT */

.contact-links {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: var(--soft);
}

.contact-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* 10. FOOTER */

.footer-wrapper {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-block: 30px 28px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-right {
  text-align: right;
}


/* 11. RESPONSIVE */

@media (max-width: 900px) {
  .project-block {
    grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 700px) {
  :root {
    --outer: 20px;
    --space-section: 62px;
    --space-large: 76px;
  }

  .site-header {
    padding-block: 24px 50px;
  }

  .brand-name {
    font-size: clamp(2.4rem, 10.2vw, 3.6rem);
    white-space: normal;
  }

  .brand-role {
    margin-top: 10px;
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .brand-fields {
    margin-top: 8px;
    font-size: clamp(1rem, 4.9vw, 1.4rem);
    line-height: 1.15;
  }

  .professional-intro {
    max-width: 22rem;
    margin-top: 42px;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .professional-intro br {
    display: none;
  }

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

  .home-projects .project-main-image {
    max-width: 84%;
  }

  .project-title {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .project-description {
    margin-top: 28px;
  }

  .project-featured-media {
    max-width: 100%;
    margin-top: 38px;
  }

  .project-featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
    column-gap: 28px;
    row-gap: 18px;
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .about-grid {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 22px;
  }

  .about-photo {
    width: 88px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}

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

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

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


/* 12. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
