/*
Theme Name: Birth of the World
*/

/* =========================================================
   RESET / NORMALIZATION
   ========================================================= */

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
html{scroll-behavior:smooth}
body{line-height:1}
a{text-decoration-skip-ink:auto}
a[href^="tel"]{color:inherit;text-decoration:none}
button{outline:0}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
q{display:inline;font-style:italic}
q:before{content:'"';font-style:normal}
q:after{content:'"';font-style:normal}
textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}
input[type="search"]{-webkit-appearance:textfield}
table{border-collapse:collapse;border-spacing:0}
th,td{padding:2px}
big{font-size:120%}
small,sup,sub{font-size:80%}
sup{vertical-align:super}
sub{vertical-align:sub}
dd{margin-left:20px}
kbd,tt{font-family:courier;font-size:12px}
ins{text-decoration:underline}
del,strike,s{text-decoration:line-through}
dt{font-weight:bold}
address,cite,var{font-style:italic}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:#f7f7f7;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#007acc;display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}

/* =========================================================
   ROOT STYLES
   ========================================================= */

:root {
  --site-bg-color: #e8e8e8;
  --site-text-color: #000;
  --site-font-family: "Xanh Mono", monospace;
  --site-font-secondary: "Helvetica", sans-serif;

  --font-size-base: 15px;
  --font-size-small: 11px;
  --font-size-caption: 11px;
  --font-size-title: 1rem;  /* 16px */
  --line-height-base: 24px;
  --letter-spacing-base: 0.07em;
}

.reel-header,
.botw-grid-item h3,
.site-title a, {
  color: var(--site-text-color);
}

.video-caption,
.reel-caption, 
.grid-title, .footnote {
  font-family: Arial, sans-serif;
	font-weight: 200;
	  opacity: 0.45;
	padding: 10px 0 0 0;
  font-size: var(--font-size-caption);
}

/* Pages */
.page-template-reel .reel-section,
.page-id-567 .botw-post-grid,
.scroll-section {
  background-color: var(--site-bg-color);
  color: var(--site-text-color);
  font-family: var(--site-font-family);
}

/* Page 26 (Intro) variables applied to body */
body.page-id-26 {
  --site-bg-color: #000;      /* black background */
  --site-text-color: #fafafa; /* light text */
  --site-font-family: "Xanh Mono", monospace;

  background-color: var(--site-bg-color);
  color: var(--site-text-color);
  font-family: var(--site-font-family);
}
body.page-template-page-samples {
  cursor: pointer;
}

/* =========================================================
   LAYOUT / STRUCTURE
   ========================================================= */

body {
  background-color: var(--site-bg-color);
  color: var(--site-text-color);
  font-family: var(--site-font-family);
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

.wrapper {
	padding: 30px 54px; 
	margin: 0;
}

.reel-wrapper {
padding: 0;
margin: 0;
}

.writing-block {
  max-width: 620px;   
  margin: 0 auto;     
  padding: 2rem 1rem; 
  line-height: 1.6;
  font-size: 16px;
}

.writing-block p {
	padding: 0 0 24px 0;
	margin: 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */
       
h1,     
h2,
h3 {    
  font-family: var(--site-font-family);
  color: var(--site-text-color);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-base);
  font-weight: 400;
  margin: 0 0 0.5em 0;
}

.site-title a,
.botw-grid-item a {
  color: var(--site-text-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-title a:hover,
.botw-grid-item a:hover {
  color: var(--site-text-color);
  border-bottom: 0;
}

p { padding: 0 0 24px 0; 
	margin: 0; 
}

a {
  border-bottom: 1px solid currentColor; 
  color: inherit;                        
  text-decoration: none;
}

a:hover {
  border-bottom: 0;
  color: inherit;
}

em, i {
	font-family: "Xanh Mono", monospace;
  	font-weight: 400;
 	font-style: italic;
}

.highlight {
	border-bottom: 1px solid #fafafa;
}

.footnote {
	  font-size: var(--font-size-caption);
	line-height: 15px;
	margin-bottom: 12px;
}

/* =========================================================
   GLOBAL HEADER
   ========================================================= */

.global-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 4.5rem 2rem 4.5rem;
  box-sizing: border-box;
  font-family: var(--site-font-family);
  font-size: inherit;
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

.global-header .site-title a,
.global-header .header-right a {
  color: var(--site-text-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: inherit;
}

.global-header .header-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.global-header .header-right a {
  color: var(--site-text-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.global-header .header-right a:hover {
  border-bottom: none;
}

.intro-header {
	  padding: 0rem 0rem 2rem 0rem;

}

/* =========================================================
   INTRODUCTION VIDEO
   ========================================================= */

.video-wrapper {
  position: relative;
  width: 100%;         
  max-width: 100vw;    
  aspect-ratio: 16/9;   
  overflow: hidden;
  margin: 0 auto;      
}

.video-wrapper video {
  position: relative;   
  width: 100%;          
  height: auto;        
  object-fit: cover;   
  display: block;
  max-height: 80vh;   
  border-radius: 4px;  
}

.video-caption {
  text-align: left;
  max-width: 600px;
  padding: 4px 0 0 0;
  font-size: var(--font-size-small);
}

.desktop-video { display: block; }
.mobile-video { display: none; }

/* =========================================================
   PORTFOLIO LANDING
   ========================================================= */

.portfolio-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}

.botw-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 2rem 0 4rem 0;
}

.botw-grid-item {
  text-align: center;
  padding-bottom: 6px;
}

.botw-grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.botw-grid-item a {
  border-bottom: none;
  text-decoration: none;
}

.botw-grid-item a:hover {
  border-bottom: none;
}

.botw-grid-item img,
.botw-grid-item video {
  display: block;
  line-height: 0;
}

.botw-grid-item h3 {
  margin-top: 1rem;
  font-size: var(--font-size-title);
  letter-spacing: 0.05em;
}

.botw-grid-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* =========================================================
   PORTFOLIO POSTS
   ========================================================= */

/* Porfolio Videos */
.portfolio-video video,
.portfolio-video .responsive-video {
  width: 100%;
  height: auto;
  max-height: 80vh; 
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.portfolio-video .video-caption {
  font-size: var(--font-size-small, 11px);
  color: var(--site-text-color, #000);
  margin-top: 0.5rem;
  text-align: left;
}

/* Porfolio Image Gallery */

.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; 
}

.portfolio-gallery .media-wrapper {
  flex: 1 1 45%; /* two per row */
  max-width: 45%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.portfolio-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: pointer; /* ready for lightbox */
}

.portfolio-gallery .video-caption {
  font-size: var(--font-size-small, 11px);
  color: var(--site-text-color, #000);
  margin-top: 0.25rem;
  text-align: left;
}

/* Porfolio Info */

.portfolio-info {
	 max-width: 650px;   
  margin: 0 auto;     
  padding: 2rem 1rem; 
  line-height: 1.6;
}

.portfolio-info h2 {
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.portfolio-info p,
.portfolio-info .role {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: var(--font-size-base);
  color: var(--site-text-color, #000);
}

/* =========================================================
   POST LIST COL
   ========================================================= */

.profile-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* spacing between columns */
}

.profile-columns .column {
  flex: 1 1 45%; /* two columns, responsive */
  min-width: 250px;
}

.profile-columns p {
  margin-bottom: 0.5rem;
}

.profile-columns ul {
  padding-left: 0;
  margin: 0 0 1.5rem 0;
}

.profile-columns li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* =========================================================
   PROJECT NAVIGATION LINKS
   ========================================================= */

.project-navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 3rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.prev-project a,
.next-project a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  color: inherit;
}

.prev-project a:hover,
.next-project a:hover {
  border-bottom: 0;
}

/* =========================================================
   SHOWCASE / OVERLAY / CAROUSEL
   ========================================================= */


body.page-id-1569 {
  overflow: hidden;
}

body.page-template-page-samples {
  overflow: hidden;
}

/* Prevent accidental text/image selection */
.showcase-wrapper,
.showcase-carousel,
.carousel-item,
.carousel-item img,
.caption-entry,
.caption-entry img,
.texts-panel {
    user-select: none;        /* Standard */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    -webkit-touch-callout: none; /* iOS long press */
    cursor: pointer;           /* optional: indicates clickable */
}
.showcase-wrapper,
.showcase-carousel,
.carousel-item {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.showcase-media {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.showcase-carousel {
  opacity: 1;
	  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  cursor: pointer;
}


.carousel-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;           /* hidden by default */
  pointer-events: none; /* clicks only go to active slide */
  transition: none;     /* remove any fade/animation */
}

.carousel-item.active {
  opacity: 1;           /* show instantly */
  pointer-events: auto; /* clickable */
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  max-width: 925px;
  margin: 0 auto;  
	padding: 7rem 2rem;
  font-size: 1.5rem;
	line-height: 1.7rem;
color: #fff;
font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;  
	letter-spacing: 0.03em;
}

.overlay-content p {
	padding: 0;
	margin: 0;
	border-bottom: 0;
}

.overlay-content a {
	padding: 0;
	margin: 0;
	border-bottom: 0;
}

.overlay-content a:hover {
	border-bottom: 1px solid #fff;
}

.overlay-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.overlay-col p {
  margin: 0 0 1.7rem;
}

.overlay-content li {
list-style: none;
}


#easter-egg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
   z-index: 10001; /* above overlay and text panel */

  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}

#easter-egg.active {
  opacity: 1;
}

/* =========================================================
   INTRO / OVERLAY TEXT
   ========================================================= */

.showcase-intro,
.media-caption,
.media-count {
  position: absolute;
  z-index: 10;
    color: #fff;
	  mix-blend-mode: screen;
	opacity: 2;
font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;  
	letter-spacing: 0.02em;
}

.showcase-intro {
  opacity: 0;
  animation: titleIn 0.6s ease forwards;
	  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.9rem;
	line-height: 0.95rem;
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-intro p,
.showcase-intro h1 {
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 0 2rem;
  padding: 0;
font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;
  letter-spacing: 0.03em;
	  color: #fff;
}

.showcase-intro a {
  color: inherit;
  border-bottom: 1px solid #fff;
  transition: border-color 0.3s ease, color 0.3s ease; /* animate color instead */
}

.showcase-intro a:hover {
  border-color: transparent; /* fade out the underline */
  color: #fff; /* optional color fade */
}

.media-count {
  top: 1.7rem;
  right: 12rem;
  font-weight: 400;
  font-size: 0.85rem;
		line-height: 0.95rem;
}

span.showcase {
  padding: 0 !important;
}

.texts-panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.04); /* subtle semi-transparent */
  backdrop-filter: blur(8px);             /* match easter egg blur */
  -webkit-backdrop-filter: blur(8px);

  color: black;
  padding: 120px 40px;
  overflow-y: auto;

  opacity: 0;             /* start hidden */
  filter: blur(10px);     /* content slightly blurred initially */
  pointer-events: none;   /* prevent interaction when hidden */

  transition: 
    opacity 0.6s ease, 
    filter 0.6s ease;
  z-index: 9999;
}

.texts-panel.active {
  opacity: 1;
  filter: blur(0);        /* content sharpens when active */
  pointer-events: auto;   /* allow interaction */
}

.texts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
}

.caption-entry,
.caption-number,
.caption-text {
	font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;
  letter-spacing: 0.03em;
}

.caption-number {
  font-size: 0.75rem;
  line-height: 0.9rem;
	margin: 8px 0 8px 0;
}

.caption-text {
  font-size: 0.75rem;
  line-height: 0.9rem;
}

}
.caption-entry {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.caption-thumb {
  width: 100%;
}

.caption-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.caption-content {
  flex: 1;
}

.ui-close {
  position: fixed;
  top: 44px;
  right: 80px;
  font-size: 30px;
	color: #fff;
  cursor: pointer;
  opacity: 1;
  z-index: 10000;
	font-family: Helvetica, sans-serif;
	font-weight: 100;
}

.ui-close:hover {
  opacity: 0.6;
}

/* ---------------------------------------------------------
   REEL PAGE LAYOUT
   --------------------------------------------------------- */

.reel-section {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
	font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;
	letter-spacing: 0.06em;
		color: #000;
}
.reel-header {
  font-size: 11px;
  opacity: 0.8;
}

.reel-header h1,
.reel-header p {
font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;
  margin: 0;
 padding: 0;
	 line-height: 1.7;
}

.reel-email a {
  color: #000;
  text-decoration: none;
	padding: 0;
	margin: 0;
	border-bottom: none;
}

.reel-caption {
	font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;
  font-size: 11px;
  opacity: 0.35;
	letter-spacing: 0.06em;
  margin: 8px 0 0 0;
	padding: 0;
}

.reel-video {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.video-wrapper-reel {
  width: 80%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}

.sample-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;    /* keep rounded corners */
}

/* =========================================================
   PASSWORD / FORMS
   ========================================================= */

.password-prompt { padding-top: 24px; }

.password-form { margin-top: 0rem; }

.password-form input[type="password"] {
  padding: 0 0 16px 0;
  border: 1px solid #000;
  border-radius: 4px;
}

.password-form input[type="submit"] {
  background-color: #000;
  color: #fff;
  padding: 16px 0 0 0;
  border: none;
  cursor: pointer;
  font-family: "Xanh Mono", monospace;
}

/* =========================================================
   MOBILE STYLES
   ========================================================= */

@media (max-width: 768px) {
	
	
	/* First slide is visible instantly */
.carousel-item:first-child {
  opacity: 1 !important;
  pointer-events: auto;
}
	
.overlay,
.texts-panel {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
}
	
.overlay {
  padding: 0;
}

.overlay-content {
  padding: 6.5rem 3rem;
  max-height: 100%;
  overflow-y: auto;
	  font-family: 'Haas Grotesk Display Web';
	font-weight: 500;
	font-style: normal;  
	letter-spacing: 0.03em;
	    font-size: 0.95rem;
	  line-height: 1.3rem;
}
	
	.wrapper {
    padding: 12px 24px; 
    margin: 0;
  }
	
	texts-panel {
  padding-top: 120px;
	}
	
  .custom-text { 
    width: 100%; 
  }

  .botw-post-grid { 
    grid-template-columns: 1fr; 
  }

  .desktop-video { 
    display: none; 
  }

  .mobile-video { 
    display: block; 
  }

  .responsive-video {
    display: block;
    width: 100vw;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    overflow: hidden;
  }

  .video-wrapper {
    aspect-ratio: 4 / 3;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
  }

  .video-wrapper video {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
  }

  .video-wrapper-sample {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .portfolio-video video {
    max-height: 50vh;
  }

  .project-navigation {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .prev-project,
  .next-project {
    text-align: center;
  }

  .reel-header h1,
  .reel-header p,
  .reel-header h2 {
    margin: 0;
    padding: 0;
  }
	
	.media-count {
  top: 1.7rem;
  right: 6rem;
  font-weight: 400;
  font-size: 0.85rem;
		line-height: 0.95rem;
}
	
	.overlay-columns {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

} 


/* =========================================================
   SMALL MOBILE (≤ 430px)
   ========================================================= */

@media (max-width: 430px) {
	
	  .overlay,
  .texts-panel {
    overflow-y: auto;        /* ensure scrolling is allowed */
    -webkit-overflow-scrolling: touch; /* smooth momentum scrolling on iOS */
  }

  .texts-panel {
    transform: translateY(0); /* optional if you want it to appear immediately on mobile */
	      padding: 120px 20px;      /* optional, smaller padding for mobile */
  }

	.ui-close {
  position: fixed;
  top: 24px;
  right: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 1;
  z-index: 10000;
}

  .wrapper {
    padding: 18px 26px; 
    margin: 0;
  }

  .showcase-intro h1 {
    margin: 0 0 0 10px;
  }

  .portfolio-gallery .media-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .reel-video {
    overflow: hidden;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .video-wrapper-reel {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    margin-bottom: 100px;
  }

  .sample-video {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }

  .reel-caption {
    position: absolute;
    bottom: 18px;
  }

  .reel-header h1,
  .reel-header p {
    margin: 0;
    padding: 0;
  }

  .overlay-columns {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

}

