/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:      #f7f4ef;
  --color-surface: #eeebe4;   /* off-white for alternate sections */
  --color-accent:  #1a4d2e;   /* dark green */
  --color-text:    #0d0d0d;
  --color-muted:   #555555;
  --color-border:  #d8d8d8;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;  /* display / headings */
  --font-sans:  "Inter", system-ui, sans-serif;        /* body / UI labels */

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  5rem;
  --space-xl:  8rem;

  --max-width: 1160px;
  --transition: 220ms ease;
}

/* ============================================================
   CUSTOM CURSOR
   Hide the default cursor and replace it with an orange dot.
   The dot element is injected by script.js.
   ============================================================ */

/* Hide the real cursor across the whole page */
* {
  cursor: none !important;
}

/* The orange dot that follows the mouse */
.cursor {
  position: fixed;       /* stays relative to the viewport, not the page */
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #ff5c00;   /* bright orange */
  border-radius: 50%;
  pointer-events: none;  /* so it never accidentally blocks clicks */
  z-index: 9999;
  /* translate(-50%, -50%) centres the dot on the actual cursor position */
  transform: translate(-50%, -50%);
  transition: transform 80ms ease, opacity 200ms ease;
}

/* Grow the dot slightly when hovering over links or buttons */
.cursor--hover {
  transform: translate(-50%, -50%) scale(2.2);
  background: #7ec8e3;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ============================================================
   HERO
   A tall, typographically-led masthead.
   ============================================================ */
.hero {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  /* Very large — the name IS the design element */
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-lg) 0;
}

.section--tight {
  padding: 0.5rem 0;
}

.section--tight .project-body {
  padding-bottom: 0;
}

.section--alt {
  background-color: var(--color-surface);
}

/* Section label — small uppercase, left-aligned rule */
.section__title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Horizontal rule that stretches to fill the row */
.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   PROJECT GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg) var(--space-md);
}

/* ============================================================
   PROJECT CARD
   No borders, no radius — image-forward, editorial.
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
}

/* Card thumbnail — taller for an editorial image ratio */
.card__thumb {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-surface); /* placeholder colour for cards without images */
  transition: opacity var(--transition);
}

.card:hover .card__thumb {
  opacity: 0.85;
}

.card__body {
  padding-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Tiny uppercase brand label */
.card__brand {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 400;
  margin-top: var(--space-xs);
}

/* Project title in the editorial serif */
.card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Short project description */
.card__desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.3rem;
}

/* Discipline tags */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: var(--space-xs);
}

.card__tag {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.5rem;
}

/* Arrow link — appears below the title */
.card__link {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--color-text);
}

/* Invisible overlay makes the entire card clickable */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 58ch;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* The pull-quote is the centrepiece — large italic serif */
.about__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  max-width: 22ch;
  color: var(--color-text);
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-accent);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 520px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Inputs use a bottom-border only — cleaner than a full box */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.5rem 0;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.form-input::placeholder {
  color: var(--color-border);
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

/* Ghost / outline button — more refined than a filled pill */
.form-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  transition: background var(--transition), color var(--transition);
}

.form-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-nav {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.project-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-nav__home {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--color-text);
  transition: opacity var(--transition);
}

.project-nav__home:hover {
  opacity: 0.6;
}

.project-nav__back {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}

.project-nav__back:hover {
  color: var(--color-text);
}

.project-hero {
  padding: var(--space-lg) 0 var(--space-md);
}

.project-hero__brand {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 400;
  display: block;
  margin-bottom: var(--space-sm);
}

.project-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: var(--space-md);
}

.project-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-hero__tag {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.6rem;
}

.project-image {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  display: block;
  margin: 0.5rem 0;
}

.video-stack {
  max-width: 55%;
  margin: 0.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-image--mid {
  max-width: 55%;
  max-height: 420px;
  margin-left: auto;
  margin-right: auto;
}

.project-image--placeholder {
  height: 380px;
  background: var(--color-surface);
  margin: var(--space-lg) 0;
}

.project-body {
  max-width: 65ch;
  padding-bottom: var(--space-xl);
}

.project-body p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.project-section-title {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.project-insight {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  color: var(--color-text);
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-accent);
}

.project-results {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.project-results__label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.project-results__list {
  list-style: none;
}

.project-results__item {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

/* ============================================================
   VIDEO EMBEDS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

/* Click-to-play wrapper — shows thumbnail until clicked */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.video-wrap iframe,
.video-wrap__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrap__thumb {
  object-fit: cover;
  display: block;
}

/* Play button overlay */
.video-wrap__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 160ms ease, background 160ms ease;
}

.video-wrap__play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 18px;
  border-color: transparent transparent transparent var(--color-text);
  margin-left: 3px;
}

.video-wrap:hover .video-wrap__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

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

/* ============================================================
   PROJECT IMAGE GRID
   ============================================================ */
.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.project-image-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .nav__list {
    gap: var(--space-md);
  }

  .hero__name {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .about__quote {
    font-size: 1.4rem;
  }
}

/* ============================================================
   ABOUT PAGE — DRAGGABLE PHOTO
   ============================================================ */
#about-photo {
  position: fixed;
  top: 120px;
  right: 80px;
  width: 220px;
  border-radius: 2px;
  box-shadow: 4px 6px 24px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg);
  cursor: grab;
  z-index: 100;
  user-select: none;
  -webkit-user-drag: none;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

#about-photo.is-dragging {
  cursor: grabbing;
  transform: rotate(-1deg) scale(1.03);
  box-shadow: 10px 16px 40px rgba(0, 0, 0, 0.18);
}
