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


/* ─── Design tokens ──────────────────────────────────────── */
:root {
  /* Colors */
  --color-accent: #83bbff;        /* brand blue — backgrounds, links, .hero-heading "design" line */
  --color-ink: #1a212f;           /* primary text / headings */
  --color-white: #fff;
  --color-body-copy: #333;        /* paragraph/caption text */
  --color-placeholder: #aaa;      /* placeholder label text */
  --color-surface-light: #f0f0f0; /* portfolio image loading bg */
  --color-surface-muted: #e8e8e8; /* project grid placeholder bg */
  --color-shadow: #9d9d9d;
  --color-cta: #FDA745;           /* fine-art CTA button background */

  /* Typography */
  --font-family-base: 'Montserrat', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --h1-font-size: 2.125rem;         /* 34px mobile */
  --h1-font-size-desktop: 3rem;     /* 48px */
  --h1-line-height: 1.1;
  --h1-margin-bottom: var(--space-44);

  --h2-font-size: 1.5rem;           /* 24px mobile */
  --h2-font-size-desktop: 2.25rem;  /* 36px */
  --h2-line-height: 1.2;
  --h2-margin-bottom: var(--space-10);

  --h3-font-size: 1rem;          
  --h3-font-size-desktop: 1.15rem;  /* 36px */
  --h3-line-height: 1.2rem;          
  --h3-font-weight: var(--font-weight-medium);  /* 36px */

  --hero-heading-font-size: 3rem;           /* 48px mobile */
  --hero-heading-font-size-desktop: 5.5rem; /* 72px */
  --hero-heading-line-height: 1;
  --hero-heading-letter-spacing: -0.035em;

  --font-size-body-copy: 1rem; /* 16px — same at every breakpoint */
  --font-size-body-copy-desktop: 1.15rem; /* 16px — same at every breakpoint */
  --font-size-lead: 1.15rem;           /* 18.4px mobile — hero tagline */
  --font-size-lead-desktop: 1.5rem;    /* 24px */

  /* Spacing scale — named by px-equivalent for readability (values are
     rem, so they still scale with user font-size settings). Sections
     below reference these instead of one-off numbers: bump a token
     here and every place that uses it updates together. Spacing that's
     genuinely unique to one element is left as a literal value on
     purpose — not everything needs to route through the scale. */
  --space-10: 0.625rem; /* 10px */
  --space-16: 1rem;     /* 16px */
  --space-20: 1.25rem;  /* 20px */
  --space-24: 1.5rem;   /* 24px */
  --space-28: 1.75rem;  /* 28px */
  --space-32: 2rem;     /* 32px */
  --space-40: 2.5rem;   /* 40px */
  --space-44: 2.75rem;  /* 44px */
  --space-48: 3rem;     /* 48px */
  --space-60: 3.75rem;  /* 60px */
  --space-64: 4rem;     /* 64px */
  --space-80: 5rem;     /* 80px */
}


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


/* ─── Base ───────────────────────────────────────────────── */
html {
  background: var(--color-accent);
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
  background: var(--color-white);
}

h1 {
  font-family: var(--font-family-base);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--h1-line-height);
  color: var(--color-ink);
  margin-bottom: var(--h1-margin-bottom);
}

h2 {
  font-family: var(--font-family-base);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--h2-line-height);
  color: var(--color-ink);
  margin-bottom: var(--h2-margin-bottom);
}


h3 {
  font-family: var(--font-family-base);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--h3-line-height);
  color: var(--color-ink);
  margin-bottom: var(--h3-margin-bottom);
}

a {
  text-decoration: none;
}

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


/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}


/* ─── 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: var(--color-accent);
  padding: var(--space-16) 0;
}

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: var(--color-ink);
}

.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: var(--color-white);
}

header nav a {
  color: var(--color-white);
  font-size: 1.125rem;
  display: inline-block;
  padding: 0.4em 0.75em;
  margin: 0 -0.75em; /* cancels the left/right padding visually so "About" sits flush with the edge, while keeping the padding as a bigger tap target */
}

header nav a:hover {
  color: var(--color-ink);
}


/* ─── Fine Art CTA ───────────────────────────────────────── */
.fine-art-cta .container {
  display: flex;
  justify-content: flex-end; /* right-aligned on mobile; desktop switches to flex-start */
}

.fine-art-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-10);
  width: 15.5625rem;  /* 249px mobile */
  height: 1.875rem;   /* 30px mobile */
  background: var(--color-cta);
  border-radius: 0 0 8px 8px;
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 0.75rem; /* 12px mobile */
  white-space: nowrap;
}

.fine-art-button:hover {
  opacity: 0.85;
}


/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--color-accent);
  padding: var(--space-20) 0;
  text-align: center;
}

footer a {
  color: var(--color-white);
  font-size: 1rem;
  margin: 0 2rem;
  letter-spacing: 0.04em;
}

footer a:hover {
  opacity: 0.75;
}


/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: var(--space-40) 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: var(--space-32);
  align-items: center;
}

.hero-heading {
  font-size: var(--hero-heading-font-size);
  line-height: var(--hero-heading-line-height);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--hero-heading-letter-spacing);
  margin-bottom: 0; /* overrides the base h1 margin — spacing here comes from .hero-links margin-top */
}

.hero-heading .line-intentional {
  display: block;
  color: var(--color-ink);
  margin-left: -0.05em; /* nudge "I" to visually match "D" */
}

.hero-heading .line-design {
  display: block;
  color: var(--color-accent);
  margin-left: -0.07em; /* nudge "D" to visually match "I" */
}

.hero-links {
  margin-top: var(--space-28);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.hero-links a {
  color: var(--color-accent);
  font-size: 1.375rem;
}

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

/* No <br> tags — max-width guides natural line breaks */
.hero-tagline {
  font-size: var(--font-size-lead);
  line-height: 1.7;
  color: var(--color-ink);
  max-width: 28ch;
}


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

.you .y   { color: #6c94cd; }
.you .o   { color: #e99123; }
.you .u   { color: #ff1a1a; }
.you .dot { color: #6c94cd; }


/* ─── Portfolio grid ─────────────────────────────────────── */
.portfolio {
  padding: var(--space-20) 0 var(--space-64);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column on mobile */
  gap: var(--space-48);
}

#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: var(--color-surface-light); /* Placeholder color while loading */
  box-shadow: 2px 4px 5px var(--color-shadow);
}

/* 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: var(--font-size-body-copy);
  color: var(--color-body-copy);
}

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


/* ─── Vision / Detail / Craft ────────────────────────────── */
.vision-section {
  padding: var(--space-24) 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: 1.375rem; /* 22px on mobile, matches header shapes */
  width: auto;
  margin: 0 auto 1.125rem;
}

.vision-item p {
  font-size: 1.0625rem; /* 17px on mobile */
  color: var(--color-ink);
  letter-spacing: 0.04em;
}

/* vission explanation text is on hold for now, but saving the CSS in case we want to use it later.
.vision-item
.vision-explanation {
  font-size: var(--font-size-body-copy);
  color: var(--color-body-copy);
  margin-top: 0.5rem;
}
  */


/* ─── About page ─────────────────────────────────────────── */
/* .about-content shares its padding rhythm with .project-content below */
.about-content,
.project-content {
  padding: var(--space-64) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: var(--space-40);
  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: var(--font-size-body-copy);
  line-height: 1.85;
  color: var(--color-body-copy);
  margin-bottom: 1.375rem;
}

#about-email {
  margin-top: var(--space-32);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
}

#about-email a {
  color: var(--color-ink);
}


/* ─── Project page ───────────────────────────────────────── */
/* .project-content padding is declared above, merged with .about-content */
.project-title {
  font-size: var(--h1-font-size);
  color: var(--color-ink);
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--h1-margin-bottom);
  line-height: var(--h1-line-height);
}

.project-image {
  width: 100%;
  margin: var(--space-44) 0;
}

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

.project-image-placeholder {
  color: var(--color-placeholder);
  font-size: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: var(--space-16);
  margin-top: var(--space-44);
}

.project-grid-item {
  background: var(--color-surface-muted);
  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: var(--color-placeholder);
  font-size: 1.25rem;
}

.project-description {
  font-size: var(--font-size-body-copy);
  line-height: 1.85;
  padding-bottom: var(--space-24);
  color: var(--color-body-copy);
}


/* ─── Gold project page (gold.html) ─────────────────────── */
.gold-video-wrap {
  display: flex;
  justify-content: center;
  margin: var(--space-32) 0;
}
.gold-video-wrap video {
  width: 65%;
  max-width: 720px;
}

/* Horizontal image viewer (accessible alt to the hover-zoom style) */
.hscroll-wrap {
  position: relative;
  width: 100%;
  margin: var(--space-44) 0;
}

.hscroll-track {
  aspect-ratio: 5 / 7;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 4px;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* legacy Edge/IE */
}
.hscroll-track::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}
.hscroll-track:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.hscroll-img {
  height: 100%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

.hscroll-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  box-shadow: 2px 4px 5px var(--color-shadow);
  cursor: pointer;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s ease;
}
.hscroll-arrow:hover {
  background: var(--color-white);
}
.hscroll-arrow svg {
  width: 18px;
  height: 18px;
}
.hscroll-arrow-left  { left: 10px; }
.hscroll-arrow-right { right: 10px; }

/* The hscroll viewer flips 5:7 (portrait) to 7:5 (landscape) at a
   1024px "true desktop" cutoff — distinct from the site's normal
   768px breakpoint below, since tablets should stay portrait. */
@media (min-width: 1024px) {
  .hscroll-track {
    aspect-ratio: 7 / 5;
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hscroll-arrow {
    display: flex;
  }
  .hscroll-arrow[hidden] {
    display: none; /* re-assert native hidden over the display:flex above */
  }
}


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

  /* ─── Base ─── */
  h1 {
    font-size: var(--h1-font-size-desktop);
  }

  h2 {
    font-size: var(--h2-font-size-desktop);
  }

  /* ─── Container ─── */
  .container {
    padding: 0 var(--space-40);
  }

  /* ─── Header ─── */
  header {
    padding: var(--space-28) 0;
  }

  .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;
    margin: 0 -1em; /* re-cancel the larger padding at this breakpoint */
  }

  /* ─── Fine Art CTA ─── */
  .fine-art-cta .container {
    justify-content: flex-end; /* right-aligned to match mobile */
  }

  .fine-art-button {
    width: 19.5625rem; /* 313px */
    height: auto;      /* grows from padding + line-height */
    font-size: 1rem;   /* 16px */
  }

  /* ─── Footer ─── */
  footer {
    padding: var(--space-40) 0;
  }

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

  /* ─── Hero ─── */
  .hero {
    padding: var(--space-64) 0 var(--space-60);
  }

  .hero .container {
    grid-template-columns: 1fr 1fr; /* side-by-side */
    gap: var(--space-40);
  }

  .hero-heading {
    font-size: var(--hero-heading-font-size-desktop);
  }

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

  /* Right-aligned tagline, natural line breaks from column width */
  .hero-tagline {
    font-size: var(--font-size-lead-desktop);
    text-align: right;
    max-width: none;
    margin-left: auto;
  }

  /* ─── Portfolio ─── */
  .portfolio {
    padding: var(--space-20) 0 6.25rem; /* 6.25rem/100px is unique to this section, left as-is */
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr; /* two columns */
    gap: var(--space-64) var(--space-48);
  }

  /* ─── Vision ─── */
  .vision-section {
    padding: var(--space-48) 0;
  }

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

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

  .vision-item img {
    height: auto; /* natural image size */
  }

  /* ─── About ─── */
  .about-content,
  .project-content {
    padding: var(--space-80) 0;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr; /* side-by-side */
    gap: var(--space-80);
  }

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

.about-bio p {
  font-size: var(--font-size-body-copy-desktop);
}

  /* ─── Project ─── */
  .project-title {
    font-size: var(--h1-font-size-desktop);
  }

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

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

  .project-description {
    max-width: calc(100% - 100px);
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-body-copy-desktop);   /* 18px */
  }
}


/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo-shapes img {
    animation: none;
  }

  .portfolio-item img,
  .hscroll-arrow {
    transition: none;
  }
}
