/* Portfolio – David Pacheco style, clean version */

/* Original fonts: Larsseit (headings), IBM Plex Sans (body), Open Sans (eyebrow) */
@font-face {
  font-family: 'Larsseit';
  src: url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f22756cb2edcd26ce7_Larsseit-ExtraBold.eot') format('embedded-opentype'),
       url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f25ced0c1291e55227_Larsseit-ExtraBold.woff') format('woff'),
       url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f29ad787614b1e7a9c_Larsseit-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Larsseit';
  src: url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f2fb278df250746418_Larsseit-Bold.eot') format('embedded-opentype'),
       url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f2f49b777717f01652_Larsseit-Bold.woff') format('woff'),
       url('https://cdn.prod.website-files.com/5b8987816c4d52a8ec985345/5ba698f25ced0cef71e55228_Larsseit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --copy: #6c6c79;
  --bg: #f7f7f7;
  --black: #000;
  --white: #fff;
  --nav-off: rgba(0, 0, 0, 0.35);
  --link-wt-hover: rgba(255, 255, 255, 0.5);
  --hero-sample: #dbedf2;
  --hero-archive: #432a7c;
  --grey-warm: #f0eeea;
  --grey-cold: #fff;
}

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

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

body {
  margin: 0;
  color: #333;
  min-height: 100%;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

a {
  color: var(--copy);
  text-decoration: none;
  transition: color 0.4s ease;
}
a:hover { color: var(--black); }

img { max-width: 100%; height: auto; vertical-align: middle; }

/* Container */
.container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ----- Nav (fixed left) ----- */
.nav {
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 24px;
}

.eyebrow {
  color: var(--black);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: block;
}
.eyebrow.inverted { color: var(--bg); }
.eyebrow.inverted.linkintro {
  padding: 13px 0;
  transition: color 0.4s ease;
}
.eyebrow.inverted.linkintro:hover { color: #797979; }

.scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  height: 60px;
  display: flex;
  justify-content: center;
  z-index: 9999;
}
.scroll-static {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.scroll-dynamic {
  width: 1px;
  height: 60px;
  background: var(--white);
  position: relative;
  bottom: 60px;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

.nav-social {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 10px;
  justify-items: center;
  z-index: 9999;
}
.nav-social.dark { opacity: 0; pointer-events: none; }
.icon {
  color: var(--bg);
  font-size: 16px;
  padding: 15px 0;
  transition: color 0.4s ease;
}
.icon:hover { color: var(--link-wt-hover); }
.icon.solid { font-weight: 700; }
.icon.dark { color: var(--black); }
.icon.dark:hover { color: var(--nav-off); }


/* ----- Section 1 (intro) – only this section has black background (like original) ----- */
.section-1 {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

/* Background video: full bleed, loop */
.section-1-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-1-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Gradient overlay: transparent → white 95% */
.section-1-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, transparent 60%, #fff 100%);
  pointer-events: none;
}

.section-1-content {
  position: relative;
  z-index: 1;
  background: transparent;
}
.section-1 .container { display: flex; }
.w-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.section-1 .container.w-container { padding-left: 24px; padding-right: 24px; }

.intro {
  color: #fff;
  width: 100%;
  margin-top: 300px;
  padding-bottom: 150px;
  opacity: 1;
  transition: opacity 0.6s ease;
  position: relative;
  mix-blend-mode: difference;
}
.section-1 .intro .intro-name,
.section-1 .intro .heading,
.section-1 .intro .style-intro,
.section-1 .intro .text-span {
  color: #fff;
}
.section-1 .intro .style-intro.ele-link:hover {
  color: rgba(255, 255, 255, 0.85);
}
.section-1 .intro .style-intro.period {
  color: transparent;
}

/* While viewing section-1: hide Work link and collapse scroll indicator (original effect) */
.nav-in-intro .work-link {
  opacity: 0;
  transform: scale3d(0, 0, 1);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nav-in-intro .scroll-indicator {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}
.work-link {
  display: block;
  opacity: 1;
  transform: scale3d(1, 1, 1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-indicator { height: 60px; transition: height 0.4s ease; }

.intro-name {
  color: var(--bg);
  letter-spacing: -0.5px;
  text-transform: none;
  margin: 0 0 32px;
  font-family: 'Larsseit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

.heading {
  color: var(--bg);
  letter-spacing: -1px;
  margin: 0;
  font-family: 'Larsseit', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.style-intro {
  color: var(--bg);
  font-size: 56px;
  line-height: 1.25;
}
.style-intro.ele-link { transition: color 0.6s ease; }
.style-intro.ele-link:hover { color: var(--link-wt-hover); }
.style-intro.period { color: transparent; }
.text-span { color: inherit; }

.apple-logo-intro {
  position: relative;
  inset: auto -736px 108px auto;
}

/* ----- Awards section (white, tablist) – design & animation ----- */
.section-awards {
  background: var(--white);
  padding: 120px 0 140px;
  position: relative;
  z-index: 1;
}

.awards-header {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-awards.awards-inview .awards-header {
  opacity: 1;
  transform: translateY(0);
}

.awards-header .awards-section-num {
  color: var(--copy);
  display: block;
  margin-bottom: 12px;
}

.awards-title {
  color: var(--black);
  font-family: 'Larsseit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.awards-subtitle {
  color: var(--black);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.45;
  margin: 0;
}

.awards-tablist-wrap {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.awards-tablist {
  display: flex;
  flex-direction: column;
}

.awards-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease;
}

.section-awards.awards-inview .awards-item {
  opacity: 1;
  transform: translateY(0);
}

.section-awards.awards-inview .awards-item:nth-child(1) { transition-delay: 0.1s; }
.section-awards.awards-inview .awards-item:nth-child(2) { transition-delay: 0.18s; }
.section-awards.awards-inview .awards-item:nth-child(3) { transition-delay: 0.26s; }
.section-awards.awards-inview .awards-item:nth-child(4) { transition-delay: 0.34s; }

.awards-tab {
  appearance: none;
  background: none;
  border: none;
  color: var(--black);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 44px;
  align-items: center;
  gap: 12px;
  font: inherit;
  padding: 24px 0;
  text-align: left;
  width: 100%;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.awards-tab:hover {
  color: var(--copy);
}

.awards-tab[aria-expanded="true"] {
  font-weight: 600;
}

.awards-tab[aria-expanded="true"] .awards-tab-meta {
  color: var(--black);
}

.awards-tab::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  justify-self: end;
  transition: transform 0.4s ease;
}

.awards-tab[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.awards-tab-name {
  font-family: 'Larsseit', sans-serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.awards-tab-meta {
  color: #c3c3d1;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.awards-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.awards-panel.awards-panel--open {
  max-height: 800px;
  opacity: 1;
}

.awards-panel[hidden] {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.awards-panel:not([hidden]) {
  padding-bottom: 28px;
  padding-left: 0;
}

.awards-panel.awards-panel--open {
  visibility: visible;
  pointer-events: auto;
}

.awards-entries {
  color: var(--copy);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  list-style: none;
  margin: 0;
  padding: 0;
}

.awards-entries li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 8px 0;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.awards-entry-main {
  min-width: 0;
}

.awards-entry-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.awards-entry-link a {
  color: var(--copy);
  font-size: 13px;
}

.awards-entry-link a:hover {
  color: var(--black);
  text-decoration: underline;
}

.awards-panel.awards-panel--open .awards-entries li {
  opacity: 1;
  transform: translateY(0);
}

.awards-panel.awards-panel--open .awards-entries li:nth-child(1) { transition-delay: 0.05s; }
.awards-panel.awards-panel--open .awards-entries li:nth-child(2) { transition-delay: 0.1s; }
.awards-panel.awards-panel--open .awards-entries li:nth-child(3) { transition-delay: 0.15s; }
.awards-panel.awards-panel--open .awards-entries li:nth-child(4) { transition-delay: 0.2s; }
.awards-panel.awards-panel--open .awards-entries li:nth-child(5) { transition-delay: 0.25s; }
.awards-panel.awards-panel--open .awards-entries li:nth-child(n+6) { transition-delay: 0.3s; }

.awards-entry-num {
  color: var(--black);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

/* ----- About section ----- */
.section-about {
  background: var(--white);
  padding: 120px 0 140px;
  position: relative;
  z-index: 1;
}

.about-header {
  margin-bottom: 0;
}

.about-header .about-section-num {
  color: var(--copy);
  display: block;
  margin-bottom: 12px;
}

.about-block {
  padding-top: 80px;
}

.about-block:first-of-type {
  padding-top: 60px;
}

.about-list {
  color: var(--copy);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin: 24px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.about-list li {
  margin-bottom: 6px;
}

.about-list li:last-child {
  margin-bottom: 0;
}

/* ----- Work section ----- */
.work-section-header {
  padding: 80px 0 48px;
  background: var(--white);
  width: 100%;
}

.work-section-title {
  color: var(--black);
  font-family: 'Larsseit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
}

.bg-projects {
  z-index: -1;
  position: fixed;
  inset: 0;
  background: var(--bg);
}

.project {
  padding-top: 140px;
  padding-bottom: 120px;
  margin-top: 0;
}
.project:first-of-type { padding-top: 80px; }
.project-archive { padding-top: 160px; }

/* Alternate project section backgrounds: warm grey / cold grey (no gap) */
.project:nth-of-type(odd) { background-color: var(--grey-warm); }
.project:nth-of-type(even) { background-color: var(--grey-cold); }

.project-divider {
  height: 200px;
  background: linear-gradient(to bottom, var(--white), var(--bg));
}

.project-intro {
  padding: 0 0 100px;
  display: flex;
}
.project-intro.additional-padding { padding-top: 50px; }

.intro-left { width: 100%; margin-right: 10%; }
.intro-right { width: 30%; display: flex; }

.project-year {
  color: var(--black);
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.4;
}

.mask-title { overflow: hidden; }

.project-title {
  color: var(--black);
  letter-spacing: -1px;
  margin: 0;
  font-family: 'Larsseit', sans-serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  position: relative;
}
.project-title.sub { color: #c3c3d1; }

/* Hero blocks */
.hero {
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-sample { background: var(--hero-sample); }
.hero-archive { background: var(--hero-archive); }

/* Project hero: full width, not so tall */
.hero-project {
  width: 100%;
  height: 380px;
  max-height: 45vh;
  background: var(--bg);
  padding: 0;
  display: block;
}
.hero-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Project gallery: dynamic layout – first image full width, rest in 2 columns */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding: 60px 24px 0;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
/* First image spans full width; rest flow in 2 columns */
.project-gallery img:first-child {
  grid-column: 1 / -1;
}
/* 4+ images: 4th image also full width for visual break */
.project-gallery img:nth-child(4) {
  grid-column: 1 / -1;
}
.project-gallery--1-2 img:first-child {
  grid-column: 1 / -1;
}
.project-gallery--1-2 img:nth-child(2),
.project-gallery--1-2 img:nth-child(3) {
  grid-column: span 1;
}
/* --1-2 has only 3 images, so don’t force 4th full width */
.project-gallery--1-2 img:nth-child(4) {
  grid-column: span 1;
}

.hero-img {
  width: 60%;
  height: 60%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero-sample-img {
  background: linear-gradient(135deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 100%);
  border-radius: 8px;
}
.hero-archive-img {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border-radius: 8px;
}

.project-description {
  padding: 80px 0 100px;
  display: flex;
}
.project-description .container { display: flex; flex-wrap: wrap; }
.project-description .intro-left { margin-bottom: 0; }

.project-subtitle {
  color: var(--black);
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.45;
}

.grid-intro {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 30px auto;
  row-gap: 0;
  column-gap: 100px;
}
.grid-intro.info-link {
  grid-template-rows: 30px auto 30px auto 30px auto;
}

.description {
  color: var(--copy);
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}
.description.no-padding {
  color: var(--black);
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
}
.description-link {
  color: var(--black);
  text-decoration: underline;
  transition: color 0.4s ease;
}
.description-link:hover { color: var(--copy); }

/* Two-column text (Challenge / Design) */
.two-col-text { padding: 150px 0 0; }
.two-col-text .container { padding-left: 24px; padding-right: 24px; }

.grid {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  grid-template-areas: "Area Area-2";
  column-gap: 32px;
}
.col-label { grid-area: Area; }
.grid .project-subtitle { grid-area: Area-2; margin: 0; }

.h3 {
  color: var(--black);
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-family: 'Larsseit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

/* Asset placeholder */
.asset {
  padding: 150px 80px 0;
  overflow: visible;
}
.asset-area { position: relative; display: flex; justify-content: center; overflow: hidden; }
.asset-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copy);
  font-size: 14px;
}

/* Thanks / Contact */
.thanks { margin-top: 0; }
.contact { padding-bottom: 200px; }
.contact .project-title { margin-bottom: 16px; }

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .intro { margin-top: 200px; margin-left: 100px; margin-right: 100px; padding-bottom: 100px; }
  .heading { font-size: 48px; line-height: 1.2; }
  .style-intro { font-size: 48px; line-height: 1.25; }
  .apple-logo-intro { width: 45px; bottom: 79px; right: -486px; }
  .intro-left { width: 100%; margin-right: 0; }
  .intro-right { width: 50%; }
  .project-title { font-size: 48px; }
  .project-subtitle { font-size: 21px; }
  .hero { height: 420px; }
  .hero-project { height: 320px; max-height: 40vh; }
  .project-gallery { padding: 40px 24px 0; gap: 20px; }
  .project-intro { padding: 0 24px 40px; }
  .project-description { padding: 60px 24px 40px; }
  .project-divider { height: 150px; }
  .asset { padding: 80px 24px 0; }
  .two-col-text { padding: 100px 0 0; }
  .h3 { font-size: 32px; }
  .awards-title { font-size: 32px; }
  .thanks { margin-top: 0; }
  .contact { padding: 0 24px 100px; }
}

@media (max-width: 767px) {
  .nav { width: 60px; padding-bottom: 16px; }
  .scroll-indicator { bottom: 60px; }
  .intro { margin-top: 240px; }
  .heading { font-size: 36px; line-height: 1.2; }
  .style-intro { font-size: 36px; line-height: 1.25; }
  .style-intro.period { color: var(--bg); }
  .text-span { color: var(--black); }
  .apple-logo-intro { width: 30px; position: relative; bottom: -34px; right: -3px; }
  .section-awards { padding: 80px 0 100px; }
  .section-about { padding: 80px 0 100px; }
  .about-block { padding-top: 60px; }
  .about-block:first-of-type { padding-top: 48px; }
  .awards-header { margin-bottom: 40px; }
  .awards-tab { padding: 20px 0; }
  .awards-entries li { gap: 16px; }
  .project-year { font-size: 21px; }
  .project-title { font-size: 36px; }
  .project-subtitle { font-size: 20px; line-height: 1.4; }
  .awards-subtitle { font-size: 20px; line-height: 1.4; }
  .hero { height: 320px; }
  .hero-project { height: 280px; max-height: 35vh; }
  .project-gallery { grid-template-columns: 1fr; padding: 32px 24px 0; gap: 16px; }
  .project-description { flex-direction: column; }
  .intro-right { width: 100%; margin-top: 24px; }
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas: "Area" "Area-2";
    row-gap: 8px;
  }
  .two-col-text { padding: 80px 0 0; }
  .style-intro.period { color: var(--bg); }
  .text-span { color: var(--black); }
}

@media (max-width: 479px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .intro { margin-top: 240px; margin-left: 32px; margin-right: 32px; }
  .heading { font-size: 28px; line-height: 1.25; }
  .style-intro { font-size: 28px; line-height: 1.25; }
  .intro-name { font-size: 16px; line-height: 1.2; }
  .section-awards { padding: 60px 0 80px; }
  .section-about { padding: 60px 0 80px; }
  .about-block { padding-top: 48px; }
  .about-block:first-of-type { padding-top: 40px; }
  .about-list { font-size: 15px; margin-top: 16px; }
  .awards-title { font-size: 28px; }
  .awards-subtitle { font-size: 17px; }
  .awards-tab-name { font-size: 20px; }
  .awards-tab-meta { font-size: 13px; }
  .project-intro { padding: 0 20px 20px; }
  .project-description { padding: 40px 20px 20px; }
  .asset { padding: 40px 20px 0; }
  .hero-project { height: 240px; max-height: 32vh; }
  .project-gallery { padding: 24px 20px 0; gap: 12px; }
  .project-divider { height: 100px; }
  .thanks { margin-top: 0; }
  .contact { padding: 0 20px 80px; }
}
