/* ============ eeU International — homepage ============ */

:root {
  --bg:        #eeeeee;        /* page background */
  --bg-2:      #f4f4f4;        /* header / lighter band */
  --ink:       #1b1b1a;        /* near-black text */
  --ink-soft:  #3a3a38;
  --muted:     #8c8c87;        /* footer / captions */
  --line:      #c9c8c4;
  --box:       #d9d8d4;        /* gray placeholder boxes */
  --box-2:     #cfceca;
  --green:     #1d5132;        /* logo / brand green */
  --orange:    #c25a2c;        /* accent (EYE / EXECUTION / UNITED) */
  --white:     #fbfbfa;

  --font-display: 'Saira Condensed', 'Pretendard', sans-serif;
  --font-sans:    'Helvetica Neue', Helvetica, 'Pretendard', Arial, sans-serif;
  --font-kr:      'Pretendard', 'Helvetica Neue', sans-serif;
  --font-serif:   'Noto Serif', Georgia, 'Pretendard', serif;
  --font-script:  'Dancing Script', cursive;

  --maxw: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
  --header-h: 88px;

  /* hero logo display width — adjust to taste */
  --hero-logo-w: 460px;
}

* { box-sizing: border-box; }

/* screen-reader only — visible to search engines & assistive tech, hidden visually */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* logo (header) */
.logo { display: flex; align-items: center; text-decoration: none; padding: 6px 0; }
.logo-mark { display: block; width: clamp(120px, 14vw, 168px); height: 46px; object-fit: contain; object-position: left center; }

.nav { display: flex; gap: clamp(20px, 3vw, 46px); }
.nav a {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; letter-spacing: .14em;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  position: relative; opacity: .82; transition: opacity .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--green); transition: right .3s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { opacity: 1; }

/* hamburger (mobile only) */
.nav-toggle { display: none; }

/* ---------------- Section scaffold ---------------- */
.section { padding-top: calc(var(--header-h) + clamp(40px, 7vh, 96px)); padding-bottom: clamp(60px, 10vh, 120px); }
.section-title {
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0; color: var(--ink);
}
.center { text-align: center; }

/* reveal animation — only hidden when JS is active (fails open) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------------- HOME / hero ---------------- */
#home { padding-top: var(--header-h); padding-bottom: clamp(40px, 7vh, 90px); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin: clamp(20px,4vh,60px) 0 clamp(28px,5vh,56px);
  position: relative;
}
.hero-logo {
  display: block;
  width: var(--hero-logo-w);
  max-width: 92vw;
  height: auto;
  object-fit: contain;
}
.hero-banner {
  position: relative; width: 100%;
  height: clamp(220px, 34vh, 340px);
  background: linear-gradient(160deg, #34372d, #23251e 60%, #2c2a23);
  overflow: hidden;
}
.hero-banner-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(transparent, rgba(20,22,18,.7));
  pointer-events: none; z-index: 2;
}
.hero-sub {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: .34em; text-align: center; padding-left: .34em; white-space: nowrap;
  font-size: clamp(13px, 1.5vw, 19px); color: var(--ink-soft);
  margin-top: clamp(30px, 6vh, 64px);
}

/* ---------------- ABOUT ---------------- */
#about .about-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(18px, 3vw, 40px); max-width: 920px; margin: clamp(40px,7vh,80px) auto 0;
}
.vcard {
  background: var(--box); padding: clamp(22px,3vw,34px) 12px;
  text-align: center; display: flex; flex-direction: column; gap: 12px;
}
.vcard .en { font-family: var(--font-serif); font-size: clamp(20px,2.4vw,30px); letter-spacing: .04em; }
.vcard .en .lead { color: var(--orange); }
.vcard .kr { font-family: var(--font-kr); font-weight: 700; font-size: clamp(15px,1.7vw,20px); color: var(--ink); }
.about-copy {
  max-width: 980px; margin: clamp(40px,7vh,72px) auto 0;
  font-family: var(--font-kr); color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 19px); line-height: 2.05; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}
.about-copy p { margin: 0 0 .35em; }
.about-copy .lead-line { margin-bottom: .9em; }

/* ---------------- PROCESS ---------------- */
#process { background: var(--bg); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(48px,9vh,96px); align-items: start; }
.tl-step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.tl-title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(16px,1.9vw,25px); line-height: 1.16; white-space: nowrap; padding: 0 8px;
  min-height: 3.4em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.tl-dotrow { position: relative; width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; margin: 16px 0 16px; }
.tl-dotrow::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; height: 1.5px; background: var(--line); z-index: 0; }
.tl-step:first-child .tl-dotrow::before { left: 50%; }
.tl-step:last-child  .tl-dotrow::before { right: 50%; }
.tl-dot { position: relative; width: 17px; height: 17px; border-radius: 50%; background: #7c7c77; z-index: 2; transition: background .3s, transform .3s; }
.tl-step.lit .tl-dot { background: var(--green); transform: scale(1.18); }
.tl-cap { font-family: var(--font-kr); font-size: clamp(13px,1.4vw,17px); color: var(--ink-soft); line-height: 1.6; white-space: nowrap; padding: 0 6px; }

/* ---------------- MATERIAL ---------------- */
.mat-head { display: flex; flex-direction: column; align-items: center; gap: clamp(26px,4vh,40px); }
.mat-title .suffix { color: var(--green); }
.mat-toggle { display: inline-flex; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--bg-2); }
.mat-toggle button {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: .1em; font-size: 13px; white-space: nowrap;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: 9px 20px; border-radius: 999px; transition: .25s;
}
.mat-toggle button.on { background: var(--ink); color: var(--white); }
.mat-tabs { display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); }
.mat-tabs button {
  border: 0; background: none; cursor: pointer; color: var(--ink);
  font-size: clamp(16px,1.8vw,22px); letter-spacing: .06em; opacity: .55; transition: .25s; padding: 4px 2px;
}
.mat-tabs button.on, .mat-tabs button:hover { opacity: 1; }
.mat-tabs button.on { font-weight: 700; }
.mat-tabs .sep { color: var(--line); }
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,44px); margin-top: clamp(40px,7vh,72px); }
.mat-box {
  background: var(--box); min-height: clamp(150px,22vh,200px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  padding: clamp(20px,3vw,30px) 12px;
  font-family: var(--font-kr); font-size: clamp(16px,1.8vw,22px); color: var(--ink);
  transition: background .3s, box-shadow .3s, transform .3s;
  overflow: hidden;
}
.mat-box .line { white-space: nowrap; }
/* inline material photo (always visible) */
.mat-photo {
  display: block; width: 100%; height: clamp(140px, 18vw, 190px);
  margin: 4px 0 10px; object-fit: cover; object-position: center;
  border-radius: 10px; background: #ececea;
}
.mat-lines { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mat-box .cat { font-family: var(--font-sans); font-weight: 700; letter-spacing: .1em; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mat-box.lit { background: var(--box-2); box-shadow: inset 0 0 0 2px var(--green); transform: translateY(-4px); }
.mat-actions { display: flex; justify-content: flex-end; margin-top: clamp(28px,5vh,46px); }
.btn-pill {
  font-family: var(--font-kr); font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap;
  background: var(--box); border: 0; border-radius: 999px; padding: 16px 40px; cursor: pointer;
  transition: background .25s, transform .15s;
}
.btn-pill:hover { background: var(--box-2); }
.btn-pill:active { transform: scale(.97); }

/* ---------------- CONTACT ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); margin-top: clamp(36px,6vh,60px); align-items: start; }
.contact-title-row { display: flex; align-items: center; gap: 14px; }
.contact-info { margin-top: clamp(36px,6vh,64px); display: flex; flex-direction: column; gap: clamp(26px,4vh,40px); }
.ci-block .label { font-family: var(--font-sans); font-weight: 700; font-size: clamp(17px,1.8vw,23px); margin: 0 0 8px; }
.ci-block .label.serif { font-family: var(--font-serif); font-weight: 600; }
.ci-block .val { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px,1.9vw,24px); color: var(--ink-soft); letter-spacing: .02em; line-height: 1.5; }
.ci-block .val.kr { font-family: var(--font-kr); }

/* form */
.form-card { background: var(--box); padding: clamp(26px,3vw,40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-kr); font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-kr); font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 22%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--orange); }
.field .err { display: none; font-family: var(--font-kr); font-size: 12px; color: var(--orange); margin-top: 6px; }
.field.invalid .err { display: block; }
.form-submit {
  width: 100%; font-family: var(--font-kr); font-weight: 700; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 16px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.form-submit:hover { background: #fff; }
.form-submit:active { transform: scale(.99); }
.form-note { font-family: var(--font-kr); font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-ok { display: none; font-family: var(--font-kr); font-size: 14px; color: var(--green); text-align: center; margin-top: 12px; }
.form-ok.show { display: block; }

/* privacy link + modal */
.privacy-link {
  font-family: var(--font-kr); font-size: 12px; color: var(--ink-soft);
  background: none; border: 0; padding: 0; margin-left: 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; transition: color .2s;
}
.privacy-link:hover { color: var(--green); }
.privacy-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20,22,18,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.privacy-overlay[hidden] { display: none; }
.privacy-overlay.open { opacity: 1; }
.privacy-dialog {
  background: var(--bg-2); width: min(620px, 100%); max-height: min(82vh, 760px);
  display: flex; flex-direction: column; border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.privacy-overlay.open .privacy-dialog { transform: none; }
.privacy-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.privacy-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; margin: 0; color: var(--ink); letter-spacing: .01em; }
.privacy-close {
  font-size: 26px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; transition: background .2s, color .2s;
}
.privacy-close:hover { background: var(--box); color: var(--ink); }
.privacy-body { padding: 24px 28px 30px; overflow-y: auto; font-family: var(--font-kr); }
.privacy-intro { font-size: 14px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 22px; }
.privacy-sec { margin-bottom: 20px; }
.privacy-sec h4 { font-family: var(--font-kr); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 8px; }
.privacy-sec p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 6px; }
.privacy-sec ul { margin: 0; padding-left: 18px; }
.privacy-sec li { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.privacy-sec strong { color: var(--ink); font-weight: 700; }
.privacy-contact { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.privacy-foot { font-size: 12.5px; color: var(--muted); margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------------- Capabilities (취급 소재 & 서비스) ---------------- */
.capabilities { padding: clamp(54px,9vh,96px) 0; border-top: 1px solid var(--line); }
.cap-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .04em;
  font-size: clamp(24px,3vw,34px); color: var(--ink); margin: 0 0 clamp(28px,4vh,44px);
}
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px,4vw,56px); }
.cap-col h3 { font-family: var(--font-kr); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 12px; letter-spacing: .01em; }
.cap-col p { font-family: var(--font-kr); font-size: 13.5px; line-height: 1.95; color: var(--muted); margin: 0; }
.cap-note { font-family: var(--font-kr); font-size: 12.5px; color: var(--muted); margin: clamp(28px,4vh,44px) 0 0; letter-spacing: .01em; }
@media (max-width: 880px) {
  .cap-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------- OUR WORK / OUR PARTNERS (shared) ---------------- */
.section-lead {
  max-width: 720px; margin: clamp(18px,3vh,28px) auto 0; text-align: center;
  font-family: var(--font-kr); color: var(--ink-soft);
  font-size: clamp(15px,1.4vw,18px); line-height: 1.95; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}

/* ---------------- OUR WORK — editorial masonry ---------------- */
.work-gallery {
  columns: 3; column-gap: clamp(14px,1.7vw,22px);
  margin-top: clamp(40px,7vh,72px);
}
.work-gallery .wk {
  break-inside: avoid; margin: 0 0 clamp(14px,1.7vw,22px);
  overflow: hidden; background: var(--box); position: relative;
}
.work-gallery .wk img {
  display: block; width: 100%; height: auto;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.work-gallery .wk:hover img { transform: scale(1.045); }

/* ---------------- OUR PARTNERS — documentary network grid ---------------- */
#partners { background: var(--bg-2); }
.partner-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px,1.7vw,22px); margin-top: clamp(40px,7vh,72px);
}
.pt {
  position: relative; overflow: hidden; background: var(--box);
  aspect-ratio: 3 / 4; margin: 0;
}
.pt img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.02) brightness(.99);
  transition: filter .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.pt:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.05); }
.pt figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(16px,2vw,22px) clamp(14px,1.6vw,20px) clamp(13px,1.6vw,18px);
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(transparent, rgba(20,22,18,.66));
}
.pt .en {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .2em;
  font-size: clamp(12px,1.15vw,15px); color: var(--white);
}
.pt .kr { font-family: var(--font-kr); font-size: clamp(12px,1vw,13.5px); color: rgba(255,255,255,.82); }

@media (max-width: 880px) {
  .work-gallery { columns: 2; }
  .partner-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .work-gallery { columns: 1; max-width: 420px; margin-left: auto; margin-right: auto; }
  .partner-gallery { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(26px,4vh,40px) 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-col { font-family: var(--font-serif); font-size: 13px; line-height: 1.9; color: var(--muted); letter-spacing: .02em; }
.foot-col.right { text-align: right; }
.foot-col .kr { font-family: var(--font-kr); }

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  :root { --header-h: 70px; }
  .nav { gap: 16px; }
  .nav a { font-size: 12px; letter-spacing: .08em; }
  #about .about-cards { grid-template-columns: 1fr; max-width: 420px; }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .tl-title { min-height: 0; }
  .tl-dotrow { display: none; }
  .mat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .foot-col.right { text-align: left; }
}
@media (max-width: 560px) {
  /* show hamburger, turn nav into a dropdown panel */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; margin-right: -8px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 6px 0;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 12px 26px rgba(0,0,0,.10);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 15px var(--gutter); font-size: 15px; letter-spacing: .16em;
    opacity: 1; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero-sub { letter-spacing: .22em; padding-left: .22em; white-space: normal; }
}
