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

:root {
  --bg: #080808;
  --text: #f0ede8;
  --muted: #666;
  --border: #1c1c1c;
  --hover-bg: #111;
  --font: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── HERO ─── */
#hero {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.hero-featured {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.35s ease;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.0) 60%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 1;
}

/* ─── HERO STRIP ─── */
.hero-strip {
  flex-shrink: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}

/* Sliding images */
.strip-images {
  height: 155px;
  overflow: hidden;
}

.strip-track {
  display: flex;
  height: 100%;
  gap: 2px;
  width: max-content;
  animation: slideLeft 55s linear infinite;
}

.strip-track:hover { animation-play-state: paused; }

@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.strip-item {
  flex: 0 0 auto;
  width: 240px;
  height: 100%;
  overflow: hidden;
  display: block;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: filter 0.3s;
}

.strip-item:hover img { filter: brightness(1); }

/* Info banner */
.strip-info {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding: 0.85rem 2.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.strip-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.strip-info-col p,
.strip-info-col a,
.strip-info-col span {
  font-size: 0.72rem;
  color: rgba(240,237,232,0.45);
  line-height: 1.55;
}

.strip-info-col a:hover { color: var(--text); }

.corner {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
}

.corner.top-left {
  top: 2rem; left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.corner.top-right {
  top: 2rem; right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.corner.bottom-left { bottom: 2rem; left: 2.5rem; }
.corner.bottom-right { bottom: 2rem; right: 2.5rem; }

.hero-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.hero-role {
  font-size: 0.85rem;
  color: rgba(240,237,232,0.5);
}

.corner.top-right a,
.corner.bottom-left a,
.corner.bottom-right a {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(240,237,232,0.65);
  transition: color 0.2s;
}

.corner.top-right a:hover,
.corner.bottom-left a:hover,
.corner.bottom-right a:hover { color: var(--text); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(240,237,232,0.3);
  color: rgba(240,237,232,0.65);
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.lang-toggle:hover { color: var(--text); border-color: var(--text); }

/* ─── ABOUT BUTTON ─── */
.about-toggle {
  background: none;
  border: none;
  color: rgba(240,237,232,0.65);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.about-toggle:hover { color: var(--text); }

/* ─── ABOUT MODAL ─── */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.about-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 4rem 2.5rem;
}

.about-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font);
}
.about-close:hover { color: var(--text); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}

.about-col p,
.about-col span {
  font-size: 0.9rem;
  color: rgba(240,237,232,0.55);
  line-height: 1.65;
}

.about-col a {
  font-size: 0.9rem;
  color: rgba(240,237,232,0.55);
  transition: color 0.2s;
}
.about-col a:hover { color: var(--text); }

/* ─── CONTAINER ─── */
.container {
  padding: 0 2.5rem;
}

/* ─── TABLE HEADER ─── */
.table-header {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── WORK LIST ─── */
.work-table {
  display: flex;
  flex-direction: column;
  margin-bottom: 1px;
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.15s;
  cursor: pointer;
}

.work-row:hover {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin: 0 -0.75rem;
  background: var(--hover-bg);
}

.client {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.year {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}

.cat {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* ─── SECTIONS ─── */
#works, #film { padding-bottom: 4rem; }

/* ─── CONTACT ─── */
#contact {
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}

.contact-wrap h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-links { display: flex; flex-direction: column; gap: 0.6rem; }

.contact-links a {
  font-size: 1.1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.contact-links a:hover { color: var(--text); border-color: var(--text); }

/* ─── FOOTER ─── */
footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── THUMBNAIL PREVIEW ─── */
#thumb-preview {
  position: fixed;
  width: 540px;
  height: 304px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 999;
  overflow: hidden;
}

#thumb-preview.active { opacity: 1; }

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

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .corner.top-right { gap: 1.2rem; }
  #thumb-preview { display: none; }
  footer { flex-direction: column; gap: 0.4rem; }
}
