@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════
   BETHANY CATES — Portfolio
   Approach: Mobile-First. Base styles target small screens.
   Desktop overrides live in the single @media block at bottom.
   ═══════════════════════════════════════════════════════════ */


/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ─── Base ───────────────────────────────────────────────── */
html {
  background: #83bbff;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #1a212f;
  background: #fff;
}

a {
  text-decoration: none;
}

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


/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px on mobile */
}


/* ─── Logo roll-in animation ─────────────────────────────── */
@keyframes roll-in {
  0%   { transform: translateX(-300px) rotate(-360deg); opacity: 0; }
  70%  { transform: translateX(10px)   rotate(10deg);   opacity: 1; }
  85%  { transform: translateX(-4px)   rotate(-4deg); }
  100% { transform: translateX(0)      rotate(0deg);    opacity: 1; }
}

.logo-shapes img {
  animation: roll-in 1.25s ease-out both;
}

.logo-shapes img:nth-child(1) { animation-delay: 0s; }
.logo-shapes img:nth-child(2) { animation-delay: 0.1s; margin-left: 4px; }
.logo-shapes img:nth-child(3) { animation-delay: 0.2s; }


/* ─── Header ─────────────────────────────────────────────── */
header {
  background: #83bbff;
  padding: 1.5rem 0; /* 24px on mobile */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px on mobile */
  color: #1a212f;
}

.logo-shapes {
  display: flex;
  align-items: center;
  gap: 0.375rem; /* ~6px on mobile */
}

.logo-shapes img {
  height: 1.375rem; /* 22px on mobile */
  width: auto;
}


.logo-name {
  font-size: 1.125rem;
  color: #1a212f;
}

header nav a {
  color: #333;
  font-size: 1.125rem;
  display: inline-block;
  padding: 0.4em 0.75em;
}

header nav a:hover {
  color: white;
}


/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: #83bbff;
  padding: 2rem 0;
  text-align: center;
}

footer a {
  color: #fff;
  font-size: 1rem;
  margin: 0 1.125rem;
}

footer a:hover {
  opacity: 0.75;
}


/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 4rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  padding: 0 4rem;
  gap: 2.5rem;
  align-items: center;
}

.hero-heading {
  font-size: 3rem; /* 48px on mobile */
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-heading .line-intentional {
  display: block;
  color: #1a212f;
}

.hero-heading .line-design {
  display: block;
  color: #83bbff;
}

.hero-links {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero-links a {
  color: #1a212f;
  font-size: 1.375rem;
}

.hero-links a:hover {
  opacity: 0.7;
}

/* No <br> tags — max-width guides natural line breaks */
.hero-tagline {
  font-size: 1.15rem; /* 22px on mobile */
  line-height: 1.7;
  color: #1a212f;
  max-width: 28ch;
}


/* ─── "you." per-letter coloring ────────────────────────── */
.you {
  font-style: italic;
}

.you .y   { color: #83bbff; }
.you .o   { color: #ffad40; }
.you .u   { color: #ff1a1a; }
.you .dot { color: #83bbff; }


/* ─── Portfolio grid ─────────────────────────────────────── */
.portfolio {
  padding: 1.25rem 0 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column on mobile */
  gap: 3rem;
}

#bus-process .project-grid-item {
  min-height: unset;
  aspect-ratio: 8 / 3;
}

.portfolio-item a {
  display: block;
  color: inherit;
}






/* 1. The Container: Acts as a 'window' */
.portfolio-item a:first-child {
  display: block;
  overflow: hidden; /* Crucial: Clips the zoom so it stays in the box */
  border-radius: 4px; /* Optional: matches your brand style */
  background: #f0f0f0; /* Placeholder color while loading */
  box-shadow: 2px 4px 5px #9d9d9d;
}

/* 2. The Image: The base state */
.portfolio-item img {
  /* 1. Force a consistent shape (e.g., a 4:3 landscape or 1:1 square) */
  aspect-ratio: 4 / 3; 
  
  /* 2. Make the image fill the frame without stretching */
  width: 100%;
  height: 100%;
  object-fit: cover; 
  
  /* 3. Keep your smooth zoom from before */
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  
}

/* 3. The Hover State */
.portfolio-item:hover img {
  transform: scale(1.06); /* A subtle 6% zoom is more elegant than a big one */
}

/* 4. Accessibility: Ensure it zooms when tabbing through with a keyboard */
.portfolio-item a:focus img {
  transform: scale(1.06);
}



.portfolio-caption {
  display: block;
  margin-top: 0.875rem;
  font-size: 1.125rem;
  color: #333;
}

.portfolio-caption:hover {
  opacity: 0.7;
}


/* ─── Vision / Detail / Craft ────────────────────────────── */
.vision-section {
  padding: 2.5rem 0;
  text-align: center;
}

/* Flex + space-between replaces the rigid 180px gap */
.vision-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 320px;
  margin: 0 auto;
}

.vision-item img {
  height: auto;
  width: auto;
  margin: 0 auto 1.125rem;
}

.vision-item p {
  font-size: 1.0625rem; /* 17px on mobile */
  color: #1a212f;
  letter-spacing: 0.04em;
}


/* ─── About page ─────────────────────────────────────────── */
.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: 2.5rem;
  align-items: start;
}

/* Centered large image on mobile */
.about-photo {
  text-align: center;
}

.about-photo img {
  width: 80%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 1.375rem;
}

#about-email {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-style: bold;
}


/* ─── Project page ───────────────────────────────────────── */
.project-content {
  padding: 4rem 0;
}

.project-title {
  font-size: 2.125rem; /* 34px on mobile */
  color: #1a212f;
  font-weight: 400;
  margin-bottom: 2.75rem;
  line-height: 1.1;
}

.project-image {
  width: 100%;
  margin: 2.75rem 0;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-image-placeholder {
  color: #aaa;
  font-size: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: 1rem;
  margin-top: 2.75rem;
}

.project-grid-item {
  background: #e8e8e8;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.project-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.project-grid-placeholder {
  color: #aaa;
  font-size: 1.25rem;
}

.project-description {
  font-size: 1.25rem;
  line-height: 1.85;
  padding-bottom: 1.5rem;
  color: #333;
}


/* ═══════════════════════════════════════════════════════════
   DESKTOP — 768px and up
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ─── Container ─── */
  .container {
    padding: 0 2.5rem; /* 40px */
  }

  /* ─── Header ─── */
  header {
    padding: 2.75rem 0; /* 44px */
  }

  .logo-link {
    gap: 0.875rem; /* 14px */
  }

  .logo-shapes {
    gap: 0.625rem; /* 10px */
  }

  .logo-shapes img {
    height: auto; /* natural image size */
  }
  
  .logo-name {
    font-size: 1.5rem; 
  }

header nav a {
    font-size: 1.5rem;
    padding: 0.5em 1em;
  }

  /* ─── Footer ─── */
  footer {
    padding: 4rem 0;
  }

footer a {
    /* Match the header scale */
    font-size: 1.5rem;
    margin: 0 3rem;
  }

  /* ─── Hero ─── */
  .hero {
    padding: 6.25rem 0 5.625rem; /* 100px 90px */
  }

  .hero .container {
    grid-template-columns: 1fr 1fr; /* side-by-side */
  padding: 0 4rem;
    gap: 3.75rem;
  }

  .hero-heading {
    font-size: 5.5rem; /* 72px */
  }

  .hero-links a {
    font-size: 1.375rem; /* 25px */
  }

  /* Right-aligned tagline, natural line breaks from column width */
  .hero-tagline {
    font-size: 1.5rem; /* 27px */
    text-align: right;
    max-width: none;
    margin-left: auto;
  }

  /* ─── Portfolio ─── */
  .portfolio {
    padding: 1.25rem 0 6.25rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr; /* two columns */
    gap: 4rem 3rem;
  }

  .portfolio-caption {
    font-size: 1.3125rem; /* 21px */
  }

  /* ─── Vision ─── */
  .vision-section {
    padding: 5rem 0;
  }

  .vision-grid {
    max-width: 480px;
  }

  .vision-item p {
    font-size: 1.40625rem; /* 22.5px */
  }

  /* ─── About ─── */
  .about-content {
    padding: 5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr; /* side-by-side */
    gap: 5rem;
  }

  /* Fill the full grid column on desktop */
  .about-photo img {
    width: 100%;
    margin: 0;
  }

  .about-bio p {
    font-size: 1rem;
  }

  /* ─── Project ─── */
  .project-title {
    font-size: 3rem; /* 48px */
  }

  .project-image {
    min-height: unset;
  }

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

  .project-grid-item {
    min-height: 320px;
  }
}
