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

:root {
  --bg: #F4F4F1;
  --text: #1A1A1A;
  --font: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-size: 14px;
  --nav-pad: 28px;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  cursor: url('images/cursor-star.png') 25 25, auto;
}

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

/* ── CORNER NAVIGATION ─────────────────────────────────── */

.nav-corner {
  position: fixed;
  z-index: 200;
  font-size: var(--nav-size);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav-corner:hover {
  opacity: 0.5;
}

.nav-tl { top: var(--nav-pad);    left: var(--nav-pad); }
.nav-tr { top: var(--nav-pad);    right: var(--nav-pad); }
.nav-bl { bottom: var(--nav-pad); left: var(--nav-pad); }
.nav-br { bottom: var(--nav-pad); right: var(--nav-pad); }

/* ── HOME PAGE ─────────────────────────────────────────── */

.home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 18%;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222;
  overflow: hidden;
}

.hero-video iframe,
.hero-video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder shown until real video is added */
.hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-text {
  color: #666;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ── WORK PAGE ─────────────────────────────────────────── */

.work-main {
  padding-top: 0;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 120px 0 60px;
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.4em;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Featured video projects */
.featured-projects {
  padding: 0 0 80px;
}

.feature-item {
  padding: 0 18% 80px;
}

.feature-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
  overflow: hidden;
  margin-bottom: 20px;
}

.feature-media img,
.feature-media video,
.feature-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.feature-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.feature-media-placeholder span {
  color: #555;
  font-size: 13px;
}

.feature-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.feature-left {
  flex: 1;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  text-transform: none;
}

.feature-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 520px;
}

.feature-right {
  text-align: right;
  flex-shrink: 0;
}

.role-label {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.role-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* Work text list */
.work-list {
  padding: 0 18%;
  margin-bottom: 120px;
}

.work-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid #ccc;
  position: relative;
  cursor: default;
}

.work-list-item:last-child {
  border-bottom: 1px solid #ccc;
}

.work-item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.work-item-title a {
  text-decoration: none;
  color: inherit;
}

.work-item-title a:hover {
  text-decoration: underline;
}

.work-item-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.work-item-meta {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* Hover preview image */
.hover-preview {
  position: fixed;
  pointer-events: none;
  z-index: 150;
  width: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: #ddd;
}

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

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── ABOUT / FOOTER ────────────────────────────────────── */

.about-footer {
  padding: 80px 18% 120px;
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 60px;
  align-items: start;
}

.about-footer h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.clients-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
}

.about-bio p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.contact-links {
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
}

.contact-links a {
  text-decoration: none;
  color: var(--text);
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ── ABOUT PAGE (standalone) ───────────────────────────── */

.page-about .about-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-about .about-footer {
  padding: 80px 18%;
  width: 100%;
}

/* ── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 900px) {
  :root {
    --nav-size: 18px;
    --nav-pad: 20px;
  }

  .home-main {
    padding: 80px 24px;
  }

  .feature-item {
    padding: 0 24px 60px;
  }

  .feature-info {
    flex-direction: column;
    gap: 12px;
  }

  .feature-right {
    text-align: left;
  }

  .work-list {
    padding: 0 24px;
  }

  .work-list-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-item-meta {
    text-align: left;
  }

  .marquee-wrap {
    padding: 100px 0 40px;
  }

  .about-footer {
    padding: 60px 24px 100px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Mobile column order: bio → clients → contact */
  .about-bio     { order: 1; }
  .clients-col   { order: 2; }
  .contact-col   { order: 3; }
}
