/* ============================================================
   jongordon.info — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600&family=Lato:wght@400;700;900&display=swap');

:root {
  --color-teal:            rgba(24, 165, 144, 0.93);
  --color-teal-solid:      #18A590;
  --color-teal-dark:       rgba(18, 140, 122, 0.93);
  --color-text:            #222222;
  --color-text-secondary:  #333333;
  --color-bg:              #ffffff;
  --color-border:          #e5e5e5;
  --font-primary:          'Lato', sans-serif;
  --nav-size:              13px;
  --nav-weight:            900;
  --nav-spacing:           1.3px;
  --body-size:             17px;
  --body-line-height:      1.6;
  --max-width:             1180px;
  --content-width:         1180px;
  --gutter:                40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-primary); font-size: var(--body-size); color: var(--color-text); background-color: var(--color-bg); line-height: var(--body-line-height); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Site Header ── */
.site-header { position: fixed; top: 0; left: 0; z-index: 100; padding: 56px; transition: opacity 0.3s ease; }
.site-logo img { height: 40px; width: auto; }

/* ── Site Navigation — bottom fixed on ALL pages ── */
.site-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 40px; padding: 28px var(--gutter);
  background-color: var(--color-bg);
}
.site-nav a {
  font-family: var(--font-primary); font-size: var(--nav-size);
  font-weight: var(--nav-weight); letter-spacing: var(--nav-spacing);
  text-transform: uppercase; color: var(--color-text); transition: color 0.2s ease;
}
.site-nav a.active { font-weight: 900; }
.site-nav a:hover { text-decoration: line-through; }
.site-nav--home a:hover { text-decoration: line-through; color: var(--color-text); }

/* ── Site Footer ── */
.site-footer {
  text-align: center; padding: 60px var(--gutter) 100px;
  font-family: var(--font-primary); font-size: var(--nav-size);
  font-weight: var(--nav-weight); letter-spacing: var(--nav-spacing);
  text-transform: uppercase; color: var(--color-text);
  border-top: 1px solid var(--color-border); margin-top: 60px;
}

/* ── Homepage Layout ── */
.page-home {
  height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px var(--gutter) 100px; position: relative;
}
.home-hero { text-align: center; transition: opacity 0.25s ease; }
.home-hero.is-hidden { opacity: 0; pointer-events: none; }
.home-hero p {
  font-family: var(--font-primary); font-size: 90px; font-weight: 400;
  line-height: 1.3; color: var(--color-teal); letter-spacing: -0.9px;
}
.home-project-image {
  display: none; width: 100%; max-width: 1180px; margin: 0 auto;
  transition: opacity 0.25s ease; opacity: 0;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.home-project-image.is-visible { opacity: 1; }
.home-project-image img { width: 100%; height: auto; display: block; }

/* ── Interior Page Layout ── */
.page-interior { width: 79%; max-width: 1180px; margin: 0 auto; padding: 60px 0 0; }

/* ── Case Study Hero ── */
.case-hero {
  width: 82%;
  margin: 130px auto 60px;
  background-color: rgb(240, 245, 245);
  height: 0;
  padding-bottom: 46.5%;
  position: relative;
  overflow: hidden;
}
.case-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Case Study Header ── */
.case-header { margin-bottom: 127px; text-align: center; }
.case-label {
  font-family: 'EB Garamond', 'adobe-garamond-pro', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.3;
}
.case-title {
  font-family: 'EB Garamond', 'adobe-garamond-pro', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* ── Section Labels ── */
.section-label { font-size: var(--nav-size); font-weight: var(--nav-weight); letter-spacing: var(--nav-spacing); text-transform: uppercase; color: var(--color-text); margin-bottom: 16px; margin-top: 48px; }
.col-label { font-size: var(--body-size); font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--color-text); margin-bottom: 16px; margin-top: 0; }

/* ── Body Copy ── */
.body-copy { font-size: var(--body-size); line-height: var(--body-line-height); color: var(--color-text-secondary); }
.body-copy p { margin-bottom: 20px; }
.body-copy p:last-child { margin-bottom: 0; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--color-border); margin: 40px 0; }

/* ── Two-Column Layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin: 40px 0; }
.two-col--wide-right { grid-template-columns: 2fr 3fr; }
.two-col--skills { margin-top: 48px; align-items: center; }
.two-col__image img { width: 100%; height: auto; display: block; }

/* ── Lists ── */
.team-list { font-size: var(--body-size); line-height: 1.8; color: var(--color-text-secondary); }
.skills-list { font-size: var(--body-size); line-height: 1.9; color: var(--color-text-secondary); padding-left: 20px; }
.skills-list li::before { content: '• '; }

/* ── Case Study Images ── */
.case-image { width: 100%; margin: 40px 0; }
.case-image--inset { width: 83.33%; margin-left: auto; margin-right: auto; }
.case-image img { width: 100%; height: auto; display: block; }
.case-image--caption { font-size: 13px; color: #888; margin-top: 10px; font-style: italic; }

/* ── YouTube Embed ── */
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; margin: 40px 0; background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── External Link ── */
.case-link { display: inline-block; margin: 32px 0; font-size: var(--nav-size); font-weight: var(--nav-weight); letter-spacing: var(--nav-spacing); text-transform: uppercase; color: var(--color-teal-solid); border-bottom: 1px solid var(--color-teal-solid); padding-bottom: 2px; transition: opacity 0.2s ease; }
.case-link:hover { opacity: 0.7; }

/* ── Bio/Contact Page ── */
.bio-hero { width: 82%; max-width: 480px; margin: 130px auto 0; }
.bio-hero img { width: 100%; height: auto; display: block; }
.bio-body { width: 82%; max-width: 1180px; margin: 0 auto; padding: 48px 70px 120px; display: grid; grid-template-columns: 1fr 2fr; column-gap: 64px; row-gap: 0; align-items: start; }
.bio-heading { font-family: 'EB Garamond', 'adobe-garamond-pro', Georgia, serif; font-size: 37.5px; font-weight: 600; line-height: 1.2; color: var(--color-text); margin-bottom: 24px; }
.bio-text { font-size: var(--body-size); line-height: var(--body-line-height); color: var(--color-text-secondary); margin-bottom: 40px; }
.bio-text p { margin-bottom: 20px; }
.bio-contact-link { font-size: var(--body-size); color: var(--color-teal-solid); transition: opacity 0.2s ease; }
.bio-contact-link:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .home-hero p { font-size: 60px; }
  .site-header { padding: 31px; }
  .site-nav { gap: 8px 20px; padding: 20px var(--gutter); }
  /* Nav wraps to multiple rows here, so reserve its real height plus a gap.
     The fallback covers the worst case if JS has not run yet. */
  .site-footer { padding-bottom: calc(var(--nav-height, 120px) + 32px); }
  .two-col, .two-col--wide-right { grid-template-columns: 1fr; gap: 32px; }
  .bio-hero { margin-top: 80px; }
  .bio-body { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; padding-right: 40px; }
  .case-hero { width: 92%; }
  .case-header { margin-bottom: 72px; }
}
@media (max-width: 600px) {
  :root { --gutter: 24px; --body-size: 16px; }
  .home-hero p { font-size: 37px; line-height: 1.4; letter-spacing: -0.5px; }
  .site-nav { gap: 8px 24px; padding: 16px var(--gutter); }
  .site-nav a { font-size: 13px; }
  .page-interior { padding-top: 32px; }
  .site-header { padding: 18px 24px; }
  .site-logo img { height: 25px; }
  .bio-hero { width: 100%; margin-top: 60px; }
  .bio-heading { font-size: 28px; }
  .bio-body { width: 100%; padding-left: 24px; padding-right: 24px; }
  .case-hero { width: 100%; }
  .case-image--inset { width: 100%; }
  .case-label, .case-title { font-size: 28px; }
  .case-header { margin-bottom: 48px; }
}
