/* =========================================
   JACK TREGO — jacktrego.com
   Professional / Creative Producer
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

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

:root {
  --bg:       #FFFFFF;
  --black:    #000000;
  --green:    #123524;
  --muted:    #888888;
  --divider:  #383838;
  --font-body: 'Figtree', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  cursor: none;
}

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

a:visited {
  color: inherit;
}

/* ---- Custom cursor ---- */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.hovering {
  width: 6px;
  height: 6px;
  background: var(--green);
}

/* ---- Layout ---- */
.site {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

/* ---- Header: top left ---- */
.site-header {
  position: fixed;
  top: 20px;
  left: 32px;
  z-index: 100;
}

.site-header a {
  display: block;
}

.site-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--green);
}

.site-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-top: 2px;
}

/* ---- Footer: bottom left + bottom right ---- */
.site-footer {
  position: fixed;
  bottom: 28px;
  left: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.site-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-footer a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  transition: color 0.2s ease;
  font-family: var(--font-body);
}

.site-footer a:hover {
  color: var(--green);
}

/* ---- Main: centered client list ---- */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-list {
  list-style: none;
  text-align: center;
}

.client-list li {
  line-height: 1.05;
}

.client-list li a,
.client-list li span {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--black);
  display: inline-block;
  transition: color 0.15s ease;
  position: relative;
}

.client-list li a:hover {
  color: var(--green);
}

.client-list li.request span {
  font-size: clamp(18px, 2.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
  display: block;
}

.client-list li.request a {
  font-size: clamp(18px, 2.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
  display: block;
  transition: color 0.2s ease;
}

.client-list li.request a:hover {
  color: var(--green);
}

/* ---- Hover image that follows cursor ---- */
.hover-image {
  position: fixed;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translate(-50%, -60%);
  width: 340px;
}

.hover-image img,
.hover-image video {
  width: 100%;
  height: auto;
  display: block;
}

.hover-image.visible {
  opacity: 1;
}

/* ---- Project pages ---- */
.project-site {
  min-height: 100vh;
  padding: 28px 32px 80px;
}

.project-header {
  position: fixed;
  top: 20px;
  left: 32px;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.project-header.hidden {
  opacity: 0;
  pointer-events: none;
}

.project-header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--green);
}

.project-header-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-top: 2px;
}

.project-back {
  display: none;
}

.project-footer {
  position: fixed;
  bottom: 28px;
  left: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-footer a {
  font-size: 13px;
  color: var(--black);
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.project-footer a:hover {
  color: var(--green);
}

.project-content {
  width: 100%;
  padding-top: 100px;
}

.project-asset {
  width: 100%;
  margin-bottom: 6px;
}

.project-asset img,
.project-asset video {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding: 40px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 6px;
  max-width: 66.666%;
}

.project-description {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.project-description p + p {
  margin-top: 14px;
}

.project-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credit-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.credit-label {
  color: var(--muted);
}

.credit-value {
  color: var(--black);
}

.credit-value a {
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.credit-value a:hover {
  opacity: 0.5;
}

/* ---- About page ---- */
.about-content {
  max-width: 520px;
  margin: 0 auto;
  padding-top: 80px;
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.about-body p + p {
  margin-top: 16px;
}

.about-body a {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
}

.about-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-links a {
  font-size: 14px;
  color: var(--green);
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.about-links a:hover {
  opacity: 0.6;
}