/* ============================= */
/* 1. Reset and Base Styles       */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: black;
  height: 100%;
  font-family: sans-serif;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  letter-spacing: -0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.3;
  color: white;
}


/* ============================= */
/* 2. Typography and Text Styles  */
/* ============================= */
  
.gradient-text {
  background: linear-gradient(120deg, #0006ff, #35155d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
 
h1, h2, h3 {
  line-height: 1.4;
}

h1 { font-weight: 600; font-size: clamp(27px, 5vw, 40px); padding-right: 0.1em;}
h2 { font-weight: 400; font-size: clamp(27px, 5vw, 40px); padding-right: 0.1em;}
h3 { font-weight: 600; font-size: clamp(26px, 5vw, 40px); padding-right: 0.1em;}

.korean {
  color: white;
  font-size: clamp(50px, 10vw, 131px);
  font-weight: 600;
  line-height: 1.05;
}

.b1 {
  display: inline-block;       /* prevent clipping */
  line-height: 1.3;
  font-size: clamp(27px, 5vw, 40px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-right: 0.1em;      /* tiny buffer to prevent cut-off */
}
.b1 em { font-style: italic; }
  
.b2 { line-height: 1.3;   padding-right: 0.1em; font-weight: 600; font-size: clamp(26px, 4vw, 36px); }

.credit { line-height: 1.0; margin-top: 4em; }

p, .block {
  display: block;       /* avoid clipping of last letter */
  padding-right: 0.05em;       /* tiny right space */
}

.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  white-space: nowrap; 
  border: 0;
}

/* ============================= */
/* 3. Layout and Sections         */
/* ============================= */
  
.section {
  padding-top: 0;        /* keep text starting lower */
  min-height: auto;        /* full viewport for each section */
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  font-size: clamp(27px, 5vw, 40px);
  font-weight: 400;
  margin-bottom: 0.0em;
}

.section:first-of-type {
  padding-top: 67vh;        /* keep big space for first section */
  min-height: 80vh;        /* first section still full viewport */
}

.content {
  max-width: 1000px;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.section h3 {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.section p {
  line-height: 1.4;
  margin: 0em 0;
}

.section .block {
  margin-bottom: 0.5em;
}

.section.credits {
  padding-top: 0;      /* remove top padding */
  min-height: 62px;     /* don’t force full viewport */
  line-height: 1.1;
    margin-bottom: 0em;
}

.section.credits .content {
  padding: 0 1.2rem;     /* keep horizontal padding, remove vertical */
}

.section.credits .block {
  margin: 0;           /* remove block spacing */
}

.section.credits .credit p {
  margin-top: 16px;      /* remove top padding */
  margin-bottom: 60px;      /* remove top padding */
  font-size: 22px;     /* restore original size */
  text-align: left;
  letter-spacing: -0.01em;
}

  
/* ============================= */
/* 4. Video Background Styles     */
/* ============================= */

.video-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;           /* always visible */
  pointer-events: none;
  z-index: 0;
}


/* ============================= */
/* 5. Links and Interaction       */
/* ============================= */
  
.no-decoration {
  text-decoration: underline;
  color: inherit;
}

.no-decoration:hover,
.no-decoration:focus,
.no-decoration:active {
  text-decoration: underline;
}
  
p a {
  display: inline-block;   /* ensures padding works properly */
  padding-right: 0.1em;   /* tiny space to prevent clipping */
}



/* ============================= */
/* 6. Form Elements               */
/* ============================= */
  
.type-field {
  display: block;
  width: 90%;              /* stretch to fit parent */
  max-width: 90%;          /* don’t overflow */
  min-width: 1ch;
  position: relative;
  outline: none;
  border: none;
  background: transparent;
  color: white;
  white-space: pre-wrap;
  word-wrap: break-word;    /* wrap long words */
  overflow-wrap: break-word;
  box-sizing: border-box;   /* padding counted in width */
}

#sendBtn {
  font-size: clamp(27px, 5vw, 40px);
  font-weight: 400;  
  margin-left: 0rem;
  padding: 0rem 0rem;
  background: transparent;
  color: white;
  border: 0px solid white;
  cursor: pointer;
}
#sendBtn:hover {
  background: transparent;
  color: white;
}

#senderEmail {
  background: transparent;  /* base */
  color: white;
  border: none;
  font-size: clamp(27px, 5vw, 40px);
  font-weight:400;
  padding: 0.3rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}
    
#senderEmail:-webkit-autofill,
#senderEmail:-webkit-autofill:hover,
#senderEmail:-webkit-autofill:focus,
#senderEmail:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; /* Remove yellow bg */
  -webkit-text-fill-color: white !important; /* Keep text white */
  transition: background-color 5000s ease-in-out 0s; /* hack to keep bg transparent */
}
#senderEmail::placeholder {
  color: rgba(255, 255, 255, 0.6); /* Light placeholder */
}
#senderEmail:focus {
  outline: none;              /* No blue highlight */
  border-bottom: 0px solid white; /* Keep underline on focus */
}
    
/* ============================= */
/* 7. Media Queries               */
/* ============================= */
  
  @media (hover: hover) and (pointer: fine) {
  #sendBtn:hover {
    background: transparent;
    color: white;
  }
.section.credits .credit p {
  margin-top: 16px;      /* remove top padding */
  margin-bottom: 60px;      /* remove top padding */
  font-size: 22px;     /* restore original size */
  text-align: left;
  letter-spacing: -0.01em;
}
}