/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #eee;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo {
  background: #000;
  color: #fff;
  padding: 10px 16px;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.main-nav ul {
  display: flex;
  gap: 36px;
}
.main-nav a {
  font-size: 15px;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.active {
  opacity: 1;
  border-bottom-color: #000;
}

.main-nav li { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}
.main-nav li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  opacity: 1;
  border-bottom: none;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: #f7f7f7; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 50px;
}
.hero h1 {
  font-size: 30px;
}

/* ---------- Portfolio grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.project-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-tile:hover img { transform: scale(1.05); }

.project-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.project-tile:hover .tile-overlay { opacity: 1; }
.tile-overlay .tile-meta {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000;
  line-height: 1.3;
  margin-bottom: 18px;
}
.tile-overlay .tile-more {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid #000;
  color: #000;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eee;
  margin-top: 100px;
  padding: 48px 0 56px;
  font-size: 14px;
  color: #555;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.social-bar {
  display: flex;
  gap: 14px;
}
.social-bar a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-bar svg { width: 16px; height: 16px; fill: #fff; }
.footer-meta { display: flex; flex-direction: column; gap: 20px; }
.footer-meta .copyright { display: flex; flex-direction: column; gap: 4px; }
.footer-meta .tagline { opacity: 0.6; }

/* ---------- Case study pages ---------- */
.project-hero {
  padding: 0;
}
.hero-image {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 48px;
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.15) 85%, rgba(0, 0, 0, 0) 100%);
}
.hero-overlay-inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px;
  box-sizing: border-box;
}

.project-title {
  display: inline;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.7;
  margin: 0 0 28px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-meta > div {
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.project-meta dt { font-weight: 600; }
.project-meta dd { font-weight: 400; }

@media (max-width: 720px) {
  .hero-image { aspect-ratio: 3 / 4; }
  .hero-image img { height: 100%; object-fit: cover; }
  .hero-overlay-inner { padding: 28px 20px; }
  .project-title { font-size: 22px; padding: 6px 10px; line-height: 1.6; margin-bottom: 16px; }
  .project-meta { gap: 8px; }
  .project-meta > div { font-size: 13px; }
}

.case-section {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid #eee;
}
.case-section.no-top-border,
.split.no-top-border { border-top: none; padding-top: 0; }
.case-section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.case-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.case-section h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.case-section p { margin-bottom: 16px; max-width: 760px; }

main p { margin-bottom: 16px; }
ul.bullets {
  margin: 0 0 20px 0;
  max-width: 760px;
}
ul.bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: #000;
}

/* ---------- Work intro (torn banner + "My work") ---------- */
.work-intro {
  padding-top: 60px;
  text-align: center;
}
.torn-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 54px;
  display: block;
  margin-bottom: 36px;
}
.work-heading {
  font-size: 44px;
}

/* ---------- Split layout: text left, media right ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid #eee;
}
.split > .col-media,
.split > .col-text {
  min-width: 0;
}
.split .category-heading {
  font-size: 38px;
  line-height: 1.1;
}
.split .subheading {
  font-size: 30px;
  margin: 2px 0 26px;
}
.split .col-text p { max-width: 560px; }
.split .col-text h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 32px 0 4px;
}
.split .col-media {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.split .col-media figure { margin: 0; }
.split .col-media figcaption {
  font-style: italic;
  text-align: center;
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}
.split .col-media img,
.split .col-media video {
  width: 100%;
  border-radius: 4px;
}
.split .col-media .reactions-row { margin: 0 0 8px; }
.split .col-media img { display: block; }

.split .col-text .video-embed {
  margin: 4px 0 16px;
}
.split .col-text .reactions-row {
  max-width: 560px;
}

.read-more-block { max-width: 560px; }
.read-more-content { display: none; }
.read-more-content.expanded { display: block; }
.read-more-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 20px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  text-decoration: underline;
  color: #111;
  cursor: pointer;
}

.reaction-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  margin: 30px 0 20px;
}

.reactions-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.gallery-slide.active { opacity: 1; visibility: visible; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease;
}
.gallery-nav:hover { background: rgba(255, 255, 255, 0.32); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
  z-index: 5;
}

.split .full-video {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
}
.split .full-video h3 {
  font-size: 36px;
  margin-bottom: 28px;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}
.split .full-video .media-caption {
  margin-top: 16px;
  font-style: italic;
  font-size: 15px;
  color: #333;
}
.hero-video {
  margin: 32px 0 0;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.media-row img, .media-row video { border-radius: 4px; width: 100%; }
.media-caption {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}
.media-single { max-width: 640px; margin: 24px 0; }
.media-single img, .media-single video { border-radius: 4px; }

.reactions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.reactions-row img { border-radius: 6px; border: 1px solid #eee; }

blockquote.recommendation {
  border-left: 3px solid #000;
  padding: 4px 0 4px 24px;
  margin: 12px 0;
  font-style: italic;
  max-width: 760px;
}
blockquote.recommendation cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Simple pages (CV / Contact) ---------- */
.page-header { padding-top: 90px; padding-bottom: 40px; text-align: center; }
.page-header h1 { font-size: 44px; }
.cv-download {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  border-radius: 2px;
}
.cv-download:hover { opacity: 0.85; }

.cv-preview {
  padding-bottom: 80px;
  text-align: center;
}
.cv-preview img {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid #eee;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ---------- Contact page ---------- */
.contact-body {
  padding-bottom: 100px;
  text-align: center;
}
.contact-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 56px;
}
.contact-cols h3 {
  font-size: 26px;
  margin-bottom: 16px;
}
.contact-cols a,
.contact-cols p {
  font-size: 18px;
  color: #333;
}
.contact-cols a { text-decoration: underline; }
.contact-cols .linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-top: -6px;
  border-radius: 50%;
  background: #000;
  text-decoration: none;
}
.contact-cols .linkedin-icon svg { width: 16px; height: 16px; fill: #fff; }

.contact-based h3 {
  font-size: 26px;
  margin-bottom: 16px;
}
.contact-based p {
  font-size: 18px;
  color: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
  .project-title { font-size: 30px; }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .logo { font-size: 14px; padding: 8px 14px; white-space: nowrap; }
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 14px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .category-heading { font-size: 30px; }
  .split .subheading { font-size: 24px; }
  .work-heading { font-size: 32px; }
}
